define('SERVER_URL', "http://www.mxchange.org");
// Current SVN revision
-define('CURR_SVN_REVISION', "597");
+define('CURR_SVN_REVISION', "598");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
);
// Do we have extension task?
- if (($type == "EXTENSION") && (!GET_EXT_VERSION($infos) == "")) {
+ if (($type == "EXTENSION") && (GET_EXT_VERSION($infos) == "")) {
// Load extension row template
LOAD_TEMPLATE("admin_overview_list_ext_rows", false, $content);
} else {
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif (!EXT_IS_ACTIVE("")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "");
+ return;
+} elseif ($BLOCK_MODE) {
+ // Block mode detected
+ return;
}
// Add description as navigation point
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif ($BLOCK_MODE) {
+ // Block mode detected
+ return;
}
if (GET_ACTION("guest", $GLOBALS['what']) == "admin") {
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif ($BLOCK_MODE) {
+ // Block mode detected
+ return;
}
// Add description as navigation point
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif ($BLOCK_MODE) {
+ // Block mode detected
+ return;
}
// Add description as navigation point
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
require($INC);
+} elseif (!EXT_IS_ACTIVE("sponsor")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "sponsor");
+ return;
+} elseif ($BLOCK_MODE) {
+ // Block mode detected
+ return;
}
// Add description as navigation point
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif (!EXT_IS_ACTIVE("theme")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "theme");
+ return;
}
// Already loaded?
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif (!EXT_IS_ACTIVE("wernis")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis");
+ return;
}
// Special file
// TDs between menu and content
LOAD_TEMPLATE("guest_menu_content");
+// Disable block-mode by default
+$BLOCK_MODE = false;
+
$INC_ACTION = sprintf("%sinc/modules/guest/action-%s.php", PATH, $act);
if ((FILE_READABLE($INC_ACTION)) && (VALIDATE_MENU_ACTION("guest", $act, $GLOBALS['what']))) {
// Requested module is available so we load it
require($INC);
} elseif (!IS_LOGGED_IN()) {
LOAD_URL(URL."/modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "");
+ return;
} elseif ($BLOCK_MODE) {
// Block mode detected
return;
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("bank")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
+ return;
} elseif ($BLOCK_MODE) {
// Block mode detected
return;
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("order")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order");
+ return;
} elseif ($BLOCK_MODE) {
// Block mode detected
return;
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL(URL."/modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("surfbar")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
+ return;
} elseif ($BLOCK_MODE) {
// Block mode detected
return;
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("theme")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "theme");
+ return;
}
// Already defined?
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif (!EXT_IS_ACTIVE("bank")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
+ return;
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("bank")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
+ return;
}
// Add description as navigation point
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("bank")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
+ return;
}
// Add description as navigation point
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("bank")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
+ return;
}
// Add description as navigation point
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("bank")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
+ return;
}
// Add description as navigation point
// Not logged in
LOAD_URL("modules.php?module=index");
} elseif (!EXT_IS_ACTIVE("payout")) {
- // Extension "payout" is not active
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "payout");
return;
}
// User is not logged in
LOAD_URL("modules.php?module=index");
} elseif (!EXT_IS_ACTIVE("refback")) {
- // Extension "refback" is not active
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "refback");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL(URL."/modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("sponsor")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "sponsor");
+ return;
}
// Add description as navigation point
// Redirect
LOAD_URL(URL."/modules.php?module=index");
} elseif (!EXT_IS_ACTIVE("surfbar")) {
- // Extension "surfbar" is not active
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL(URL."/modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("surfbar")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
+ return;
}
// Add description as navigation point
// Not logged in
LOAD_URL("modules.php?module=index");
} elseif (!EXT_IS_ACTIVE("surfbar")) {
- // Extension "surfbar" is not active
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL(URL."/modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("surfbar")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
+ return;
}
// Add description as navigation point
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
+} elseif (!EXT_IS_ACTIVE("theme")) {
+ ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "theme");
+ return;
}
// Add description as navigation point
// User is not logged in
LOAD_URL("modules.php?module=index");
} elseif (!EXT_IS_ACTIVE("wernis")) {
- // Extension "wernis" is not activated
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis");
return;
}