Jump to content
  • 0

[question]Vote reward php set up need help.


Question

Posted

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 = "";
?>

 

character.php

<?php include ('connect.php');?>
<form action="vote.php" method="POST">
<center>
Vote For <?php echo $srvrname; ?><br><br>
<input type="text" size="6" name="usrnum"><br>
<input type="submit" value="Vote">
<input type="hidden" name="charname" value="<?php echo $_GET['usr']; ?>">
</center>
</form>

 

characters.php

<?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'); ?>

 

top.php

<!doctype html>
<?php session_start(); ob_start(); include ('connect.php'); if ($_SERVER['REMOTE_ADDR'] != "85.74.73.205") { header ("Location: http://google.com"); } ?>
<html lang="en">
<head>
<style>

* {
font-family: Lucida Sans Unicode;
font-size: 13px;
color: red;
text-input: 5px;
}

body {

}

#container {
margin: 100px auto;
height: 300px;
width: 600px;
}

#bodyboxx {
height: 310px;
border: 2px solid red;
border-radius: 25px;
}

#footer {
clear: both;
margin-top: 20px;
}

#loginform {
margin-left: 20px;
border: 1px solid red;
border-radius: 25px;
width: 300px;
}

a[name="register"] {
margin-left: 40px;
}
</style>
</head>
<body>
<div id="container">


<div id="bodyboxx"><br>

 

bottom.php

<br></div>
<div id="footer">
<center><i><a href="http://l2ranksite.com">L2Ranksite.com</a></i></center>
</div>
</div>

</body>
</html>

 

4 answers to this question

Recommended Posts

  • 0
Posted

1on gia na rwtaw paei na pws den kserw kai pragmatika 8a to h8ela para polu na dw mia HLIKRINIS apantash apo kapion edw mesa, para to mono pou kanete einai na ka8este san kokoria na deite ena neo post kai amesws na riksete kapion meiwnektika, LF LOCK!

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Gaining attention on Instagram today is more competitive than ever. Whether you're a content creator, entrepreneur, or influencer, building a loyal audience is essential—but often slow. That’s why many users turn to free Instagram followers to kickstart their growth and establish credibility early. With services like GoupSocial, you no longer have to wait months to build traction. By using tools such as instagram followers panel free and free smm panels, you can gain real followers and reach your goals faster. Why Free Instagram Followers Make a Difference Let’s face it—numbers matter. A higher follower count directly affects how others see your brand or profile. When people visit your account and see a big audience, they’re more likely to trust you, follow you, and engage with your content. Here’s how free Instagram followers impact your account: ✅ Boosted credibility: People associate large followings with trust and value. ✅ Greater reach: The Instagram algorithm favors high-engagement accounts. ✅ Brand appeal: Businesses want to collaborate with profiles that already have visibility. ✅ Faster momentum: Platforms like instagram free followers panel eliminate slow, organic-only growth paths. Add tools like free ig likes every 24 hours, and you're not just growing—you’re staying active and visible across the platform. Top Benefits of Using Free Instagram Followers 1. Gain Social Proof Instantly When visitors see a high follower count, it validates your profile. Tools like idigic Instagram followers allow you to generate this social proof fast—without compromising on quality. 2. Consistent Engagement With Likes and Views Pairing followers with tools like free ig likes every 24 hours ensures your content gets seen and interacted with. The algorithm loves engagement, and this keeps your posts fresh and prioritized. 3. Easier Entry Into Explore Page Profiles with high engagement have a better shot at being featured on trending pages. Platforms like igtools followers can help drive those early signals Instagram uses to recommend content. 4. Save Time While Looking Organic Building your presence takes time—unless you have help. With instagram free followers 100 real services, your account grows quickly and still looks natural, without spammy or fake-looking numbers. 5. Attract Collaborations With Brands Businesses look for influencers who can amplify their message. When your profile has strong numbers—boosted via instagram free followers like and free smm panels—you’re more likely to land partnerships and deals. Is It Safe to Get Free Instagram Followers? Yes, if done correctly. The key is using trusted sources. Some platforms fill your profile with bots, which can get your account flagged or banned. That’s why services like GoupSocial are essential—they deliver real, safe engagement through tools like instagram followers panel free. With idigic Instagram followers or igtools followers, the goal isn’t just more numbers—it’s smart, consistent growth that Instagram’s algorithm can respect. How to Use GoupSocial to Get Free Instagram Followers Getting started is simple: 🖊️ Enter your Instagram username 🎯 Choose the number of followers you want 🚀 Click "submit" and watch your count increase in real time Whether you want to test the waters with a few followers or boost engagement with free ig likes every 24 hours, GoupSocial has the tools to help. The Power of Using Growth Tools Strategically Gaining traction with free Instagram followers isn’t about cheating the system—it’s about working smarter. Using platforms that offer instagram free followers 100 real ensures you don’t just inflate numbers, but also increase your influence. Tools like instagram free followers like, free smm panels, and instagram followers panel free create a foundation of trust, engagement, and visibility. It’s the perfect launchpad for creators who want to focus on content—not on chasing every new follower manually. Start Strong, Grow Smarter Instagram success is no longer reserved for those with large budgets. With the right tools, anyone can build influence. Free Instagram followers from reputable services like GoupSocial help you achieve fast, safe, and impactful growth. Use features like free ig likes every 24 hours, explore tools like idigic Instagram followers, and make use of instagram free followers like strategies to grow with confidence. The power to scale is in your hands—start now and watch your audience thrive.
    • Buying & Selling FFXIV FFXI Horizon Eden and other server
    • Buying & Selling Torn City Cash
    • Added: payment method MidTrans - for Indonesia MercadoPago - for Brazil and etc.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock