[Help] Vote Проблем

dMod

New Member
Joined
Jan 24, 2009
Messages
215
Reaction score
16
Имам следния проблем ,сложих екстрата като се гласува за сайта да дава кредити ,но мога да цъкам безкрайно и да ми дава кредити а не както си е през 12 часа с на БЗ уеба съм.

xtremevote.php

PHP:
<? include"_header.php"; ?>
<? check_user(); ?>      
<? include ('modules/xtremevote.php') ;?>
<? include("_footer.php"); ?>

modules/xtremevote.php

PHP:
<center>
<?php
include "conreal.php";


$id = (int)$_GET['id'];
if ($id >= "1")
{
    if ($id == "1")
    {
        $xtreme = "http://www.xtremetop100.com/in.php?site=1132273907";
    }

    if ($id == "2")
    {
        $xtreme = "http://www.gtop100.com/in.php?site=31799";
    }

    if ($id == "3")
    {
        $xtreme = "http://bgtop.net/help.php/1235494338";
    }

    if ($id == "4")
    {
        $xtreme = "http://www.mmorpgtop200.com/in.php?site=3446";
    }




    if ($_SESSION['user'] == false)
    {
        echo "<meta http-equiv=\"refresh\" content=\"0;url=$xtreme\" />";
    }
    else
    {
        $usercheto = $_SESSION['user'];


        echo "<font color='#FFFFFF'>";

        $usercheto = $_SESSION['user'];
        $time = time();
        $vrememinusedinden = $time - 43200;
        $ip = $_SERVER['REMOTE_ADDR'];
        $query = mssql_query("SELECT * from vote WHERE potrebitel='$usercheto' and site='$xtreme' and vreme>'$vrememinusedinden'");
        $broi = mssql_num_rows($query);
        if ($broi == "0")
        {

            $rand = rand(1, 5);
            $insert = mssql_query("INSERT INTO vote (potrebitel, vreme , site ) VALUES('$usercheto','$time','$xtreme')");
            $update = mssql_query("Update MEMB_CREDITS set credits = credits+$rand WHERE memb___id='$usercheto'");
        echo "<meta http-equiv=\"refresh\" content=\"0;url=$xtreme\" />";

        }
        else
        {
            echo "You can vote again after 12h.";
        }
        echo "</font>";
    }
}
else
{
    echo "<font color='#FFFFFF'>I Hate dudes...</font>";
}
?>
</center>

modules/user.php



PHP:
<?php require("config.php"); 



<?php require("config.php"); 

?>
<?
$account_id = stripslashes($_SESSION['user']);
$account_id = clean_var($account_id);

$sql_accountid_check = $db->Execute("select accountid from MuWeb_mail where accountid='$account_id'");
$sql_accountid_check_execute = $sql_accountid_check->numrows();
if($sql_accountid_check_execute <= 0){$sql_insert_account = $db->Execute("INSERT INTO MuWeb_mail (accountid) VALUES ('$account_id')");
$sql_insert_account2 = $db->Execute("INSERT INTO MuWeb_mail_store (accountid,store_inbox,store_sent) VALUES ('$account_id','0','0')");}
$sql_inbox_msg_check_script = $db->Execute("select read_msg from MuWeb_mail where accountid='$account_id' and inbox='inbox' and read_msg='0'"); 
$sql_inbox_msg_check = $sql_inbox_msg_check_script->numrows();
?>
<br />
<font color=black><b><u>За да спечелите от 1 до 3 кредите за Уеб шопа изпращайте линка по отдолу на вашите приятели  и т.н.</b></u></font>
<br />
<br />
<? include("modules/link.php");  ?>
<br />
<div align="center"><font color=black><b><u>За да спечелите м/у 1-5 кредита за уеб магазина ,моля гласувайте за нас ,като кликвате на долните картинки и продължите напреде с инструкцийте .</b></u></font>
<br />
<br />
<ul>
<a href="xtremevote.php?&id=1">
<img src="http://www.xtremeTop100.com/votenew.jpg" border="0" alt="Mu Online Free server">
<a href="xtremevote.php?&id=2">
<img src="http://www.gtop100.com/images/votebutton.jpg" border="0" alt="Mu Online Free server">
<a href="xtremevote.php?&id=3">
<img src="http://bgtop.net/images/logos/bg_top_logo3.gif" border="0" height="51" alt="Mu Online Free server">
<a href="xtremevote.php?&id=4">
<img src="http://www.mmorpgtop200.com/votenew.jpg" border="0" alt="Mu Online Free server">
</a></div>

<? include("modules/user/characters.php");  ?>

Греша ли някъде ?(angel)
 
Last edited:
Edit: Оправих се ,не съм направил таблица :D
 
щом си готов нека да заключват темата.. :)