View file mod/post/index.php
<?php if ($_SESSION['is_name'] != "") { if (($_POST['pokas'] == "") and ($_GET['act_ch']) == "") { include ("mod/post/add_post.php"); } elseif ($_GET['act_ch'] == "") { include("mod/post/save_post.php"); } elseif ($_GET['act_ch'] == "del_post") { include("mod/post/del_post.php"); } elseif ($_GET['act_ch'] == "red_post") { include("mod/post/red_post.php"); } } else { echo 'Вы не можите писать в чате.'; }; //Чтение постов echo '<br><hr><br>'; include("mod/post/read_post.php"); ?>