login password at restore
-
Please help me. Thanx
When I try a restore:For security reasons, you need to authorize yourself with any username / password, having administrative privileges
Username _________
Password _________In the forum I’ve find this:
Open the archive in any text editor and search for ‘users = ‘
It will give you array with usernames and their encoded passwords. Dont’s save it though, it might break line feeds (and the whole archive )but I don’t be able to resolve.
This is my archive at the voice user=
function login($user=NULL, $pass=NULL) {
if(!is_null($user)) $this->_login=$user;
else $this->_login=’anonymous’;
if(!is_null($pass)) $this->_password=$pass;
else $this->_password=’[email protected]’;
if(!$this->_exec(‘USER ‘.$this->_login, ‘login’)) return FALSE;
if(!$this->_checkCode()) return FALSE;
if($this->_code!=230) {
if(!$this->_exec((($this->_code==331)?’PASS ‘:’ACCT ‘).$this->_password, ‘login’)) return FALSE;
if(!$this->_checkCode()) return FALSE;
}
$this->SendMSG(‘Authentication succeeded’);
if(empty($this->_features)) {
if(!$this->features()) $this->SendMSG(“Can’t get features list. All supported – disabled”);
else $this->SendMSG(‘Supported features: ‘.implode(‘, ‘, array_keys($this->_features)));
}
return TRUE;
}function pwd() {
if(!$this->_exec(‘PWD’, ‘pwd’)) return FALSE;
if(!$this->_checkCode()) return FALSE;
return preg_replace(‘@^[0-9]{3} “(.+)”.+@’, “\\1”, $this->_message);
}
- The topic ‘login password at restore’ is closed to new replies.