0) $LINKS = $BASE."&what=list_links&u_id=".$uid."\">".$LINKS.""; if ($DATA[13] > 0) $DATA[13] = str_replace(("u_id=".$uid), ("u_id=".$DATA[13]), $BASE."&what=list_user\">".$DATA[13].""); if (empty($DATA[17])) $DATA[17] = "---"; if ($REFS > 0) $REFS = $BASE."&what=list_refs&u_id=".$uid."\">".$REFS.""; if ($CATS > 0) $CATS = $BASE."&what=list_cats&u_id=".$uid."\">".$CATS.""; // Prepare data for template define('_BIRTHDAY', MAKE_DATETIME(mktime(0, 0, 0, $DATA[9], $DATA[8], $DATA[10]), "3")); define('_REFS' , $REFS); define('_CATS' , $CATS); define('_LINKS', $LINKS); define('_ADMIN_LINKS', MEMBER_ACTION_LINKS($uid, $DATA[14])); $DATA[0] = TRANSLATE_SEX($DATA[0]); $DATA[28] = CREATE_EMAIL_LINK($DATA[7], "user_data"); $DATA[14] = TRANSLATE_STATUS($DATA[14]); $DATA[16] = MAKE_DATETIME($DATA[16], "0"); $DATA[20] = TRANSLATE_COMMA($DATA[20]); if ($DATA[21] > 0) $DATA[21] = $BASE."&what=email_details&u_id=".$uid."\">".$DATA[21].""; $DATA[22] = MAKE_DATETIME($DATA[22], "0"); $DATA[23] = MAKE_DATETIME($DATA[23], "0"); $DATA[24] = MAKE_DATETIME($DATA[24], "0"); if ((empty($DATA[27])) || ($DATA[27] == $uid)) $DATA[27] = "---"; $DATA['total'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "points")); $DATA['locked'] = TRANSLATE_COMMA(GET_TOTAL_DATA($uid, "user_points", "locked_points")); if (EXT_IS_ACTIVE("nickname")) { if ((empty($DATA[27])) || ($DATA[27] == $uid)) $DATA[27] = "---"; } else { $DATA[27] = EXT_NICKNAME_404; } // Template laden LOAD_TEMPLATE("admin_user_details", false, $uid); } else { // Account does not exists! LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_MEMBER_404_1.$uid.ADMIN_MEMBER_404_2); } } else { $whereStatement = ""; if (($_GET['letter'] != _ALL2) && ($_GET['letter'] != _OTHERS) && (!empty($_GET['letter']))) { // List only persons w $whereStatement = " WHERE family LIKE '".$_GET['letter']."%'"; } if ($_GET['sortby'] == "family_name") $_GET['sortby'] = "family"; // Parse the mode parameter if (isset($_GET['mode'])) { // Is a WHERE statement already there? if (!empty($whereStatement)) { // Then append the status column $whereStatement .= sprintf(" AND status='%s'", SQL_ESCAPE(strip_tags(strtoupper($_GET['mode'])))); } else { // Start a new one $whereStatement = sprintf(" WHERE status='%s'", SQL_ESCAPE(strip_tags(strtoupper($_GET['mode'])))); } } $SQL = "SELECT userid, sex, surname, family, email, REMOTE_ADDR, refid, status".$MORE." FROM "._MYSQL_PREFIX."_user_data".$whereStatement." ORDER BY ".$_GET['sortby']; $result_master = SQL_QUERY($SQL, __FILE__, __LINE__); // Calculate page count (0.5 fixes a bug with page count) $PAGES = round(SQL_NUMROWS($result_master) / $_CONFIG['user_limit'] + 0.5); if (empty($_GET['page'])) $_GET['page'] = "1"; if (empty($_GET['offset'])) $_GET['offset'] = $_CONFIG['user_limit']; // Add limitation to SQL string and run him again $SQL .= " LIMIT ".($_GET['offset'] * $_GET['page'] - $_GET['offset']).", ".$_GET['offset']; $result = SQL_QUERY($SQL, __FILE__, __LINE__); $result_user = SQL_QUERY("SELECT emails_sent FROM "._MYSQL_PREFIX."_user_data WHERE status='CONFIRMED'", __FILE__, __LINE__); $user_count = SQL_NUMROWS($result_user); SQL_FREERESULT($result_user); if (SQL_NUMROWS($result_master) > 0) { // Free memory SQL_FREERESULT($result_master); // We have some (new?) registrations! 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)); } else { // No page navigation is required define('__PAGE_NAV', ""); } // Column with nickname when nickname extension is present if (EXT_IS_ACTIVE("nickname")) { // Nickname extension found define('__NICKNAME_TH', "