andre 3 лет назад
Родитель
Сommit
7a8b052120
2 измененных файлов с 8 добавлено и 11 удалено
  1. 0 10
      api/cwp7/Admin.php
  2. 8 1
      cwp7.php

+ 0 - 10
api/cwp7/Admin.php

@@ -118,17 +118,7 @@ class cwp7_Admin {
             "package"       => $params['package'],
             "autossl"       => $params['autossl'],
             "encodepass"    => true,
-            "debug"         => 1,
         );
-
-		logModuleCall(
-			'cwp7',
-			__FUNCTION__,
-			$data,
-			'Debug',
-			$params
-		);
-
         return $this->doRequest('account', 'add', $data);
 	}
 	/**

+ 8 - 1
cwp7.php

@@ -80,7 +80,10 @@ function cwp7_ConfigOptions() {
         'Type' => 'dropdown',
         'Options' => implode(',', $cwp7PackageNames),
 		'Description' => 'Select CWP7 Package',
-    );
+	);
+	$configOptions['inode'] = array( "Type" => "text" , "Description" => "Max of inode", "Default" => "0",);
+	$configOptions['nofile'] = array( "Type" => "text", "Description" => "Max of nofile", "Default" => "100",);
+	$configOptions['nproc'] = array( "Type" => "text" , "Description" => "Nproc limit - 40 suggested", "Default" => "40",);
 	return $configOptions;
 }
 
@@ -113,6 +116,10 @@ function cwp7_CreateAccount($params) {
 			'user' => $username,
 			'pass' => $params['password'],
 			'email' => $params['clientsdetails']['email'],
+			'inode' => $params["configoption2"],
+            'nofile' => $params["configoption3"],
+            'nproc' => $params["configoption4"],
+            'server_ips'=>$params["serverip"]
 		);
 		$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
 		$response = $cwp7->createAccount($data);