// Check if logged in
if (IS_MEMBER()) {
// Is still logged in so we welcome him with his name
- $result = SQL_QUERY_ESC("SELECT surname, family FROM `{!MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT surname, family FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
array($GLOBALS['userid']), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Load surname and family's name and build the username
}
// The header file
-include (PATH."inc/header.php");
+require_once(PATH."inc/header.php");
// Modules are by default not valid!
$MOD_VALID = false; $check = "failed";
if ((getConfig('maintenance') == "Y") && (!IS_ADMIN()) && ($GLOBALS['module'] != "admin")) {
// Maintain mode is active and you are no admin
- addFatalMessage(LANG_DOWN_MAINTAINCE);
+ addFatalMessage(getMessage('LANG_DOWN_MAINTAINCE'));
} elseif (($link) && ($db) && (getTotalFatalErrors() == 0)) {
// Did we found the module listed in allowed modules and are we successfully connected?
$check = CHECK_MODULE($GLOBALS['module']);
}
} elseif (getTotalFatalErrors() == 0) {
// MySQL problems!
- addFatalMessage(MYSQL_ERRORS);
+ addFatalMessage(getMessage('MYSQL_ERRORS'));
}
if (($MOD_VALID) && (defined('__MODULE'))) {
} // END - if
// Next-to-end add the footer
-include (PATH."inc/footer.php");
+require_once(PATH."inc/footer.php");
//
?>