$charName = $_GET['char']; } //character initializations - rewritten 9/28/2014 $char = new profile($charName); //the profile class will sanitize the character name $charID = $char->char_id(); $name = $char->GetValue('name'); $mypermission = GetPermissions($char->GetValue('gm'), $char->GetValue('anon'), $char->char_id()); //block view if user level doesnt have permission if ($mypermission['AAs']) { message_die($language['MESSAGE_ERROR'], $language['MESSAGE_ITEM_NO_VIEW']); } $classbit = array(0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 1); //rewritten to replace character blob - 9/929/3014 //this probably needs the logic rethought, this is a bandaid $temp = $char->GetTable("character_alternate_abilities"); $aa_array = array(); foreach ($temp as $key => $value) { $aa_array[$value["aa_id"]] = $value["aa_value"]; } $aatabs = array(); $aatabs[1] = $language['AAS_TAB_1']; $aatabs[2] = $language['AAS_TAB_2']; $aatabs[3] = $language['AAS_TAB_3']; $aatabs[4] = $language['AAS_TAB_4']; $aatabs[5] = $language['AAS_TAB_5']; $aatabs[6] = $language['AAS_TAB_6']; $aatabs[7] = $language['AAS_TAB_7']; $aatabs[8] = $language['AAS_TAB_8']; //added 9/29/2014 $aatabs[10] = $language['AAS_TAB_10'];