// Load it...
$EXT_LOAD_MODE = "";
require_once(PATH."inc/extensions/ext-sql_patches.php");
- $KEEP_ACTIVE = array('sql_patches' => "Y"); // KEEP THIS ALWAYS ACTIVE!
+ $KEEP_ACTIVE = array('sql_patches' => 'Y'); // KEEP THIS ALWAYS ACTIVE!
}
else
{
}
// Do not recreate cache file when it's switched off!
- if (($CACHE_FILE == "init") && ($CONFIG['cache_exts'] == "N")) $CACHE_FILE = "skip";
+ if (($CACHE_FILE == "init") && ($CONFIG['cache_exts'] == 'N')) $CACHE_FILE = "skip";
// Load language
if ($CACHE_FILE == "load") include(PATH."inc/language/cache_".GET_LANGUAGE().".php");
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");
}
//* 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);
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
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))
else
{
// Don't load CSS file
- $css = "N";
+ $css = 'N';
}
}