Parašė sgsdfgsdgs· 2009 Sau. 31 15:01:27
#9
MAnjack parašė:
Dėk, tikrinimą, kad nebūtų update po refresh arba po $_POST, kad būtų.
Sioje vietoje ta prasme? man vistiek dauginasi..
} elseif ($_GET['stype'] == "a") {
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";
if (USERGOLD && GLD_ARTICLE_SUBMIT && $result)
{
payuser($userdata['user_id'], GLD_ARTICLE_SUBMIT, 'cash');
}
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();
}
Gal galetum parodyt kajp pavizdi? mazdaug su tuo kodu kur idejau?
Redagavo sgsdfgsdgs· 2009 Sau. 31 15:01:38