$GLOBALS['module'] = "birthday_confirm";
// Include header
- include(PATH."inc/header.php");
+ require(PATH."inc/header.php");
// Load birthday header template (for your banners, e.g.?)
define('__BIRTHDAY_HEADER', LOAD_TEMPLATE("birthday_header", true));
LOAD_TEMPLATE("birthday_confirm");
// Include footer
- include(PATH."inc/footer.php");
+ require(PATH."inc/footer.php");
} else {
// You have to install first!
LOAD_URL("install.php");
require_once("inc/libs/security_functions.php");
// Init "action" and "what"
-global $what, $action;
-$GLOBALS['what'] = ""; $GLOBALS['action'] = "";
+global $what, $action, $footer;
+
+// Footer is disabled in CSS mode
+$footer = "-1";
+
+// Init variables
+$GLOBALS['what'] = "";
+$GLOBALS['action'] = "";
// This is a CSS file loader!
-$CSS = "1"; $GLOBALS['module'] = "css";
+$CSS = "1";
+$GLOBALS['module'] = "css";
+
+// Set header
+header("Content-type: text/css");
// Load the required file(s)
require("inc/config.php");
-// Set header
-@header("Content-type: text/css");
-
// Load header
require_once(PATH."inc/header.php");
if (getConfig('doubler_send_mode') == "DIRECT") require(PATH."inc/doubler_send.php");
// Output header
- include(PATH."inc/header.php");
+ require(PATH."inc/header.php");
// Banner in text
define('__DOUBLER_BANNER', LOAD_TEMPLATE("doubler_banner", true));
LOAD_TEMPLATE("doubler_index");
// Output footer
- include(PATH."inc/footer.php");
+ require(PATH."inc/footer.php");
} else {
// You have to install first!
LOAD_URL("install.php");
define('SERVER_URL', "http://www.mxchange.org");
// Current SVN revision
-define('CURR_SVN_REVISION', "718");
+define('CURR_SVN_REVISION', "719");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// Get extension's name
$ext_name = GET_EXT_NAME($ext_id);
+ // If it is not set then maybe there is no extension for that ID number
if (empty($ext_name)) return false;
// Load extension in detected mode
************************************************************************/
// Global variable stuff
-global $link, $frame, $CSS, $header;
+global $link, $frame, $CSS, $header, $footer;
// Some security stuff...
if (!defined('__SECURITY')) {
require($INC);
} // END - if
-// @TODO Workaround for css.php
-if (!isset($footer)) $footer = 0;
-
+// Footer disabled or already sent?
if (($footer != "1") && ($footer != "2") && ($CSS != "1")) {
// Output the generated HTML code or do nothing in direct-mode
if (getTotalFatalMessages() > 0) {
}
}
-// Open a table (you may want to add some header stuff here)
-// @DEPRECATED
-function OPEN_TABLE ($PERCENT = "", $CLASS = "", $ALIGN="left", $VALIGN="", $td_only=false) {
- global $table_cnt;
-
- // Count tables so we can generate CSS classes for every table... :-)
- if (empty($CLASS)) {
- // Class is empty so count one up and create a class
- $table_cnt++; $CLASS = "class".$table_cnt;
- }
- $OUT = "<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\"";
-
- // Shall I add the classes to TABLE and TD or only to TD?
- if (!$td_only) $OUT .= " class=\"".$CLASS."\"";
-
- // Width is given
- if (!empty($PERCENT)) $OUT .= " width=\"".$PERCENT."\"";
-
- // Horizonal align
- if (!empty($ALIGN)) $OUT .=" align=\"".$ALIGN."\"";
-
- // Vertical align is given
- if (!empty($VALIGN)) $OUT .= " valign=\"".$VALIGN."\"";
- $OUT .= ">\n<TR>\n<TD";
- if (!empty($ALIGN)) $OUT .=" align=\"".$ALIGN."\"";
- $OUT .= " class=\"".$CLASS."\">";
- OUTPUT_HTML($OUT);
-}
-
-// Close a table (you may want to add some footer stuff here)
-// @DEPRECATED
-function CLOSE_TABLE( $ADD="") {
- OUTPUT_HTML(" </TD>\n</TR>");
- if (!empty($ADD)) OUTPUT_HTML($ADD);
- OUTPUT_HTML("</TABLE>");
-}
-
// Output HTML code directly or "render" it. You addionally switch the new-line character off
function OUTPUT_HTML ($HTML, $NEW_LINE = true) {
// Some global variables
default:
// Huh, something goes wrong or maybe you have edited config.php ???
DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Invalid renderer %s detected.", OUTPUT_MODE));
- MXCHANGE_DIE("<strong>".FATAL_ERROR.":</strong> ".LANG_NO_RENDER_DIRECT);
+ mxchange_die("<strong>{!FATAL_ERROR!}:</strong> {!LANG_NO_RENDER_DIRECT!}");
break;
}
} elseif ((_OB_CACHING == "on") && ($footer == 1)) {
header ("Location: ".str_replace("&", "&", $URL));
} else {
// Output error message
- include(PATH."inc/header.php");
+ require(PATH."inc/header.php");
LOAD_TEMPLATE("redirect_url", false, str_replace("&", "&", $URL));
- include(PATH."inc/footer.php");
+ require(PATH."inc/footer.php");
}
exit();
}
// Output error messages in a fasioned way and die...
function mxchange_die ($msg) {
- global $footer;
+ // Load header
+ require_once(PATH."inc/header.php");
// Load the message template
LOAD_TEMPLATE("admin_settings_saved", false, $msg);
// Load footer
- include(PATH."inc/footer.php");
+ require(PATH."inc/footer.php");
// Exit explicitly
exit;
return $value;
}
-// @TODO Rewrite all language constants to the function getLanguage().
+// @TODO Rewrite all language constants to this function.
// "Getter" for language strings
function getMessage ($messageId) {
// Default is not found!
require($INC);
}
-// Initialize variables
-if (!isset($header)) $header = 0;
+global $header;
+// Is the header already sent?
if (($header != "1") && ($header != "2")) {
// If not in CSS mode generate the header
if (($CSS != "1")) {
require($INC);
}
-// Generates a HTML table baded on given data
-// @TODO Lame description!
+// Generates a HTML table based on given data
+// @TODO Lame description
function DOUBLER_GENERATE_TABLE ($uid="0", $done='N', $ref='N', $sort="ASC") {
global $_CONFIG;
if (empty($cnt)) $cnt = 0;
default:
// Test if there is are time selections
- $TEST = substr($k, -3);
- if ((($TEST == "_ye") || ($TEST == "_mo") || ($TEST == "_we") || ($TEST == "_da") || ($TEST == "_ho") || ($TEST == "_mi") || ($TEST == "_se")) && (!empty($v))) {
- // Found a multi-selection for timings?
- $TEST = substr($k, 0, -3);
- if ((!empty($POST[$TEST."_ye"])) && (!empty($POST[$TEST."_mo"])) && (!empty($POST[$TEST."_we"])) && (!empty($POST[$TEST."_da"])) && (!empty($POST[$TEST."_ho"])) && (!empty($POST[$TEST."_mi"])) && (!empty($POST[$TEST."_se"])) && ($TEST != $TEST2)) {
- // Generate timestamp
- $POST[$TEST] = CREATE_TIMESTAMP_FROM_SELECTIONS($TEST, $POST);
- $DATA['keys'][] = $TEST;
- $DATA['values'][] = $POST[$TEST];
-
- // Remove data from array
- // @TODO Do we still need this all?
- unset($POST[$TEST."_ye"]);
- unset($POST[$TEST."_mo"]);
- unset($POST[$TEST."_we"]);
- unset($POST[$TEST."_da"]);
- unset($POST[$TEST."_ho"]);
- unset($POST[$TEST."_mi"]);
- unset($POST[$TEST."_se"]);
-
- // Skip adding
- $k = ""; $skip = true; $TEST2 = $TEST;
- }
- } else {
- $skip = false; $TEST2 = "";
- }
+ CONVERT_SELECTIONS_TO_TIMESTAMP($POST, $DATA, $k, $skip);
break;
}
}
} elseif ((($probe_nickname) && (!empty($uid2))) || ($uid2 == $uid)) {
// Other account status?
- // @TODO Can this query be saved???
+ // @TODO Can this query be merged with above query?
$result = SQL_QUERY_ESC("SELECT status FROM `"._MYSQL_PREFIX."_user_data` WHERE userid=%s LIMIT 1",
array($uid), __FILE__, __LINE__);
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
// "what file" not found
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} else {
addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
}
$INC = sprintf("%sinc/modules/admin/action-%s.php", PATH, $act);
if ((FILE_READABLE($INC)) && (VALIDATE_MENU_ACTION("admin", $act, $wht)) && (__ACL_ALLOW == true)) {
// Ok, we finally load the admin action module
- include($INC);
+ require($INC);
} elseif (__ACL_ALLOW == false) {
// Access denied
LOAD_TEMPLATE("admin_menu_failed", false, ADMIN_ACCESS_DENIED);
} // END - if
} else {
// Test-drive extension in update mode
- include(sprintf("%sinc/extensions/ext-%s.php", PATH, $ext_name));
+ require(sprintf("%sinc/extensions/ext-%s.php", PATH, $ext_name));
// Update extension if extension is installed and outdated
//* DEBUG: */ print "ext={$ext_name},ver={$EXT_VERSION}/".GET_EXT_VERSION($ext_name)."<br />\n";
$file = sprintf("%stheme/%s/theme.php", PATH, SQL_ESCAPE($_POST['theme']));
if (FILE_READABLE($file)) {
// Load the theme header file
- include($file);
+ require($file);
// Register it ith the exchange
SQL_QUERY_ESC("INSERT INTO `"._MYSQL_PREFIX."_themes` (`theme_path`, `theme_active`, `theme_ver`, `theme_name`)
// Test it...
if (($dir != ".") && ($dir != "..") && (FILE_READABLE($theme))) {
// Found a valid directory so let's load it's theme.php file
- include($theme);
+ require($theme);
// Add found theme to array
$THEMES['theme_unix'][] = $dir;
require($INC);
}
-// @TODO Replace with own template!
-OPEN_TABLE("500", "guest_login_header dashed", "center");
-OUTPUT_HTML("<br /><strong>".VALIDATING_LOGIN."</strong><br />");
+// Initial message part
+$MSG = "<strong>{!VALIDATING_LOGIN!}</strong>";
if (!empty($GLOBALS['userid']) && (isSessionVariableSet('u_hash'))) {
// Login failtures are supported since 0.4.7
if (($bonus) && ($_GET['mode'] == "bonus") && (EXT_IS_ACTIVE("bonus"))) {
// Output message with added points
- OUTPUT_HTML("<font class=\"tiny\">
- ".BONUS_LOGIN_BONUS_ADDED_1."
- <strong>".TRANSLATE_COMMA(getConfig('login_bonus'))." ".POINTS."</strong>
- ".BONUS_LOGIN_BONUS_ADDED_2."
-</font>");
+ $MSG .= "<div class=\"tiny\">
+ {!BONUS_LOGIN_BONUS_ADDED_1!}
+ <strong>".TRANSLATE_COMMA(getConfig('login_bonus'))." {!POINTS!}</strong>
+ {!BONUS_LOGIN_BONUS_ADDED_2!}
+</div>";
} elseif (EXT_IS_ACTIVE("bonus")) {
// No login bonus added!
- OUTPUT_HTML("<font class=\"member_failed\">".BONUS_LOGIN_BONUS_NOT_ADDED."</font>");
+ $MSG .= "<div class=\"member_failed\">{!BONUS_LOGIN_BONUS_NOT_ADDED!}</div>";
}
// Redirect to member area
- LOAD_TEMPLATE("member_login_js");
+ $MSG .= LOAD_TEMPLATE("member_login_js", true);
} else {
// Login failed!
- LOAD_TEMPLATE("login_failed_js");
+ $MSG .= LOAD_TEMPLATE("login_failed_js", true);
}
-// Close table
-CLOSE_TABLE();
+// Output final message
+LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
//
?>
$INC = sprintf(PATH."inc/modules/guest/what-%s.php", $GLOBALS['what']);
if (FILE_READABLE($INC)) {
// Ok, we finally load the guest action module
- include($INC);
+ require($INC);
} elseif ($IS_VALID) {
addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
} else {
$INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the guest action module
- include($INC);
+ require($INC);
} elseif ($IS_VALID) {
addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
} else {
$INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the guest action module
- include($INC);
+ require($INC);
} elseif ($IS_VALID) {
addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
} else {
$INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC)) {
// Ok, we finally load the guest action module
- include($INC);
+ require($INC);
} elseif ($IS_VALID) {
addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
} else {
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
if (FILE_READABLE($INC_WHAT)) {
// Ok, we finally load the member action module
- include_once($INC_WHAT);
+ require($INC_WHAT);
} else {
addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2);
}
if (($entry != ".") && ($entry != "..") && (FILE_READABLE($theme)) && (THEME_IS_ACTIVE($entry))) {
// Found a valid directory so let's load it's theme.php file
- include($theme);
+ require($theme);
// Add found theme to array
$THEMES['theme_unix'][] = $entry;
// Output message to user and die
if (EXT_IS_ACTIVE("debug")) {
- // Debug extension found! :-)
- // @TODO Can this be rewritten to mxchange_die() ?
- die("Error message written to debug.log. Please try to call <a href=\"".URL."\">the main page</a> to continue.");
+ // Debug extension found! So Output a small message
+ mxchange_die("Error message written to debug.log. Please try to call <a href=\"".URL."\">the main page</a> to continue.");
} else {
// No debug extension found
// @TODO Find a way to rewrite debug_print_backtrace() so we can maybe
'last_update' => time()
);
+// Init important $header variable
+global $header;
+$header = 0;
+
// Init fatal messages
global $FATAL;
$FATAL = array();
// List only rankings when script is installed
if (isBooleanConstantAndTrue('mxchange_installed')) {
// Include header
- include(PATH."inc/header.php");
+ require(PATH."inc/header.php");
if (($_GET['uid'] > 0) && ($_GET['d'] > 0) && (!empty($_GET['t']))) {
// Set row name
LOAD_TEMPLATE("show_bonus");
// Include footer
- include(PATH."inc/footer.php");
+ require(PATH."inc/footer.php");
} else {
// You have to install first!
LOAD_URL("install.php");