- Delete the privilege of admin-checkDB.

This commit is contained in:
liumengyi
2023-04-13 15:37:18 +08:00
parent 485ed73e6a
commit ae3d710996
6 changed files with 0 additions and 23 deletions
-17
View File
@@ -205,23 +205,6 @@ class admin extends control
$this->display();
}
/**
* Check all tables.
*
* @access public
* @return void
*/
public function checkDB()
{
$tables = $this->dbh->query("show full tables where Table_Type != 'VIEW'")->fetchAll(PDO::FETCH_ASSOC);
foreach($tables as $table)
{
$tableName = current($table);
$result = $this->dbh->query("REPAIR TABLE $tableName")->fetch();
echo "Repairing TABLE: " . $result->Table . (defined('IN_SHELL') ? "\t" : "&nbsp;&nbsp;&nbsp;&nbsp;") . $result->Msg_type . ":" . $result->Msg_text . (defined('IN_SHELL') ? "\n" : "<br />\n");
}
}
/**
* Account safe.
*