Пример #1
0
?>
</h2>
		<p><?php 
echo _("It's just here for testing purposes.");
?>
</p>
	</div>
</div>
<div class="row well" id="news">
	<h2><?php 
echo sprintf(_("%s news"), SITE_NAME);
?>
</h2>
	<div class="col-md-4 latest-post">
		<?php 
news_show(1, "", 2);
?>
	</div>
	<div class="col-md-8 latest-stream">
		<?php 
news_show_latest_short(2, 80, 0, 3, 1, "", 2);
?>
	</div>
	<div class="col-lg-12 center">
		<p><a class="btn btn-default page-link form-control" href="<?php 
echo news_get_link_url();
?>
"><?php 
echo _("All news");
?>
</a></p>
Пример #2
0
if (isset($_GET['reg'])) {
    //Register form
    login_form_registration();
} else {
    if (isset($_GET['lostpassword'])) {
        login_password_recovery_display();
    } else {
        if (isset($_GET['p'])) {
            if (custom_page_display()) {
                //Do nothing else. =)
            } else {
                if (!strcmp($_GET['p'], "feedback")) {
                    feedback_show();
                } else {
                    if (!strcmp($_GET['p'], "news")) {
                        news_show();
                    } else {
                        if (!strcmp($_GET['p'], "user") && isset($_GET['s']) && !strcmp($_GET['s'], "profile")) {
                            if (isset($_GET['user'])) {
                                $user = $_GET['user'];
                            } else {
                                if (isset($_SESSION[PREFIX . 'user_id'])) {
                                    $user = $_SESSION[PREFIX . 'user_id'];
                                } else {
                                    echo "<p class=\"well message_box\">" . _("Missing user id") . "</p>";
                                }
                            }
                            if (isset($user)) {
                                user_display_profile($user);
                            }
                        } else {