View file uncos/delete_news.php

File size: 1.15Kb
<?php
/*
=============================================
Движок:  SHCMS Engine
=============================================
Название файла: даление комментарий
=============================================
Official website: http://shcms.ru
=============================================
*/
define('SHCMS', true);
include_once'../system/inc/basic_settings.php';
if($_GET['id']){$id=$_GET['id'];}
$shcmsengine['title'] = Lang::get('Удалить новость'); 
include_once'../template/head.php';
registrat();
$adminka ->admin();
$del_new = mysql_query("DELETE FROM `uncos` WHERE `id`='$id'");

        if($del_new == true)
        {
            messag(Lang::get('Новость успешно удалена'));
	        include_once'../template/foot.php';
            header("Refresh: 1; url=index.php");
            exit();
        }
        else
        {
            errors(Lang::get('Ошибка удаление новости'));
	        include_once'../template/foot.php';
            header("Refresh: 1; url=index.php");
            exit();
        }
include_once '../template/foot.php';
?>