@ 2018-04-17T18:35:47Z <?php
$mapchoice0 = true;
$mapchoice1 = false;
$mapchoice2 = false;
$mapchoice3 = false;
$mapchoice4 = false;
$mapchoice5 = false;
$mapchoice6 = false;
$mapchoice7 = false;
$mapchoice8 = false;
$mapchoice9 = false;
$mapchoice10 = false;
$mapchoice11 = false;
$mapchoice12 = false;
$mapchoice13 = false;
$mapchoice14 = false;
$mapchoice15 = false;
$mapchoice16 = false;
$mapchoice17 = false;
$mapchoice18 = false;
$mapchoice19 = false;
$mapchoice20 = false;
$mapchoice21 = false;
$mapchoice22 = false;
$mapchoice23 = false;
$mapchoice23 = false;
$mapchoice24 = false;
$mapchoice25 = false;
$mapchoice26 = false;
$mapchoice27 = false;
$mapchoice28 = false;
$mapchoice29 = false;
$mapchoice30 = false;
$mapchoice31 = false;
$mapchoice32 = false;
$mapchoice33 = false;
$mapchoice34 = false;
$mapchoice35 = false;
$mapchoice36 = false;
$mapchoice37 = false;
$mapchoice38 = false;
$mapchoice39 = false;
$mapchoice40 = false;
$mapchoice41 = false;
$gmchoice0 = true;
$gmchoice1 = false;
$gmchoice2 = false;
$gmchoice3 = false;
$gmchoice4 = false;
$gmchoice5 = false;
$gmchoice6 = false;
$gmchoice7 = false;
$gmchoice8 = false;
$gmchoice9 = false;
$gmchoice10 = false;
/*
$mapchoice0 = $_POST['mapchoice0'];
print $_POST['mapchoice0'];
$mapchoice1 = $_POST['mapchoice1'];
$mapchoice2 = $_POST['mapchoice2'];
$mapchoice3 = $_POST['mapchoice3'];
$mapchoice4 = $_POST['mapchoice4'];
$mapchoice5 = $_POST['mapchoice5'];
$mapchoice6 = $_POST['mapchoice6'];
$mapchoice7 = $_POST['mapchoice7'];
$mapchoice8 = $_POST['mapchoice8'];
$mapchoice9 = $_POST['mapchoice9'];
$mapchoice10 = $_POST['mapchoice10'];
$mapchoice11 = $_POST['mapchoice11'];
$mapchoice12 = $_POST['mapchoice12'];
$mapchoice13 = $_POST['mapchoice13'];
$mapchoice14 = $_POST['mapchoice14'];
$mapchoice15 = $_POST['mapchoice15'];
$mapchoice16 = $_POST['mapchoice16'];
$mapchoice17 = $_POST['mapchoice17'];
$mapchoice18 = $_POST['mapchoice18'];
$mapchoice19 = $_POST['mapchoice19'];
$mapchoice20 = $_POST['mapchoice20'];
$mapchoice21 = $_POST['mapchoice21'];
$mapchoice22 = $_POST['mapchoice22'];
$mapchoice23 = $_POST['mapchoice23'];
$mapchoice23 = $_POST['mapchoice24'];
$mapchoice24 = $_POST['mapchoice25'];
$mapchoice25 = $_POST['mapchoice26'];
$mapchoice26 = $_POST['mapchoice27'];
$mapchoice27 = $_POST['mapchoice28'];
$mapchoice28 = $_POST['mapchoice29'];
$mapchoice29 = $_POST['mapchoice30'];
$mapchoice30 = $_POST['mapchoice31'];
$mapchoice31 = $_POST['mapchoice32'];
$mapchoice32 = $_POST['mapchoice33'];
$mapchoice33 = $_POST['mapchoice34'];
$mapchoice34 = $_POST['mapchoice35'];
$mapchoice35 = $_POST['mapchoice36'];
$mapchoice36 = $_POST['mapchoice37'];
$mapchoice37 = $_POST['mapchoice38'];
$mapchoice38 = $_POST['mapchoice39'];
$mapchoice39 = $_POST['mapchoice40'];
$mapchoice40 = $_POST['mapchoice41'];
$mapchoice41 = $_POST['mapchoice42'];
*/
$mapchoice = array(
$mapchoice0,
$mapchoice1,
$mapchoice2,
$mapchoice3,
$mapchoice4,
$mapchoice5,
$mapchoice6,
$mapchoice7,
$mapchoice8,
$mapchoice9,
$mapchoice10,
$mapchoice11,
$mapchoice12,
$mapchoice13,
$mapchoice14,
$mapchoice15,
$mapchoice16,
$mapchoice17,
$mapchoice18,
$mapchoice19,
$mapchoice20,
$mapchoice21,
$mapchoice22,
$mapchoice23,
$mapchoice24,
$mapchoice25,
$mapchoice26,
$mapchoice27,
$mapchoice28,
$mapchoice29,
$mapchoice30,
$mapchoice31,
$mapchoice32,
$mapchoice33,
$mapchoice34,
$mapchoice35,
$mapchoice36,
$mapchoice37,
$mapchoice38,
$mapchoice39,
$mapchoice40,
$mapchoice41,
);
/*
$gmchoice0 = $_POST['gmchoice0'];
$gmchoice1 = $_POST['gmchoice1'];
$gmchoice2 = $_POST['gmchoice2'];
$gmchoice3 = $_POST['gmchoice3'];
$gmchoice4 = $_POST['gmchoice4'];
$gmchoice5 = $_POST['gmchoice5'];
$gmchoice6 = $_POST['gmchoice6'];
$gmchoice7 = $_POST['gmchoice7'];
$gmchoice8 = $_POST['gmchoice8'];
$gmchoice9 = $_POST['gmchoice9'];
$gmchoice10 = $_POST['gmchoice10'];
*/
$gmchoice = array(
$gmchoice0,
$gmchoice1,
$gmchoice2,
$gmchoice3,
$gmchoice4,
$gmchoice5,
$gmchoice6,
$gmchoice7,
$gmchoice8,
$gmchoice9,
$gmchoice10);
$iterations = 25;
$bol_level = array();
$bol_gm = array();
$final = "";
class gamelevel{
private $name;
private $fname;
public function __construct($fn, $string_name){
$this->fname = $fn;
$this->name = $string_name;
}
public function getfname(){return $this->fname;}
}
$level = array(
new gamelevel("mp_afghan", "Afghan"),
new gamelevel("mp_derail", "Derail"),
new gamelevel("mp_estate","Estate"),
new gamelevel("mp_favela", "Favela"),
new gamelevel("mp_highrise", "Highrise"),
new gamelevel("mp_invation", "Invation"),
new gamelevel("mp_checkpoint", "Karachi"),
new gamelevel("mp_quarry", "Quarry"),
new gamelevel("mp_rundown", "Rundown"),
new gamelevel("mp_rust","Rust"),
new gamelevel("mp_scrapyard","Scrapyard"),
new gamelevel("mp_nightshift", "Skidrow"),
new gamelevel("mp_subbase", "Sub Base"),
new gamelevel("mp_terminal","Terminal"),
new gamelevel("mp_underpass", "Underpass"),
new gamelevel("mp_brecourt", "Wasteland"),
new gamelevel("mp_complex", "Bailout"),
new gamelevel("mp_crash", "Crash"),
new gamelevel("mp_compact", "Salvage"),
new gamelevel("mp_overgrown", "Overgrown"),
new gamelevel("mp_storm", "Storm"),
new gamelevel("mp_abandon", "Carnival"),
new gamelevel("fuel2", "Fuel"),
new gamelevel("mp_strike", "Strike"),
new gamelevel("mp_trailerpark", "Trailer Park"),
new gamelevel("mp_vacant", "Vacant"),
new gamelevel("mp_bloc", "Bloc"),
new gamelevel("mp_block_sh", "Abandoned City"),
new gamelevel("mp_cargoship", "Wet Work"),
new gamelevel("mp_cargoship_sh", "Freighter"),
new gamelevel("mp_crash_tropical", "Crash Tropical"),
new gamelevel("mp_cross_fire", "Crossfire"),
new gamelevel("mp_fav_tropical", "Favela Tropical"),
new gamelevel("mp_estate_tropical", "Estate Tropical"),
new gamelevel("mp_firingrange", "Firing Range"),
new gamelevel("mp_killhouse", "Killhouse"),
new gamelevel("mp_nuked", "Nuketown"),
new gamelevel("mp_rust_long", "Rust Long"),
new gamelevel("mp_shipment", "Shipment"),
new gamelevel("mp_shipment_long", "Shipment Long"),
new gamelevel("mp_storm_spring", "Chemical Plant"),
new gamelevel("oilrig", "Oil Rig")
);
$gametype = array(
new gamelevel("war","Team Deathmatch"),
new gamelevel("ffa","Free-For-All"),
new gamelevel("dom","Domination"),
new gamelevel("koth", "Headquarters"),
new gamelevel("sab", "Sabotage"),
new gamelevel("sd","Search & Destroy"),
new gamelevel("arena", "Arena"),
new gamelevel("dd", "Demolition"),
new gamelevel("ctf", "Capture The Flag"),
new gamelevel("oneflag", "One Flag CTF"),
new gamelevel("gtnw", "Global Thermo-Nuclear War"));
class mode{
public $level;
public $gametype;
function __construct($l,$g){
$this->level=$l;
$this->gametype=$g;
}
public function getString(){
return "g_gametype ".$this->gametype->getfname()." map ".$this->level->getfname();
}
}
$finalModeList = array();
function buildOptionLists(){
global $level;
global $gametype;
global $bol_level;
global $bol_gm;
global $mapchoice;
global $gmchoice;
$bollevel = array();
$bolgm = array();
for ($x = 0; $x < count($mapchoice); $x++){
if ($mapchoice[$x] == true)
array_push($bollevel,$level[$x]);
}
for ($x = 0; $x < count($gmchoice); $x++){
if ($gmchoice[$x] == true)
array_push($bolgm,$gametype[$x]);
}
/*
if ($mapchoice0 == true)
array_push($bollevel,$level[0]);
if ($mapchoice1 == true)
array_push($bollevel,$level[1]);
if ($mapchoice2 == true)
array_push($bollevel,$level[2]);
if ($mapchoice3 == true)
array_push($bollevel,$level[3]);
if ($mapchoice4 == true)
array_push($bollevel,$level[4]);
if ($mapchoice5 == true)
array_push($bollevel,$level[5]);
if ($mapchoice6 == true)
array_push($bollevel,$level[6]);
if ($mapchoice7 == true)
array_push($bollevel,$level[7]);
if ($mapchoice8 == true)
array_push($bollevel,$level[8]);
if ($mapchoice9 == true)
array_push($bollevel,$level[9]);
if ($mapchoice10 == true)
array_push($bollevel,$level[10]);
if ($mapchoice11 == true)
array_push($bollevel,$level[11]);
if ($mapchoice12 == true)
array_push($bollevel,$level[12]);
if ($mapchoice13 == true)
array_push($bollevel,$level[13]);
if ($mapchoice14 == true)
array_push($bollevel,$level[14]);
if ($mapchoice15 == true)
array_push($bollevel,$level[15]
if ($mapchoice16 == true)
array_push($bollevel,$level[16]);
if ($mapchoice17 == true)
array_push($bollevel,$level[17]);
if ($mapchoice18 == true)
array_push($bollevel,$level[18]);
if ($mapchoice19 == true)
array_push($bollevel,$level[19]);
if ($mapchoice20 == true)
array_push($bollevel,$level[20]);
if ($mapchoice21 == true)
array_push($bollevel,$level[21]);
if ($mapchoice22 == true)
array_push($bollevel,$level[22]);
if ($mapchoice23 == true)
array_push($bollevel,$level[23]);
if ($mapchoice24 == true)
array_push($bollevel,$level[24]);
if ($mapchoice25 == true)
array_push($bollevel,$level[25]);
if ($mapchoice26 == true)
array_push($bollevel,$level[26]);
if ($mapchoice27 == true)
array_push($bollevel,$level[27]);
if ($mapchoice28 == true)
array_push($bollevel,$level[28]);
if ($mapchoice29 == true)
array_push($bollevel,$level[29]);
if ($mapchoice30 == true)
array_push($bollevel,$level[30]);
if ($mapchoice31 == true)
array_push($bollevel,$level[31]);
if ($mapchoice32 == true)
array_push($bollevel,$level[32]);
if ($mapchoice33 == true)
array_push($bollevel,$level[33]);
if ($mapchoice34 == true)
array_push($bollevel,$level[34]);
if ($mapchoice35 == true)
array_push($bollevel,$level[35]);
if ($mapchoice36 == true)
array_push($bollevel,$level[36]);
if ($mapchoice37 == true)
array_push($bollevel,$level[37]);
if ($mapchoice38 == true)
array_push($bollevel,$level[38]);
if ($mapchoice39 == true)
array_push($bollevel,$level[39]);
if ($mapchoice40 == true)
array_push($bollevel,$level[40]);
if ($mapchoice41 == true)
array_push($bollevel,$level[41]);
if ($gmchoice0 == true)
array_push($bolgm,$gametype[0]);
if ($gmchoice1 == true)
array_push($bolgm,$gametype[1]);
if ($gmchoice2 == true)
array_push($bolgm,$gametype[2]);
if ($gmchoice == true)
array_push($bolgm,$gametype[]);
*/
for ($x = 0; $x < count($bolgm); $x++){
$bol_gm[$x] = $bolgm[$x];
}
for ($x = 0; $x < count($bollevel); $x++){
$bol_level[$x] = $bollevel[$x];
}
}
function buildList(){
global $iterations;
global $finalModeList;
global $bol_level;
global $bol_gm;
for ($x = 0; $x < $iterations; $x++)
array_push($finalModeList,new mode($bol_level[mt_rand(0,(count($bol_level)-1))],$bol_gm[mt_rand(0,(count($bol_gm)-1))]));
}
function buildString(){
global $final;
global $finalModeList;
for ($x = 0; $x < count($finalModeList); $x++)
$final = $final.$finalModeList[$x]->getString()." ";
}
buildOptionLists();
buildList();
buildString();
echo $final;
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for git.master , git.master_jit , rfc.property-hooks g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan g_gametype war map mp_afghan This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.
Active branches Archived branches Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page
preferences:dark mode live preview
62.76 ms | 402 KiB | 8 Q