Пример #1
0
 function check_psw($usr, $psw)
 {
     $check = data_db_use::ini($this->table, array($this->usr_col, $this->psw_col));
     if (!($result = $check->check_psw($this->usr, $this->psw))) {
         return 0;
     } else {
         return $result;
     }
 }
Пример #2
0
 static function ini($table, $columns)
 {
     $self = new data_db_use();
     $self->set_all($table, $columns);
     return $self;
 }