コード例 #1
0
ファイル: stack.php プロジェクト: jhawcroft/cinsimp-web
 private function load_check_essentials()
 {
     $stmt = $this->file_db->prepare('SELECT format_version,password_hash,private_access,cant_modify,cant_delete,record_version FROM cinsimp_stack');
     $stmt->execute();
     $row = $stmt->fetch(PDO::FETCH_NUM);
     if ($row[0] > 1) {
         CinsImpError::_general('Stack Too New', 'Stack was created with a newer version of CinsImp');
     }
     $this->password_hash = $row[1];
     $this->private_access = Stack::decode_bool($row[2]);
     $this->cant_modify = Stack::decode_bool($row[3]);
     $this->cant_delete = Stack::decode_bool($row[4]);
     $this->record_version = intval($row[5]);
 }