sabret00the
06-05-2004, 10:32 AM
the problem lies around this isset not working properly, i've tried to weeks to figure it out to no luck
// 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"));
}
// 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"));
}