]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_rewrite.php
config.php partly solved, see #117
[mailer.git] / inc / modules / admin / what-config_rewrite.php
index dc38a0da5bd90425dfc6fac889aa4ea643a9e89e..8c36ce73ff5e4e9ceafc3467d368e8a76a6db792 100644 (file)
@@ -38,7 +38,7 @@
 
 // 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);
 }
 
@@ -57,7 +57,7 @@ if (IS_FORM_SENT()) {
        }
 
        // Implode array to string and remove posted mod array
-       REQUEST_SET_POST('rewrite_skip', implode(":", $MODs));
+       REQUEST_SET_POST('rewrite_skip', implode(':', $MODs));
        REQUEST_UNSET_POST('mod');
 
        // Save settings
@@ -68,17 +68,17 @@ if (IS_FORM_SENT()) {
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // Set title to three dashes when no title is supplied
-               if (empty($content['title'])) $content['title'] = "---";
+               if (empty($content['title'])) $content['title'] = '---';
 
                // Already registered module?
                if (ereg($content['module'], getConfig('rewrite_skip'))) {
                        // Found
-                       $y = ' chkecked="checked"';
+                       $y = ' checked="checked"';
                        $n = '';
                } else {
                        // Not found
                        $y = '';
-                       $n = ' chkecked="checked"';
+                       $n = ' checked="checked"';
                }
 
                // Remember data in array for the dynamic row template