Update of /cvsroot/openfirst/base
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19317
Modified Files:
index.php
Log Message:
-Corrected usage of $home
-Added $server
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/base/index.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** index.php 13 Mar 2005 19:42:47 -0000 1.6
--- index.php 14 Mar 2005 00:50:01 -0000 1.7
***************
*** 59,63 ****
$qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;");
if(ofirst_dbnum_rows($qu)!=0){
! echo("<table width=200><tr><th>Guestbook</th></tr><tr><td><div>Last records in our <a href=\"$home$basepath/guestbook\">guestbook</a>: </div>");
while($q = ofirst_dbfetch_object($qu)) {
echo("<sub><strong><a href='/guestbook/' target='_content'>$q->guest</a></strong><br>$q->date</sub><br>");
--- 59,63 ----
$qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;");
if(ofirst_dbnum_rows($qu)!=0){
! echo("<table width=200><tr><th>Guestbook</th></tr><tr><td><div>Last records in our <a href=\"$basepath/guestbook\">guestbook</a>: </div>");
while($q = ofirst_dbfetch_object($qu)) {
echo("<sub><strong><a href='/guestbook/' target='_content'>$q->guest</a></strong><br>$q->date</sub><br>");
***************
*** 69,75 ****
$qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;");
if(ofirst_dbnum_rows($qu)!=0){
! echo("<table width=200><tr><th>Awards</th></tr><tr><td><div>Our team has received the following <a href=\"$home$basepath/awards\">awards</a>: </div>");
while($q = ofirst_dbfetch_object($qu)) {
! echo("<sub><a href='$home$basepath/awards' target='_content'>$q->AwardName</a></sub><br>");
}
echo("</td></tr></table><br />");
--- 69,75 ----
$qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;");
if(ofirst_dbnum_rows($qu)!=0){
! echo("<table width=200><tr><th>Awards</th></tr><tr><td><div>Our team has received the following <a href=\"$basepath/awards\">awards</a>: </div>");
while($q = ofirst_dbfetch_object($qu)) {
! echo("<sub><a href='$basepath/awards' target='_content'>$q->AwardName</a></sub><br>");
}
echo("</td></tr></table><br />");
***************
*** 79,83 ****
<ul>".str_replace(" |"," ",str_replace("»","<li>",$headers))."</ul></td></tr></table><br />");
if(function_exists("get_visitors")) {
! echo("<table width=200><tr><th>Stats</th></tr><tr><td><div>Website <a href=\"$home$basepath/logger/stats.php\">usage statistics</a>: </div>");
echo("<sub><strong>".get_totalpages()." pages served to ".get_visitors()." visitors</strong></sub>");
echo("</td></tr></table><br />");
--- 79,83 ----
<ul>".str_replace(" |"," ",str_replace("»","<li>",$headers))."</ul></td></tr></table><br />");
if(function_exists("get_visitors")) {
! echo("<table width=200><tr><th>Stats</th></tr><tr><td><div>Website <a href=\"$basepath/logger/stats.php\">usage statistics</a>: </div>");
echo("<sub><strong>".get_totalpages()." pages served to ".get_visitors()." visitors</strong></sub>");
echo("</td></tr></table><br />");
***************
*** 95,99 ****
//are there more news?
if(ofirst_dbnum_rows(ofirst_dbquery("SELECT * FROM ofirst_news"))>5){
! echo("<div align=right>[ <b><a href=\"$home$basepath/news/index.php?show=all\">More News</a></b> ]</div>");
}
}
--- 95,99 ----
//are there more news?
if(ofirst_dbnum_rows(ofirst_dbquery("SELECT * FROM ofirst_news"))>5){
! echo("<div align=right>[ <b><a href=\"$basepath/news/index.php?show=all\">More News</a></b> ]</div>");
}
}
|