//For online status. Do not change, unless you running on diferent port.
$cfg['server_ip'] = "[COLOR="Red"]127.0.0.1[/COLOR]";
$cfg['server_port'] = 7171;
Prosz? o pomoc !<?
define('DATAPATH','C:\\Users\\Patryk\\Desktop\\ARMIA 6.6.6\\data'); // sciezka do katalogu data z \\ miedzy nazwami folderow
$servpath = 'C:\\Users\\Patryk\\Desktop\\ARMIA 6.6.6\\'; // sciezka do katalogu z \\ miedzy nazwami folderow
$data_folder = 'C:\Users\Patryk\Desktop\ARMIA 6.6.6\data'; // sciezka do katalogu data, z \ miedzy nazwami folderow bez
$hidden_chars = array("GoD Pirez , GoD Diablo"); // Wpisz po przecinkach i w takiej postaci "nazwa" imiona postaci, ktore nie maja byc wyswietlane w statystykach
$admin = "9"; //numer acc administratora strony, numer musi sie zgadzac z numerem acc na serwerze
$ip_serwera = "89.228.130.68"; //ip servera
define('89.228.130.68','localhost'); //ip servera
$port = "7171"; //port servera
define('PORT','7171'); //port servera
$expinfo = "500"; //ilosc expa na serverze
$server_type = "PVP"; //typ swiata
define('ROOK_SYS',true); //czy ma byc rookgard system true=tak, false=nie
define('PL_XML',false); //czy twoj server obsluguje pliki xml true=tak, false=nie
$nazwaserwera = "Extreme OTS"; //Nazwa twojego servera
$sizeacc = "7"; // D?ugo¶? account number (zalecane 6!)
$stats_limit = ("25"); // limit wy¶wietlanych statystyk
$acc_system = ("recznie"); // jezeli ustawisz "auto" to numer account b?dzie generowany automatycznie, jezeli "recznie" to gracz bedzie mogl sam wybrac numer
$maxChars = '5'; // Maksymalna ilo¶? postaci na jednym koncie, 0 = bez limitu
$zabronione = "111111"; //tutaj mozesz podac numer na ktory nie mozna sie zalogowac np acc manager
//ustawienia sms shop
$txtwlasciciel = "www.piuro.pl"; //strona accmakera
$txtemail = "piuro_16@o2.pl"; //e-mail wlasciciela w serwisie dotpay
$id = "21470"; //id uzytkownika dotpay
//pierwsza opcja
$code1 = "rlmap"; //kod do dpierwszej opcji
$txtnumer1 = "2525"; //numer na jaki trzeba wyslac sms w pierwszej opcji
$txttresc1 = "AP.COSTAM"; //tresc sms-a w pierwszej opcji
$txtkoszt1 = "2,44"; //koszt z vat
$txtczas1 = "30"; //ilosc godzin pierwszej opcji
$czass1 = "108000000"; //aby policzyc ten czas nalezy wykonac dzialanie--->iloscgodzin*6000*600=czass
//druga opcja
$code2 = "rlmap"; //kod do drugiej opcji
$txtnumer2 = "2525"; //numer na jaki trzeba wyslac sms w drugiej opcji
$txttresc2 = "AP.COSTAM2"; //tresc sms-a w drugiej opcji
$txtkoszt2 = "3,66"; //koszt z vat
$txtczas2 = "70"; //ilosc godzin drugiej opcji
$czass2 = "252000000"; //aby policzyc ten czas nalezy wykonac dzialanie--->iloscgodzin*6000*600=czass
//trzecia opcja
$code3 = "rlmap"; //kod do trzeciej opcji
$txtnumer3 = "2525"; //numer na jaki trzeba wyslac sms w trzeciej opcji
$txttresc3 = "AP.COSTAM3"; //tresc sms-a w trzeciej opcji
$txtkoszt3 = "6,10"; //koszt z vat
$txtczas3 = "150"; //ilosc godzin trzeciej opcji
$czass3 = "540000000"; //aby policzyc ten czas nalezy wykonac dzialanie--->iloscgodzin*6000*600=czass
//Tutaj skonfiguruj pocz±tkowe ustawienia postaci
$lvl = '8'; // pocz±tkowy level
$exp = '4200'; // pocz±tkowy exp (musi isc w parze z levelem)
$cap = '10000'; // pocz±tkowy udzwig (cap)
// ustawienia spawnu
$spawnx = '160';
$spawny = '52';
$spawnz = '6';
// ustawienia temple
$templex = '160';
$templey = '52';
$templez = '6';
//Konfiguracja rook
// wygl±d
$look[ROOK][MALE] = '130';
$look[ROOK][FEMALE] = '138';
// HP, mana, magic level
$health[ROOK] = '195';
$mana[ROOK] = '95';
$mlvl[ROOK] = '30';
// Skile: fist,club,sword,axe,dist,shld,fish
$skill[ROOK] = array(10, 10, 10, 10, 10, 15, 10);
// Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo
$equip[ROOK] = array(2490, 2129, 1988, 2463, 2423, 2525, 2468, 2643, 2164, 0);
// Backpack (plecak):
$bp[ROOK] = '<item id="2152" count="40"/><item id="2311" count="100"/><item id="2120" count="40"/><item id="2554" count="7"/>';
//Konfiguracja Sorcerera
// wygl±d
$look[SORC][MALE] = '130';
$look[SORC][FEMALE] = '138';
// HP, mana, magic level
$health[SORC] = '195';
$mana[SORC] = '95';
$mlvl[SORC] = '30';
// Skile: fist,club,sword,axe,dist,shld,fish
$skill[SORC] = array(10, 10, 10, 10, 10, 15, 10);
// Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo
$equip[SORC] = array(2490, 2129, 1988, 2463, 2423, 2525, 2468, 2643, 2164, 0);
// Backpack (plecak):
$bp[SORC] = '<item id="2152" count="40"/><item id="2311" count="100"/><item id="2120" count="40"/><item id="2554" count="7"/>';
//Konfiguracja Druida
// wygl±d
$look[DRUID][MALE] = '130';
$look[DRUID][FEMALE] = '138';
// HP, mana, magic level
$health[DRUID] = '195';
$mana[DRUID] = '95';
$mlvl[DRUID] = '30';
// Skile: fist,club,sword,axe,dist,shld,fish
$skill[DRUID] = array(10, 10, 10, 10, 10, 15, 10);
// Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo
$equip[DRUID] = array(2490, 2129, 1988, 2463, 2423, 2525, 2468, 2643, 2164, 0);
// Backpack (plecak):
$bp[DRUID] = '<item id="2152" count="40"/><item id="2311" count="100"/><item id="2120" count="40"/><item id="2554" count="7"/>';
//Konfiguracja Paladina
// wygl±d
$look[PALADIN][MALE] = '129';
$look[PALADIN][FEMALE] = '137';
// HP, mana, magic level
$health[PALADIN] = '205';
$mana[PALADIN] = '65';
$mlvl[PALADIN] = '12';
// Skile: fist,club,sword,axe,dist,shld,fish
$skill[PALADIN] = array(10, 10, 10, 10, 71, 41, 10);
// Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo
$equip[PALADIN] = array(2490, 2129, 1988, 2463, 2455, 0, 2468, 2643, 2164, 0);
// Backpack:
$bp[PALADIN] = '<item id="2152" count="40"/><item id="2543" count="100"/><item id="2120" count="40"/><item id="2554" count="7"/>';
//Konfiguracja Knighta
// wygl±d
$look[KNIGHT][MALE] = '131';
$look[KNIGHT][FEMALE] = '139';
// HP, mana, magic level
$health[KNIGHT] = '215';
$mana[KNIGHT] = '45';
$mlvl[KNIGHT] = '4';
// Skile: fist,club,sword,axe,dist,shld,fish
$skill[KNIGHT] = array(10, 71, 71, 71, 10, 71, 10);
// Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo
$equip[KNIGHT] = array(2490, 2129, 1988, 2463, 2423, 2525, 2468, 2643, 2164, 0);
// Backpack:
$bp[KNIGHT] = '<item id="2152" count="40"/><item id="2311" count="100"/><item id="2120" count="40"/><item id="2554" count="7"/>';
//Nie Zmieniac!!!!!!
$acc_folder = DATAPATH.'\\accounts\\'; //Nie Zmieniac!!!!!!
$player_folder = DATAPATH.'\\players\\'; //Nie Zmieniac!!!!!!
$diraccount = $servpath.'\\data\\accounts/'; //Nie Zmieniac!!!!!!
$dirhouses = $servpath. '\data\houses/'; //Nie Zmieniac!!!!!!
$dirplayer = $data_folder."\\players/"; //Nie Zmieniac!!!!!!!
$pirplayer = $data_folder.'\\players'; //Nie Zmieniac!!!!!!!
$dirvip = $data_folder."\\vip"; //Nie Zmieniac!!!!!!
$folderdata = "$data_folder\\"; //Nie Zmieniac!!!!!!
$folderacc = "$diraccount\\"; //Nie Zmieniac!!!!!!
$folderplayer = "$dirplayer\\"; //Nie Zmieniac!!!!!!
$title = ("by Piuro"); // tego nie zmieniaj, uszanuj prawa autorskie!!
$ilosckont = count(glob("$diraccount/*.*")); //Nie Zmieniac!!!!!!
$iloscpostaci = count(glob("$dirplayer/*.*")); //Nie Zmieniac!!!!!!
$iloscdomkow = count(glob("$data_folder/houses/*.*")); //Nie Zmieniac!!!!!!
$ilospotworow = count(glob("$data_folder/monster/*.*")); //Nie Zmieniac!!!!!!
$ilosnpc = count(glob("$data_folder/npc/*.*")); //Nie Zmieniac!!!!!!
if (!defined('MALE')) define('MALE', 1); //Nie Zmieniac!!!!!!
if (!defined('FEMALE')) define('FEMALE', 0);//Nie Zmieniac!!!!!!
if (!defined('ROOK')) define('ROOK', 0); //Nie Zmieniac!!!!!!
if (!defined('SORC')) define('SORC', 1); //Nie Zmieniac!!!!!!
if (!defined('DRUID')) define('DRUID', 2); //Nie Zmieniac!!!!!!
if (!defined('PALADIN')) define('PALADIN', 3); //Nie Zmieniac!!!!!!
if (!defined('KNIGHT')) define('KNIGHT', 4); //Nie Zmieniac!!!!!!
?>
$ip_serwera = "[COLOR="Red"]wpisz swoje ip[/COLOR]"; //ip servera
define('[COLOR="Red"]twoje ip[/COLOR]','[COLOR="Red"]127.0.0.1[/COLOR]'); //ip servera
$port = "7171"; //port servera
define('PORT','7171'); //port servera
<?
ini_set ('display_errors', on);
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$SI = 1;
$start = getmicrotime();
session_start();
include("funkcje.php");
include("config.php");
$SI = getServerInfo();
$login = $_POST["account"];
$haslo = $_POST["password"];
if($_GET['login']=="zaloguj")
{$_SESSION['zle']=1;
}
if($_GET['login']=="zaloguj" and empty($_SESSION['zle']) and $_SESSION['zalogowany']!="tak")
{
header("Location: index.php");
}
if($_SESSION['account']==$admin)
{
$god=1;}
if($_SESSION['account']==$zabronione)
{
echo "Zabronione"; exit;
}
?>
</SCRIPT>
<SCRIPT language="JavaScript" src="cod/ajax.js"></SCRIPT>
<script type="text/javascript" src="cod/prototype.js"></script>
<script type="text/javascript" src="cod/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="cod/lightbox.js"></script>
<LINK media="screen" href="cod/lightbox.css" type="text/css" rel="stylesheet">
<SCRIPT src="cod/control.modal.2.2.1.js" type="text/javascript" ></SCRIPT>
<LINK media="screen" href="cod/control.modal.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="cod/info_produto.css">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<style type="text/css">
<!--
.style2 {color: #FF0000}
-->
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title><? echo $nazwaserwera; ?></title>
<meta name="keywords" content="">
<meta name="description" content="">
<link href="default.css" rel="stylesheet" type="text/css">
<link rel="Shortcut icon" href="Favicon.ico" />
</head>
<html>
<body>
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="491"><img src="images/homepage02.jpg" alt="" width="491" height="250"></td>
<td class="bg1"> </td>
</tr>
</table>
<!-- INICIO MENU -->
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0" class="bg2" style="height:81px;">
<tr valign="top">
<td>
<table width="93%" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="10"><img src="images/spacer.gif" alt="" width="30" height="59"></td>
<td width="59"><a href="index.php" class="link1">Strona G??wna</a></td>
<td width="18"><img src="images/subpage1_02.jpg" alt="" width="13" height="59"></td>
<td width="59"><a href="index.php?body=acc" class="link1">Nowe Konto</a></td>
<td width="18"><img src="images/subpage1_02.jpg" alt="" width="13" height="59"></td>
<td width="59"><a href="index.php?body=rules" class="link1"><strong>Regulamin</strong></a></td>
<td width="18"><img src="images/subpage1_02.jpg" alt="" width="13" height="59"></td>
<td width="59"><a href="index.php" class="link1">Forum</a></td>
<td width="18"><img src="images/subpage1_02.jpg" alt="" width="13" height="59"></td>
<td width="59"><a href="index.php?body=smsshop" class="link1">SMS Shop</a></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- FIM MENU -->
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0" class="bg3">
<tr>
<td>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="171">
<table width="171" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="171">
<h2 class="text1">Menu G??wne</h2>
<ul class="list1">
<li class=first><a href="index.php"> »Strona G??wna</a></li>
<li><a href="index.php?body=acc"> »Nowe Konto</a></li>
<li><a href="index.php?body=smsshop"><font color=red> »SKLEPIK</font></a></li>
<li><a href="#2"> »Forum</a></li>
<li><a href="index.php?body=rules"> »Regulamin</a></li>
<li><a href="index.php?body=search"> »Szukaj Postaci</a></li>
<li><a href="index.php?body=gildie"> »Gildie</a></li>
<li><a href="index.php?body=houses"> »Domki</a></li>
<li><a href="index.php?body=1"> »Czary</a></li>
<li><a href="index.php?body=mapa"> »Mapy</a></li>
<li><a href="index.php?body=przedmioty"> »Przedmioty</a></li>
</ul>
</td>
</tr>
</table>
<table width="171" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="171">
<h2 class="text1">Statystyki</h2>
<ul class="list1">
<li class=first><a href="?body=stats&skill=Poziom"> » Poziom</a></li>
<li><a href="?body=stats&skill=Poziom magiczny"> » Poziom magiczny</a></li>
<li><a href="?body=stats&skill=Walka wr?cz"> » Walka wr?cz</a></li>
<li><a href="?body=stats&skill=Walka obuchem"> » Walka obuchem</a></li>
<li><a href="?body=stats&skill=Walka mieczem"> » Walka mieczem</a></li>
<li><a href="?body=stats&skill=Walka toporem"> » Walka toporem</a></li>
<li><a href="?body=stats&skill=Walka dystansowa"> » Walka dystansowa</a></li>
<li><a href="?body=stats&skill=Obrona"> » Obrona</a></li>
<li><a href="?body=stats&skill=?owienie"> » ?owienie</a></li>
</ul>
</td>
</tr>
</table>
</td>
<?
$body = $_GET["body"];
if ($body=="")
{
include("main.php");
}
else {
if (is_file("$body.php"))
{
include("$body.php");
}
else
{
include("error.php");
}
}
?>
<td width="171">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<h2 class="text1">Status</h2>
<?php
$Minute = 1;
$Minutes = 1;
$SummaryTime = ($Minutes*$Minute);
if(!is_file('online_data.xml') OR (time()-filemtime('online_data.xml')) > $SummaryTime)
{
$info = chr(6).chr(0).chr(255).chr(255).'info';
$sock = @fsockopen($ip_serwera, $port, $errno, $errstr, 1);
if ($sock)
{
fwrite($sock, $info);
$data='';
while (!feof($sock))
$data .= fgets($sock, 1024);
fclose($sock);
preg_match('/players online="(\d+)" max="(\d+)" peak="(\d+)"/', $data, $matches);
$CacheHTML .= '<font color=silver size=2> Status: </font><i><font color=green size=5>Online</font></i></center>';
$CacheHTML .= '<br><font color=silver size=2><b> Graczy: </b><font color=silver size=1>';
$CacheHTML .= $matches[1] . '/' . $matches[2];
preg_match('/uptime="(\d+)"/', $data, $matches);
$h = floor($matches[1] / 3600);
$m = floor(($matches[1] - $h*3600) / 60);
$SI = getServerInfo();
$CacheHTML .= '<font color=silver size=2><br><b> Potwory:</b><font color=silver size=1> '. $SI['monsters'] . '';
$iloscdomkow = count(glob("$data_folder/houses/*.*"));
$CacheHTML .= '<br><font color=silver size=2><b> Houses:</b><font color=silver size=1> '. $iloscdomkow . '';
$CacheHTML .= "<br><font color=silver size=2><b> Uptime:</b><font color=silver size=1> $h " . ($h==1? 'h' : ($h==2||$h==3||$h==4? 'h' : 'h'));
$CacheHTML .= " $m " . ($m==1? 'min' : ($m==12||$m==13||$m==14? 'min' : ($m%10==2||$m%10==3||$m%10==4? 'min' : 'min'))) . '</font></font></font></font></font></font></font></font></font></font>';
$CacheHTML .= '<br><font color=silver size=2><b> IP:</b><font color=silver size=1> '.$ip_serwera;'</font></font>';
$CacheHTML .= '<br><font color=silver size=2><b> Port:</b><font color=silver size=1> '.$port;'</font></font>';
$CacheHTML .= '<br><font color=silver size=2><b> World type:</b><font color=silver size=1> '.$server_type;'</font></font>';
$CacheHTML .= '<br><font color=silver size=2><b> Experience:</font></b><font color=silver size=1> '.$expinfo; '</font></font>';
$CacheHTML .= '</font></font><br><br>';
}
else {
$CacheHTML .= '<font color=silver size=2> Status: <font color=red size=3><i>Ofline</i></center></font><br>';
$CacheHTML .= '<br><font color=silver size=2><b> IP:</b><font color=silver size=1> '.$ip_serwera;'</font></font>';
$CacheHTML .= '<br><font color=silver size=2><b> Port:</b><font color=silver size=1> '.$port;'</font></font>';
$CacheHTML .= '<br><font color=silver size=2><b> World type:</b><font color=silver size=1> '.$server_type;'</font></font>';
$CacheHTML .= '<br><font color=silver size=2><b> Experience:</b></font><font color=silver size=1> '.$expinfo; '</font></font>';
$CacheHTML .= '</font></font><br><br>';
}
echo $CacheHTML;
$fp = fopen('online_data.xml', 'w');
fwrite($fp, '<?xml version="1.0"?><otserv><base64>' .base64_encode($CacheHTML). '</base64></otserv>');
fclose($fp);
} else {
$CacheContent = file_get_contents('online_data.xml');
$CacheXML = simplexml_load_string($CacheContent);
echo base64_decode($CacheXML->base64);
}
?>
</td>
</tr>
</table>
<table width="171" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="171">
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
</td>
</tr>
</table>
<? if ($_SESSION["zalogowany"]=="tak") {?>
<table width="171" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="171"><h2 class="text1">Logowanie</h2></td>
</tr>
<tr>
<td>
<? if($god==1){echo '<font color="red"><b> »Jeste¶ Adminem</font></b><br><a href="index.php?body=namelock"><font color=silver> »Daj Namelocka</a></font><br><a href="./news/"><font color=silver> »News System</a></font><br><br>';}?>
»<a href="index.php?body=charinfo"><font color=silver>Twoje postacie</a></font><br>
»<a href="index.php?body=zmienhaslo"><font color=silver>Zmie? has?o</a></font><br>
»<a href="logout.php"><font color=silver>Wyloguj</a> </font>
</td></tr></table>
<?}else{?>
<table width="171" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="171"><h2 class="text1">Logowanie</h2></td>
</tr>
<tr>
<td><form method="post" action="index.php?body=login">
<table width="134" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="text6" style="height: 16px;">Numer:</td>
</tr>
<tr>
<td><input type="password" name="account" maxlength="10" class="input1" style="width: 126px;" /></td>
</tr>
<tr>
<td class="text6" style="height: 16px;">Has?o:</td>
</tr>
<tr>
<td><input type="password" name="password" maxlength="29" class="input1" style="width: 126px;" /></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<input type="submit" name="Submit2" value="Zaloguj" class="input3" style="float: right;" />
<p class="text6" style="line-height: 11px;">
<a href="index.php?body=recovery">Odzyskaj konto</a><br />
</p>
</td>
</tr>
</table>
</form>
</td>
<?}?>
</tr>
</table>
</td>
<tr>
<td><img src="images/spacer.gif" alt="" width="30" height="30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/homepage06.jpg" alt="" width="982" height="70"></td>
</tr>
</table>
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="text8">Acc Maker by Maniek</td>
</tr>
<tr>
<td class="text8"> </td>
</tr>
<tr>
<td class="text8"> </td>
</tr>
</table>
</body>
</html>