This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/admin/index.php

47 lines
755 B
PHP
Raw Normal View History

<?php
/***************************/
/* Admin Script for API Db */
/***************************/
2004-03-15 16:22:00 +00:00
include("path.php");
include(BASE."include/"."incl.php");
include(BASE."include/"."tableve.php");
if(!havepriv("admin"))
2004-03-15 16:22:00 +00:00
{
errorpage();
exit;
}
//desc
if($table_cmd)
{
apidb_header("Table Operation");
$t = new TableVE("view");
switch($table_cmd)
{
case "check":
$t->view("CHECK TABLE $table_id");
break;
case "describe":
$t->view("DESCRIBE $table_id");
break;
case "optimize":
$t->view("OPTIMIZE TABLE $table_id");
break;
}
apidb_footer();
exit;
}
// output of admin page begins here
apidb_header("Admin");
// Draw User List
include(BASE."include/"."query_users.php");
apidb_footer();
?>