diff options
Diffstat (limited to 'frontend/pages/configurations/status.php')
-rw-r--r-- | frontend/pages/configurations/status.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/frontend/pages/configurations/status.php b/frontend/pages/configurations/status.php index d27efd4..f0ba8d5 100644 --- a/frontend/pages/configurations/status.php +++ b/frontend/pages/configurations/status.php @@ -1,13 +1,12 @@ <?php -function init_configurations_status() { - global $S, $request; +function init_configurations_status(&$S) { if (!isset($S['user'])) { return 'login'; } - if (!(isset($request['configuration']) && strlen($request['configuration']) == 6 && ctype_alnum($request['configuration']))) { + if (!(isset($_REQUEST['configuration']) && strlen($_REQUEST['configuration']) == 6 && ctype_alnum($_REQUEST['configuration']))) { return '404'; } - $r=$S['pdo']->query('SELECT * FROM `configurations` WHERE `id`=\''.$request['configuration'].'\''); + $r=query('SELECT * FROM `configurations` WHERE `id`=\''.$_REQUEST['configuration'].'\''); if ($r->rowCount() == 0) { return '404'; } @@ -17,8 +16,7 @@ function init_configurations_status() { } return array('title' => 'Status'); } -function body_configurations_status() { - global $S; +function body_configurations_status(&$S) { $c=&$S['status']['configuration']; $module=new module($c->module); $status=true; |