]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/surfbar_functions.php
More HTML swapped and admin contact link rewritten. Resolves #91
[mailer.git] / inc / libs / surfbar_functions.php
index 2dffd31ac940d5a143cec34c20e9a18604eb7e1e..5d7c8f9a1718018e83307b7e27b2342803f39f1a 100644 (file)
@@ -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("       <td align=\"center\" width=\"%d%%\">
-               <form action=\"{!URL!}/modules.php?module=login&amp;what=surfbar_list\" method=\"post\" style=\"padding-bottom:0px\">
-                       <input type=\"hidden\" name=\"id\" value=\"%s\" />
-                       <input type=\"hidden\" name=\"action\" value=\"%s\" />
-                       <input type=\"submit\" class=\"member_submit\" name=\"ok\" title=\"{--MEMBER_SURFBAR_ACTION_%s_TITLE--}\" value=\"{--MEMBER_SURFBAR_ACTION_%s_SUBMIT--}\" />
-               </form>
-       </td>\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?
@@ -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("<pre>");
                print_r($SURFBAR_CACHE);
-               debug_print_backtrace();
-               die("</pre>");
+               print("</pre>");
+               debug_report_bug();
        }
 
        // Return result