[Openfirst-cvscommit] base index.php,1.2,1.3
Brought to you by:
xtimg
From: <xt...@us...> - 2003-09-13 20:17:58
|
Update of /cvsroot/openfirst/base In directory sc8-pr-cvs1:/tmp/cvs-serv7306 Modified Files: index.php Log Message: Add basic framework for including content from multiple modules on the main page of openFIRST sites in a default installation Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 28 Jun 2003 16:59:15 -0000 1.2 --- index.php 13 Sep 2003 20:17:54 -0000 1.3 *************** *** 49,52 **** --- 49,79 ---- } + if (is_readable("guestbook/")) { + $qu = ofirst_dbquery("SELECT guest, date FROM ofirst_guestbook ORDER BY guest LIMIT 5;"); + while($q = ofirst_dbfetch_object($qu)) { + echo("<sub><strong><a href='/guestbook/' target='_content'>$q->guest</a></strong><br>$q->date</sub><br>"); + } + } elseif (is_readable("news/")) { + $qu = ofirst_dbquery("SELECT title, poster, date FROM ofirst_news ORDER BY ID desc LIMIT 5;"); + while($q = ofirst_dbfetch_object($qu)) { + echo("<sub><strong><a href='$home$basepath/news' target='_content' >$q->title</a></strong> - $q->poster<br>$q->date</sub><br>"); + } + } elseif (is_readable("manual/")) { + $qu = ofirst_dbquery("SELECT document, title FROM ofirst_manual GROUP BY document;"); + while($q = ofirst_dbfetch_object($qu)) { + echo("<sub><a href='$home$basepath/manual' target='_content'>$q->document</a> - $q->title</sub><br>"); + } + } elseif (is_readable("guestbook/")) { + if(function_exists("emoticon_preview") == true) { + emoticon_preview(); + } else { + echo("Emoticons have not been enabled."); + } + } elseif (is_readable("awards/")) { + $qu = ofirst_dbquery("SELECT AwardName FROM ofirst_awards;"); + while($q = ofirst_dbfetch_object($qu)) { + echo("<sub><a href='$home$basepath/awards' target='_content'>$q->AwardName</a></sub><br>"); + } + } ?> </tr> |