0) { // We have some (new?) registrations! $SW = 2; $OUT = ""; while (list($uid, $gender, $sname, $fname, $email, $IP, $ref, $hash) = SQL_FETCHROW($result)) { if ($ref > 0) $ref = ADMIN_USER_PROFILE_LINK($ref); // Prepare array for the row template $content = array( 'sw' => $SW, 'gender' => TRANSLATE_GENDER($gender), 'sname' => $sname, 'fname' => $fname, 'email' => "".$email."", 'ip' => $IP, 'ref' => $ref, 'hash' => $hash, 'link' => ADMIN_USER_PROFILE_LINK($uid), ); // Load row template and switch color $OUT .= LOAD_TEMPLATE("admin_reg_row", true, $content); $SW = 3 - $SW; } // Remember rows define('__REG_ROWS', $OUT); // Load main template LOAD_TEMPLATE("admin_reg"); } else { // No registrations left - or all has confirmed their email address... :-) LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_ALL_CONFIRMED_EMAIL); } // Free memory SQL_FREERESULT($result); // ?>