[Openfirst-cvscommit] sidebars index.php,1.7,1.8 sidebar.php,1.9,1.10
Brought to you by:
xtimg
From: <xt...@us...> - 2004-02-14 15:39:31
|
Update of /cvsroot/openfirst/sidebars In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv637 Modified Files: index.php sidebar.php Log Message: Add links to working sidebars, remove non-working ones and add messenger sidebar Index: index.php =================================================================== RCS file: /cvsroot/openfirst/sidebars/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 14 Feb 2004 14:51:39 -0000 1.7 --- index.php 14 Feb 2004 15:32:56 -0000 1.8 *************** *** 43,46 **** --- 43,56 ---- </tr> <?php + if(is_readable("../guestbook/")) { + ?> + <tr> + <td>Guestbook</td> + <td><a href="preview.php?sidebar=guestbook">Preview</a></td> + <td><a href="javascript:window.sidebar.addPanel('Guestbook Sidebar', '<?php echo $home . $basepath . "/sidebars/"; ?>sidebar.php?sidebar=guestbook','')">Add</a></td> + <td><a href="sidebar.php?sidebar=guestbook&cdf=true">Add</a></td> + </tr> + <?php + } if(is_readable("../messenger/")) { ?> *************** *** 53,66 **** <?php } - if(is_readable("../projects/")) { - ?> - </tr> - <td>Projects</td> - <td><a href="preview.php?sidebar=projects">Preview</a></td> - <td><a href="javascript:window.sidebar.addPanel('Projects Sidebar', '<?php echo $home . $basepath . "/sidebars/"; ?>sidebar.php?sidebar=projects','')">Add</a></td> - <td><a href="sidebar.php?sidebar=projects&cdf=true">Add</a></td> - </tr> - <?php - } if(is_readable("../news/")) { ?> --- 63,66 ---- Index: sidebar.php =================================================================== RCS file: /cvsroot/openfirst/sidebars/sidebar.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** sidebar.php 14 Feb 2004 14:51:39 -0000 1.9 --- sidebar.php 14 Feb 2004 15:32:56 -0000 1.10 *************** *** 95,98 **** --- 95,103 ---- echo("<sub><a href='$home$basepath/awards' target='_content'>$q->AwardName</a></sub><br>"); } + } elseif ($sidebar == "MESSENGER" && is_readable("../messenger/")) { + echo("<sub><a href='$home$basepath/messenger/' target='_content'>View online users</a> + <br><a href='$home$basepath/messenger/inbox.php' target='_content'>Message Inbox</a> + <br><a href='$home$basepath/messenger/newmsg.php' target='_content'>Send Message</a> + </sub><br>"); } else { echo("Sorry, but the sidebar you requested is down for maintainence, has not been created yet, or has been discontinued."); |