exit;
}
+ public function ssha_password($password='') {
+ if ($password=='') $password = $this->params['table'];
+ if ($password=='' and !empty($_POST['password'])) $password = $_POST['password'];
+ echo <<<EOF
+<form action="$this->uri" method="post">
+<label>Password: </label><input type="text" name="password" value="$password" />
+<input type="submit" />
+</form>
+EOF;
+ $salt = substr(str_shuffle(str_repeat('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',4)),0,4);
+ $password = '{SSHA}' . base64_encode(sha1( $password.$salt, TRUE ). $salt);
+ return [ 'SSHA' => $password ];
+ }
+
public function status() { #$this->perm--;
$rows = [];
$r['id'] = $this->page->tag('a',$r['id'],'href="'.$this->db->base.'/'.$r['id'].'.'.$this->ext.'"');
});
+ } elseif ($action == 'ssha_password') {
+ $this->page($this,'ssha_password');
+
} elseif ($action == 'cryptkey') {
$this->page($this->db,'cryptkey',['key']);