-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFtp.php
50 lines (48 loc) · 1.02 KB
/
Ftp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
header('Content-Type: text/html; charset=utf8');
require_once 'Kinghost.php';
class Ftp extends Kinghost
{
// alteraSenhaFtp() {{{
/**
* Altera a senha de FTP do dominio passado com o parametro ID
*
* Example:
* <code>
* require_once 'Dominio.php';
* $adsl = new Dominio('[email protected]' , '123456');
*
* print_r($adsl->alteraSenhaFtp($param));
* </code>
*
* @access public
* @return object
*/
public function alteraSenhaFtp( $param )
{
$this->doCall( 'ftp/senha' , $param , 'PUT');
return @json_decode($this->getResponseBody() , true);
}
// }}}
// getUsuarios() {{{
/**
* Altera a senha de FTP do dominio passado com o parametro ID
*
* Example:
* <code>
* require_once 'Dominio.php';
* $adsl = new Dominio('[email protected]' , '123456');
* print_r($adsl->getUsuarios($idDominio));
* </code>
*
* @access public
* @return object
*/
public function getUsuarios( $idDominio )
{
$this->doCall( 'ftp/'.$idDominio , '' , 'GET');
return @json_decode($this->getResponseBody() , true);
}
// }}}
}
?>