Parašė sgsdfgsdgs· 2009 Sau. 31 14:01:36
#6
Virsuje sita ikeliu...
if (file_exists(INFUSIONS."user_gold/functions.php"))
{
include_once INFUSIONS."user_gold/functions.php";
}
Ir sioje arkticle skiltyje padarau taip ir visaip kitaip bebandziau:
} 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");
if (USERGOLD && GLD_ARTICLE_SUBMIT && $result)
{
$result = dbquery("INSERT INTO ".DB_SUBMISSIONS." (submit_type, submit_user, submit_datestamp, submit_criteria) VALUES ('a', '".$userdata['user_id']."', '".time()."', '".addslashes(serialize($submit_info))."')");
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();
}
Delto ir atejau cia kad padetumete pasakyti ka blogai darau... Dekui ex-it vienas kuris dalyvauji cia :)
Redagavo sgsdfgsdgs· 2009 Sau. 31 14:01:07