// Current SVN revision
//define('CURR_SVN_REVISION', getActualVersion(0));
-define('CURR_SVN_REVISION', "824");
+define('CURR_SVN_REVISION', "825");
define('CURR_SVN_DATE' , getActualVersion(1));
define('CURR_SVN_VERSION' , getActualVersion(2));
case "0.4.6": // SQL queries for v0.4.6
ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` ADD gender ENUM ('M','F') NOT NULL DEFAULT 'M'");
- ADD_SQL("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET gender=sex WHERE sex != 'M'");
- ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` DROP sex");
+ // @DEPRECATED ADD_SQL("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET gender=sex WHERE sex != 'M'");
+ // @DEPRECATED ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` DROP sex");
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Offensives Wort "Sex" gegen "Gender" ausgetauscht.");
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "sponsor");
return;
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
LOAD_TEMPLATE("guest_menu_content");
// Disable block-mode by default
-$BLOCK_MODE = false;
+$GLOBALS['block_mode'] = false;
// Construct FQFN
$INC = sprintf("inc/modules/guest/action-%s.php", $GLOBALS['action']);
define('__MEMBER_ADVERT', LOAD_TEMPLATE("member_banner", true));
// Disable block mode by default
-$BLOCK_MODE = false;
+$GLOBALS['block_mode'] = false;
// Generate a tableset for the menu title and content
LOAD_TEMPLATE("member_header");
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
} elseif ((!EXT_IS_ACTIVE("bank")) && (!IS_ADMIN())) {
addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "bank");
return;
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) {
addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "order");
return;
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) {
addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "surfbar");
return;
-} elseif ($BLOCK_MODE) {
+} elseif ($GLOBALS['block_mode']) {
// Block mode detected
return;
}
while (list($main_title, $main_action) = SQL_FETCHROW($result_main)) {
//* DEBUG: */ echo __LINE__."/".$main_cnt."/".$main_action."/".$sub_what.":".$GLOBALS['what']."*<br />\n";
// Init variables
- $BLOCK_MODE = false; $act = $main_action;
+ $GLOBALS['block_mode'] = false; $act = $main_action;
// Prepare content
$content = array(
}
} else {
// This is a menu block... ;-)
- $BLOCK_MODE = true;
+ $GLOBALS['block_mode'] = true;
$INC_BLOCK = sprintf("inc/modules/%s/action-%s.php", $MODE, $main_action);
if (FILE_READABLE($INC_BLOCK)) {
// Load include file