ADD_DESCR("admin", __FILE__);
$sub = "";
-if (!empty($_GET['sub'])) $sub = $_GET['sub'];
+if (REQUEST_ISSET_GET(('sub'))) $sub = REQUEST_GET('sub');
switch ($sub)
{
break;
case "settings": // Settings related to the index page
- if (isset($_POST['ok'])) {
+ if (IS_FORM_SENT()) {
// Save settings
- ADMIN_SAVE_SETTINGS($_POST);
+ ADMIN_SAVE_SETTINGS_POST();
OUTPUT_HTML("<a href=\"{!URL!}/modules.php?module=admin&what=config_home&sub=settings\">".ADMIN_CONTINUE_TO_CONFIG."</a>");
} else {
// Prepare data for the template
break;
case "target": // Set which what-file will be placed in home-page (only modules.php?module=index)
- if (isset($_GET['home'])) {
+ if (REQUEST_ISSET_GET(('home'))) {
// Set new home
- UPDATE_CONFIG("index_home", SQL_ESCAPE($_GET['home']));
+ UPDATE_CONFIG("index_home", SQL_ESCAPE(REQUEST_GET('home')));
} // END - if
// Load all what menu points