[Openfirst-cvscommit] members profile.php,NONE,1.1 auth.php,1.4,1.5
Brought to you by:
xtimg
From: <xt...@us...> - 2003-05-31 01:57:23
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv13572 Modified Files: auth.php Added Files: profile.php Log Message: Add profile viewer to members area, and to members links --- NEW FILE: profile.php --- <?php /* * openFIRST.members - profile.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@po...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ include("../config/globals.php"); include($header); if(isset($user->user)) { membersmenu($user->membertype); } ?> <h1>Members Profiles</h1> <?php if(isset($_GET["id"]) == false) { ?> <table> <tr><th>User Name</th><th>Team</th><th>MSN</th><th>ICQ</th><th>AIM</th></tr> <?php $query = mysql_query("SELECT user, team, msn, icq, aim FROM ofirst_members;"); while($q = mysql_fetch_object($query)) { echo("<tr><td><a href='profile.php?id=$q->user'>$q->user</a></td><td>$q->team</td><td>$q->msn</td><td>$q->icq</td><td>$q->aim</td></tr>"); } ?> </table> <?php } else { $query = mysql_query("SELECT * FROM ofirst_members WHERE user='" . $_GET["id"] . "';"); while($q = mysql_fetch_object($query)) { echo("<table><tr><td style='vertical-align: top;'>"); if($q->picturelocation == "") { echo("<img src='nophoto.png' alt='No photograph provided' />"); } else { echo("<img src='$q->picturelocation' alt='$q->firstname $q->lastname' />"); } echo("</td><td><h2>$q->user of $q->team</h2> <sub>Real Name: $q->firstname $q->lastname <br />Member since: $q->dateregistered <br />Last logged in: $q->lastseen</sub> <p> Division: $q->division <br />Year $q->year </p> <h3>Contact Information</h3> <p> E-mail address: <a href='mailto: $q->email'>$q->email</a> <br />ICQ: $q->icq <br />MSN: $q->msn <br />AIM: $q->aim <br />YIM: $q->yim </p> <h3>Description</h3> <p> $q->description </p> <h3>Skills</h3> <p> $q->skills </p> </td></tr></table> "); } } ?> <?php include($footer); ?> ?> Index: auth.php =================================================================== RCS file: /cvsroot/openfirst/members/auth.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** auth.php 24 May 2003 18:46:47 -0000 1.4 --- auth.php 31 May 2003 01:57:19 -0000 1.5 *************** *** 44,48 **** function membersmenu($membertype) { ! echo("<p><a href='../members'>Members Home</a> "); if($membertype == "administrator") { echo("<a href='../members/sqlinstall.php'>Install SQL Tables</a> --- 44,49 ---- function membersmenu($membertype) { ! echo("<p><a ! href='../members'>Members Home</a> <a href='../members/profile.php'>Members Profiles</a> "); if($membertype == "administrator") { echo("<a href='../members/sqlinstall.php'>Install SQL Tables</a> |