- Delete the privilege of admin-checkDB.
This commit is contained in:
@@ -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" : " ") . $result->Msg_type . ":" . $result->Msg_text . (defined('IN_SHELL') ? "\n" : "<br />\n");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Account safe.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user