Hello, I want a possibility of creating a priv char, which will be read-only if possible, for premium points or just for a sms code. My ots is XML for tibia 7.6. If anyone know how to do it please make this script. I really need it. Here is the code of my shop:
or make a field where you have to write a proper sms code to create an acc in:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<?php include 'config.php'; ?>
<meta http-equiv="Content-Language" content="pl" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
<meta name="author" content="DeGhost" />
<meta http-equiv="Reply-to" content="[email protected]" />
<title><?php echo $title; ?></title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="topmen">
<div class="menutop">
<div direction="center"><?php include 'uptime.php'; ?></div>
</div></div>
<div id="podstawa">
<div class="logo"></div>
<div class="menulogo">
<?php include ("include/menu1.php");?>
</div>
<div id="menu">
<div class="newmenu"></div>
<div class="srodek">
<div class="tekst">
<?php include ("include/account_login.php");?>
<h5><a href="account_create.php">+ Rejestracja</a></h5>
</div>
</div>
<div class="newmenuu"></div>
<div class="srodek">
<div class="tekst">
<?php include ("include/menu2.php");?>
</div>
</div>
<div class="newmenuuu"></div>
<div class="srodek">
<div class="tekst">
<?php include ("include/menu3.php");?>
</div>
</div>
</div>
<div id="nius">
<div class="newsman">Shopik</div>
<div class="srodekniusa">
<div class="teksts">
<font color='green'>Instrukcja:</font><br>
* Wysyłasz SMS'a, a następnie otrzymujesz kod aktywacyjny po kilka sekundach.<br>
* Wylogowujesz się postaci± i wpisujesz Nick lub Numer Konta, oraz Kod SMS na stronie.<br>
* Zostaje ci dodany dany Item do DP w głównym mie¶cie lub odrazu Pacc<br>
* Logujesz się i z DP bierzesz kupiony przedmiot.<br>
<br><font color='red'>UWAGA!</font><br>
Dla bezpieczeństwa naszego servisu masz tylko jedna możliwosc uzycia kodu zwrotnego, jeżeli się pomylisz kod zostanie zdezaktywowany wiec proszę wpisac szczególnie ostroznie dane.
<br>
Żadnych <font color='red'><b>zwrotów</b></font> nierealizujemy, spowodów oczywistch!!!
<br><br>
<font color='yellow'>Usluga dziala w sieciach operatorow: Era, Plus GSM, Orange, Play, Sami Swoi, Heyah, Tak Tak, Simplus, Orange GO, POP</font><br>
Własciciel serwisu: imie nazwisko<br>
Kontakt elektroniczny: [email protected]<br>
Serwis sms obsluguje <a href="http://www.allpay.pl/">Allpay.pl</a> - <a href="http://www.allpay.pl/regulaminsms">Regulamin serwisu</a><br>
<br>
<table border="1" width="100%">
<tbody>
<tr>
<td>Usługa:</td> <td>Koszt SMSa:</td> <td>Tresć SMSa:</td> <td>Numer SMSa:</td>
</tr>
</tbody>
<tbody align="center">
<tr>
<td>Pacc 7 dni</td> <td>3.66 PLN</td> <td>vd.pacc7</td> <td>7272</td>
</tr>
<tr>
<td>Pacc 14 dni</td> <td>6.25 PLN</td> <td>vd.pacc14</td> <td>6424</td>
</tr>
<tr>
<td>Pacc 30 dni</td> <td>10.99 PLN</td> <td>vd.pacc30</td> <td>6464</td>
</tr>
<tr>
<td>Plate Armor</td> <td>10.99 PLN</td> <td>vd.plate</td> <td>6544</td>
</tr>
</tbody>
</table><hr><br>
<form action='itemxml.php' method='post'> <center>
<b><span style="font-size: 11px">Nick Postaci, jeżeli kupujesz <font color='red'>Items!</font><br>Numer Konta, jeżeli kupujesz <font color='red'>Pacca!</font></span></b>
<br />
<input style="cursor: pointer; border-style:dashed; color:white; background-color:#000000; width: 100px; text-align:center; font-size:9px; font-weight: bold;" type='text' name='nick' value="Nick lub Numer..."/><br /><br>
<b><span style="font-size: 11px">Kod Aktywacyjny</span></b>
<br />
<input style="cursor: pointer; border-style:dashed; color:white; background-color:#000000; width: 100px; text-align:center; font-size:9px; font-weight: bold;" type='text' name='check' maxlenght='8' value="SMS kod..."/><br /><br>
<b><span style="font-size: 11px">Usługa</span></b><br />
<select style="cursor: pointer; border-style:dashed; color:white; background-color:#000000; width: 115px; text-align:center; font-size:9px; font-weight: bold;" name="usluga">
<option value="pacc7">Pacc na 7 dni</option>
<option value="pacc14">Pacc na 14 dni</option>
<option value="pacc30">Pacc na 30 dni</option>
<option value="item1">Plate Armor</option>
</select><br /><br />
<input style="text-align:center; font-size:9px; font-weight: bold;" type='submit' onclick="return confirm('UWAGA! Je¶li jeste¶ pewien, że postać jest wylogana kliknij OK.')" value='Zamawiam!'/></form></center>
<br>
</div>
</div>
</div>
<div style="clear:both;"></div><br>
<div class="menutopp">Created by <a href="http://iceskull.no-ip.pl">DeGhost</a>.<br><?php echo $serv; ?> 2008 ©</div>
<?php include ("include/reklama.php");?>
</div>
</body>
</html>
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<?php include 'config.php'; ?>
<meta http-equiv="Content-Language" content="pl" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
<meta name="author" content="DeGhost" />
<meta http-equiv="Reply-to" content="[email protected]" />
<title><?php echo $title; ?></title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="topmen">
<div class="menutop">
<div direction="center"><?php include 'uptime.php'; ?></div>
</div></div>
<div id="podstawa">
<div class="logo"></div>
<div class="menulogo">
<?php include ("include/menu1.php");?>
</div>
<div id="menu">
<div class="newmenu"></div>
<div class="srodek">
<div class="tekst">
<?php include ("include/account_login.php");?>
<h5><a href="account_create.php">+ Rejestracja</a></h5>
</div>
</div>
<div class="newmenuu"></div>
<div class="srodek">
<div class="tekst">
<?php include ("include/menu2.php");?>
</div>
</div>
<div class="newmenuuu"></div>
<div class="srodek">
<div class="tekst">
<?php include ("include/menu3.php");?>
</div>
</div>
</div>
<div id="nius">
<div class="newsman">Rejestracja</div>
<div class="srodekniusa">
<div class="teksts">
<?
include("config.php");
$error = 0;
$account = $_POST['account'];
$password = $_POST['password'];
if (isset($account) && isset($password) && $account != "" && $password != "") {
if ($account == "111111" || $account == "1") {
echo "<h2>Uwaga:</h2><p>Z powodu nieprzestrzegania regulaminu ten numer konta jest zablokowany!</p>";
$error = 1;
}
if (strlen($account) < 6 || strlen($account) > 8 || strlen($password) < 5) {
echo "<h2>Bł±d:</h2><p>Proszę wypełniać formularz poprawnie!</p>";
$error = 1;
} else if (!is_numeric($account)) {
echo "<h2>Bł±d:</h2><p>Twój numer konta musi mieć od 6 do 8 Cyfr!</p>";
$error = 1;
} else {
$temp = strspn("$password", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890 ");
if ($temp != strlen($password)) {
echo "<h2>Bł±d:</h2><p>Twoje chasło musi składać się z minimum 5 liter lub liczb (ABC, abc, 123 i blankspaces)!</p>";
$error = 1;
} else {
if ($error == 0) {
if (!file_exists($diraccount . $account . ".xml")) {
$file = fopen($diraccount . $account . ".xml", "w");
$output ="<?xml version=\"1.0\"?>
<account pass=\"" . $password . "\" type=\"1\" premDays=\"" . $premdays . "\">
<characters>
</characters>
</account>";
fwrite($file, $output);
$created = true;
session_unset();
?>
<h2>Gratulacje:</h2><p>Twoje konto zostało utworzone. Zaloguj się <a href="index.php">tutaj</a>, aby utworzyć now± postać.</p>
<?
}
}
}
}
} else {
if ($account != "") {
?>
<h2>Bł±d:</h2><p>Przepraszamy, ale ten Numer Konta jest niewła¶ciwy. Proszę spróbować ponownie.</p>
<?
}
}
if ($created != true) {
?>
<form action="<?=$PHP_SELF?>" method="POST">
<div style="color:#a0d337; font-size:14px; text-align:center;">Numer Konta:<br>(musi zawierać od 6 do 8 cyfr)</div>
<div style="margin-left: 155px;"><input name="account" type="text" value="" maxlength="<? echo $sizeacc; ?> class="textfield"></div>
<div style="color:#a0d337; font-size:14px; text-align:center;">Hasło:<br>(musi zawierać od 6 do 8 liter bońć cyfr)</div>
<div style="margin-left: 155px;"><input name="password" type="password" value="" class="textfield"></p></div>
<p><div style="margin-left: 138px;"><input type="Submit" value="Utwórz Konto">
<input type="Reset" value="Wyczyść"></div></p>
</form>
<?
}
$acc_tot = 0;
$dir = @opendir($diraccount);
if( $dir ) {
while(readdir($dir)) {
$acc_tot += 1;
}
} else {
$acc_tot = 'n/a';
}
$player_tot = 0;
$dir = @opendir($dirplayer);
if( $dir ) {
while(readdir($dir)) {
$player_tot += 1;
}
} else {
$player_tot = 'n/a';
}
echo ("<p><div style=\"margin-left: 75px;\">Aktualnie na serwerze jest $acc_tot Kont a w tym $player_tot Postaci!</div></p>");
?>
</div>
</div>
</div>
<div style="clear:both;"></div><br>
<div class="menutopp">Created by <a href="http://iceskull.no-ip.pl">DeGhost</a>.<br><?php echo $serv; ?> 2008 ©</div>
<?php include ("include/reklama.php");?>
</div>
</body>
</html>
Last edited: