Parašė sgsdfgsdgs· 2009 Sau. 30 21:01:30
#1
Sweiki, iskilo tokia problemele kajp refreshinu langa pinigai dauginasi... (USER GOLD V3) Kaip padaryt kad tjp nebutu koda visaip bandziau sioje funkcijoje perkelti bet nk...
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))."')");
if (USERGOLD && GLD_ARTICLE_SUBMIT)
{
payuser($userdata['user_id'], GLD_ARTICLE_SUBMIT, 'cash');
}
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();
Dekui uz pagalba.