View file modules/admin/complaints.php

File size: 1.57Kb
<?php
include ('../../config.php');
include ('../../templates/run.php');
include ('../../templates/func.php');
$title_page ='Список жалоб';
$m_polozhenie = 'В админ панели';
####################
if (isset($_SESSION['sespass']) && isset($passw) && $_SESSION['sespass'] == $passw && ($status == "1" || $status == "2" || $status == "3"))
{
  include '../../themes/'.$themes.'.php';
  echo'<p class="modul_name"align="center">Список жалоб</p>';
$users_f = file('../../data/complaints/msg.php');
  array_splice($users_f, 0, 2);
  array_splice($users_f, -2, 2);
$msg = count($users_f);
echo'<p class="b">';
echo'&#187; <a href="complaint_msg.php">Почта</a> ('.$msg.')<br />';
echo'&#187; Гостевая ('.$gb.')<br />';
echo'&#187; Чат ('.$gb.')<br />';
echo'&#187; Форум ('.$gb.')<br />';
echo'&#187; Стол заказов ('.$gb.')<br />';
echo'&#187; Комментарии ('.$gb.')<br />';
echo'</p>';
echo"<p>Всего жалоб: $msg<br />";
  echo'<a href="index.php?'.session_name().'='.session_id().'">В админку</a><br />';
  echo"<a href=\"../kabinet/index.php?".session_name()."=".session_id()."\">В кабинет</a></p>";

  include '../../templates/foot.php';
 }
  else
 {
  include '../../themes/'.$themes.'.php';
  echo"<p class=\"err\">Вы не авторизованы!!! Войдите в личный кабинет.<br></p>";
  echo"<p><a href=\"../kabinet/index.php?".session_name()."=".session_id()."\">В кабинет</a><br></p>";
  include '../../templates/foot.php';
 }
####################
?>