$_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
$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...
} // 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) {
incrementStatsEntry('cache_hits');
// Remove old refs
- //* DEBUG: */ outputHtml('+'.$cnt.'/'.$old."+<br />");
+ //* DEBUG: */ print('+'.$cnt.'/'.$old."+<br />");
$cnt -= $old;
} // END - if
} else {
}
// Return count
- //* DEBUG: */ outputHtml("*".$userid.'/'.$old.'/'.$cnt."*<br />");
+ //* DEBUG: */ print("*".$userid.'/'.$old.'/'.$cnt."*<br />");
return $cnt;
}