Beispiel #1
0
if ($pageFile != $pageName) {
    $SITE['wsModules'][$pageFile] = 'this file loaded instead of ' . $pageName;
}
ws_message('<!-- module ' . $pageFile . ' ==== ' . $SITE['wsModules'][$pageFile] . ' -->');
#-----------------------------------------------------------------------
# 0.02 2015-09-07  beta version
# ----------------------------------------------------------------------
# SETTINGS
ws_message('<!-- module configure_page.php (' . __LINE__ . '): loading login.php -->');
$result = (require '_login.php');
if (!$result) {
    return;
}
#
$pathString = '';
langMergeFile('./configure/lang/');
if ($pathString != '') {
    echo $pathString;
}
#
$page_title = langtransstr("Adapt the settings to reflect your situation") . '<span style="float: right;">User: '******' <a href="' . $phpself . '&logout">logout</a>&nbsp;';
$config_folder = './configure/';
$conf_lng_folder = $config_folder . 'lang/';
list($script) = explode('.', $pageFile);
if (isset($SITE['pages'][$script])) {
    $form_action = $SITE['pages'][$script];
} else {
    $form_action = 'index.php?p=125';
}
// should never happen !
#
Beispiel #2
0
    }
    header("Location: index.php?p=" . $p);
    // back to index/startpage if someone tries an
    exit;
    //  out of range / non existing page
}
if ($SITE['charset'] == 'UTF-8' && $noutf8 != '') {
    // test for: noutf8  = "WINDOWS-1252"
    $SITE['charset'] = $noutf8;
    // generate page in requested character set
    ini_set('default_charset', $SITE['charset']);
    $LANGLOOKUP = array();
    // clean arrays with utf-8 language data
    $missingTrans = array();
    $dir = $SITE['langDir'];
    langMergeFile($dir);
    // reload lang files with nonutf8 data
    $menuArray = array();
    $DropdownMenuText = '';
    $level = 1;
    wsMenuGen($xmlStr);
    // generate new menu files
}
unset($xmlStr);
#
$SITE['pageRequest'] = $p . '|' . $link;
#-----------------------------------------------------------------------------------------
#            generate headers and first part of page
#-----------------------------------------------------------------------------------------
if (!isset($lang)) {
    $lang = $SITE['lang'];