Previous fix fixed, a lot constants rewritten (unfinished)
[mailer.git] / inc / modules / admin / what-config_home.php
index 5185bfb4ba34cf4e1225fc8d0d4db4b36e1f052e..3a9c3ae627bc7120311c361b30a4ca60a20a590d 100644 (file)
@@ -53,7 +53,7 @@ case "settings": // Settings related to the index page
        if (isset($_POST['ok'])) {
                // Save settings
                ADMIN_SAVE_SETTINGS($_POST);
-               OUTPUT_HTML("<a href=\"".URL."/modules.php?module=admin&amp;what=config_home&amp;sub=settings\">".ADMIN_CONTINUE_TO_CONFIG."</a>");
+               OUTPUT_HTML("<a href=\"{!URL!}/modules.php?module=admin&amp;what=config_home&amp;sub=settings\">".ADMIN_CONTINUE_TO_CONFIG."</a>");
        } else {
                // Prepare data for the template
                $content = array_fill(-1, 60, "");
@@ -72,16 +72,16 @@ case "target": // Set which what-file will be placed in home-page (only modules.
 
        // 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 = "<a href=\"".URL."/modules.php?module=admin&amp;what=config_home&amp;sub=target&amp;home=".$wht."\">"._IS_NEW_HOME."</a>";
+               $LINK = "<a href=\"{!URL!}/modules.php?module=admin&amp;what=config_home&amp;sub=target&amp;home=".$wht."\">"._IS_NEW_HOME."</a>";
                if ($wht == getConfig('index_home')) {
                        // Is current home
-                       $LINK   = "<div class=\"admin_note\">"._IS_CURRENT_HOME."</div>";
+                       $LINK   = "<div class=\"admin_note\">{!_IS_CURRENT_HOME!}</div>";
                        $atitle = "<div class=\"admin_note\">".$atitle."</div>";
                        $wtitle = "<div class=\"admin_note\">".$wtitle."</div>";
                }