Parašė Wiav· 2009 Bir. 26 23:06:00
#9
Neveikia.
Dabar viskas atrodo:
if (isset($_POST['submit_news'])) {
if ($_POST['news_subject'] != "" && $_POST['news_body'] != "") {
$news_ok = isset($_POST['news_ok']) ? "1" : "0";
if($news_ok == 1) {
$submit_info['news_subject'] = stripinput($_POST['news_subject']);
$submit_info['news_links'] = $_POST['news_links'];
$submit_info['news_cat'] = isNum($_POST['news_cat']) ? $_POST['news_cat'] : "0";
if (!isset($readmore)) {
$submit_image = "<center><img src='".$_POST['news_image']."' style='margin:5px'></center>";
}
$submit_info['news_body'] = $submit_image."<center>".descript($_POST['news_body'])."</center>";
$submit_info['news_breaks'] = "y";
$result = dbquery("INSERT INTO ".$db_prefix."submissions (submit_type, submit_user, submit_datestamp, submit_criteria) VALUES('n', '".$userdata['user_id']."', '".time()."', '".addslashes(serialize($submit_info))."')");
opentable($locale['400']);
echo "<center><br>\n".$locale['460']."<br><br>
<a href='submit.php?stype=n'>".$locale['461']."</a><br><br>
<a href='index.php'>".$locale['412']."</a><br><br>\n</center>\n";
closetable();
} elseif($news_ok == 0) {
echo "<center>NESUTIKAI SU TAISYKLËMIS!!</center>";
}