本文整理汇总了PHP中Forum::showTopic方法的典型用法代码示例。如果您正苦于以下问题:PHP Forum::showTopic方法的具体用法?PHP Forum::showTopic怎么用?PHP Forum::showTopic使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Forum
的用法示例。
在下文中一共展示了Forum::showTopic方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
}
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();
示例2: Forum
<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>