Вход Регистрация
Файл: chat/includes/reset.php
Строк: 15
<?php

/**
 * @package     Chat for JohnCMS
 * @link        http://johncms.com
 * @copyright   Copyright (C) 2010-2017 k_2
 * @license     LICENSE.txt (see attached file)
 * @version     VERSION.txt (see attached file)
 * @author      http://johncms.com/profile/?user=6251
 */

defined('_IN_JOHNCMS') or die('Error: restricted access');

if (!
$id || !$user_id) {
    
header("Location: index.php");
    exit;
}

db::query("DELETE FROM `chat_room_" $id "` WHERE `tip` = 'in' AND `password` = '" db::escape($_SESSION['key']) . "'");
db::query("OPTIMIZE TABLE `chat_room_" $id "`");

$_SESSION['notification'] = 'room_reset';
header("location: index.php?id=$id");
exit;
Онлайн: 4
Реклама