[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Ваши жалобы и предложения » Улучшение сайта » Скрипт статистики базы
Скрипт статистики базы
omikron Дата: Понедельник, 31.05.2010, 21:50 | Сообщение # 1
Сообщений: 867
Замечания:
Уважение
[ 10 ]
Статус:
 




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 "$lhfuel: " . htmlspecialchars($hfule) . "
\n";
}
elseif ($hfule <= 0 )
{
echo "$lhfuel: " . htmlspecialchars($hfule) . "
\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 "$lfood: " . htmlspecialchars($food ) . "
\n";
}
elseif ($food <= 0 )
{
echo "$lfood: " . htmlspecialchars($food ) . "
\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 "$lwater: " . htmlspecialchars($water ) . "
\n";
}
elseif ($water <= 0 )
{
echo "$lwater: " . htmlspecialchars($water) . "
\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 "$loxygen: " . htmlspecialchars($oxygen) . "
\n";
}
elseif ($oxygen <= 0 )
{
echo "$loxygen: " . htmlspecialchars($oxygen) . "
\n";
}}

// Get Oxygen END

?>




снова учиться
omikron Дата: Понедельник, 31.05.2010, 21:50 | Сообщение # 2
Сообщений: 867
Замечания:
Уважение
[ 10 ]
Статус:
 
$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

клиф переведи это и то что написано за // на то нада ответить



снова учиться
CliFF Дата: Вторник, 01.06.2010, 20:23 | Сообщение # 3
Сообщений: 1066
Замечания:
Уважение
[ 13 ]
Статус:
 
Оки переведу через пару часиков


[USAF]+[OSO]=Noobs
Их всего лишь в 3 раза больше! Вперед грязные обезьяны, вы что хотите жить вечно!!?
Форум » Ваши жалобы и предложения » Улучшение сайта » Скрипт статистики базы
  • Страница 1 из 1
  • 1
Поиск:

Клановые банеры

 

 
 
 Клан Демоны Сириуса
 
Clan FFS (Free Fellowship of Sirius) 

Сайты Серверов

 
Fl_Orion_mod 
FL-Project 
 
Freelancer Another World : Open Sirius The StarPort in Russia

ДРУГИЕ Сайты