1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
| <?php
include("sources/config.php");
include("sources/haut.php");
if($action == "verif")
{
$nom = $HTTP_POST_VARS["nom"];
$email = $HTTP_POST_VARS["email"];
$nom = strip_tags($nom);
$email = strip_tags($email);
//Configure les dates et les heures
$date= date("Y-m-d");
$heure= date("H:i:s");
$quipass= date("Y-m-d");
$heurepass= date("H:i:s");
if (empty($nom) || empty($email) || empty($pass))
{
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Les+champs+Pseudo+Email+Age+Ville+sexe+et+Mot+de+passe+sont+obligatoires+!\">";
exit;
}
if ($pass != $pass1)
{
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Les+mots+de+passe+ne+sont+pas+identiques+!\">";
exit;
}
if (strrpos($nom,' ') > 0)
{
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Aucun+espace+dans+l'identifiant+!\">";
exit;
}
if(!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email))
{
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Adresse+email+invalide+!\">";
exit;
}
$db = mysql_connect($host,$user,$pass);
mysql_select_db($base,$db);
$requete = mysql_db_query($base,"SELECT * FROM comptes WHERE nom='$nom'",$db) or die(mysql_error());
$num = mysql_num_rows($requete);
if($num!=0)
{
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Cet+identifiant+est+déjà+pris+!\">";
exit;
}
$requetem = mysql_db_query($base,"SELECT * FROM comptes WHERE email='$email'",$db) or die(mysql_error());
$numm = mysql_num_rows($requetem);
if($numm!=0)
{
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = ?msg=Cette+adresse+email+est+déjà+enregistrée+!\">";
exit;
}
else
$date = date("d/m/Y");
$sql = "insert into comptes (nom, avatar, pass, email, age, sexe, site, localite, date, heure, quipass, heurepass) values('$nom', 'http://www.masspoetiklove.com/EPS/images/neu.gif', '$pass', '$email', '$age', '$sexe', '$site', '$localite', '$date', '$heure', '$quipass', '$heurepass')";
mysql_query ($sql);
$sendto = "$email";
$subject = "Votre Compte Personnel sur Masspoetiklove";
$body = "Bonjour !\n\nVous venez d'ouvrir un compte sur Masspoetiklove !\nAfin de pouvoir vous connectez sur votre compte personnel, voici vos identifiants de connexion ainsi le rappel de vos informations:\n\nLogin : $nom\nPassword : $pass\nVotre age : $age\nVotre Ville : $ville\nSexe : $sexe\nVotre description : $description\n\nPensez à changer votre password régulièrement depuis votre compte pour des raisons de sécurité !\n\n DES VOTRE CONNECTION A L'ACCES MEMBRES N'OUBLIEZ PAS DE CHANGER LE MOT DE PASSE DANS Modifier vos informations\n\n\n____________________________________________________________________________________________\n\nCECI EST UN EMAIL AUTOMATIQUE ! NE REPONDEZ PAS ! AUCUNE REPONSE NE VOUS SERA RETOURNEE !\n\n____________________________________________________________________________________________\nMasspoetiklove.com";
$from = "$mail";
mail($sendto,$subject,$body,$from);
if($email_script == "yes")
{
mail("$mail","Un membre vient de s'inscrire","Bonjour !\n\nAujourd'hui, un nouveau membre vient de d'ouvrir un compte sur votre site !\n\nSon pseudo est : $nom\n\nRetrouvez toutes ces informations en vous connectant sur votre compte personnel.\n\nA bientôt !\n____________________________________________________________________________________________\n\nCECI EST UN EMAIL AUTOMATIQUE ! NE REPONDEZ PAS ! AUCUNE REPONSE NE VOUS SERA RETOURNEE !\n\n____________________________________________________________________________________________\nMasspoetiklove.com","$ad_email");
}
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL = index.php?msg=Un+email+contenant+vos+identifiants+vient+de+vous+être+envoyé+!\">";
}
?>
<form action="?action=verif" method="post" name="inscription" >
<table width="400" border="0" align="center" bgcolor="<? echo $colp;?>">
<tr>
<td>
<table width="100%" border="0">
<tr bgcolor="<? echo $cols;?>">
<td>
<div align="center"><b><font size="<? echo $size; ?>" face="<? echo $font; ?>" color="#FFFFFF">Inscription
pour devenir membre</font></b></div>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td width="55%"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Nom
:</b></font></td>
<td width="45%">
<input type="text" name="nom">
</td>
</tr>
<tr>
<td width="55%"><b><font size="<? echo $size; ?>" face="<? echo $font; ?>">Email
:</font></b></td>
<td width="45%">
<input type="text" name="email">
</td>
</tr>
<tr>
<td width="55%"> <font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Site
internet </b>(facultatif)<b> :</b></font></td>
<td width="45%">
<input type="text" name="site">
</td>
</tr>
<tr>
<td width="55%"> <font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Age :</b>(facultatif)<b> :</b></font></td>
<td width="45%"> <select name="age">
<option value="-">Personnel</option>
<option value="13" <?php if($age == "13 ans"){ echo "selected"; } ?>>13</option>
<option value="14" <?php if($age == "14 ans"){ echo "selected"; } ?>>14</option>
<option value="15" <?php if($age == "15 ans"){ echo "selected"; } ?>>15</option>
<option value="16" <?php if($age == "16 ans"){ echo "selected"; } ?>>16</option>
<option value="17" <?php if($age == "17 ans"){ echo "selected"; } ?>>17</option>
<option value="18" <?php if($age == "18 ans"){ echo "selected"; } ?>>18</option>
<option value="19" <?php if($age == "19 ans"){ echo "selected"; } ?>>19</option>
<option value="20" <?php if($age == "20 ans"){ echo "selected"; } ?>>20</option>
<option value="21" <?php if($age == "21 ans"){ echo "selected"; } ?>>21</option>
<option value="22" <?php if($age == "22 ans"){ echo "selected"; } ?>>22</option>
<option value="23" <?php if($age == "23 ans"){ echo "selected"; } ?>>23</option>
<option value="24" <?php if($age == "24 ans"){ echo "selected"; } ?>>24</option>
<option value="25" <?php if($age == "25 ans"){ echo "selected"; } ?>>25</option>
<option value="26" <?php if($age == "26 ans"){ echo "selected"; } ?>>26</option>
<option value="27" <?php if($age == "27 ans"){ echo "selected"; } ?>>27</option>
<option value="28" <?php if($age == "28 ans"){ echo "selected"; } ?>>28</option>
<option value="29" <?php if($age == "29 ans"){ echo "selected"; } ?>>29</option>
<option value="30" <?php if($age == "30 ans"){ echo "selected"; } ?>>30</option>
<option value="31" <?php if($age == "31 ans"){ echo "selected"; } ?>>31</option>
<option value="32" <?php if($age == "32 ans"){ echo "selected"; } ?>>32</option>
<option value="33" <?php if($age == "33 ans"){ echo "selected"; } ?>>33</option>
<option value="34" <?php if($age == "34 ans"){ echo "selected"; } ?>>34</option>
<option value="35" <?php if($age == "35 ans"){ echo "selected"; } ?>>35</option>
<option value="36" <?php if($age == "36 ans"){ echo "selected"; } ?>>36</option>
<option value="37" <?php if($age == "37 ans"){ echo "selected"; } ?>>37</option>
<option value="38" <?php if($age == "38 ans"){ echo "selected"; } ?>>38</option>
<option value="39" <?php if($age == "39 ans"){ echo "selected"; } ?>>39</option>
<option value="40" <?php if($age == "40 ans"){ echo "selected"; } ?>>40</option>
<option value="41" <?php if($age == "41 ans"){ echo "selected"; } ?>>41</option>
<option value="42" <?php if($age == "42 ans"){ echo "selected"; } ?>>42</option>
<option value="43" <?php if($age == "43 ans"){ echo "selected"; } ?>>43</option>
<option value="44" <?php if($age == "44 ans"){ echo "selected"; } ?>>44</option>
<option value="45" <?php if($age == "45 ans"){ echo "selected"; } ?>>45</option>
<option value="46" <?php if($age == "46 ans"){ echo "selected"; } ?>>46</option>
<option value="47" <?php if($age == "47 ans"){ echo "selected"; } ?>>47</option>
<option value="48" <?php if($age == "48 ans"){ echo "selected"; } ?>>48</option>
<option value="49" <?php if($age == "49 ans"){ echo "selected"; } ?>>49</option>
<option value="50" <?php if($age == "50 ans"){ echo "selected"; } ?>>50</option>
<option value="51" <?php if($age == "51 ans"){ echo "selected"; } ?>>51</option>
<option value="52" <?php if($age == "52 ans"){ echo "selected"; } ?>>52</option>
<option value="53" <?php if($age == "53 ans"){ echo "selected"; } ?>>53</option>
<option value="54" <?php if($age == "54 ans"){ echo "selected"; } ?>>54</option>
<option value="55" <?php if($age == "55 ans"){ echo "selected"; } ?>>55</option>
<option value="56" <?php if($age == "56 ans"){ echo "selected"; } ?>>56</option>
<option value="57" <?php if($age == "57 ans"){ echo "selected"; } ?>>57</option>
<option value="58" <?php if($age == "58 ans"){ echo "selected"; } ?>>58</option>
<option value="59" <?php if($age == "59 ans"){ echo "selected"; } ?>>59</option>
<option value="60" <?php if($age == "60 ans"){ echo "selected"; } ?>>60</option>
</select></td>
</tr>
<tr>
<td width="55%"> <font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Sexe :
</b>(facultatif)<b> :</b></font></td>
<td width="45%">
<select name="sexe" class="txt_box" id="sexe">
<option value="M" <?php if($sexe == "Masculin"){ echo "selected"; } ?>>Masculin</option>
<option value="F" <?php if($sexe == "Féminin"){ echo "selected"; } ?>>Féminin</option>
</select>
</td>
</tr>
<tr>
<td width="55%"> <font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Localité
</b>(facultatif)<b> :</b></font></td>
<td width="45%">
<input type="text" name="localite">
</td>
</tr>
<tr>
<td width="55%"><b><font face="<? echo $font; ?>" size="<? echo $size; ?>">Mot
de passe :</font></b></td>
<td width="45%">
<input type="password" name="pass">
</td>
</tr>
</tr> <tr>
<td width="55%"><font face="<? echo $font; ?>" size="<? echo $size; ?>"><b>Confirmation
du mot de passe :</b></font></td>
<td width="45%">
<input type="password" name="pass1">
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td>
<center><input type="submit" name="Submit" value="Valider"></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<table width="400" border="0" align="center" bgcolor="<? echo $colp;?>">
<tr>
<td>
<table width="100%" border="0">
<tr bgcolor="<? echo $cols;?>">
<td>
<div align="center"><b><font size="<? echo $size; ?>" face="<? echo $font; ?>" color="#FFFFFF">Informations</font></b></div>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td><font face="<? echo $font; ?>" size="<? echo $size; ?>"><?php echo $inscription; ?></font></td>
</tr>
</table>
</td>
</tr>
</table> |
Partager