Beispiel #1
0
    $PREFS->itemsPerPage = $_POST['PREFS_itemsPerPage'] + 0;
    $PREFS->metricSystem = $_POST['PREFS_metricSystem'] + 0;
    $PREFS->googleMaps = $_POST['PREFS_googleMaps'] + 0;
    $PREFS->nameOrder = $_POST['PREFS_nameOrder'] + 0;
    $PREFS->useEditor = $_POST['PREFS_useEditor'] + 0;
    $PREFS->language = $_POST['PREFS_language'];
    $_SESSION["lng"] = $PREFS->language;
    $PREFS->viewCat = $_POST['PREFS_viewCat'];
    $_SESSION["cat"] = $PREFS->viewCat;
    $PREFS->viewCountry = $_POST['PREFS_viewCountry'];
    $_SESSION["country"] = $PREFS->viewCountry;
}
if (!is_dir(dirname(__FILE__) . "/templates/" . $PREFS->themeName) || !$PREFS->themeName) {
    $PREFS->themeName = $CONF_defaultThemeName;
}
$PREFS->setToCookie();
$themeRelPath = $moduleRelPath . "/templates/" . $PREFS->themeName;
$themeAbsPath = dirname(__FILE__) . "/templates/" . $PREFS->themeName;
function getRelMainFileName()
{
    global $baseInstallationPath, $CONF_mainfile;
    return str_replace('//', '/', "/{$baseInstallationPath}/{$CONF_mainfile}" . CONF_MODULE_ARG);
}
function getArgList($str)
{
    global $module_name, $CONF_arg_name;
    return "?{$CONF_arg_name}={$module_name}{$str}";
}
function getRelMainDir($noLeadingSlash = 0, $noTrailingSlash = 0)
{
    global $baseInstallationPath, $moduleRelPath, $CONF;