Inlogsysteem Site

Gestart doorFrozenflame7 reacties24 weergaven

8 berichten · pagina 1 van 1

Frozenflame

Lid · Topicstarter

Berichten
1.561
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik ben een site begonnen zoiets als bux.to. Registreren werkt helemaal niet. Kan iemand me helpen hiermee? En dan i.p.v PayPal adres. Een dutchleaderaccount. Want hij controleert automatisch of het PayPal adres klopt dus ik kan de tekst niet veranderen.

Hier de Url van de site http://bux.v3host.nl/. Ik heb hem al vertaald. En een forum gemaakt voor erbij. De beloning ligt rond de 0.50 punten!

Groeten,
FrozenFlame
0
Berichten
1.294
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
geef is php
0
Frozenflame

Lid · Topicstarter

Berichten
1.561
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Register.php

[COLOR= #0000BB]<?[/COLOR] 
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
?>
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]header.php[/COLOR][COLOR= #007700]);[/COLOR] ?>



[COLOR= #0000BB]<?[/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]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"usNick"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"usPass"[/COLOR][COLOR= #007700]]))
{[/COLOR]

?>

<b><a href="#" onClick="window.location.reload()">Reload Page</a></b>

[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>


[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700](); }[/COLOR] ?>



[COLOR= #0000BB]<?[/COLOR]



[COLOR= #FF8000]// incluimos archivos necesarios[/COLOR]

[URL="http://www.php.net/require"]require[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//require(admin/funciones.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]"username"[/COLOR][COLOR= #007700]])) {[/COLOR]
 
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]])!=[/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]texto[/COLOR][COLOR= #007700]])){[/COLOR] 

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br><br>SECURITY CODE ERROR... "[/COLOR][COLOR= #007700];[/COLOR] 

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
}[/COLOR]


[COLOR= #FF8000]// Declaramos las variables[/COLOR]

[COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"username"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"password"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$cpassword[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"cpassword"[/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]$cemail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"cemail"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$pemail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"pemail"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$country[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"country"[/COLOR][COLOR= #007700]];[/COLOR]


[COLOR= #FF8000]// comprobamos que no haya campos en blanco[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$country[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"U moet alles invullen!"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// sanitizamos las variables[/COLOR]

[COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] uc[COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$password[/COLOR] [COLOR= #007700]=[/COLOR] uc[COLOR= #007700]([/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$cpassword[/COLOR] [COLOR= #007700]=[/COLOR] uc[COLOR= #007700]([/COLOR][COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$cemail[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pemail[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$country[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$country[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// limitamos el numero de caracteres[/COLOR]

[COLOR= #0000BB]$username[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$password[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$email[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$country[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$country[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// comprobamos que tengan un minimo de caracteres[/COLOR]

minimo[COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]);[/COLOR]
minimopass[COLOR= #007700]([/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// ¿Coinciden las contraseñas?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Passwords Do Not Match"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// ¿Coinciden los emails?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Emails Do not Match"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// Comprobamos que sea un email valido[/COLOR]
ValidaMail[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// Comprobamos que sea un email valido[/COLOR]
ValidaMail[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700]);[/COLOR]





[COLOR= #FF8000]// Comprobamos que no se haya creado otra cuenta desde la misma ip[/COLOR]

[COLOR= #0000BB]$laip[/COLOR] [COLOR= #007700]=[/COLOR] getRealIP[COLOR= #007700]();[/COLOR]


[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$laip[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #DD0000]"127.0.0.1"[/COLOR][COLOR= #007700])
{[/COLOR]

    [COLOR= #0000BB]$checkip[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT ip FROM tb_users WHERE ip=$laip"[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$ip_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkip[/COLOR][COLOR= #007700]);

}[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ip_exist[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Error: U heeft een account gemaakt."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// Comprobamos que el nombre de usuario, email y el email de paypal no existan[/COLOR]

[COLOR= #0000BB]$checkuser[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT username FROM tb_users WHERE username=$username"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$username_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkuser[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$checkemail[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT email FROM tb_users WHERE email=$email"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$email_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkemail[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$checkpemail[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT pemail FROM tb_users WHERE pemail=$pemail"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pemail_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkpemail[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$email_exist[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]|[/COLOR][COLOR= #0000BB]$username_exist[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Username or Email Already in Use."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$pemail_exist[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Uw dutchleader account is al in gebruik."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// Si se ha introducido un referer comprobamos que exista[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"referer"[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]

[COLOR= #FF8000]// Sanitizamos la variable[/COLOR]

[COLOR= #0000BB]$referer[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"referer"[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$referer[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$referer[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$checkref[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT username FROM tb_users WHERE username=$referer"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$referer_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkref[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$referer_exist[/COLOR][COLOR= #007700]<[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #FF8000]// En caso de no existir el referer damos un mensaje de error[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Error: Deze refferal bestaat niet."[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR][URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]// Si todo parece correcto procedemos con la inserccion[/COLOR]
      [COLOR= #0000BB]$sqlz[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM tb_users WHERE username=$referer"[/COLOR][COLOR= #007700];[/COLOR]
      [COLOR= #0000BB]$resultz[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sqlz[/COLOR][COLOR= #007700]);[/COLOR]        
      [COLOR= #0000BB]$myrowz[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultz[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$numero[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$myrowz[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"referals"[/COLOR][COLOR= #007700]];[/COLOR]

      [COLOR= #0000BB]$sqlex[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"UPDATE tb_users SET referals=$numero +1 WHERE username=$referer"[/COLOR][COLOR= #007700];[/COLOR]
      [COLOR= #0000BB]$resultex[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sqlex[/COLOR][COLOR= #007700]);
}

}[/COLOR]


[COLOR= #FF8000]// Si todo parece correcto procedemos con la inserccion[/COLOR]

[COLOR= #0000BB]$joindate[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/time"]time[/URL][COLOR= #007700]();[/COLOR]

[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"INSERT INTO tb_users (username, password, ip, email, pemail, referer, country, joindate) VALUES($username,$password,$laip,$email,$pemail,$referer,$country,$joindate)"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/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/echo"]echo[/URL] [COLOR= #DD0000]"U heeft de volgende account geregistreerd <b>$username</b>. Nu kunt u <a href="login.php">inloggen</a>."[/COLOR][COLOR= #007700];


}
}
}
}
}
}[/COLOR]

[COLOR= #FF8000]// En caso de no haber sido enviado los datos mostramos el formulario[/COLOR]

[COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]

?>
<div align="center"><div id="form">

<form action="register.php" method="POST">
<fieldset><legend>&nbsp;Alle velden invullen!&nbsp;</legend>

<table width="400" border="0" align="center">
  <tr>
    <td width="150" align="left"><p><label>Inlognaam</label></p></td>
    <td width="250" align="left"><input type=text size=15 maxlength=25 name=username autocomplete="off" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Wachtwoord</label></p></td>
    <td width="250" align="left"><input type="password" size="25" maxlength="15" name="password" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Bevestig Wachtwoord</label></p></td>
    <td width="250" align="left"><input type="password" size="25" maxlength="15" name="cpassword" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Email Adres</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="email" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Bevestig Email</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="cemail" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>PayPal Adres</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="pemail" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Land</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="country" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Refferal</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="15" name="referer" value="[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"r"[/COLOR][COLOR= #007700]]);[/COLOR] ?>" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Algemene Voorwaarden</label></p></td>
    <td width="250" align="left"><textarea rows="7" cols="25" readonly>
Lees a.u.b. zorgvuldig de regels van [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]sitename.php[/COLOR][COLOR= #007700]);[/COLOR] ?> door voordat u zich registreert. Wij hebben geprobeerd de regels zo min mogelijk te houden.

1)    Het verzenden van ongewenste mail om refferals te krijgen bij [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]sitename.php[/COLOR][COLOR= #007700]);[/COLOR] ?> is ten strengste verboden. Als wij dit weten wordt u meteen verbannen!

2)    U mag een account per IP adres hebben. Voordat wij uitbetalen wordt dit zorgvuldig gecontroleerd.

3)    U mag uw vrienden als refferal opgeven maar pas op! Een account per IP!.

4)    Alle betalingen worden verwerkt via Dutchleader! 

5)    U moet een geldig dutchleader account hebben om uitbetaald te worden.


                    </textarea></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Beveiligingscode:</label></p></td>
    <td width="250" align="left"><input type="text" size="5" maxlength="5" name="code" autocomplete="off" class="securitycode" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left">&nbsp;</td>
    <td width="250" align="left"><img src="image.php?[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$res[/COLOR][COLOR= #007700];[/COLOR] ?>" /></td>
  </tr>
  <tr>
    <td width="150" align="left">&nbsp;</td>
    <td width="250" align="right"><input type="submit" value="Registreer" class="submit" tabindex="4" />
    </td>
  </tr>
</table>
</form>
</fieldset>
</div></div>

[COLOR= #0000BB]<?[/COLOR]
[COLOR= #007700]}[/COLOR]
?>






[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>


Als iemand een account aanmaakt wordt hij niet geregistreert.
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
waarom kan ?k n?et ?nloggen
0
Frozenflame

Lid · Topicstarter

Berichten
1.561
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als ik inlog met je gegevens lukt het wel sadley Misschien vergeet de de beveiligingscode met hoofdletters te typen.
0
Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Frozenflame, hoe kom je aan die bux.to stuur mij de link ookyummie
0
Berichten
1.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
verder gewoon in dit, je moet gewoon Paypal gegevens veranderen in dutchleader account, de DL naam komt tog in de database voor en zokan jij zien wat zijn o fhaar dl acc is.

[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
?>
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]header.php[/COLOR][COLOR= #007700]);[/COLOR] ?>



[COLOR= #0000BB]<?[/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]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"usNick"[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_COOKIE[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"usPass"[/COLOR][COLOR= #007700]]))
{[/COLOR]

?>

<b><a href="#" onClick="window.location.reload()">Reload Page</a></b>

[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>


[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700](); }[/COLOR] ?>



[COLOR= #0000BB]<?[/COLOR]



[COLOR= #FF8000]// incluimos archivos necesarios[/COLOR]

[URL="http://www.php.net/require"]require[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]//require(admin/funciones.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]"username"[/COLOR][COLOR= #007700]])) {[/COLOR]
 
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]])!=[/COLOR] [URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]texto[/COLOR][COLOR= #007700]])){[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br><br>SECURITY CODE ERROR... "[/COLOR][COLOR= #007700];[/COLOR]

[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
}[/COLOR]


[COLOR= #FF8000]// Declaramos las variables[/COLOR]

[COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"username"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"password"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$cpassword[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"cpassword"[/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]$cemail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"cemail"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$pemail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"pemail"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$country[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"country"[/COLOR][COLOR= #007700]];[/COLOR]


[COLOR= #FF8000]// comprobamos que no haya campos en blanco[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]|[/COLOR][COLOR= #0000BB]$country[/COLOR][COLOR= #007700]==[/COLOR]NULL[COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"U moet alles invullen!"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// sanitizamos las variables[/COLOR]

[COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] uc[COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$password[/COLOR] [COLOR= #007700]=[/COLOR] uc[COLOR= #007700]([/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$cpassword[/COLOR] [COLOR= #007700]=[/COLOR] uc[COLOR= #007700]([/COLOR][COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$cemail[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pemail[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$country[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$country[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// limitamos el numero de caracteres[/COLOR]

[COLOR= #0000BB]$username[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$password[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$email[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$country[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$country[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// comprobamos que tengan un minimo de caracteres[/COLOR]

minimo[COLOR= #007700]([/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700]);[/COLOR]
minimopass[COLOR= #007700]([/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// ¿Coinciden las contraseñas?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #0000BB]$cpassword[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Passwords Do Not Match"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// ¿Coinciden los emails?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #0000BB]$cemail[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Emails Do not Match"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// Comprobamos que sea un email valido[/COLOR]
ValidaMail[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// Comprobamos que sea un email valido[/COLOR]
ValidaMail[COLOR= #007700]([/COLOR][COLOR= #0000BB]$pemail[/COLOR][COLOR= #007700]);[/COLOR]





[COLOR= #FF8000]// Comprobamos que no se haya creado otra cuenta desde la misma ip[/COLOR]

[COLOR= #0000BB]$laip[/COLOR] [COLOR= #007700]=[/COLOR] getRealIP[COLOR= #007700]();[/COLOR]


[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$laip[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #DD0000]"127.0.0.1"[/COLOR][COLOR= #007700])
{[/COLOR]

    [COLOR= #0000BB]$checkip[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT ip FROM tb_users WHERE ip=$laip"[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$ip_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkip[/COLOR][COLOR= #007700]);

}[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ip_exist[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Error: U heeft een account gemaakt."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// Comprobamos que el nombre de usuario, email y el email de paypal no existan[/COLOR]

[COLOR= #0000BB]$checkuser[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT username FROM tb_users WHERE username=$username"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$username_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkuser[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$checkemail[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT email FROM tb_users WHERE email=$email"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$email_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkemail[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$checkpemail[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT pemail FROM tb_users WHERE pemail=$pemail"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pemail_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkpemail[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$email_exist[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]|[/COLOR][COLOR= #0000BB]$username_exist[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Username or Email Already in Use."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$pemail_exist[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Uw dutchleader account is al in gebruik."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]


[COLOR= #FF8000]// Si se ha introducido un referer comprobamos que exista[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"referer"[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]

[COLOR= #FF8000]// Sanitizamos la variable[/COLOR]

[COLOR= #0000BB]$referer[/COLOR] [COLOR= #007700]=[/COLOR] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"referer"[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$referer[/COLOR][COLOR= #007700]=[/COLOR]limitatexto[COLOR= #007700]([/COLOR][COLOR= #0000BB]$referer[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]15[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$checkref[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT username FROM tb_users WHERE username=$referer"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$referer_exist[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkref[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$referer_exist[/COLOR][COLOR= #007700]<[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #FF8000]// En caso de no existir el referer damos un mensaje de error[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Error: Deze refferal bestaat niet."[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR][URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]();
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]// Si todo parece correcto procedemos con la inserccion[/COLOR]
      [COLOR= #0000BB]$sqlz[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM tb_users WHERE username=$referer"[/COLOR][COLOR= #007700];[/COLOR]
      [COLOR= #0000BB]$resultz[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sqlz[/COLOR][COLOR= #007700]);[/COLOR]        
      [COLOR= #0000BB]$myrowz[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultz[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$numero[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$myrowz[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"referals"[/COLOR][COLOR= #007700]];[/COLOR]

      [COLOR= #0000BB]$sqlex[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"UPDATE tb_users SET referals=$numero +1 WHERE username=$referer"[/COLOR][COLOR= #007700];[/COLOR]
      [COLOR= #0000BB]$resultex[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sqlex[/COLOR][COLOR= #007700]);
}

}[/COLOR]


[COLOR= #FF8000]// Si todo parece correcto procedemos con la inserccion[/COLOR]

[COLOR= #0000BB]$joindate[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/time"]time[/URL][COLOR= #007700]();[/COLOR]

[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"INSERT INTO tb_users (username, password, ip, email, pemail, referer, country, joindate) VALUES($username,$password,$laip,$email,$pemail,$referer,$country,$joindate)"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/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/echo"]echo[/URL] [COLOR= #DD0000]"U heeft de volgende account geregistreerd <b>$username</b>. Nu kunt u <a href="login.php">inloggen</a>."[/COLOR][COLOR= #007700];


}
}
}
}
}
}[/COLOR]

[COLOR= #FF8000]// En caso de no haber sido enviado los datos mostramos el formulario[/COLOR]

[COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]

?>
<div align="center"><div id="form">

<form action="register.php" method="POST">
<fieldset><legend>&nbsp;Alle velden invullen!&nbsp;</legend>

<table width="400" border="0" align="center">
  <tr>
    <td width="150" align="left"><p><label>Inlognaam</label></p></td>
    <td width="250" align="left"><input type=text size=15 maxlength=25 name=username autocomplete="off" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Wachtwoord</label></p></td>
    <td width="250" align="left"><input type="password" size="25" maxlength="15" name="password" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Bevestig Wachtwoord</label></p></td>
    <td width="250" align="left"><input type="password" size="25" maxlength="15" name="cpassword" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Email Adres</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="email" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Bevestig Email</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="cemail" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Dutchleader naam Account</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="pemail" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Land</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="100" name="country" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Refferal</label></p></td>
    <td width="250" align="left"><input type="text" size="25" maxlength="15" name="referer" value="[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] limpiar[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"r"[/COLOR][COLOR= #007700]]);[/COLOR] ?>" autocomplete="off" class="field" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Algemene Voorwaarden</label></p></td>
    <td width="250" align="left"><textarea rows="7" cols="25" readonly>
Lees a.u.b. zorgvuldig de regels van [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]sitename.php[/COLOR][COLOR= #007700]);[/COLOR] ?> door voordat u zich registreert. Wij hebben geprobeerd de regels zo min mogelijk te houden.

1)    Het verzenden van ongewenste mail om refferals te krijgen bij [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]sitename.php[/COLOR][COLOR= #007700]);[/COLOR] ?> is ten strengste verboden. Als wij dit weten wordt u meteen verbannen!

2)    U mag een account per IP adres hebben. Voordat wij uitbetalen wordt dit zorgvuldig gecontroleerd.

3)    U mag uw vrienden als refferal opgeven maar pas op! Een account per IP!.

4)    Alle betalingen worden verwerkt via Dutchleader!

5)    U moet een geldig dutchleader account hebben om uitbetaald te worden.


                    </textarea></td>
  </tr>
  <tr>
    <td width="150" align="left"><p><label>Beveiligingscode:</label></p></td>
    <td width="250" align="left"><input type="text" size="5" maxlength="5" name="code" autocomplete="off" class="securitycode" value="" tabindex="1" /></td>
  </tr>
  <tr>
    <td width="150" align="left">&nbsp;</td>
    <td width="250" align="left"><img src="image.php?[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$res[/COLOR][COLOR= #007700];[/COLOR] ?>" /></td>
  </tr>
  <tr>
    <td width="150" align="left">&nbsp;</td>
    <td width="250" align="right"><input type="submit" value="Registreer" class="submit" tabindex="4" />
    </td>
  </tr>
</table>
</form>
</fieldset>
</div></div>

[COLOR= #0000BB]<?[/COLOR]
[COLOR= #007700]}[/COLOR]
?>






[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
wel ch?l hoor geen l?nksepel l?nk gevenfrown
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