// this conditional handles the confessing // guest handling if ('confess' && $confession_submit && trim($message) != '' && $bbuserinfo[userid] >= 0) { if (isset($nousername)) //code won't work { $conf_userid = "NULL"; } else { $conf_userid = "$bbuserinfo[userid]"; } //end annoying code that won't work if ((time() - $check[timestamp]) <= 15) { eval("standarderror(\"".fetch_template("confession_error_flood")."\");"); } $DB_site->query(" INSERT INTO confessions SET text = '".addslashes($message)."', userid = '$conf_userid', timestamp = '".time()."' "); $url = "../confessions/"; eval(print_standard_redirect("confess_thanks")); } else { $url = "../confessions/"; eval(print_standard_redirect("confess_error")); }