File size: 809B
<?php
require ("ini.php");
header("Cache-Control: no-cache");
header("Content-type:text/html; charset=utf-8");
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Изменено</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body><div class="body">';
if($par==$parol){
$time=$_GET['time'];
$news=str_replace('[', '<a href="', $news);
$news=str_replace('*', '">', $news);
$news=str_replace("]", "</a>", $news);
mysql_query("UPDATE `news_index` SET `news`='$news' WHERE `time`='$time'") or die(mysql_error());
print "Новость изменена.<br/>
<a href=\"admin.php?par=$parol\">В админку</a><br/>";
}else{print "ПОШЕЛ НА ХУЙ";}
print $footer;
?>