Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="ru">
<?php
if ($Module == 'category' and $Param['id'] != 1 and $Param['id'] != 2 and $Param['id'] != 3 and $Param['id'] != 4 and $Param['id'] != 5 and $Param['id'] != 6 and $Param['id'] !=7 and $Param['id'] != 8 and $Param['id'] != 9 and $Param['id'] != 10) MessageSend(1, 'Такой категории не существует.', '/news');
$Param['page']+=0;
Head ('Новости');
?>
<body>
<?php
if ($Module == 'logout' and $_SESSION['USER_LOGIN_IN']==1) {
if ($_COOKIE['user']) {
setcookie('user','' , strtotime('-30 days'), '/');
unset($_COOKIE['user']);
}
session_unset();
exit(header('Location: /login'));
}