exw ton parakato kwdiko alla den kserw pws na ton kanw na doulevei. mporei kapios na mou pei pws? euxaristw.
index.php
<?php include ('top.php'); ?>
<?php
if (empty($_SESSION['user'])) {
echo "<i>Welcome, Guest.<br>You can use the login form below in order to vote for our server and get rewarded<br>Remember, you can only vote once a day AND YOU HAVE TO BE OFFLINE.</i><br><br>";
echo "<div id='loginform'><br><form action='' method='POST'>
<table>
<tr><td>Username: </td><td><input type='text' name='username'/></td></tr>
<tr><td>Password: </td><td><input type='password' name='password'/></td></tr>
<tr><td><input type='submit' name='submit' value='Login'/></td></tr>
</table>
</form><br></div>
";
}
else {
$user = $_SESSION['user'];
header ("Location: characters.php");
}
?>
<?php
if (isset($_POST['submit'])) {
$username = $_POST['username'];
$password = $_POST['password'];
$password = base64_encode( pack( "H*", sha1( utf8_encode( $password))));
$check = mysql_num_rows(mysql_query("SELECT * FROM accounts WHERE login='".$username."' AND password='".$password."'"));
if ($check != 0) {
$_SESSION['user'] = $username;
header ("Location: index.php");
}
else {
echo "<br><i>Wrong password and username combination.</i>";
}
}
?>
<?php include ('bottom.php') ?>
vote.php
<?php include ('connect.php');?>
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$character = $_POST['charname'];
if ($srvrid != "") {
if ($character) {
$page = file_get_contents('http://l2ranksite.com/application.php?id=$srvrid&ip=$ip');
$check1 = explode("<div id='ip'>", $page);
$check1 = explode("</div>", $check1[1]);
$check1 = $check1[0];
if ($check1 == 1) {
$check2 = explode("<div id='serverid'>", $page);
$check2 = explode("</div>", $check2[1]);
$check2 = $check2[0];
if ($check2 == 1) {
//
if ($character && $itemid && $count) {
$check_one = mysql_num_rows(mysql_query("SELECT * FROM characters WHERE char_name='".$character."'"));
if ($check_one != 0) {
$check_two = mysql_num_rows(mysql_query("SELECT * FROM etcitem WHERE item_id='".$itemid."'"));
if ($check_two != 0) {
$row = mysql_fetch_assoc(mysql_query("SELECT * FROM characters WHERE char_name='".$character."'"));
$obj_id = $row[obj_Id];
mysql_query("INSERT INTO items VALUES ('".$obj_id."', '', '".$itemid."', '".$count."', '0', 'INVENTORY', '0', '0', '0', '0', '0', '-1')");
echo "<b>You have been rewarded.</b>";
}
else {
echo "<b>This item does not exist.</b>";
}
}
else {
echo "<b>This character does not exist.</b>";
}
}
//
}
else {
echo "Wrong server id.";
}
}
else {
echo "You have already voted.";
}
}
else {
echo "A problem is occured";
}
}
else {
echo "The server id is missing!";
}
?>
connect.php
<?php
$connect = mysql_connect("localhost", "root", "password");
mysql_select_db("l2jdb", $connect);
//servername
$srvrname = "l2jserver";
//your server id
// it is the name of the folder where your server is in our ranking list
$srvrid = "";
//reward
$itemid = ""
$count = "";
?>
<?php include ('top.php'); if (empty($_SESSION['user'])) { header ("Location: index.php"); } ?>
<?php
$query = mysql_query("SELECT * FROM characters WHERE account_name='".$_SESSION['user']."'");
if (mysql_num_rows($query) != 0) {
echo "<div id='loginform'><br><i>Characters:</i><br>";
while ($char = mysql_fetch_assoc($query)) {
echo "<a href='character.php?usr=$char[char_name]'>$char[char_name]</a><br>";
}
echo "<br></div>";
}
else
echo "<i>You don't have any characters. In order to create one, you have to login into the game. Go <a href='index.php'>Home</a>.</i>";
?>
<?php include ('bottom.php'); ?>
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
Question
george199
exw ton parakato kwdiko alla den kserw pws na ton kanw na doulevei. mporei kapios na mou pei pws? euxaristw.
index.php
vote.php
connect.php
character.php
characters.php
top.php
bottom.php
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.