Cod: Selectaţi tot
ALTER TABLE accounts.accounts
ADD COLUMN vote_zarkaplay datetime;Cod: Selectaţi tot
<?php
if(isset($_POST['secretkey']) && isset($_POST['ip']) && isset($_POST['custom']))
{
$secretkey = $_POST['secretkey'];
$ip= $_POST['ip'];
$custom = $_POST['custom'];
if($secretkey == "Your_Postback_Secret_Key")
{
$ip = getIp();
$co1 = mysql_query("Select Count(*) AS Numbers from account.account where (web_ip='".$ip."' or id=".$custom.") AND vote_zarkaplay > NOW() - INTERVAL 12 HOUR");
$c1 = mysql_fetch_object($co1);
$nr = $c1->Numbers;
if(!$nr)
{
mysql_query("Update account.account set vote_zarkaplay=NOW(), coins=coins+1 where id=".$custom."");
}
}
}
?>
<!-- Begin Zarkaplay - Top Private Servers-->
<a href="Your_Vote_Link" target="_blank">
<img src="https://zarkaplay.com/res/img/vote.jpg" border="0" alt="Zarkaplay - Top Private Servers" title="Zarkaplay - Top Private Servers">
</a>
<!-- End Zarkaplay - Top Private Servers-->Doneaza pentru ca server-ul tau sa fie premium.
Inlocuieste Your_Postback_Secret_Key cu codul secret de postback al server-ului. Il vei gasi pe https://zarkaplay.com/ in Dashboard -> Sageata in jos din dreptul numelui server-ului tau -> Edit.
Inlocuieste Your_Vote_Link cu link-ul tau de votare a server-ului la care mai adaugi &custom=id_user. Il vei gasi pe https://zarkaplay.com/ in Dashboard -> Sageata in jos din dreptul numelui server-ului tau -> Vote.
De pe fiecare cont si adresa de ip se va putea vota o data la 12 ore.
