If you haven't already, you can create your own user profile for others to see! "); rowify("
"); $today = getdate(time()); $UOTD_heading = "User of the Day -- " . $today['month'] . " " . $today['mday'] . ", " . $today['year']; row1($UOTD_heading); echo ""; $profile = get_current_uotd(); if ($profile) { $user = lookup_user_id($profile->userid); echo uotd_thumbnail($profile, $user); echo user_links($user)."
"; echo sub_sentence(strip_tags($profile->response1), ' ', 150, true); } echo ""; rowify("
"); row1("User Profile Explorer"); echo " "; rowify("
"); row1("Search user names"); rowify("
"); row1("Search profile text"); rowify("
"); end_table(); page_tail(); function execute_command($cmd) { // Request for a random profile. // if ($cmd == "rand") { if ($_GET['pic'] == 0) { $result = mysql_query("SELECT userid FROM profile WHERE has_picture=0"); } else if ($_GET['pic'] == 1) { $result = mysql_query("SELECT userid FROM profile WHERE has_picture=1"); } else if ($_GET['pic'] == -1) { $result = mysql_query("SELECT userid FROM profile"); } while ($row = mysql_fetch_row($result)) { $userIds[] = $row[0]; } if (count($userIds) == 0) { echo "No profiles matched your query.
"; exit(); } shuffle($userIds); header("Location: " . URL_BASE . "view_profile.php?userid=" . $userIds[0]); exit(); } } ?>