require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
{
// Simply redirect... :-)
LOAD_URL("modules.php?module=admin&action=login");
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
{
// Simply redirect... :-)
LOAD_URL("modules.php?module=index&what=agb");
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
// Check for userid
if (!empty($_GET['uid'])) {
// Init user ID
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
// Script is installed so let's check for his confirmation link...
$uid = bigintval($_GET['uid']);
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
{
// Probe for referral ID
if (!empty($_GET['refid'])) $GLOBALS['refid'] = bigintval($_GET['refid']);
// Load the required file(s)
require ("inc/config.php");
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
{
if (!empty($_GET['code']))
{
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "377");
+define('CURR_SVN_REVISION', "378");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
print("<pre>");
debug_print_backtrace();
die("</pre>URL={$URL}");
- /**/
+ */
@header ("Location: ".str_replace("&", "&", $URL));
} else {
// Output error message
// In cache?
if (isset($constCache[$constName])) {
// Use cache
+ //* DEBUG: */ echo __FUNCTION__.": ".$constName."-CACHE!<br />\n";
$res = $constCache[$constName];
} else {
// Check constant
+ //* DEBUG: */ echo __FUNCTION__.": ".$constName."-RESOLVE!<br />\n";
if (defined($constName)) $res = (constant($constName) === true);
// Set cache
$constCache[$constName] = $res;
}
+ //* DEBUG: */ var_dump($res);
// Return value
return $res;
// Load general functions
require_once(PATH."inc/functions.php"); // Non-database functions
+
+// Load more include files
+require_once(PATH."inc/mysql-manager.php"); // Functions which interact with the database
+
+// Load extensions and language
require_once(PATH."inc/extensions.php");
require_once(PATH."inc/language.php");
}
// Check if this file is writeable or read-only and warn the user
-if ((!defined('mxchange_installing')) && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if ((!isBooleanConstantAndTrue('mxchange_installing')) && (isBooleanConstantAndTrue('mxchange_installed'))) {
// Check for write-permission for config.php and inc directory
if (empty($GLOBALS['module'])) $GLOBALS['module'] = "index";
if (($GLOBALS['module'] != "admin") && (isBooleanConstantAndTrue('admin_registered')) && (!isset($_SERVER['WINDIR']))) {
// Is it a valid resource?
if ($db === true) {
- // Load more include files
- require_once(PATH."inc/mysql-manager.php"); // Functions which interact with the database
-
// Load configuration stuff
$_CONFIG = LOAD_CONFIG();
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
// Header
require(PATH."inc/header.php");
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
// Header
require(PATH."inc/header.php");
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
{
// Simply redirect... :-)
LOAD_URL("modules.php?module=index&what=login");
// Load the required file(s)
require ("inc/config.php");
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
{
// Is the extension active
if (!EXT_IS_ACTIVE("mailid", true)) {
// Load the required file(s)
require ("inc/config.php");
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
{
// Is the extension active
if (!EXT_IS_ACTIVE("mailid", true)) {
require ("inc/config.php");
// Redirect only to registration page when this script is installed
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
// Base URL for redirection
switch ($_CONFIG['refid_target'])
{
require ("inc/config.php");
// List only rankings when script is installed
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
{
// Include header
include(PATH."inc/header.php");
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
// Base URL for redirection
$URL = URL."/modules.php?module=index&what=sponsor_login&hash=";
if (empty($_GET['hash'])) {
require ("inc/config.php");
// Is the script installed?
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) {
+if (isBooleanConstantAndTrue('mxchange_installed')) {
// Only logged in users may use this surfbar!
if (!IS_MEMBER()) {
// Redirect