"Hyur Midlander Male", 2 => "Hyur Midlander Female", 3 => "Hyur Highlander Male", 4 => "Elezen Wildwood Male", 5 => "Elezen Wildwood Female", 6 => "Elezen Duskwight Male", 7 => "Elezen Duskwight Female", 8 => "Lalafell Plainsfolk Male", 9 => "Lalafell Plainsfolk Female", 10 => "Lalafell Dunesfolk Male", 11 => "Lalafell Dunesfolk Female", 12 => "Miqo'te Seeker of the Sun Female", 13 => "Miqo'te Keeper of the Moon Female", 14 => "Roegadyn Sea Wolf Male", 15 => "Roegadyn Hellsguard Male" ); $g_guardians = array( 1 => "Halone, the Fury", 2 => "Menphina, the Lover", 3 => "Thaliak, the Scholar", 4 => "Nymeia, the Spinner", 5 => "Llymlaen, the Navigator", 6 => "Oschon, the Wanderer", 7 => "Byregot, the Builder", 8 => "Rhalgr, the Destroyer", 9 => "Azeyma, the Warden", 10 => "Nald'thal, the Traders", 11 => "Nophica, the Matron", 12 => "Althyk, the Keeper" ); $g_allegiances = array( 1 => "Limsa Lominsa", 2 => "Gridania", 3 => "Ul'dah", ); /* $g_htmlToDbFieldMapping = array( "characterName" => "name", "characterTribe" => "tribe", "characterSize" => "size", "characterVoice" => "voice", "characterSkinColor" => "skinColor", "characterHairStyle" => "hairStyle", "characterHairColor" => "hairColor", "characterHairOption" => "hairVariation", "characterEyeColor" => "eyeColor", "characterFaceType" => "faceType", "characterFaceBrow" => "faceEyebrows", "characterFaceEye" => "faceEyeShape", "characterFaceIris" => "faceIrisSize", "characterFaceNose" => "faceNose", "characterFaceMouth" => "faceMouth", "characterFaceJaw" => "faceJaw", "characterFaceCheek" => "faceCheek", "characterFaceOption1" => "faceOption1", "characterFaceOption2" => "faceOption2", "characterGuardian" => "guardian", "characterBirthMonth" => "birthMonth", "characterBirthDay" => "birthDay", "characterAllegiance" => "initialTown", "characterWeapon1" => "weapon1", "characterWeapon2" => "weapon2", "characterHeadGear" => "headGear", "characterBodyGear" => "bodyGear", "characterLegsGear" => "legsGear", "characterHandsGear" => "handsGear", "characterFeetGear" => "feetGear", "characterWaistGear" => "waistGear", "characterRightEarGear" => "rightEarGear", "characterLeftEarGear" => "leftEarGear", "characterRightFingerGear" => "rightFingerGear", "characterLeftFingerGear" => "leftFingerGear" ); */ $g_height = array( 0 => "Shortest", 1 => "Short", 2 => "Average", 3 => "Tall", 4 => "Tallest" ); $g_yesno = array( 0 => "No", 1 => "Yes" ); $g_grandcompany = array( 0 => "None", /* TODO: Find correct order for 1+ */ 1 => "Maelstrom", 2 => "Order of the Twin Adder ", 3 => "Immortal Flames" ); $g_profileMapping = array( "characterName" => "name", "characterCreationDate" => "creationDate", "characterIsLegacy" => "isLegacy", "characterPlayTime" => "playTime", /* "characterPositionX" => "positionX", "characterPositionY" => "positionY", "characterPositionZ" => "positionZ", "characterPositionR" => "rotation", "characterCurrentZoneId" => "currentZoneId", */ "characterGuardian" => "guardian", "characterBirthDay" => "birthDay", "characterBirthMonth" => "birthMonth", "characterAllegiance" => "initialTown", "characterTribe" => "tribe", "characterGcCurrent" => "gcCurrent", "characterGcLimsaRank" => "gcLimsaRank", "characterGcGridaniaRank" => "gcGridaniaRank", "characterGcUldahRank" => "gcUldahRank", /* "characterCurrentTitle" => "currentTitle", "characterRestBonus" => "restBonus", */ "characterAchievementPoints" => "achievementPoints", ); $g_appearanceMapping = array( /* "characterBaseId" => "baseId", // Basic appearance? */ "characterSize" => "size", "characterVoice" => "voice", "characterSkinColor" => "skinColor", "characterHairStyle" => "hairStyle", "characterHairColor" => "hairColor", "characterHairHighlightColor" => "hairHighlightColor", "characterHairVariation" => "hairVariation", "characterEyeColor" => "eyeColor", "characterFaceType" => "faceType", "characterFaceBrow" => "faceEyebrows", "characterFaceEye" => "faceEyeShape", "characterFaceIris" => "faceIrisSize", "characterFaceNose" => "faceNose", "characterFaceMouth" => "faceMouth", "characterFaceFeatures" => "faceFeatures", "characterFaceEars" => "ears", "characterFaceCharacteristics" => "characteristics", "characterFaceCharacteristicsColor" => "characteristicsColor" ); $g_chocoboMapping = array( "characterHasChocobo" => "hasChocobo", "characterHasGoobbue" => "hasGoobbue", "characterChocoboAppearance" => "chocoboAppearance", "characterChocoboName" => "chocoboName" ); $g_classLevels = array( "characterGla" => "gla", "characterPug" => "pug", "characterMrd" => "mrd", "characterLnc" => "lnc", "characterArc" => "arc", "characterCnj" => "cnj", "characterThm" => "thm", "characterCrp" => "crp", "characterBsm" => "bsm", "characterArm" => "arm", "characterGsm" => "gsm", "characterLtw" => "ltw", "characterWvr" => "wvr", "characterAlc" => "alc", "characterCul" => "cul", "characterMin" => "min", "characterBtn" => "btn", "characterFsh" => "fsh" ); function SaveCharacter($databaseConnection, $htmlFieldMapping, $characterId) { $characterInfo = array(); foreach($htmlFieldMapping as $htmlFieldName => $dbFieldName) { $characterInfo[$dbFieldName] = $_POST[$htmlFieldName]; } UpdateCharacterInfo($databaseConnection, $characterId, $characterInfo); } function GenerateTextField($characterInfo, $htmlFieldMapping, $htmlFieldName, $fieldMaxLength = null) { $inputMaxLength = ($fieldMaxLength === null) ? "" : sprintf("maxlength=\"%d\"", $fieldMaxLength); return sprintf("", $htmlFieldName, $htmlFieldName, $characterInfo[$htmlFieldMapping[$htmlFieldName]], $inputMaxLength); } function GenerateSelectField($characterInfo, $htmlFieldMapping, $htmlFieldOptions, $htmlFieldName) { $dbFieldName = $htmlFieldMapping[$htmlFieldName]; $htmlText = sprintf("\n"; return $htmlText; } if(isset($_POST["cancel"])) { header("Location: control_panel.php"); exit; } if(isset($_POST["save"])) { SaveCharacter($g_databaseConnection, $g_htmlToDbFieldMapping, $g_characterId); header("Location: control_panel.php"); exit; } try { $g_characterInfo = GetCharacterInfo($g_databaseConnection, $g_userId, $g_characterId); $g_characterAppearance = GetCharacterAppearance($g_databaseConnection, $g_userId, $g_characterId); /* $g_characterChocobo = GetCharacterChocobo($g_databaseConnection, $g_userId, $g_characterId); */ $g_characterClassLevels = GetCharacterClassLevels($g_databaseConnection, $g_userId, $g_characterId); } catch(Exception $e) { header("Location: control_panel.php"); exit; } ?> Character Info

Character Info (Help)


Profile
Name: Legacy Character: Creation Date: Play Time:
Guardian: Birth Month: Birth Day: Allegiance:
Current GC: Maelstrom Rank: Twin Adder Rank: Immortal Flame Rank:
GLA: PUG: MRD: LNC:
ARC: CNJ: THM:
CRP: BSM: ARM: GSM:
LTW: WVR: ALC: CUL:
MIN: BTN: FSH:


Appearance
Race/Tribe: Height: Voice: Skin Tone:
Hairstyle: Variation: Hair Color: Highlights:
Face Type: Eyebrows: Eye Shape: Iris Size:
Eye Color: Nose: Face Mouth: Features:
Characteristic: Color: Ears: