X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fmodules%2Fadmin%2Fwhat-config_home.php;h=3a9c3ae627bc7120311c361b30a4ca60a20a590d;hb=ab92fb7241d00636b0eb940f147449758820cba1;hp=1cf4abc2e8846e7316f272c87703344b11afd585;hpb=001e43c93664d89ffc23aa4452aac8520279086d;p=mailer.git diff --git a/inc/modules/admin/what-config_home.php b/inc/modules/admin/what-config_home.php index 1cf4abc2e8..3a9c3ae627 100644 --- a/inc/modules/admin/what-config_home.php +++ b/inc/modules/admin/what-config_home.php @@ -53,7 +53,7 @@ case "settings": // Settings related to the index page if (isset($_POST['ok'])) { // Save settings ADMIN_SAVE_SETTINGS($_POST); - OUTPUT_HTML("".ADMIN_CONTINUE_TO_CONFIG.""); + OUTPUT_HTML("".ADMIN_CONTINUE_TO_CONFIG.""); } else { // Prepare data for the template $content = array_fill(-1, 60, ""); @@ -67,36 +67,33 @@ case "settings": // Settings related to the index page case "target": // Set which what-file will be placed in home-page (only modules.php?module=index) if (isset($_GET['home'])) { // Set new home - UPDATE_CONFIG("index_home", $_GET['home']); - getConfig('index_home') = SQL_ESCAPE($_GET['home']); + UPDATE_CONFIG("index_home", SQL_ESCAPE($_GET['home'])); } // END - if // Load all what menu points $result = SQL_QUERY("SELECT id, what, title -FROM "._MYSQL_PREFIX."_guest_menu -WHERE action='main' AND what != '' AND what IS NOT NULL AND locked='N' -ORDER BY sort ASC", __FILE__, __LINE__); +FROM `{!_MYSQL_PREFIX!}_guest_menu` +WHERE action='main' AND `what` != '' AND `what` IS NOT NULL AND `locked`='N' +ORDER BY `sort` ASC", __FILE__, __LINE__); $SW = 2; $OUT = ""; $atitle = ""; - while (list($id, $wht, $wtitle) = SQL_FETCHROW($result)) - { - $LINK = ""._IS_NEW_HOME.""; - if ($wht == getConfig('index_home')) - { + while (list($id, $wht, $wtitle) = SQL_FETCHROW($result)) { + $LINK = ""._IS_NEW_HOME.""; + if ($wht == getConfig('index_home')) { // Is current home - $LINK = ""._IS_CURRENT_HOME.""; - $atitle = "".$atitle.""; - $wtitle = "".$wtitle.""; + $LINK = "