]> git.mxchange.org Git - mailer.git/blobdiff - inc/load_extensions.php
Password reset for admin login added (still buggy if cache is installed and sql_patch...
[mailer.git] / inc / load_extensions.php
index 75b0c422be5d182e635be63fed865f1b59125be8..f1304aa28c4d4eef93b60abc33064d8ceb758a5d 100644 (file)
@@ -70,7 +70,7 @@ if (EXT_IS_ACTIVE("cache")) {
        }
 
        // Do not recreate cache file when it's switched off!
-       if (($cacheMode == "init") && ($_CONFIG['cache_exts'] == 'N')) $cacheMode = "skip";
+       if (($cacheMode == "init") && ($_CONFIG['cache_exts'] == "N")) $cacheMode = "skip";
 
        // Load language
        if ($cacheMode == "load") include(PATH."inc/language/cache_".GET_LANGUAGE().".php");
@@ -89,19 +89,19 @@ if ($cacheMode == "load") {
        $EXT_DUMMY = $cacheInstance->cache_load();
        foreach ($EXT_DUMMY['ext_name'] as $k=>$name) {
                // Load functions file
-               if ($EXT_DUMMY['ext_funcs'][$k] == 'Y') require_once(PATH."inc/libs/".$name."_functions.php");
+               if ($EXT_DUMMY['ext_funcs'][$k] == "Y") require_once(PATH."inc/libs/".$name."_functions.php");
 
                // Load Language file
-               if ($EXT_DUMMY['ext_lang'][$k] == 'Y') {
+               if ($EXT_DUMMY['ext_lang'][$k] == "Y") {
                        $INC = sprintf(PATH."inc/language/%s_%s.php", $name, GET_LANGUAGE());
                        if (file_exists($INC)) require_once($INC);
                }
 
                // Load CSS file
-               if ($EXT_DUMMY['ext_css'][$k] == 'Y') $EXT_CSS_FILES[] = "".$name.".css";
+               if ($EXT_DUMMY['ext_css'][$k] == "Y") $EXT_CSS_FILES[] = "".$name.".css";
 
                // Load extension file itself
-               if (($EXT_DUMMY['ext_active'][$k] == 'Y') || ($EXT_DUMMY['ext_keep'][$k] == 'Y') || (IS_ADMIN())) {
+               if (($EXT_DUMMY['ext_active'][$k] == "Y") || ($EXT_DUMMY['ext_keep'][$k] == "Y") || (IS_ADMIN())) {
                        require_once(PATH."inc/extensions/ext-".$name.".php");
                }
 
@@ -177,11 +177,11 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && (($cacheMode == "init") || ($cacheMode ==
                //* DEBUG: */ echo "*".$name."/".$menu."*<br>";
 
                // An empty menu entry will be interpreted as N (no menu) to avoid problems
-               if (empty($menu)) $menu = 'N';
+               if (empty($menu)) $menu = "N";
 
                // Load extensions
                $file1 = sprintf(PATH."inc/extensions/ext-%s.php", $name);
-               $file2 = $file1; $EXT_CSS = 'N'; $EXT_ALWAYS_ACTIVE = 'N';
+               $file2 = $file1; $EXT_CSS = "N"; $EXT_ALWAYS_ACTIVE = "N";
 
                // Special functions file
                $file3 = sprintf(PATH."inc/libs/%s_functions.php", $name);
@@ -198,26 +198,26 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && (($cacheMode == "init") || ($cacheMode ==
                        if (file_exists($file3) && is_readable($file3))
                        {
                                // Special functions file
-                               $funcs = 'Y';
+                               $funcs = "Y";
                                require_once($file3);
                        }
                         else
                        {
                                // Don't load functions file
-                               $funcs = 'N';
+                               $funcs = "N";
                        }
 
                        // Do we need a language file?
                        if (($file1 != $file2) && (file_exists($file2)) && (is_readable($file2)))
                        {
                                // Load language file
-                               $lang = 'Y';
+                               $lang = "Y";
                                include($file2);
                        }
                         else
                        {
                                // Don't load language file
-                               $lang = 'N';
+                               $lang = "N";
                        }
 
                        // Load extension
@@ -229,10 +229,10 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && (($cacheMode == "init") || ($cacheMode ==
                         else
                        {
                                // KEEP sql_patches ALWAYS ACTIVE!
-                               $EXT_ALWAYS_ACTIVE = 'Y';
+                               $EXT_ALWAYS_ACTIVE = "Y";
                        }
 
-                       if ($css == 'Y')
+                       if ($css == "Y")
                        {
                                $CSS_FILE = PATH."theme/".GET_CURR_THEME()."/css/".$name.".css";
                                if (file_exists($CSS_FILE))
@@ -243,7 +243,7 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && (($cacheMode == "init") || ($cacheMode ==
                                 else
                                {
                                        // Don't load CSS file
-                                       $css = 'N';
+                                       $css = "N";
                                }
                        }