Aanmeld script

Gestart doorKurdoo0 reacties36 weergaven

1 berichten · pagina 1 van 1

Kurdoo

Lid · Topicstarter

Berichten
259
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
heey,

ik wil dat je geen automatische wachtwoord krijgt maar meteen kan inloggen met de wachtwoord die je bij de formulier invult wie kan me verder helpen?
eventueel voor een vergoeding
hieronder zit de codee van wat ik nu heb.

[COLOR= #0000BB]<?php[/COLOR]
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]])){[/COLOR]
        [COLOR= #0000BB]$naam[/COLOR]     [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR]
        [COLOR= #0000BB]$email[/COLOR]     [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]];[/COLOR]
        [COLOR= #0000BB]$email2[/COLOR]  [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email2[/COLOR][COLOR= #007700]];[/COLOR]
        [COLOR= #0000BB]$reffer[/COLOR]  [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]refferal[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$dbres[/COLOR]     [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM `[users]` WHERE `login`="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$reffer[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
        [COLOR= #0000BB]$count[/COLOR]   [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$dbres[/COLOR][COLOR= #007700]);[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR] [URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]/^[A-Za-z0-9_-]{4,16}$/[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700])){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<tr><td class="content" colspan="2">Ongeldige gebruikersnaam</td></tr>[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR] CheckEmail[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700])){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<tr><td class="content" colspan="2">Ongeldige e-mail adres</td></tr>[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]$email2[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<tr><td class="content" colspan="2">Ongeldige e-mail adres</td></tr>[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR] [URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$reffer[/COLOR][COLOR= #007700]) &&[/COLOR] [COLOR= #0000BB]$count[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<tr><td class="content" colspan="2">Er bestaat geen speler met de naam : <strong>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$reffer[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]</strong></td></tr>[/COLOR][COLOR= #007700];
            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"inc/rndPass.class.php"[/COLOR][COLOR= #007700]);[/COLOR]
                    [COLOR= #0000BB]$pass[/COLOR][COLOR= #007700]=new[/COLOR] rndPass[COLOR= #007700]([/COLOR][COLOR= #0000BB]7[/COLOR][COLOR= #007700]);[/COLOR]
                    [COLOR= #0000BB]$pass[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$pass[/COLOR][COLOR= #007700]->[/COLOR]PassGen[COLOR= #007700]();[/COLOR]
                        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO `[users]`(`signup`,`login`,`pass`,`email`) 
                                     values(NOW(),"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]","[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$pass[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]","[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]")"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$count[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]){[/COLOR]
                                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE `[users]` 
                                             SET `respect`=`respect`+15 WHERE `login`="[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$reffer[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
                            }[/COLOR]

[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"Gangsta-life.nl"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"
                Beste "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/ucfirst"]ucfirst[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]",
                
                U heeft uw aangemeld voor : Gangstalife,
                Hier bij sturen wij een inloggegevens op,
                
                Naam: "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/ucfirst"]ucfirst[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]"
                Wachtwoord: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$pass[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"
                
                Wij wensen u veel speelplezier,
                
                Gangsta-life team"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"From: Gangsta-life"[/COLOR][COLOR= #007700]);[/COLOR]    
                
                        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<tr><td class="content" colspan="2">Je bent succesvol aangemeld, kijk in je inbox voor je login gegevens.</td></tr>[/COLOR][COLOR= #007700];            
            }
    }[/COLOR]
    
?>    
    <tr>
        <td class="content">Naam:</td>
        <td class="content"><input name="naam" type="text" size="32" maxlength="15" /></td>
    </tr>
    <tr>
        <td class="content">E-mail:</td>
        <td class="content"><input name="email" type="text" size="32" /></td>
    </tr>
    <tr>
        <td class="content">E-mail herhalen:</td>
        <td class="content"><input name="email2" type="text" size="32" /></td>
    </tr>
    <tr>
        <td class="content">Refferal:</td>
        <td class="content"><input name="refferal" type="text" size="32" /></td>
    </tr>
    <tr>
        <td class="content">Code:<img src="code.php" /></td>
        <td class="content"><input name="Code" type="text" size="32" maxlength="3" /></td>
    </tr>
    <tr>
        <td class="content" colspan="2" align="right"><input type="submit" name="submit" value=" Aanmelden "/></td>
    </tr>        
</table>
</form>
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren