Problem mit Vote 4 Coins

03/24/2015 19:51 K.A.K.A.S.H.I#1
Ich habe ein Problem mit dem Vote 4 Coins script von 'ChuckNorris ich meine damit dieses: [Only registered and activated users can see links. Click Here To Register...]

Ich habe alles genauso gemacht wie es dort drinnen steht aber nach dem Voten nach 2 Minuten kommen keine Coins ich habe alles genau eintragen von MySQL Datenbank Benutzer bis Passwort aber es kommen einfach keine Coins.

Wäre nett, wenn mir jemand einen Grund nennen könnte, warum keine Coins kommen.
03/24/2015 21:04 Norri#2
Für doch einmal das Backend Script in der Konsole mit php aus um zu sehen ob ein PHP Fehler auftritt.
03/25/2015 11:42 K.A.K.A.S.H.I#3
Quote:
Originally Posted by Norri View Post
Für doch einmal das Backend Script in der Konsole mit php aus um zu sehen ob ein PHP Fehler auftritt.
Wie soll das funktionieren?
03/25/2015 11:47 NotEnoughForYou#4
Code:
php meinphp.php
03/25/2015 15:15 K.A.K.A.S.H.I#5
Quote:
Originally Posted by NotEnoughForYou View Post
Code:
php meinphp.php
Kommt die ganze Zeit nur : php: Command not found.
03/25/2015 20:07 Norri#6
Dann installiere auf deinen Server php-cli
03/26/2015 23:36 K.A.K.A.S.H.I#7
Quote:
Originally Posted by Norri View Post
Dann installiere auf deinen Server php-cli
Geht immer noch nicht.
03/28/2015 00:43 K.A.K.A.S.H.I#8
Habe immer noch das Problem, kann keiner Helfen?
03/28/2015 18:42 SolWayne#9
nimm einfach das script

PHP Code:
<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'); 
    
$VotePage = "http://www.topliste.*****************/";
    
$VoteBonusCoins    = 1000;

