Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 03:23

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

 

[RELEASE] Vote For Coins V2

Reply
 
Old   #16
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
Quote:
Originally Posted by Biomepamp View Post
Массовая испытание для СПАМ!!! Спааасибооо.
Volume check exchange for SPAM!!! Thaaanksss.
#reported



gedimazs is offline  
Old   #17

 
elite*gold: 35
Join Date: Aug 2009
Posts: 5,822
Received Thanks: 1,957
#deleted


~Kakkarot~ is offline  
Old   #18
 
elite*gold: 0
Join Date: Mar 2007
Posts: 134
Received Thanks: 10
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\vote.php on line 51
Quote:
<html>
<head>
<title>Vote Now!</title>
<style>
body { background-color: #202020;
color: yellow;
}
</style>
</head>
<body>
<?php
// Report all PHP errors (see changelog)
error_reporting(E_ALL);


//----------------------------------------------------------
// Give X coins
$coins = 25;

// Yout website after vote was successfull
// Add http:// in your list
$webpage = "http://www.google.com";

// Time needed to vote again
// You need to remove 1 minut from the time
// 720 should be 12hours
$time_needed = "719"; // in mintutes


// Insert your MSSQL info here
$mssql = array(
'host' => "5.228.62.50",
'user' => "sa",
'pass' => "1234"
);

// Insert your MYSQL info here
$mysql = array(
'host' => "5.228.62.50",
'user' => "sa",
'pass' => "12345",
'db' => "vote" // Do not change it the DB is vote
);

//---DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU KNOW WHAT YOU ARE DOING!! ---

function clean($str){
return is_array($str) ? array_map('clean', $str) : str_replace("\\", "\\\\", htmlspecialchars((get_magic_quotes_gpc() ? stripslashes($str) : $str), ENT_QUOTES));
}

$mslink = mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']);
$mylink = mysql_Connect($mysql['host'], $mysql['user'], $mysql['pass']);
mysql_select_db($mysql['db'],$mylink);
$ip = getenv("REMOTE_ADDR");
$httpref = getenv ("HTTP_REFERER");
$httpagent = getenv ("HTTP_USER_AGENT");
$account = clean($_POST['account']);
$date = date("Y-m-d G:i");

if (empty($account)){

echo '<SCRIPT LANGUAGE="JavaScript">alert("You didnt enter a account name! \n Please try again.")</script>';
echo "<script type='text/javascript'>window.location='votenow.php';</script>";


} elseif(!preg_match("/[0-9a-zA-Z]?/", $account)) {

echo '<SCRIPT LANGUAGE="JavaScript">alert("Incorrect account name format. \n Please try again.")</script>';
echo "<script type='text/javascript'>window.location='votenow.php';</script>";


} else {

$result1 = mssql_query("SELECT * FROM account.dbo.user_profile WHERE user_id = '".$account."'",$mslink);
$count1 = mssql_num_rows($result1);
$row1 = mssql_fetch_row($result1);

if($count1 == '0') {

echo '<SCRIPT LANGUAGE="JavaScript">alert("Account not found. \n Please try again.")</script>';
echo "<script type='text/javascript'>window.location='votenow.php';</script>";


} else {

$result2 = mssql_query("SELECT * FROM cash.dbo.user_cash WHERE user_no = '".$row1[0]."'",$mslink);
$count_coins = mssql_num_rows($result2);

if($count_coins == '0') {

echo '<SCRIPT LANGUAGE="JavaScript">alert("This account didnt visit the D-shop yet. \n You cannot recive your coins. \n Please login into the server, and visit the D-shop.")</script>';
echo "<script type='text/javascript'>window.location='votenow.php';</script>";

} else {


$result2 = mysql_query("SELECT * FROM users WHERE account = '".$account."' ");
$row2 = mysql_fetch_row($result2);
$count2 = mysql_num_rows($result2);

if($count2 == 1){

$voted_ip = $row2[2];
$voted_date = $row2[3];
$voted_id = $row2[0];
$voted_account = $row2[1];
$to_time = strtotime($voted_date);
$from_time = strtotime($date);

if (round(abs($to_time - $from_time) / 60,2) > $time_needed) {

$amount = $coins;
mysql_query("UPDATE users SET date = '".$date."' WHERE account = '".$account."' ");
mssql_query("UPDATE cash.dbo.user_cash SET amount = amount+".$amount." WHERE user_no = '".$row1[0]."'",$mslink);
echo '<SCRIPT LANGUAGE="JavaScript">alert("Thank you for you vote!")</script>';
echo "<script type='text/javascript'>window.location='$webpage';</script>";

} else {

echo '<SCRIPT LANGUAGE="JavaScript">alert("You cant vote anymore! \n Please try again later.")</script>';
echo "<script type='text/javascript'>window.location='votenow.php';</script>";

}

} else {
$amount = $coins;
$sql4 = mysql_query("INSERT INTO users (account,ip,date) VALUES ('".$account."','".$ip."','".$date."' ) ");
mssql_query("UPDATE cash.dbo.user_cash SET amount = amount+".$amount." WHERE user_no = '".$row1[0]."'",$mslink);
echo '<SCRIPT LANGUAGE="JavaScript">alert("Thank you for you vote!")</script>';
echo "<script type='text/javascript'>window.location='$webpage';</script>";

}
}
}
}
mysql_close($mylink);
mssql_close($mslink);
?>
</body>
</html>
Any help Janvier
NeedHelpAti is offline  
Old   #19
 
elite*gold: 0
Join Date: Sep 2010
Posts: 231
Received Thanks: 57
I just using triger source.
It's easy lol


4the is offline  
Old   #20
 
elite*gold: 0
Join Date: Mar 2007
Posts: 134
Received Thanks: 10
Quote:
Originally Posted by 4the View Post
I just using triger source.
It's easy lol
Rally how n where 4the??


NeedHelpAti is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Release] Dekaron Vote Script
With help of some other scripts i found a way to do it, vote ;) Its a little tricky but it should be easy Name: Vote Script (php) Download:...
47 Replies - Dekaron Private Server
[RELEASE]WoW-Vote Hack
WoW-Vote Hack Da ich keinen guten oder funktionierenden Vote-Hack für Private Server gefunden habe hab ich mal selber einen gemacht. Man gibt...
13 Replies - WoW PServer Exploits, Hacks & Tools
[RELEASE] 5165 attack bug fixed. and Vote npc!
Ok so Snow and Para (coders and owners of Conquer 3.0) are releasing a few codes to solve the bugs on all 5165 sources. The main and major bug...
27 Replies - CO2 PServer Guides & Releases
[RELEASE]Alert Message to vote for your server!
HMM... A noob code? Yes. But some peoples did not know JavaScript coder. This code makes appear a alert window, asking about vote for your server....
12 Replies - CO2 PServer Guides & Releases
[HELP]Script vote for coins
would like if possible that someone could help me with the sql script to vote for coins, teach me to use the script about it because I'm using layman...
1 Replies - Dekaron Private Server



All times are GMT +2. The time now is 03:23.


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

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