mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Add native implementation using the libsmbclient-php extensions
This commit is contained in:
parent
0520cba7dc
commit
3c67574fff
6 changed files with 460 additions and 9 deletions
|
|
@ -15,17 +15,26 @@ class Server {
|
|||
/**
|
||||
* @var string $host
|
||||
*/
|
||||
private $host;
|
||||
protected $host;
|
||||
|
||||
/**
|
||||
* @var string $user
|
||||
*/
|
||||
private $user;
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* @var string $password
|
||||
*/
|
||||
private $password;
|
||||
protected $password;
|
||||
|
||||
/**
|
||||
* Check if the smblcient php extension is available
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function NativeAvailable() {
|
||||
return function_exists('smbclient_state_new');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue