Clan Depot Status
$strlang = $_GET['lang']; // Sprache ger = Deutsch. eng = English.
$strclan = $_GET['clan']; // Clan-Nicknamen steht in den FLStat Player Rankings. Clan-Nicknamen find in FLStat Player Rankings.
$strfc1 = $_GET['fontcolor1']; // Farbe wenn Lagerbestand größer 201. Anzugeben als HTML Farbcodes. Color if more than 201 Intems in the Clandepot. Use html color codes.
$strfc2 = $_GET['fontcolor2']; // Farbe wenn Lagerbestand zwischen 200 und 1. Anzugeben als HTML Farbcodes. Color if Intems in the Clandepot are between 200 and 1. Use html color codes.
$strfc3 = $_GET['fontcolor3']; // Farbe wenn Lagerbestand kleiner 0. Anzugeben als HTML Farbcodes. Color if 0 or less of 0 intems in the Clandepot. Use html color codes.
$strbg = $_GET['bgcolor']; // Hintegrundfarbe anzugeben als HTML Farbcodes. Background color. Use html color codes
//Beispiel, Exampel: Path to the Script/clandepot.php?clan=KSK_Clan&bgcolor=000000&fontcolor1=00E500&fontcolor2=FFE500&fontcolor3=FF0000&lang=ger
{
echo "
";
} if ($strlang == "ger")
{
$lhfuel = "H-Treibstoff";
$lfood = "Essensrationen";
$lwater = "Wasser";
$loxygen = "Sauerstoff";
}
elseif ($strlang == "eng")
{
$lhfuel = "H-Fuel";
$lfood = "Food Rotations";
$lwater = "Water";
$loxygen = "Oxygen";
}
$dataurl = "http://89.106.85.56/v2/getclanmissions.php?clan=";
// Get H-Fuel Start
$hfulesdata = "&type=hfuel";
$hfules = file ($dataurl . $strclan. $hfulesdata);
foreach ($hfules as $hfule_num => $hfule) {
if($hfule >= 201 ) {
echo "$lhfuel: " . htmlspecialchars($hfule) . "
\n";
}
elseif ($hfule <= 200 && $hfule >= 1)
{
echo "
\n";
}
elseif ($hfule <= 0 )
{
echo "
\n";
}}
// Get H-Fuel END
// Get Food Start
$fooddata = "&type=food";
$foods = file ($dataurl . $strclan . $fooddata );
foreach ($foods as $food_num => $food) {
if($food >= 201 ) {
echo "$lfood: " . htmlspecialchars($food ) . "
\n";
}
elseif ($food <= 200 && $food >= 1)
{
echo "
\n";
}
elseif ($food <= 0 )
{
echo "
\n";
}}
// Get Food END
// Get Water Start
$waterdata = "&type=water";
$waters = file ($dataurl . $strclan . $waterdata);
foreach ($waters as $water_num => $water) {
if($water >= 201 ) {
echo "$lwater: " . htmlspecialchars($water) . "
\n";
}
elseif ($water <= 200 && $water >= 1)
{
echo "
\n";
}
elseif ($water <= 0 )
{
echo "
\n";
}}
// Get Water END
// Get Food END
// Get Oxygen Start
$oxygendata = "&type=oxygen";
$oxygens = file ($dataurl . $strclan . $oxygendata );
foreach ($oxygens as $oxygen_num => $oxygen) {
if($oxygen >= 201 ) {
echo "$loxygen: " . htmlspecialchars($oxygen) . "
\n";
}
elseif ($oxygen <= 200 AND $oxygen >= 1)
{
echo "
\n";
}
elseif ($oxygen <= 0 )
{
echo "
\n";
}}
// Get Oxygen END
?>