Exemple #1
0
            <div class="phone_menu">
                <div id="phone_menu_icon"></div>
            </div>
            <div class="searching">
                <input class="search_input" type="text" placeholder="Search...">
            </div>
            <?php 
$sost = user::isAuthorized();
if (!$sost) {
    ?>
                    <div class="nondefined-user" onclick="showWin();">
                        <div id="nondef-user-icon" onclick="showWin();"></div>
                    </div>
                <?php 
} else {
    $ActiveUser = getActiveUser($_SESSION['user_id']);
    ?>
                        <div class="defined-user">
                           <div id="small_avatar"></div>
                            <a href="#"><?php 
    echo $ActiveUser;
    ?>
</a>
                            <form id="logout_form" action="logout_logic.php" name="logout" method="post">
                                <input type="submit" value="Exit" id="l_out" name="lout_but">
                            </form>
                        </div>
                    <?php 
}
?>
            
Exemple #2
0
        }
        ?>
">Редактировать</button>
            <?php 
    }
    ?>
            <?php 
    if (isAdmin() || isModerator()) {
        ?>
                    <button type = "submit" name = "delete" onclick = "deleteComment(<?php 
        echo $newsId . "," . $comment['id'];
        ?>
); return false;" class = "btn btn-danger">Удалить</button>
            <?php 
    }
    if (isAdmin() || isModerator() || getActiveUser() === $comment['user']) {
        ?>
</div>
            <?php 
    }
    ?>

        </div>
    <?php 
}
?>
    
    <?php 
if (getActiveUserID() != -1) {
    $commentText = "Отправить";
    if ($commentId != -1) {