50 $this->smarray = array();
51 while(
sizeof($name)>$this->i)
53 $this->smarray[$this->i] = $_SESSION[$name[$this->i++]];
55 return $this->smarray;
59 return $_SESSION[$name];
84 private $current_time;
92 $this->current_time = array(
'year'=>date(
'Y'),
98 'session'=>date(
'YmdHis'));
107 CREATE TABLE IF NOT EXISTS `login` (
108 `id` bigint(20) NOT NULL AUTO_INCREMENT,
109 `userid` bigint(20) NOT NULL,
110 `sessionid` longtext NOT NULL,
111 `expiration` int(11) NOT NULL,
112 `perm` int(11) NOT NULL,
114 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;
116 $mysql->openTable(
'login');
117 $mysql->write($this->sql);
119 CREATE TABLE IF NOT EXISTS `users` (
120 `userid` bigint(20) NOT NULL AUTO_INCREMENT,
121 `name` longtext NOT NULL,
122 `pass` longtext NOT NULL,
123 `perm` int(4) NOT NULL,
124 PRIMARY KEY (`userid`)
125 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;
127 $mysql->openTable(
'users');
128 $mysql->write($this->sql);
139 $mysql->openTable(
'users');
140 $mysql->insert(
"'name',md5('$pass'),$perm");