From 84317e249885eb03a99f2946acf285ff27d506ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 20 Feb 2009 01:57:55 +0000 Subject: [PATCH] Fix for ticket #86, thx 2 profi-concept :) --- admin.php | 4 ++-- agb.php | 4 ++-- beg.php | 4 ++-- birthday_confirm.php | 4 ++-- click.php | 4 ++-- confirm.php | 4 ++-- css.php | 4 ++-- debug.php | 4 ++-- doubler.php | 4 ++-- img.php | 4 ++-- inc/config.php | 2 +- index.php | 4 ++-- install.php | 4 ++-- js.php | 4 ++-- lead-confirm.php | 4 ++-- login.php | 4 ++-- mailid.php | 4 ++-- mailid_top.php | 4 ++-- modules.php | 4 ++-- ref.php | 4 ++-- show_bonus.php | 4 ++-- sponsor_confirm.php | 4 ++-- sponsor_ref.php | 4 ++-- surfbar.php | 4 ++-- view.php | 4 ++-- 25 files changed, 49 insertions(+), 49 deletions(-) diff --git a/admin.php b/admin.php index ef2153f008..f4c3d824cf 100644 --- a/admin.php +++ b/admin.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -44,7 +44,7 @@ $GLOBALS['module'] = "admin"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/agb.php b/agb.php index 9e82d2d8b6..c44da3e8c9 100644 --- a/agb.php +++ b/agb.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "agb"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/beg.php b/beg.php index 2f99b68a26..123ff8054f 100644 --- a/beg.php +++ b/beg.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; @@ -46,7 +46,7 @@ $CSS = -1; $msg = null; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the "beg" extension active? if (!EXT_IS_ACTIVE("beg")) { diff --git a/birthday_confirm.php b/birthday_confirm.php index d33f8dc73b..f6f17c746d 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "birthday_confirm"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the "birthday" extension active? if (!EXT_IS_ACTIVE("birthday")) { diff --git a/click.php b/click.php index 1f7398fba1..94d68602c7 100644 --- a/click.php +++ b/click.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "click"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); if (((!empty($_GET['user'])) || (!empty($_GET['reseller']))) && (!empty($_GET['banner']))) { // Update clicks counter... diff --git a/confirm.php b/confirm.php index a86970d13f..ef0b7d9169 100644 --- a/confirm.php +++ b/confirm.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "confirm"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the script installed? if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered'))) { diff --git a/css.php b/css.php index 1496f788b1..9e73bd618a 100644 --- a/css.php +++ b/css.php @@ -35,7 +35,7 @@ define('_OB_CACHING', "old"); // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $footer; @@ -55,7 +55,7 @@ $GLOBALS['module'] = "css"; header("Content-type: text/css"); // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Load header LOAD_INC_ONCE("inc/header.php"); diff --git a/debug.php b/debug.php index f08058f0d9..492fe36548 100644 --- a/debug.php +++ b/debug.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -43,7 +43,7 @@ $GLOBALS['action'] = ""; $GLOBALS['module'] = "debug"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Redirect only to registration page when this script is installed if ((isBooleanConstantAndTrue('mxchange_installed')) && (getTotalFatalErrors() == 0)) { diff --git a/doubler.php b/doubler.php index 2b0d5c6dd7..869e3da1e5 100644 --- a/doubler.php +++ b/doubler.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; @@ -46,7 +46,7 @@ $GLOBALS['refid'] = 0; $CSS = 0; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the "doubler" extension active? if (!EXT_IS_ACTIVE("doubler")) { diff --git a/img.php b/img.php index b6e1636eee..e619db6b3c 100644 --- a/img.php +++ b/img.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "img"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/inc/config.php b/inc/config.php index c645e2e263..5e6307bbd6 100644 --- a/inc/config.php +++ b/inc/config.php @@ -162,7 +162,7 @@ define('SSL_COOKIES', false); define('ENABLE_BACKLINK', true); // Connect to the MySQL database... -LOAD_INC_ONCE("inc/mysql-connect.php"); +require(PATH."inc/mysql-connect.php"); // ?> diff --git a/index.php b/index.php index fc1220d829..9142d90b42 100644 --- a/index.php +++ b/index.php @@ -33,7 +33,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -43,7 +43,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "index"; // Load config.php -require_once("inc/config.php"); +require("inc/config.php"); // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/install.php b/install.php index b6f2416d36..213a6485ea 100644 --- a/install.php +++ b/install.php @@ -45,7 +45,7 @@ define('mxchange_installing', true); // Load security system -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -59,7 +59,7 @@ $CSS = 0; $GLOBALS['module'] = "install"; // Load config file -require_once("inc/config.php"); +require("inc/config.php"); // Header LOAD_INC("inc/header.php"); diff --git a/js.php b/js.php index d5598fb1a7..73f04b5a02 100644 --- a/js.php +++ b/js.php @@ -35,7 +35,7 @@ define('_OB_CACHING', "old"); // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -51,7 +51,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $CSS = "1"; $GLOBALS['module'] = "js"; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is this script installed and a JavaScript tag is provied? if ((isBooleanConstantAndTrue('mxchange_installed')) && (isset($_GET['tag']))) { diff --git a/lead-confirm.php b/lead-confirm.php index ae91870937..25662f7b5f 100644 --- a/lead-confirm.php +++ b/lead-confirm.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; @@ -43,7 +43,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "lead-confirm"; // Load config.php -require_once("inc/config.php"); +require("inc/config.php"); // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/login.php b/login.php index 3d9dab567b..d1eaf6c640 100644 --- a/login.php +++ b/login.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "login"; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/mailid.php b/mailid.php index d1bae743d0..5a33578dea 100644 --- a/mailid.php +++ b/mailid.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "mailid"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); if (isBooleanConstantAndTrue('mxchange_installed')) { // Is the extension active diff --git a/mailid_top.php b/mailid_top.php index 513b898ab6..cf0ec430c2 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "mailid"; $CSS = 0; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); if (isBooleanConstantAndTrue('mxchange_installed')) { // Is the extension active diff --git a/modules.php b/modules.php index c862671e53..bee4beae2c 100644 --- a/modules.php +++ b/modules.php @@ -35,7 +35,7 @@ //xdebug_start_trace(); // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; @@ -55,7 +55,7 @@ if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']); $GLOBALS['module'] = secureString($_GET['module']); // Needed include files -require_once("inc/config.php"); +require("inc/config.php"); // Check if logged in if (IS_MEMBER()) { diff --git a/ref.php b/ref.php index ef79784df3..918e2ef68d 100644 --- a/ref.php +++ b/ref.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "ref"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Redirect only to registration page when this script is installed if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/show_bonus.php b/show_bonus.php index e614d11aab..2987ae3f11 100644 --- a/show_bonus.php +++ b/show_bonus.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; @@ -44,7 +44,7 @@ $GLOBALS['action'] = ""; $GLOBALS['module'] = "show_bonus"; $CSS = 0; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the "bonus" extension active? if (!EXT_IS_ACTIVE("bonus")) { diff --git a/sponsor_confirm.php b/sponsor_confirm.php index d849c935c2..8d0b535ae9 100644 --- a/sponsor_confirm.php +++ b/sponsor_confirm.php @@ -31,10 +31,10 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/sponsor_ref.php b/sponsor_ref.php index e6326473af..30617e3629 100644 --- a/sponsor_ref.php +++ b/sponsor_ref.php @@ -31,10 +31,10 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Redirect only to registration page when this script is installed if (defined('mxchange_installed') && (isBooleanConstantAndTrue(mxchange_installed))) { diff --git a/surfbar.php b/surfbar.php index 07d22fb273..6b458b247a 100644 --- a/surfbar.php +++ b/surfbar.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime, $SURFBAR_CACHE; @@ -47,7 +47,7 @@ $CSS = 0; $msg = null; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { diff --git a/view.php b/view.php index 034483213f..8c94dae7ea 100644 --- a/view.php +++ b/view.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action; @@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "view"; $CSS = -1; // Load the required file(s) -require_once("inc/config.php"); +require("inc/config.php"); if (((!empty($_GET['user'])) || (!empty($_GET['reseller']))) && (!empty($_GET['banner']))) { // Count banner view... we currently don't need the user's id but maybe -- 2.39.5