if(isset(
$_SESSION['user_id']) && checkInt($_SESSION['user_id'])) {
    
    
/*
     * Vote Page
     */
    
    /*
     * Check if User can vote
     */
    
$VoteLinkClick             = trim(mysql_real_escape_string(@$_REQUEST['f']));
    
$EnableVotePage            = true;
    
$ShowMSG                = false;
    
$SuccessMSG                = "";
    
    
$CheckPlayerVotes_SQL        = "SELECT * FROM homepage.account_votes WHERE account_id = '".$_SESSION['user_id']."'";
    
$CheckPlayerVotes_Query        = mysql_query($CheckPlayerVotes_SQL,$sqlServ)or die(mysql_error());
    
$CheckPlayerVotes_Result    = mysql_fetch_array($CheckPlayerVotes_Query);
    
    
/*
     * Insert Player's Vote-Log in homepage.account_votes, if non-existent mom
     */
    
if( $CheckPlayerVotes_Result['account_id'] != $_SESSION['user_id'] or empty($CheckPlayerVotes_Result['account_id']) ) {
        
$Account_AddVoteEntry        = "INSERT INTO homepage.account_votes 
                                            (account_id, last_vote_at, votes_given, coins_received, new_vote_at) 
                                        VALUES 
                                            ('"
.$_SESSION['user_id']."', '0', '0', '0', '0')";
        
        @
mysql_query($Account_AddVoteEntry,$sqlServ);
    }

    
mysql_free_result($CheckPlayerVotes_Query);
    
$CheckPlayerVotes_Query        = mysql_query($CheckPlayerVotes_SQL,$sqlServ);
    
$CheckPlayerVotes_Result    = mysql_fetch_array($CheckPlayerVotes_Query);
    
    
/*
     * Check if User has an entry in our Vote-Log Table
     */
    
if( $CheckPlayerVotes_Result['account_id'] == $_SESSION['user_id'] ) {
        
        
/*
         * Initialize Voting variables
         */    
        
$Player_LastVoteAt            = $CheckPlayerVotes_Result['last_vote_at'];
        
$Player_VotesGiven            = $CheckPlayerVotes_Result['votes_given'];
        
$Player_CoinsReceived        = $CheckPlayerVotes_Result['coins_received'];
        
$Player_NewVoteAt            = $CheckPlayerVotes_Result['new_vote_at'];
        
$TimeNow                    = time();
        
        
/*
         * Check if IP is already logged and can vote
         */
        
$IPCheck                    = false;
        
        
$_SERVER['REMOTE_ADDR']        = $_SERVER["HTTP_CF_CONNECTING_IP"];
        
$PlayerIP                    = $_SERVER['REMOTE_ADDR'];
        
$PlayerIPCheck_SQL            = "SELECT * FROM homepage.account_vote_ip WHERE ip = '$PlayerIP'";
        
$PlayerIPCheck_Query        = mysql_query($PlayerIPCheck_SQL,$sqlServ)or die(mysql_error());
        
$PlayerIPCheck_Result         = mysql_fetch_array($PlayerIPCheck_Query);
        
$VoteExpire                    = $PlayerIPCheck_Result['vote_expire'];
        
        if( 
mysql_num_rows($PlayerIPCheck_Query) <= 0 ) {
            
$InsertIPLogEntry_SQL    = "INSERT INTO homepage.account_vote_ip (ip, vote_expire) VALUES ('$PlayerIP', '0')";
            
$InsertIPLogEntry_Query    = mysql_query($InsertIPLogEntry_SQL,$sqlServ);
            
$VoteExpire = 0;
        } 
        
        
$next = $TimeNow * 1;
        if(
$next >= $VoteExpire)
            
mysql_query("UPDATE homepage.account_vote_ip SET vote_expire=0 where ip='$PlayerIP'",$sqlServ)or die(mysql_error());
        
$count_ip = mysql_fetch_object(mysql_query("SELECT count(ip) AS sum FROM homepage.account_vote_ip where ip='".$PlayerIP."' and vote_expire != 0;",$sqlServ))->sum;
        if(
$count_ip==0)
        {
        
            
/*
             * Check if Player is allowed to vote
             */
            
if( $TimeNow >= $Player_NewVoteAt == true ) {
                
                
/*
                 * Check if User has clicked on the Link
                 */
                
if( $VoteLinkClick == true ) {
                    
                    
/*
                     * Initialize new Vote-Log entry
                     */
                    
$NewVoteAt_Time        = $TimeNow + 60*60*12;
                    
$LastVoteAt_Time    = $TimeNow;
                    
$Player_VotesGiven    += 1;
                    
$NewCoinsAmount        = $Player_CoinsReceived + $VoteBonusCoins;
                    
                    
$NewVoteLog_SQL        = "UPDATE homepage.account_votes
                                              SET last_vote_at = '
$LastVoteAt_Time',
                                                  votes_given = '
$Player_VotesGiven', 
                                                  coins_received = '
$NewCoinsAmount',
                                                  new_vote_at = '
$NewVoteAt_Time'
                                                WHERE account_id = '"
.$_SESSION['user_id']."'";
                        
                        
$IPLog_SQL             = "UPDATE homepage.account_vote_ip 
                                                  SET vote_expire = '
$NewVoteAt_Time' 
                                                WHERE ip = '
$PlayerIP'";
                        
                        
/*
                         * Initialize Player Coins + Bonus for Voting
                         */
                        
$GetPlayerCoins_SQL        = "SELECT vote_coins FROM account.account WHERE id = '".$_SESSION['user_id']."'";
                        
$GetPlayerCoins_Query    = mysql_query($GetPlayerCoins_SQL,$sqlServ);
                        
$GetPlayerCoins_Result    = mysql_fetch_array($GetPlayerCoins_Query);
                        
                        
$PlayerCoins            = $GetPlayerCoins_Result['vote_coins'] + $VoteBonusCoins;
                        
                        
$PlayerNewCoins_SQL    = "UPDATE account.account 
                                                  SET vote_coins = 
$PlayerCoins 
                                                WHERE id = '"
.$_SESSION['user_id']."'";
                        
                        
/*
                         * Update Database entries
                         */
                        
mysql_query($NewVoteLog_SQL,$sqlServ);
                        
mysql_query($PlayerNewCoins_SQL,$sqlServ);
                        
mysql_query($IPLog_SQL,$sqlServ);
                        
                        
$EnableVotePage        = false;
                        
$ShowMSG            = true;
                        
$SuccessMSG            .= "Du wirst in kürze deine Vote-Coins erhalten, sobald du gevotet hast.<br>";
                        
                        
/*
                         * Redirect User to Vote Page
                         */
        
?>
        <script type="text/javascript" language="javascript">
        <!--
        window.location.href = '<? echo $VotePage; ?>';
        //-->
        </script>
        <?
                        
exit;
                    } else {
                        
$EnableVotePage     = true;
                }
            } else {
                
$EnableVotePage = false;
            }
        } else 
            
$EnableVotePage = false;
    }

    if( 
$EnableVotePage == true ) {
?>

<p class="meldung">
    Pro Vote erhältst du <?=$VoteBonusCoins;?> Vote-Coins!
    Missbrauch oder Bugusing wird mit<br>
    einem Bann von allen Account's bestraft!
</p>
<br>
<p>Um voten zu können, klicke auf dem folgenden Link: 
<a href="<? echo $_SERVER['PHP_SELF']; ?>?s=vote4us&f=true"><font color="red">Vote!</font></a></p>
<?
    
} else {
        if( 
$ShowMSG == true ) {
            echo 
"<p>$SuccessMSG</p>";
        } else {
            echo 
"<p>Du kannst nur alle 12 Stunden voten!</p>";
            echo 
"<br>";
            if( 
$Player_NewVoteAt > 0 ) {
                echo 
"<div align=\"center\">Du kannst um <br><b>". date("d.m.Y H:i:s", $Player_NewVoteAt) ."</b><br> Uhr wieder voten.</div>";
            }
        }
    }
} else {
    echo
'<p><font color="red">ACHTUNG:</font> Du bekommst nur Vote-Coins, wenn du auch eingeloggt bist!<br>
    <a href="'
.$VotePage.'"><img style="border: 0px;" src="http://www.topliste.*****************/buttons/vote_8_0.png"/></a></p>';
}

?>
<? 
} ?>
    </div>
    <div class="bottom"></div>
</div>