Register for your free account! | Forgot your password?

You last visited: Today at 23:42

  • Please register to post and access all features, it's quick, easy and FREE!

 

Vote For Silk

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 34
Received Thanks: 0
Vote For Silk

Does anyone have a working Vote For Silk script that they could release?



cjmwid is offline  
Old   #2
 
elite*gold: 0
Join Date: Nov 2011
Posts: 333
Received Thanks: 186
vote for silk = ****


ThElitEyeS is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 34
Received Thanks: 0
how is it ****?
cjmwid is offline  
Old   #4
 
elite*gold: 0
Join Date: Jul 2012
Posts: 195
Received Thanks: 59
players spam with mulitaccounts


puramixx+1 is offline  
Old   #5
 
elite*gold: 0
Join Date: Dec 2007
Posts: 45
Received Thanks: 14
its my work 100 safe and filtering for ip and date only you need to make 3 cloumn to TB_User

Quote:
<?php

if (isset($_POST['vote'])) {

$whatvote=$_POST['otelist'];

drawsilk($whatvote);

}
else{
echo '<div class="page-body newsblock">';
echo '<div class="news-title">';
echo 'Vote for silk:';
echo '</div>';
echo '<FORM method="Post">';
echo '<div class="news-content">';
echo '<SELECT name="otelist">';
echo '<option>Vote1</option>';
echo '<option>Vote2</option>';
echo '<option>Vote3</option>';
echo '</SELECT>';
echo '<input class="votebutton" name="vote" type=submit value="Give me my silk">';
echo '</FORM>';
echo '</div>';
echo '</div>';
}

function drawsilk($onvote){

if($onvote=="Vote1"){
$onvote="LastVote";
}else{
if($onvote=="Vote2"){
$onvote="LastVote1";
}
else{
$onvote="LastVote2";
}
}

$host = "host"; #db
$user = "sa";
$pass = "pw";
$db = "SRO_VT_ACCOUNT";
@$ip = $_SERVER['REMOTE_ADDR'];
@$connect = odbc_connect("Driver={SQL Server};Server={".$host."}; Database={".$db."}", "".$user."", "".$pass."") or die("<center><b style=\"border:1px dashed #FF0000;\">".str_replace("[Microsoft][ODBC SQL Server Driver][SQL Server]", "", odbc_errormsg())."</b></center>");
$username = $_SESSION['username'];

$check = odbc_exec($connect, "SELECT ".$onvote." FROM TB_User WHERE StrUserID = '".$username."'");
$cc = odbc_result($check,1);
$today = date("Y-m-d");
$counter = odbc_exec($connect, "SELECT count(".$onvote.") FROM TB_User WHERE ".$onvote."='".$today."' AND reg_ip= '".$ip."'");
print(odbc_result($counter,1));
if($today!=$cc && odbc_result($counter,1)<=0){

$query = odbc_exec($connect,"select silk_own from SK_Silk where JID = '".$_SESSION['JID']."'");
$silk = odbc_result($query,1);
$silk++;
odbc_exec($connect, "UPDATE SK_Silk SET silk_own='".$silk."' WHERE JID = '".$_SESSION['JID']."'");
odbc_exec($connect, "UPDATE TB_User SET ".$onvote."='".$today."' WHERE JID = '".$_SESSION['JID']."'");
odbc_exec($connect, "UPDATE TB_User SET reg_ip='".$ip."' WHERE JID = '".$_SESSION['JID']."'");
if($onvote=="LastVote"){
header("Location:http://www.sro-servers.com/index.php?do=vote&id=4856921");
}
else{
if($onvote=="LastVote1"){
header("Location:second URL ");
}else{
header("Location:third URL ");
}
else{
echo '<div class="page-body newsblock">';
echo '<div class="news-title">';
echo 'Today you voted!';
echo '</div>';
echo '<div class="news-content">';
echo '<a href="index.php">Return to main</a>';
echo '</div>';
echo '</div>';
}
}




?>


ocsi94 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Release] Vote For Free Silk - System
since the guy who created vote system told me he sold Silkroad online servers top list, sro servers and say he don't care anymore about it so decided...
25 Replies - SRO PServer Guides & Releases
[HELP]I need help to set vote for silk system
here is a pictures ..... http://i.epvpimg.com/XR5Ue.jpg http://i.epvpimg.com/ci55d.jpg vote_time should be replaced with something but...
0 Replies - SRO PServer Ask the Experts
FuseSro 80 cap partner of Playsro silk/h and vote 4 silk !
FuseSro 80 cap Silk/h and Vote for silk ! New cap lvl: 80 - Oldschool! Exp Rate: 15x Job Rate: 10x Gold Exp Rate: 15x Sox rate: 15x ...
12 Replies - SRO PServer Advertising
FuseSro 80 cap Silk/h and Vote for silk !
New cap lvl: 80 - Oldschool! Exp Rate: 15x Job Rate: 10x Gold Exp Rate: 15x Sox rate: 15x Great start items and Vote for silk! First...
1 Replies - SRO PServer - Discussions / Questions
Vote Silk
hello i want vote silk panel
0 Replies - SRO PServer Ask the Experts



All times are GMT +1. The time now is 23:42.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.