Parašė ex-it· 2009 Sau. 31 14:01:04
#7
if (isset($_POST['submit_article'])) {
if ($_POST['article_subject'] != "" && $_POST['article_body'] != "") {
$submit_info['article_cat'] = isnum($_POST['article_cat']) ? $_POST['article_cat'] : "0";
$submit_info['article_subject'] = stripinput($_POST['article_subject']);
$submit_info['article_snippet'] = descript($_POST['article_snippet']);
$submit_info['article_body'] = descript($_POST['article_body']);
$submit_info['article_breaks'] = (isset($_POST['line_breaks']) ? "y" : "n");
$result = dbquery("INSERT INTO ".DB_SUBMISSIONS." (submit_type, submit_user, submit_datestamp, submit_criteria) VALUES ('a', '".$userdata['user_id']."', '".time()."', '".addslashes(serialize($submit_info))."')");
add_to_title($locale['global_200'].$locale['500']);
opentable($locale['500']);
echo "<div style='text-align:center'><br />\n".$locale['510']."<br /><br />\n";
echo "<a href='submit.php?stype=a'>".$locale['511']."</a><br /><br />\n";
echo "<a href='index.php'>".$locale['412']."</a><br /><br />\n</div>\n";
closetable();
}
if (USERGOLD && GLD_ARTICLE_SUBMIT && $result)
{
payuser($userdata['user_id'], GLD_ARTICLE_SUBMIT, 'cash');
}
Nezinau... :D