der script sicht so aus
PHP Code:
<?php
/**
* Vote 4 Coins Script for toplist.*****************
*
* Coded by .CHuckNorris
*
* @copyright .CHuckNorris 2013 All rights reserved
*/
$ID='1201'; // Enter side id here
$API_KEY='490a83cc1a9684b'; // Enter api key here
$REQUEST='votes';
$VoteCoins='2000'; // Enter coins to get here
$sqlServ = mysql_connect("???.???.??.???", "???", "????");
$topl_curl=curl_init();
curl_setopt($topl_curl, CURLOPT_URL,
'http://www.topliste.*****************/api?id=' . urlencode($ID) . '&request=' . urlencode($REQUEST) . '&vuid=9999');
curl_setopt($topl_curl, CURLOPT_HEADER, 0);
curl_setopt($topl_curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($topl_curl, CURLOPT_HTTPHEADER, array('X_APIKEY: ' . $API_KEY));
$topl_data=curl_exec($topl_curl);
$topl_info=curl_getinfo($topl_curl);
if (!curl_errno($topl_curl))
{
if ($topl_info['http_code'] == 200)
{
$Data=json_decode($topl_data, true);
foreach($Data as $vuid)
{
$PlayerNewCoins_SQL = "UPDATE account.account
SET coins = coins + ".$VoteCoins."
WHERE id = '".$vuid."'";
mysql_query($PlayerNewCoins_SQL, $sqlServ);
}
}
}
else
{
echo 'Curl error: ' . curl_error($topl_curl);
}
curl_close($topl_curl);
?>
PHP Code:
<?php
/**
* Vote 4 Coins Script for toplist.*****************
*
* Coded by .CHuckNorris
*
* @copyright .CHuckNorris 2013 All rights reserved
*/
?>
<div style="margin-top: 70px;" class="box">
<div class="top"></div>
<div class="middle">
<h3>Vote4Us</h3>
<div class="big-line"></div>
<?
date_default_timezone_set('Europe/Berlin');
$VoteLink = "http://www.topliste.*****************/in/2354-******-com.html"; // Edit VoteLink
$VotePage = $VoteLink . "?vuid=" . $_SESSION['user_id'];
$VoteBonusCoins = 2000;
if(!empty($_SESSION["user_id"])) {
?>
<p class="meldung">
Pro Vote erhältst du <?php echo $VoteBonusCoins; ?> Vote-Coins!
Missbrauch oder Bugusing wird mit<br>
einem Bann von allen Account's bestraft!<br />
<b>Nachdem du gevotet hast kann es bis zu 2 Minuten dauern bis du deine Coins erhälst!</b>
</p>
<br>
<p>Um voten zu können, klicke auf dem folgenden Link:
<a href="<?php echo $VotePage; ?>"><font color="red">Vote!</font></a></p>
<? } else { ?>
<p><font color="red">ACHTUNG:</font> Du bekommst nur Vote-Coins, wenn du auch eingeloggt bist!<br>
<a href="<?php echo $VoteLink;?>"><img style="border: 0px;" src="http://www.topliste.*****************/buttons/vote_8_0.png"/></a></p>
<?php } ?>
</div>
<div class="bottom"></div>
</div>







