]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rallye_functions.php
Possible better fix
[mailer.git] / inc / libs / rallye_functions.php
index 02adccd8aa6f2a050ddfcb287c1f4b96655b0152..9b2827786f45b9d157db11409accd34eed24f213 100644 (file)
@@ -253,7 +253,7 @@ LIMIT 1",
                $_userid = '---';
 
                // List only users with at least one ref!
-               //* DEBUG: */ outputHtml("*".$cnt.'/'.$content['userid'].'/'.$content['curr_points'].'/'.$refpoints."*<br />");
+               //* DEBUG: */ print("*".$cnt.'/'.$content['userid'].'/'.$content['curr_points'].'/'.$refpoints."*<br />");
                if (($cnt > 0) && ($refpoints > $content['curr_points'])) { $_userid = $content['userid']; } else { $cnt = ''; }
 
                // Save values to array
@@ -786,14 +786,14 @@ function getReferalRallyeRefsCount ($userid, $old = 0) {
                $cnt = 0;
                foreach ($GLOBALS['cache_array']['refsystem']['userid'] as $id => $userid) {
                        // Do we have a ref for this user?
-                       //* DEBUG: */ outputHtml("id={$id},userid={$userid},userid={$userid},old={$old},level={$GLOBALS['cache_array']['refsystem']['level'][$id]}<br />");
+                       //* DEBUG: */ print("id={$id},userid={$userid},userid={$userid},old={$old},level={$GLOBALS['cache_array']['refsystem']['level'][$id]}<br />");
                        if (($userid == $userid) && ($GLOBALS['cache_array']['refsystem']['level'][$id] == 1)) {
-                               //* DEBUG: */ outputHtml("userid matches!<br />");
+                               //* DEBUG: */ print("userid matches!<br />");
                                foreach ($GLOBALS['cache_array']['refdepths']['level'] as $level) {
                                        if (($level == $GLOBALS['cache_array']['refsystem']['level'][$id]) && ($level == 1)) {
                                                // Level does exist so abort here
                                                $cnt = $GLOBALS['cache_array']['refsystem']['counter'][$id];
-                                               //* DEBUG: */ outputHtml("*".$userid.'/'.$cnt."*<br />");
+                                               //* DEBUG: */ print("*".$userid.'/'.$cnt."*<br />");
                                                break;
                                        } elseif ($level > 1) {
                                                // Not interesting here...
@@ -806,9 +806,9 @@ function getReferalRallyeRefsCount ($userid, $old = 0) {
                        } // END - if
                } // END - foreach
 
-               //* DEBUG: */ outputHtml("<pre>");
-               //* DEBUG: */ outputHtml(print_r($GLOBALS['cache_array']['refsystem'], true));
-               //* DEBUG: */ outputHtml("</pre>");
+               //* DEBUG: */ print("<pre>");
+               //* DEBUG: */ print(print_r($GLOBALS['cache_array']['refsystem'], true));
+               //* DEBUG: */ print("</pre>");
                //* DEBUG: */ shutdown();
 
                if ($cnt > 0) {
@@ -816,7 +816,7 @@ function getReferalRallyeRefsCount ($userid, $old = 0) {
                        incrementStatsEntry('cache_hits');
 
                        // Remove old refs
-                       //* DEBUG: */ outputHtml('+'.$cnt.'/'.$old."+<br />");
+                       //* DEBUG: */ print('+'.$cnt.'/'.$old."+<br />");
                        $cnt -= $old;
                } // END - if
        } else {
@@ -836,7 +836,7 @@ WHERE s.userid=%s AND s.level=1", array(bigintval($userid)), __FUNCTION__, __LIN
        }
 
        // Return count
-       //* DEBUG: */ outputHtml("*".$userid.'/'.$old.'/'.$cnt."*<br />");
+       //* DEBUG: */ print("*".$userid.'/'.$old.'/'.$cnt."*<br />");
        return $cnt;
 }