break;
case "target": // Set which what-file will be placed in home-page (only modules.php?module=index)
- if (isset($_GET['home']))
- {
+ if (isset($_GET['home'])) {
// Set new home
- $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET index_home='%s' WHERE config=0 LIMIT 1", array($_GET['home']), __FILE__, __LINE__);
- $_CONFIG['index_home'] = $_GET['home'];
- }
+ UPDATE_CONFIG("index_home", $_GET['home']);
+ $_CONFIG['index_home'] = SQL_ESCAPE($_GET['home']);
+ } // END - if
// Load all what menu points
$result = SQL_QUERY("SELECT id, what, title