num_rows; $noperm = false; if($rowcount > 0) $noperm = true; $user_check_query = "SELECT * FROM `application` WHERE `id` = '$applicid' LIMIT 1"; $result = mysqli_query($link, $user_check_query); $rowcount = $result->num_rows; if($rowcount == 0) die(); $result2 = mysqli_fetch_array($result, MYSQLI_ASSOC); $app_id = $result2['id']; $master = $result2['master']; $char_name = $result2['char_name']; $reviewed_by = $result2['reviewed_by']; $story = $result2['story']; $status = $result2['status']; $ip_address = $result2['ip_address']; $country = $result2['country_name']; $country_code = $result2['country_code']; $accepted = $result2['accepted']; $origin = $result2['origin']; $gender = $result2['gender']; $age = $result2['age']; $date_of_review = $result2['date_of_review']; $date_of_verdict = $result2['date_of_verdict']; $verdict = $result2['reason']; $_POST['verdict'] = ""; $year = date("Y"); $age = $year - $age; $flag_1 = ""; $flag_2 = ""; $flag_3 = ""; $flag_4 = ""; $flag_5 = ""; $mastername = returnMaster($link, $master); mysqli_free_result($result); $user_check_query = "SELECT `answer1`, `answer2`, `answered_questions` FROM `accounts` WHERE `ID` = '$master' LIMIT 1"; $result = mysqli_query($link, $user_check_query); $result2 = mysqli_fetch_array($result, MYSQLI_ASSOC); $answer1 = $result2['answer1']; $answer2 = $result2['answer2']; $answered_questions = $result2['answered_questions']; mysqli_free_result($result); $user_check_query = "SELECT `name` FROM `bans` WHERE `playerIP` = '$ip_address' LIMIT 1"; $result = mysqli_query($link, $user_check_query); $rowcount = $result->num_rows; if($rowcount > 0) { $flag_1 = "$rowcount bans on the same IP address"; } if(strlen($ip_address) > 5 && characterCount($ip_address, ".") > 5) { $meci = explode(".", $ip_address); $partial_ip = $meci[0].".".$meci[1].".".$meci[2]; $user_check_query = "SELECT `playerIP` FROM bans WHERE `playerIP` LIKE '$partial_ip%'"; $result = mysqli_query($link, $user_check_query); $result2 = mysqli_fetch_array($result, MYSQLI_ASSOC); $rowcount = $result->num_rows; $playerIP = $result2['playerIP']; mysqli_free_result($result); if($rowcount > 0) { $flag_2 = "IP $ip_address matches ban $playerIP on the same subnet"; } } $url = "https://en.wikipedia.org/w/api.php?action=opensearch&search=$char_name&limit=1&namespace=0&format=json"; $body = file_get_contents($url); if(strpos($body, 'wikipedia.org') !== false) { $fpos = strpos($body, ',["') + 3; $spos = strpos($body, '"', $fpos); $flag_4 = substr($body, $fpos, $spos - $fpos); $flag_4 = "Wikipedia Article on $flag_4"; $firstpos = strpos($body, "https:"); $secondpos = strpos($body, '"]', $firstpos); $wiki_link = substr($body, $firstpos); $wiki_link = str_replace('"]]', "", $wiki_link); } $_SESSION['viewingapp'] = $app_id; if(strlen($story) > 10 && characterCount($story, ".") > 2) { $sim = similarApplication($link, $story, $app_id); if($sim != -1) { $flag_5 = "Similar to Application #$sim"; } } $user_check_query = "SELECT `id`, `char_name`, `status`, `accepted` FROM `application` WHERE `master` = '$master' AND `id` != '$applicid'"; $result = mysqli_query($link, $user_check_query); $count = 0; $PastApplications = array(); while($result2 = mysqli_fetch_array($result, MYSQLI_ASSOC)) { array_push($PastApplications, $result2); } mysqli_free_result($result); ?> Application # - | - Pending - Reviewing - Accepted - Denied and Banned - Denied In Character Information Character Name: Origin: Gender: Age: Background story: Application Length: Out Of Character Information Have you got any past RP experience on SA-MP or another game? If past RP experience on SA-MP, what server(s) was it and what was your IG name(s)? Explain some roleplaying terms, like metagaming and powergaming, and give examples to each. Verdict disabled> Accept Deny Ban Review This application is being reviewed by since This application was by on Info Account Country Flags 0) { ?> 0) { ?> 0) { ?> 0) { ?> 0) { ?> None Other Characters - level Last online None Application History None '; } for($i = 0; $i < count($PastApplications); ++$i) { switch($PastApplications[$i]["status"]) { case 2: $PastApplications[$i]["the_status"] = $PastApplications[$i]["accepted"] == 1 ? "Accepted" : "Denied"; break; default: $PastApplications[$i]["the_status"] = "Under Review"; break; } ?> " target="_blank">#