]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_home.php
Documentation updated
[mailer.git] / inc / modules / admin / what-config_home.php
index 968bcdb2b4f1105520bbd329db0429304d5e8f25..df9f65ae4acba36708e14e192e64cf3b850d13eb 100644 (file)
 
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
-// Init "sub" value
-$sub = "";
-if (REQUEST_ISSET_GET(('sub'))) $sub = REQUEST_GET('sub');
+// Init 'sub' value
+$sub = '';
+if (REQUEST_ISSET_GET('sub')) $sub = REQUEST_GET('sub');
 
 switch ($sub)
 {
@@ -58,8 +58,8 @@ case "settings": // Settings related to the index page
                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, "");
-               $content[getConfig('index_delay')] = " selected=\"selected\"";
+               $content = array_fill(-1, 60, '');
+               $content[getConfig('index_delay')] = ' selected="selected"';
 
                define('__INDEX_COOKIE_SELECTION', CREATE_TIME_SELECTIONS(getConfig('index_cookie'), "index_cookie", "YMWD"));
                LOAD_TEMPLATE("admin_config_home_settings", false, $content);
@@ -80,7 +80,7 @@ ORDER BY `sort` ASC", __FILE__, __LINE__);
 
        // Init variables
        $SW = 2;
-       $OUT = "";
+       $OUT = '';
 
        // Process all entries
        while ($content = SQL_FETCHARRAY($result)) {