Combined the Agents in the repo
This commit is contained in:
parent
15a457cbef
commit
e1859e5d73
465 changed files with 77467 additions and 0 deletions
15
Agent_Linux/IspConfig/sites_ftp_user_delete.php
Normal file
15
Agent_Linux/IspConfig/sites_ftp_user_delete.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
error_reporting(0);
|
||||
require('soap_config.php');
|
||||
$client = new SoapClient(null, array('location' => $soap_location,
|
||||
'uri' => $soap_uri,
|
||||
'trace' => 1,
|
||||
'exceptions' => 1));
|
||||
$session_id = $client->login($username,$password);
|
||||
chdir('ftp_users');
|
||||
$username = $_GET['username'];
|
||||
$ftp_user_id = file_get_contents($username);
|
||||
$client->sites_ftp_user_delete($session_id, $ftp_user_id);
|
||||
unlink($username);
|
||||
$client->logout($session_id);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue