X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fuser_functions.php;h=1e802cdb4de52b50b6f7b7b08cbccbdf0904b711;hp=76d85f5876d76c3a0f3835fc2a5753f2c4984dd1;hb=3608f72d51e8126720024704398cf738e61f890b;hpb=e71e9e1380d65ccd06beef6fbc594bec10371f5f diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 76d85f5876..1e802cdb4d 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -38,7 +38,7 @@ if (!defined('__SECURITY')) { } // Add links for selecting some users -function alpha($sortby, $colspan, $return=false) { +function alpha ($sortby, $colspan, $return=false) { global $_CONFIG; if (empty($_GET['offset'])) $_GET['offset'] = 0; $ADD = "&page=".SQL_ESCAPE($_GET['page'])."&offset=".SQL_ESCAPE($_GET['offset']); @@ -51,12 +51,12 @@ function alpha($sortby, $colspan, $return=false) { while (list($counter, $ltr) = each($alphabet)) { if ($_GET['letter'] == $ltr) { // Current letter is letter from URL - $OUT .= "".$ltr.""; + $OUT .= "".$ltr.""; } else { // Output link to letter - $OUT .= "".$ltr.""; + $OUT .= "&letter=".$ltr."&sortby=".$sortby.$ADD."\">".$ltr.""; } if ((($counter / getConfig('user_alpha')) == round($counter / getConfig('user_alpha'))) && ($counter > 0)) { @@ -110,9 +110,9 @@ function SortLinks($letter, $sortby, $colspan, $return=false) { foreach ($list as $sort => $title) { if ($sortby == $sort) { - $OUT .= "".$title." | "; + $OUT .= "".$title." | "; } else { - $OUT .= "".$title." | "; + $OUT .= "".$title." | "; } } // END - foreach @@ -150,13 +150,13 @@ function ADD_PAGENAV($PAGES, $offset, $show_form, $colspan,$return=false) { $OUT = ""; for ($page = 1; $page <= $PAGES; $page++) { if (($page == $_GET['page']) || ((empty($_GET['page'])) && ($page == "1"))) { - $OUT .= "-"; + $OUT .= "-"; } else { if (empty($_GET['letter'])) $_GET['letter'] = _ALL2; if (empty($_GET['sortby'])) $_GET['sortby'] = "userid"; // Base link - $OUT .= "= "0.4.7") { + } elseif (GET_EXT_VERSION("sql_patches") >= "0.6.1") { // Update failture counter - SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET login_failtures=login_failtures+1,last_failture=NOW() WHERE userid=%s LIMIT 1", + SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET login_failures=login_failures+1,last_failure=NOW() WHERE userid=%s LIMIT 1", array($uid), __FILE__, __LINE__); // Wrong password! @@ -365,7 +365,7 @@ function USER_DO_LOGIN ($uid, $passwd) { } } elseif ((($probe_nickname) && (!empty($uid2))) || ($uid2 == $uid)) { // Other account status? - // @TODO Can this query be saved??? + // @TODO Can this query be merged with above query? $result = SQL_QUERY_ESC("SELECT status FROM `"._MYSQL_PREFIX."_user_data` WHERE userid=%s LIMIT 1", array($uid), __FILE__, __LINE__); @@ -448,7 +448,7 @@ function USER_DO_NEW_PASSWORD ($email, $uid) { } } else { // ID or email is wrong - LOAD_TEMPLATE("admin_settings_saved", false, "".GUEST_WRONG_ID_EMAIL.""); + LOAD_TEMPLATE("admin_settings_saved", false, "".GUEST_WRONG_ID_EMAIL.""); } // Return the error code