Register for your free account! | Forgot your password?

You last visited: Today at 12:41

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

Advertisement



Metin2 Vote4Coins

Discussion on Metin2 Vote4Coins within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2013
Posts: 886
Received Thanks: 138
Metin2 Vote4Coins

Hallo,

Bin auf der suche nacht eine Vote 4 Script kennt da jemand ein gutes ?
OliviaIchLiebeDichx3 is offline  
Old 07/15/2013, 16:21   #2



 
elite*gold: 0
The Black Market: 264/0/0
Join Date: Jul 2012
Posts: 24,494
Received Thanks: 3,215
Kann dir da dieses empfehlen
Sintiax is offline  
Old 07/15/2013, 19:59   #3
 
elite*gold: 0
Join Date: Jun 2013
Posts: 886
Received Thanks: 138
Kann mir da jemand helfen das von .Tobias einfügen etc `?
OliviaIchLiebeDichx3 is offline  
Old 07/15/2013, 21:57   #4
 
Skyui's Avatar
 
elite*gold: 15
Join Date: May 2013
Posts: 1,718
Received Thanks: 245
Quote:
Originally Posted by waixer'
Kann dir da dieses empfehlen
[Release] Vote 4 Coins (Besseres) (Extern) up to 5 Vote-Sites!
Bei diesem muss man aber nicht Voten um seine Coins zu bekommen.
Skyui is offline  
Old 07/15/2013, 22:06   #5
 
Toxiko's Avatar
 
elite*gold: 5
Join Date: Mar 2013
Posts: 559
Received Thanks: 170
Nimm das hier es prüft ob du votest und gibt dir dann erst die coins. Muss dazu sagen es ist nicht von mir.

PHP Code:
<div class="con-top">Vote4Coins</div>
<div class="con-mid">

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
function votepopup(url) {
    $("#button").val("Ich bin fertig mit voten!");
    $("#form").attr("onsubmit","")
    fenster = window.open(url, "Vote4Coins", "width=698,height=530,status=yes,scrollbars=yes,resizable=yes");
    fenster.focus();
}
</script>

<?php

if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {

class 
Vote {

    
// -------------------------------
    // BITTE HIER ALLE DATEN ANPASSEN!
    // -------------------------------

    
var $config = array(
        
// Wie Viel Coins bekommt man fürs Voten ?
        
'coins'         =>  3,
        
// Account Daten von *******************
        
'id'            =>  'tester77',
        
'email'         =>  '',
    );
    

    public function 
do_vote() {
        
$url 'http://www.*******************/API.php?ID=' $this->config['id'] . '&email=' $this->config['email'] . '&name=' $_SESSION['user_name'];
        
$topl_curl curl_init();
        
curl_setopt($topl_curlCURLOPT_URL$url);
        
curl_setopt($topl_curlCURLOPT_HEADER0);
        
curl_setopt($topl_curlCURLOPT_RETURNTRANSFER1);
        
curl_setopt($topl_curlCURLOPT_USERAGENT'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11');

        
$topl_data curl_exec($topl_curl);
        
$topl_info curl_getinfo($topl_curl);

        
//echo $topl_data;

        
if (!curl_errno($topl_curl)) {
            if (
$topl_info['http_code'] == 200) {
                
$data_json json_decode($topl_datatrue);
                
$time strtotime($data_json['result']['time']);
                if (
$data_json['result']['status'] == '2' || (time() - $time) < (3600 18) && $time != 0) {
                    
$seconds $time + (3600 18) - time();
                    
$hours floor($seconds 3600);
                    
$mins floor(($seconds - ($hours*3600)) / 60);
                    
$secs floor($seconds - ($hours*3600 - ($mins*60)));
            
                    echo 
'Du hast bereits gevotet(' json_encode($data_json['result']) . '). Du kannst erst wieder in ' $hours ' Stunden, ' $mins ' Minuten und ' $secs .' Sekunden voten!.<br/><br/><small>(<a href="#" onclick="votepopup(\'' 'http://www.*******************/vote.htm?id=' $this->config['id'] . '&name=' $_SESSION['user_name'] . '\'); return false;">Votefenster ausversehen geschlossen?</a>)</small>';
                } elseif (
$data_json['count'] == '0') {
                    echo 
'Du hast nicht gevoted!<br/><br/><small>(<a href="#" onclick="votepopup(\'' 'http://www.*******************/vote.htm?id=' $this->config['id'] . '&name=' $_SESSION['user_name'] . '\'); return false;">Votefenster ausversehen geschlossen?</a>)</small>';
                } else {
                    
print_r($data_json);
                    echo 
'Danke füs voten, dir wurden ' $this->config['coins'] . ' Coins gutgeschrieben.';
                    
mysql_query("UPDATE account.account SET `cash` = (`cash` + " $this->config['coins'] . "), `lastvote` = '" time() . "' WHERE `login` LIKE '" $_SESSION['user_name'] . "' LIMIT 1");
                }
            } else {
                echo 
'Es ist ein Fehler Aufgetreten. Bitte ServerAdmin kontaktieren. Fehler Code: 2';
            }
        } else {
            echo 
'Es ist ein Fehler Aufgetreten. Bitte ServerAdmin kontaktieren. Fehler Code: 1';
        }
        
curl_close($topl_curl);
    }

    
    public function 
vote_forms() {
        if (!isset(
$_POST['submit'])) {
            echo 
'<span style="color: red; font-weight: bold;"">Du bekommst Coins für jeden Vote! (alle 18 Stunden)</span><br /><br>Das Voten mit mehreren Accounts wird mit einer Account-Sperre bestraft.<br /><br />Die Coins werden erst nach dem Voten gutgeschrieben.<br>
                <a href="http://www.*******************/" target="_blank"><form id="form" method="post" action="" onsubmit="votepopup(\'' 
'http://www.*******************/vote.htm?id=' $this->config['id'] . '&name=' $_SESSION['user_name'] . '\'); return false;">
                    <input type="submit" name="submit" id="button" value="Jetzt voten!" style="background:red;border-radius:4px;width:200px;margin:0 auto;color:#fff;"/>
                </form></a>'
;
            
        } else {
            
$this->do_vote();
        }
    }

    public function 
cut_str($str$left$right) {
        
$str substr(stristr($str$left), strlen($left));
        
$leftLen strlen(stristr($str$right));
        
$leftLen $leftLen ? -($leftLen) : strlen($str);
        
$str substr($str0$leftLen);
        return 
$str;
    }

}


    
$vote = new Vote();
    
$vote->vote_forms();

} else {
    echo 
'<p class="meldung">Sie müssen für diesen Bereich angemeldet sein.</p>';
}

?>
</div>
<div class="con-bot"></div>
Toxiko is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Metin2 Vote4Coins Script
07/15/2013 - Metin2 Private Server - 0 Replies
Hallo, Kann mir jemand bitte helfen bei den V4C sript von .Tobias ? Das zu instalieren ? Mfg
Metin2 Vote4Coins Help
07/01/2013 - Metin2 Private Server - 4 Replies
Hey ich habe auf meinen server jetzt vote 4 coins eingefügt dann kam dieser fehler "Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/customers/webs/ni210623_1/voten/vote.php on line 51 Invalid query: No database selected Whole query: " was bedeutet das und wie kann ich es beheben?
Metin2 Vote4Coins Script
06/25/2013 - Metin2 Private Server - 0 Replies
Hallo , Ich suche ein Vote script wan man free downloden kann. Kennt ihr ein gutes? Mfg.



All times are GMT +2. The time now is 12:41.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.