Orig output: $ip, $id
"; }else{ $sql = "SELECT lastip,uniqueid,banexcept FROM accounts WHERE login='$login'"; $result = db_query($sql) or die(db_error(LINK)); $row = db_fetch_assoc($result); $ip=$row[lastip]; $id=$row[uniqueid]; $banexcept=$row[banexcept]; //echo "
Secondary output: $ip, $id
"; } if ($banexcept!=1){ $sql = "select * from bans where (((substring('$ip',1,length(ipfilter))=ipfilter) OR (substring('$loggedip',1,length(ipfilter))=ipfilter) AND ipfilter<>'') OR (uniqueid='$id' AND uniqueid<>'')) AND (banexpire='0000-00-00' OR banexpire>'".date("Y-m-d")."')"; //echo $sql; $result = db_query($sql) or die(db_error(LINK)); if (db_num_rows($result)>0){ $ban = 1; } } } if (count($_POST)>0){ /* Petition Protection? */ if ($ban == 1){ output("`4Due to abuse of the petition system by spambots, banned individuals cannot send petitions. Please send your mail to admin@labarc.com if you believe that you have been banned in error. If you are running a spambot, seriously, don't you have a better target?"); }elseif ($_POST[playername] == "" && $session[user][acctid]<0){ output("`4You must list your name or nickname when making a petition if you are not currently logged in."); }elseif (($_POST[email] == "" || !is_email($_POST[email])) && $session[user][acctid]<0){ output("`4You must list a valid email address if you are not currently logged in."); }else{ $p = $session[user][password]; unset($session[user][password]); /* mail(getsetting("gameadminemail","postmaster@localhost"),"LoGD Petition",output_array($_POST,"POST:").output_array($session,"Session:")); $sql = "SELECT acctid FROM accounts WHERE emailaddress='".getsetting("gameadminemail","postmaster@localhost")."'"; //output($sql); $result = db_query($sql); if (db_num_rows($result)==0){ $sql = "SELECT acctid FROM accounts WHERE superuser>=3"; $result = db_query($sql); } for ($i=0;$i Your Name: `n Your Character's Name: `n Your email address: `n Nature of problem: `n Description of the problem:`n `n `n Please be as descriptive as possible in your petition. If you have questions about how the game works, please check out the FAQ. Petitions about game mechanics may be answered, but really a Ye Olde Mail to Arc is likely to get a quicker, and more informative, response. Petitions about a bug will not be answered directly unless the bug causes damage to your account, or other extenuating circumstances exist, but the bug `iwill`i get fixed. If your petition involves a suggestion for improving the game, please provide as much detail as possible; we welcome input, and tend to reward people when we use their ideas. ",true); } popup_footer(); ?>