View Single Post
  #2  
Old 04-28-2011, 01:36 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,682
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Hola darkenix!

Creo que entiendo lo que usted está tratando de decir. ¿Quieres comprobar si los usuarios están engañando a la creación de más de una cuenta en la misma IP?

En la actualidad el único lugar para ver IP de un usuario está en la tabla vote_voters, pero lo que puedes hacer es agregar el siguiente código a su página register.php. Usted tendrá que abrir la página en el bloc de notas o un editor similar y editar el código.

Buscar este pedazo de código en register.php:

PHP Code:
    $flag 0;
    
$query "SELECT * FROM ".$prefix."users WHERE username = '$username'";
    
$result = @runquery($query);
    
$num = @mysql_numrows($result); 
después de eso, copiar y pegar el siguiente:

PHP Code:
        $ip $_SERVER['REMOTE_ADDR']; 
        
$ip preg_replace("/[^a-zA-Z0-9@._-]/"""$ip);
        
$ip secure($ip);
 
    
$query "SELECT * FROM ".$prefix."vote_voters WHERE ip = '$ip' AND (username != '' OR username IS NOT NULL)";
    
$result = @runquery($query);
    
$num = @mysql_numrows($result);

    if(
$num 0){
    
$flag 1;
    } 

Lo que el código va a hacer es que se revise la tabla vote_voters y ver si la persona que registre una nueva cuenta ha hecho clic en un adopten en virtud de un nombre de usuario diferente. Si la IP se corresponde con una ip en la tabla vote_voters y hay un nombre de usuario aparecerán junto a ella, entonces no permitirá que el tramposo para registrar una nueva cuenta. No va a detener todas las trampas, pero va a parar la mayor parte de ella.

----

Hi darkenix!

I think I understand what you are trying to say. You want to check to see if users are cheating by creating more than one account on the same IP?

Currently the only place to see a user's IP is in the vote_voters table, but what you can do is add the following code to your Register.php page. You will need to open up the page in notepad or a similar editor and edit the code.

Find this piece of coding in register.php:
PHP Code:
    $flag 0;
    
$query "SELECT * FROM ".$prefix."users WHERE username = '$username'";
    
$result = @runquery($query);
    
$num = @mysql_numrows($result); 
after that, copy and paste the following:
PHP Code:
        $ip $_SERVER['REMOTE_ADDR']; 
        
$ip preg_replace("/[^a-zA-Z0-9@._-]/"""$ip);
        
$ip secure($ip);
 
    
$query "SELECT * FROM ".$prefix."vote_voters WHERE ip = '$ip' AND (username != '' OR username IS NOT NULL)";
    
$result = @runquery($query);
    
$num = @mysql_numrows($result);

    if(
$num 0){
    
$flag 1;
    } 
What this code will do is it will check the vote_voters table and see if the person registering a new account has clicked an adopt under a different user name. If the ip does match an ip in the vote_voters table and there is a username listed with it, then it will not allow the cheater to register a new account. It won't stop all cheating, but it will stop most of it.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote