Update of /cvsroot/openfirst/guestbook
In directory sc8-pr-cvs1:/tmp/cvs-serv15947
Added Files:
index.php
Log Message:
initial upload
--- NEW FILE: index.php ---
<?php
/*
*
* openFIRST.guestbook - index.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");
?>
<h1>View Guest Book</h1>
<p>Comments are arranged alphabetically by guest name. We are not
responsible for the content contained in this guestbook. The comments and
opinions expressed throughout the guestbook are those of the poster, and
do not necessarily reflect those of our robotics team.
<br /><a href="<?php echo($home); ?>">Return to main page</a>
<a href="sign.php">Sign Guest Book</a></p>
<?php
mysql_select_db("$sqldatabase");
$query = "SELECT * FROM ofirst_guestbook ORDER BY guest;";
$result = mysql_query($query);
if ($result) {
while ($r = mysql_fetch_object($result)) {
echo("<hr /><p>$r->date
<br /><img src='person.png' alt='Guest: ' /> Guest: $r->guest
<br /><img src='email.png' alt='E-mail Address: ' /> E-mail: <a href='mailto: $r->email'>$r->email</a>
<br /><img src='icq.png' alt='ICQ UIN: ' /> ICQ: $r->ICQ");
if ($r->ICQ != "") {
echo("<img src='http://wwp.icq.com/scripts/online.dll?icq=".$r->ICQ . "&img=5' alt='User status' />");
}
echo("<br /><img src='aim.png' alt='AIM Screen name: ' /> AIM: $r->AIM
<br /><img src='msmsgs.png' alt='MSN Messenger Address: ' /> MSN: $r->MSN
<br /><img src='yahoo.png' alt='Yahoo! Messenger Address: ' /> YIM: $r->YIM");
if ($r->YIM != "") {
echo("<img src='http://opi.yahoo.com/online?u=$r->YIM &m=g&t=1' alt='User Status' />");
}
echo("<br /><img src='irc.png' alt='IRC: ' /> IRC:$r->IRC
<br /><img src='webpage.png' alt='Web Page' /> Web Page: <a href='$r->webpage'>$r->webpage</a>
<br /><img src='world.png' alt='Location: ' /> Location: $r->location");
if (function_exists('emoticon_translate')) {
$comment = emoticon_translate($r->comment);
} else {
$comment = $r->comment;
}
echo("<br />Comment: </p><p>" . $comment . "</p>\n");
}
}
include("$footer");
?>
|