// Does the account exists? 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
$result = SQL_QUERY_ESC("SELECT sex, surname, family, street_nr, zip, city, country, email, birth_day, birth_month, birth_year, max_mails, receive_mails, refid, status, REMOTE_ADDR, last_online, last_module, ref_clicks, total_logins, used_points, emails_sent, joined, last_update, last_profile_sent, notified, ref_payout".$MORE."
FROM "._MYSQL_PREFIX."_user_data
-WHERE userid=%d LIMIT 1",
+WHERE userid=%s LIMIT 1",
array($uid), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1)
{
$result_master = SQL_QUERY($SQL, __FILE__, __LINE__);
// Calculate page count (0.5 fixes a bug with page count)
+ if ($_CONFIG['user_limit'] == 0) {
+ $_CONFIG['user_limit'] = 100;
+ LOAD_TEMPLATE("admin_settings_saved", false, EXTENSION_WARNING_USER_LIMIT);
+ }
+
+ // Activate the extension please!
$PAGES = round(SQL_NUMROWS($result_master) / $_CONFIG['user_limit'] + 0.5);
if (empty($_GET['page'])) $_GET['page'] = "1";
define('__COLSPAN1' , $colspan);
define('__COLSPAN2' , ($colspan + 2));
define('__USER_CNT' , $user_count);
- define('__ALPHA_SORT', alpha($_GET['sortby'], $colspan, true));
- define('__SORT_LINKS', SortLinks($_GET['letter'], $_GET['sortby'], $colspan, true));
- if ($PAGES > 1)
- {
- define('__PAGE_NAV', ADD_PAGENAV($PAGES, $_CONFIG['user_limit'], true, $colspan, true));
+
+ if ((function_exists('alpha')) && (function_exists('SortLinks'))) {
+ define('__ALPHA_SORT', alpha($_GET['sortby'], $colspan, true));
+ define('__SORT_LINKS', SortLinks($_GET['letter'], $_GET['sortby'], $colspan, true));
+ } else {
+ define('__ALPHA_SORT', "");
+ define('__SORT_LINKS', "");
}
- else
- {
+
+ if ($PAGES > 1) {
+ define('__PAGE_NAV', ADD_PAGENAV($PAGES, $_CONFIG['user_limit'], true, $colspan, true));
+ } else {
// No page navigation is required
define('__PAGE_NAV', "");
}
+
// Column with nickname when nickname extension is present
if (EXT_IS_ACTIVE("nickname"))
{