projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Referal levels for surfbar added (unfinished)
[mailer.git]
/
ref.php
diff --git
a/ref.php
b/ref.php
index d3fdc56e33f5fc24a404249cfc2f55d6810c0fce..05321030896f7026537c2529a0af1a355580b907 100644
(file)
--- a/
ref.php
+++ b/
ref.php
@@
-45,10
+45,10
@@
$GLOBALS['module'] = "ref"; $CSS = -1;
require ("inc/config.php");
// Redirect only to registration page when this script is installed
require ("inc/config.php");
// Redirect only to registration page when this script is installed
-if (defined('mxchange_installed') && (
mxchange_installed
))
+if (defined('mxchange_installed') && (
isBooleanConstantAndTrue('mxchange_installed')
))
{
// Base URL for redirection
{
// Base URL for redirection
- switch ($CONFIG['refid_target'])
+ switch ($
_
CONFIG['refid_target'])
{
case "register":
$URL = URL."/modules.php?module=index&what=register&refid=";
{
case "register":
$URL = URL."/modules.php?module=index&what=register&refid=";
@@
-60,7
+60,7
@@
if (defined('mxchange_installed') && (mxchange_installed))
}
// Get referral ID from ref or refid variable
}
// Get referral ID from ref or refid variable
- if (!empty($_GET['ref'])) $ref = s
trip_tags(htmlentities($_GET['ref'])
);
+ if (!empty($_GET['ref'])) $ref = s
ecureString($_GET['ref']
);
elseif (!empty($_GET['refid'])) $ref = bigintval($_GET['refid']);
if (!empty($ref))
elseif (!empty($_GET['refid'])) $ref = bigintval($_GET['refid']);
if (!empty($ref))
@@
-74,6
+74,7
@@
if (defined('mxchange_installed') && (mxchange_installed))
list($ref) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
}
list($ref) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
}
+
// Also edit this 0 !
if (empty($ref)) $ref = "0";
// Also edit this 0 !
if (empty($ref)) $ref = "0";
@@
-96,7
+97,7
@@
if (defined('mxchange_installed') && (mxchange_installed))
else
{
// You have to configure first!
else
{
// You have to configure first!
- LOAD_URL(
URL."/
install.php");
+ LOAD_URL(
"
install.php");
}
// Really all done here... ;-)
}
// Really all done here... ;-)