Achso
versuche mal bitte das
PHP-Code:
//Goldmember Addon
if (isset ($_POST['profile'])) {
if($_POST['upgrade_id']!=''){
if($_POST['upgrade_id']=='delete'){
db_query("DELETE FROM ".$db_prefix."_goldmember WHERE uid='".$_POST['uid']."'");
}else{
db_query("DELETE FROM ".$db_prefix."_goldmember WHERE uid='".$_POST['uid']."'");
$paket=mysql_fetch_array(db_query("SELECT * FROM ".$db_prefix."_goldbonus WHERE id='".$_POST['upgrade_id']."' LIMIT 1"));
$ab=time();
$bis=time()+$paket['gueltigkeit'];
if($paket['gueltigkeit']==0) $x=', unbegrenzt=\'1\''; else $x='';
db_query("INSERT INTO ".$db_prefix."_goldmember SET bonus='".$_POST['upgrade_id']."', gueltig_ab='".$ab."', gueltig_bis='".$bis."', uid='".$_POST['uid']."' $x");
}
}
}