", "<", "?", "|", ":", "{", "}", "'"); for($f = 0; $f < sizeof($symbols); $f++) { if(characterCount($character, $symbols[$f])) { array_push($ApplicationErrors, "Your character name contains invalid symbols."); break; } } $character = mysqli_escape_string($link, $character); $origin = mysqli_escape_string($link, $origin); $gender = mysqli_escape_string($link, $gender); $story = mysqli_escape_string($link, $story); $skin = mysqli_escape_string($link, $skin); if($adminlevel < 1) { $answer1 = $_POST["answer1"]; $answer2 = $_POST["answer2"]; $answer1clean = $answer1; $answer2clean = $answer2; $answer1 = mysqli_escape_string($link, $answer1); $answer2 = mysqli_escape_string($link, $answer2); if(empty($story)) { array_push($ApplicationErrors, "Your background story is empty."); } if($answered_questions == 0 && (empty($answer1) || empty($answer2))) { array_push($ApplicationErrors, "OOC fields are empty."); } } if(!is_numeric($age)) { array_push($ApplicationErrors, "Birthyear must be a number, e.g. 1996."); } if(!count($ApplicationErrors)) { if($adminlevel >= 1 || strlen($story) > 50) { $user_check_query = "SELECT `ID` FROM `characters` WHERE `char_name` = '$character' LIMIT 1"; $result = mysqli_query($link, $user_check_query); $rowcount = $result->num_rows; if($rowcount == 0) { if($adminlevel > 0) { $phone_num = rand(100000, 999999); $user_check_query = "INSERT INTO `characters` (master, char_name, PhoneNumbr, Activated, Model) VALUES ('$playersqlid', '$character', '$phone_num', '1', '$skin')"; $result = mysqli_query($link, $user_check_query); mysqli_close($link); echo ""; exit; } else { $ip_address = returnIpAddress(); // Gather location data such as country name, code $json_url = "http://ip-api.com/json/$ip_address"; $json = file_get_contents($json_url); $data = json_decode($json, TRUE); $country_name = $data["country"]; $country_code = $data["countryCode"]; $user_check_query = "SELECT `answered_questions` FROM `accounts` WHERE `ID` = '$playersqlid' LIMIT 1"; $result = mysqli_query($link, $user_check_query); $result2 = mysqli_fetch_array($result, MYSQLI_ASSOC); $answered_questions = $result2['answered_questions']; mysqli_free_result($result); if($answered_questions == 0) { $user_check_query = "UPDATE `accounts` SET `answer1` = '$answer1', `answer2` = '$answer2', `answered_questions` = '1' WHERE `ID` = '$playersqlid' LIMIT 1"; $result = mysqli_query($link, $user_check_query); } $user_check_query = "INSERT INTO application (master, char_name, story, ip_address, country_name, country_code, origin, gender, age, skin) VALUES ('$playersqlid', '$character', '$story', '$ip_address', '$country_name', '$country_code', '$origin', '$gender', '$age', '$skin')"; $result = mysqli_query($link, $user_check_query); $app_id = mysqli_insert_id($link); mysqli_close($link); Discord_AlertStaff("@here A new character application has just been submitted by **$username**! ./admin/application/$app_id"); echo ""; exit; } } else { array_push($ApplicationErrors, "Character name is already taken."); } } else { array_push($ApplicationErrors, "Background story is too short."); } } else { $gabim = "Failed to submit your application"; } } if(isset($link)) { mysqli_close($link); } ?>

New Character Application

0) { ?>
There were a few errors while processing your application:
-
In Character Information
Select skin
" onclick="selectSkinModel(this, )" style="background-image: url('/assets/skins_small/-240-400.png');">
Your character's Background Story

Information within this section relates to the background of your character, prior to your use on the server. This can consist of their origins, backstory in relation to future character development & anything you believe is of note to the character you are portraying on the server. This box is your first opportunity to highlight the type of character you wish to bring to our roleplaying community!

Something about you

Tell us about yourself. Do you have any experience with Verdant Roleplay, roleplay or even roleplay on SA-MP?

Other

Explain some roleplaying terms, like metagaming and powergaming, and give two examples to each.


0 ? "Create my character!" : "Post my application!"; ?>