From 13694c27c84600088d39a8fd4dddd43be31826d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Fri, 12 Jan 2007 19:48:01 +0000 Subject: [PATCH] Small page cleanup (suggested by Eric Myers) svn path=/trunk/boinc/; revision=11852 --- html/user/profile_menu.php | 39 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/html/user/profile_menu.php b/html/user/profile_menu.php index 201de3e643..6007cc8f36 100644 --- a/html/user/profile_menu.php +++ b/html/user/profile_menu.php @@ -7,9 +7,9 @@ require_once("../inc/uotd.inc"); db_init(); -$cmd = $_GET['cmd']; +$option = get_str('cmd', true); if ($cmd) { - execute_command($cmd); + select_profile($option); exit(); } @@ -47,40 +47,39 @@ rowify("
"); row1("User Profile Explorer"); echo " "; -echo "
"; - -rowify("
"); row1("Search user names"); rowify(" -
- - + + +
"); row1("Search profile text"); rowify(" -
- - + + +
"); end_table(); page_tail(); -function execute_command($cmd) { +function select_profile($cmd) { // Request for a random profile. // if ($cmd == "rand") {