Initial commit

This commit is contained in:
2026-01-14 23:04:53 +01:00
parent 2f7d11b7d2
commit d9b4c73baa
25 changed files with 3742 additions and 30 deletions

View File

@@ -14,8 +14,9 @@ class SqlController extends Controller
{
parent::__construct();
// Only logged-in users can access the SQL console
// Only admin users can access the SQL console
Auth::checkAuthentication();
Auth::checkAdminAuthentication();
}
/**
@@ -28,7 +29,7 @@ class SqlController extends Controller
$database_name = Config::get('DB_NAME');
}
$this->View->render('sql/index', array(
$this->View->renderDbManager('sql/index', array(
'database_name' => $database_name,
'databases' => DatabaseModel::getAllDatabases(),
'history' => SqlModel::getQueryHistory(Session::get('user_id'))