X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fsurfbar_functions.php;h=5d7c8f9a1718018e83307b7e27b2342803f39f1a;hp=d981c7bf56f8ca977ca00cd0bec593dc459f9557;hb=1fe7cf281be6832ba105934537aba5127892c576;hpb=595124165eb35633520ee0c8e7d5196ba515c00f diff --git a/inc/libs/surfbar_functions.php b/inc/libs/surfbar_functions.php index d981c7bf56..5d7c8f9a17 100644 --- a/inc/libs/surfbar_functions.php +++ b/inc/libs/surfbar_functions.php @@ -184,13 +184,7 @@ function SURFBAR_MEMBER_ACTIONS ($urlId, $status) { // "Walk" through all actions and create forms foreach ($actionArray as $actionId=>$action) { // Add form for this action - $OUT .= sprintf(" -
- - - -
- \n", + $OUT .= sprintf(LOAD_TEMPLATE("member_surfbar_list_form", true), $width, bigintval($urlId), strtolower($action), @@ -264,7 +258,7 @@ function SURFBAR_VALIDATE_MEMBER_ACTION_STATUS ($action, $status) { global $SURFBAR_CACHE; // Search for the requested action/status combination in database - $result = SQL_QUERY_ESC("SELECT new_status FROM `{!_MYSQL_PREFIX!}_surfbar_actions` WHERE action='%s' AND `status`='%s' LIMIT 1", + $result = SQL_QUERY_ESC("SELECT new_status FROM `{!_MYSQL_PREFIX!}_surfbar_actions` WHERE `action`='%s' AND `status`='%s' LIMIT 1", array($action, $status), __FILE__, __LINE__); // Is the entry there? @@ -1048,10 +1042,10 @@ function SURFBAR_UPDATE_INSERT_STATS_RECORD () { } // END - if // Update total/daily/weekly/monthly counter - $_CONFIG['surfbar_total_counter']++; - $_CONFIG['surfbar_daily_counter']++; - $_CONFIG['surfbar_weekly_counter']++; - $_CONFIG['surfbar_monthly_counter']++; + incrementConfigEntry('surfbar_total_counter'); + incrementConfigEntry('surfbar_daily_counter'); + incrementConfigEntry('surfbar_weekly_counter'); + incrementConfigEntry('surfbar_monthly_counter'); // Update config as well UPDATE_CONFIG(array("surfbar_total_counter", "surfbar_daily_counter", "surfbar_weekly_counter", "surfbar_monthly_counter"), array(1,1,1,1), "+"); @@ -1355,7 +1349,7 @@ function SURFBAR_GET_LOCK_IDS () { // Get all id from locks within the timestamp $result = SQL_QUERY_ESC("SELECT id, url_id, UNIX_TIMESTAMP(last_surfed) AS last FROM - {!MYSQL_PREFIX!}_surfbar_locks + {!_MYSQL_PREFIX!}_surfbar_locks WHERE userid=%s ORDER BY @@ -1621,8 +1615,8 @@ function SURFBAR_GET_DATA ($element) { } else { // END - if print("
");
 		print_r($SURFBAR_CACHE);
-		debug_print_backtrace();
-		die("
"); + print(""); + debug_report_bug(); } // Return result