[Openfirst-cvscommit] base index.php,1.9,1.10
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-05-25 20:22:09
|
Update of /cvsroot/openfirst/base In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31107 Modified Files: index.php Log Message: Features list no longer hacked Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/index.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** index.php 3 Apr 2005 02:17:41 -0000 1.9 --- index.php 25 May 2005 20:21:52 -0000 1.10 *************** *** 33,36 **** --- 33,37 ---- $count = 0; + global $Modules; ?> <h1>OpenFIRST Web Portal</h1> *************** *** 76,82 **** } } ! // This is really hackish. ! echo("<table width=200><tr><th>Features</th></tr><tr><td><div>This portal has the following features: </div> ! <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>"); --- 77,100 ---- } } ! ! # Features ! echo ' ! <table width=200> ! <tr><th>Features</th></tr> ! <tr><td><div>This portal has the following features: </div> ! '; ! echo '<ul> ! '; ! foreach($Modules as $code=>$info) { ! if ($info['active'] ! #&& $info['show'] ! ) { ! echo '<li><a href="'.htmlentities("$basepath/$code").'">'.htmlentities($info['name']).'</a></li> ! '; ! } ! } ! echo '</ul>'; ! ! echo '</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>"); |