$msg";
if(eregi('I', $format)) $msg = "$msg";
if(eregi('U', $format)) $msg = "$msg";
switch ($msg_type){
case 'NON': break;
case 'MSG': $msg = ''.$msg.'';
break;
case 'HINT': $msg = ''.$msg.'';
break;
case 'WARN': $msg = ''.$msg.'';
break;
case 'ERR': $msg = ''.$msg.'';
break;
}
return $msg;
}
$SETTINGS['DIR_INCLUDES'] = 'include/';
//$PHOENIX_USER = array();
$PHOENIX_USER_MENU = array();
// include main function files ========================= INCLUDE
//include $SETTINGS['DIR_INCLUDES'].'index.php';
include $SETTINGS['DIR_INCLUDES'].'debug.php';
include $SETTINGS['DIR_INCLUDES'].'db.php';
include $SETTINGS['DIR_INCLUDES'].'console.php';
include $SETTINGS['DIR_INCLUDES'].'event_logging.php';
include $SETTINGS['DIR_INCLUDES'].'authority.php';
include $SETTINGS['DIR_INCLUDES'].'include.php';
include 'xajax/xajax.inc.php';
include $SETTINGS['DIR_LANG'].$LANG_ENCODING_FILES[$CURRENT_LANG];
include $SETTINGS['DIR_LANG'].$LANG_ENCODING_FILES_NAME[$CURRENT_LANG];
include $SETTINGS['DIR_LANG'].$LANG_ELOG_FILES[$CURRENT_LANG];
include $SKINS_DIRS[$CURRENT_SKIN].'display.php';
include $SETTINGS['DIR_INCLUDES'].'integrated.php';
include $SETTINGS['DIR_DYNAMICS'].'updated.php';
include $SETTINGS['DIR_INTEGRATED'].'include.php';
if(isset($PHOENIX_USER)){
$PHOENIX_USER['IMGAVATAR'] = str_replace('[#SKIN#]/',$SKINS_DIRS[$CURRENT_SKIN], $PHOENIX_USER['IMGAVATAR']);
$PHOENIX_USER['IMGPHOTO'] = str_replace('[#SKIN#]/',$SKINS_DIRS[$CURRENT_SKIN], $PHOENIX_USER['IMGPHOTO']);
}
// include the dynamic files
if(file_exists($SETTINGS['DIR_DYNAMICS'].'currency.php'))
include $SETTINGS['DIR_DYNAMICS'].'currency.php';
if(file_exists($SETTINGS['DIR_DYNAMICS'].'clickatell_balance.php'))
include $SETTINGS['DIR_DYNAMICS'].'clickatell_balance.php';
// check for error during the user login
if ($tmp_LOGIN== 'ERROR'){
addError($LANG_MSG[40001]); // Wrong username or password
}
// check for new messages
if ($flagShow_newMessages && ($SKIN_SHOW_FORTUNE != 1)){
if ($flagShow_newMessages == '1'){
$str = $LANG_MSG[20032].' '.$flagShow_newMessages.' '.$LANG_MSG[20034];
$SUBS[$LANG_MSG[20032].' '.$flagShow_newMessages.' '.$LANG_MSG[20034]] = action(array('mod' => 'useracc', 'form' => 'msg', 'l' => $HTTP_GET_VARS['l']), ''); // you have message
}else{
$SUBS[$LANG_MSG[20032].' '.$flagShow_newMessages.' '.$LANG_MSG[20033]] = action(array('mod' => 'useracc', 'form' => 'msg', 'l' => $HTTP_GET_VARS['l']), ''); // you have messages
}
$str = scLinkList($SUBS);
MsgDlg($str, 'INFORMATION', '-', '', false);
elog_Add(scLinkList($SUBS,'_new'), 'SYSTEM', 'NEW_PM_NOTIFY', '', 0, 'CONSOLE', $PHOENIX_USER['SID']);
}
if (isset($tmp_LOGIN)) unset($tmp_LOGIN);
if (isset($SUBS)) unset($SUBS);
// -------------------------------------------- Strings for web search engines
// if no other defined this will be the title in the titlebar of the browser
$PAGE_TITLE = $LANG_MSG[10005];
$META_DESCRIPTION = $LANG_MSG[10006];
$META_KEYWORDS = $LANG_MSG[10007];
$META_AUTHOR = $LANG_MSG[10008];
$META_COPYRIGHT = $LANG_MSG[10028];
$CONTENT_LANGUAGE = $LANG_MSG[10029];
$META_OWNER = $LANG_MSG[10030];
$REPLYTO = $LANG_MSG[10031];
// POST and GET data
$CMD = array(); // post
$PATH = array(); // only get
$CMD = __stripSlash($HTTP_POST_VARS);
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)){
$key = strToLower($key);
$PATH[$key] = $value;
}
if(!isset($_SERVER['HTTPS']) && $SETTINGS['FORCE_SSL'] == 'ENABLED'){
$str = action('', 'SELF', 'SECURE');
header("Location: $str");
}
// include here the main menu to catch the dynamic action (get)
include $SETTINGS['DIR_INCLUDES'].'menu.php';
if (!isset($PATH['sc'])){
// create default user menu
if (isset($PHOENIX_USER)){
$PHOENIX_USER_MENU['info']['UINFO'] = $LANG_MSG[20019]; // personal information
$PHOENIX_USER_MENU['info']['UHREF'] = action(array('mod' => 'useracc'),'');
if (check_Level(9)){
$PHOENIX_USER_MENU['ulist']['UINFO'] = $LANG_MSG[20029]; // other users
$PHOENIX_USER_MENU['ulist']['UHREF'] = action(array('mod' => 'useracc', 'form' => 'ulist'),'');
}
$PHOENIX_USER_MENU['msglist']['UINFO'] = $LANG_MSG[20031]; // Messages
$PHOENIX_USER_MENU['msglist']['UHREF'] = action(array('mod' => 'useracc', 'form' => 'msg'),'');
$PHOENIX_USER_MENU['msgsentlist']['UINFO'] = $LANG_MSG[20052]; // Sent Messages
$PHOENIX_USER_MENU['msgsentlist']['UHREF'] = action(array('mod' => 'useracc', 'form' => 'outboxmsg'),'');
$PHOENIX_USER_MENU['newmsg']['UINFO'] = $LANG_MSG[20030]; // New message
$PHOENIX_USER_MENU['newmsg']['UHREF'] = action(array('mod' => 'useracc', 'form' => 'newmsg'),'');
if (check_Level(9)){
$PHOENIX_USER_MENU['toall']['UINFO'] = $LANG_MSG[20046]; // Message to all
$PHOENIX_USER_MENU['toall']['UHREF'] = action(array('mod' => 'useracc', 'form' => 'msgtoall'),'');
}
}
//show_timezones();
//chatterBox();
run_bookmarks();
}
//----------- Call an Integrated functionality
$RestrictMods = false;
if (isset($PATH['mod']) && $PATH['mod'] == 'integrated' && check_Level(9)){
if ($PATH['part'] == 'history'){
show_history();
}
$RestrictMods = true;
}
//print_a($_SERVER);
//print_a(get_defined_constants());
// call a module
if (isset($PATH['mod']) && isset($MODS[strToUpper($PATH['mod'])]) && !$RestrictMods){
init_newsX(true); //prepare the Left Right Hot News Boxes
// go and execute specific module
// include module
include $SETTINGS['DIR_MODS'].$MODS[strToUpper($PATH['mod'])].'mod.php';
// execute module
main();
if (!isset($PATH['sc'])){
$_INDEX_COUNTER = indexCounter(false);
}
}else{
if (!isset($PATH['sc'])){
// display main index page
// show latest news
init_newsX();
// increment site counter
$_INDEX_COUNTER = indexCounter(true);
$_INDEXPAGE = true;
}
}
// update users count
if ($__updateUsersCount) $SETTINGS['USERSCOUNT'] = countUsers(true);
if (!isset($PATH['sc'])){
// display the window with online users in right
showOnlineUsers();
put_newsX_HotBoxes();
showRelatedOnlineUsers();
$SKIN_SHOW_SEARCH = 0;
$str = '';
$str2 = '';
// show window Settings (Languages)
reset($LANG_MSG_LANGUAGES);
$SUBS = array();
while(list($key, $value) = each($LANG_MSG_LANGUAGES)){
$SUBS[$value] = action(array('l' => $key), 'SELF');
}
$str = scLinkList($SUBS);
addRight($LANG_MSG[21001], scSection($LANG_MSG[21002], $str, ''));
if ($__updateUsersCount) countUsers(true);
bookmarks_menu();
echo scDisplay();
}
// BBCLONE
define("_BBC_PAGE_NAME", "Nature of Time");
define("_BBCLONE_DIR", $PLUGINS["BBCLONE"]);
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
// /BBCLONE
// IMPORTANT !!!
// protects the site script from including it into other scripts
die();
?>