Example #1
0
 }
 switch ($_REQUEST['show']) {
     case 'ignorelist':
         $forums->ignoreList();
         break;
     case 'userpop':
         $forums->userPopUp();
         break;
     case 'showforums':
         $forums->showForums();
         break;
     case 'showforum':
         $forums->showForum();
         break;
     case 'showtopic':
         $forums->showTopic();
         break;
     case 'getfile':
         $forums->getFile();
         break;
     case 'closetopic':
         $forums->openClose('close');
         break;
     case 'opentopic':
         $forums->openClose('open');
         break;
     case 'move':
         $forums->moveTopic();
         break;
     case 'deltopic':
         $forums->delTopic();
<img src="../Images/logoforum.jpg" width="100%" height="92"/>
<br />
<?php 
//if session is not set then access will be denied
if (!isset($_SESSION['admin'])) {
    echo "<p><font color='#FF0000' size='4'>Access Denied,<br />" . "You are not allowed to access the content until you login" . "<br /></p>\n\t<a href='index.php'>Login Here</a></font>";
} else {
    ?>
    <p class="style7"> <strong> <h2>DISCUSSION FORUM</h2></strong> </p>
    <br /><br />
    <a href="home.php"><img src="../Images/home.png" alt="Go Back To Home" /></a>
    
    
<?php 
    $show = new Forum();
    $show->showTopic();
}
?>
 
 <br /><br />
<a href="forum.php"><strong><em>Go Back to the topic list</em></strong></a>
 	
</div>
<br /><br /><br /><br />
<marquee>
     <p class="style2">::Designed and
       Developed by Udara Senanayake::        </p>
</marquee>

</body>
</html>