X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=684d43d3d8a1fab1474d42cdea62273be34a11b4;hp=093ea4ee8f24d6e8bf93e80b8acaf7c2bb14b8eb;hb=8ee39f4094e71546b3cf7e4edb97492be0ea349e;hpb=05d337e2e0de096225f74d0e039cb32970a7d0df
diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php
index 093ea4ee8f..684d43d3d8 100644
--- a/inc/mysql-manager.php
+++ b/inc/mysql-manager.php
@@ -190,7 +190,7 @@ function CHECK_MODULE($mod) {
// Add menu description pending on given file name (without path!)
function ADD_DESCR($ACC_LVL, $file, $return = false, $output = true) {
- global $DEPTH, $_CONFIG;
+ global $NAV_DEPTH, $_CONFIG;
// Use only filename of the file ;)
$file = basename($file);
@@ -249,11 +249,11 @@ function ADD_DESCR($ACC_LVL, $file, $return = false, $output = true) {
$modCheck = $GLOBALS['module'];
$AND = "";
}
- if ((!isset($DEPTH)) && (!$return)) {
- $DEPTH = 0;
+ if ((!isset($NAV_DEPTH)) && (!$return)) {
+ $NAV_DEPTH = 0;
$prefix = "
".YOU_ARE_HERE."
Home";
} else {
- if (!$return) $DEPTH++;
+ if (!$return) $NAV_DEPTH++;
$prefix = "";
}
@@ -297,7 +297,7 @@ function ADD_DESCR($ACC_LVL, $file, $return = false, $output = true) {
// Add line-break tag
$OUT .= "
\n";
- $DEPTH = "0";
+ $NAV_DEPTH = "0";
// Handle failed logins here if not in guest
//* DEBUG: */ print __FUNCTION__."(
".__LINE__."):type={$type},action={$GLOBALS['action']},what={$GLOBALS['what']},lvl={$ACC_LVL}
\n";
@@ -1159,7 +1159,7 @@ function GET_REF_LEVEL_PERCENTS ($level) {
* add_mode = Add points only to $uid or also refs? (WARNING! Changing "ref" to "direct"
* for default value will cause no referal will get points ever!!!)
*/
-function ADD_POINTS_REFSYSTEM($uid, $points, $send_notify=false, $rid="0", $locked=false, $add_mode="ref") {
+function ADD_POINTS_REFSYSTEM ($uid, $points, $send_notify=false, $rid="0", $locked=false, $add_mode="ref") {
//* DEBUG: */ print "-----------------------
".__FUNCTION__." - ENTRY ------------------------
- \n";
global $DEPTH, $_CONFIG, $DATA, $cacheArray;
@@ -1176,10 +1176,12 @@ function ADD_POINTS_REFSYSTEM($uid, $points, $send_notify=false, $rid="0", $lock
// Count up referal depth
if (!isset($DEPTH)) {
// Initialialize referal system
+ //* DEBUG: */ print __FUNCTION__."(".__LINE__."): Referal system initialized!
\n";
$DEPTH = 0;
} else {
// Increase referal level
$DEPTH++;
+ //* DEBUG: */ print __FUNCTION__."(".__LINE__."): Referal level increased. DEPTH={$DEPTH}
\n";
}
// Default is "normal" points