Ok i did take my private time to make one for you lazy idiots thats requesting this so just be happy.
Now this does not store cokies cause i dint bother doing that if someone else wants to feel free to make anotherone with that stores cokies. BUT YOU MUST RELEASE IT HERE TO EVERYONE OR YOU ARE NOT ALLOWED TO USE MY SCRIPT.
Please leave the "Made by FrOn|X" line
As i said this script does not block 12 hour voting im not going to make that
Edit your reward item on line 17
This can be useful for you who wants to make the cokie thing
and this
Now this does not store cokies cause i dint bother doing that if someone else wants to feel free to make anotherone with that stores cokies. BUT YOU MUST RELEASE IT HERE TO EVERYONE OR YOU ARE NOT ALLOWED TO USE MY SCRIPT.
Please leave the "Made by FrOn|X" line
As i said this script does not block 12 hour voting im not going to make that
Edit your reward item on line 17
PHP:
<?php
$user="root";
$password="PASSS!!!";
$database="CHARDB"; //Your character database
if(($_COOKIE['vote']) != '1')
{
if(!empty($_POST['name']))
{
mysql_connect(localhost,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$name = mysql_real_escape_string($_POST['name']);
$query="SELECT * FROM characters WHERE name='$name' LIMIT 1";
$result = mysql_query($query);
if($row = mysql_fetch_array($result))
{
@@ $guid = $row['guid'];
@@ $item = YOUR REWARD ITEM!!;
@@ mysql_query("INSERT INTO mailbox_insert_queue(sender_guid, receiver_guid, subject, body, stationary, money, item_id, item_stack) VALUES ($guid, $guid, 'Thankyou for voting for Ghost WoW', 'Use this item to get vote rewards from the votereward vendors in the malls. Vote again in 12 hours', 0, 0, $item, 1)");
echo "Thank you for voting!";
echo "<script language=javascript>setTimeout(\"location.href='" . "http://www.xtremetop100.com/in.php?site=1132219819" . "'\",3000);</script>";
}
else
{
echo "A char with that name was not found.";
}
mysql_close();
}
else
{
?>
Vote for Ghost WoW Here and get rewarded! <br />
<form method='post' action='vote.php'>
Character Name:<input type='text' name='name' />
<input type='submit' value='Vote!' />
</form>
<p>
<?php
}
}
else
{
echo "You already voted! You can vote once every 12 hours. Thank you :)";
}
?>
</p>
<p> </p>
<p>Made by FrOn|X</a></p>
This can be useful for you who wants to make the cokie thing
Code:
CREATE TABLE `votecokie` (
`acct` int(10) NOT NULL,
`timeleft` int(11) NOT NULL,
PRIMARY KEY (`acct`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
and this
PHP:
<?php
setcookie('vote', '1', time() + 43200);
?>
<script language='javascript'>
setTimeout("location.href='http://www.xtremetop100.com/in.php?site=1132219819'",1);
</script>