Changeset 788
- Timestamp:
- 02/22/06 03:42:10 (7 years ago)
- File:
-
- 1 edited
-
bureau/class/functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bureau/class/functions.php
r784 r788 1 1 <?php 2 2 /* 3 $Id: functions.php,v 1. 8 2005/12/17 12:44:24benjamin Exp $3 $Id: functions.php,v 1.9 2005/12/18 09:50:59 benjamin Exp $ 4 4 ---------------------------------------------------------------------- 5 5 AlternC - Web Hosting System … … 127 127 /* Check a login mail */ 128 128 function checkloginmail($mail) { 129 if (!preg_match("/^[a-z ,A-Z,0-9,_,\.,:,\+,\-]+$/",$mail)) {129 if (!preg_match("/^[a-zA-Z0-9_\.:\+\-]+$/",$mail)) { 130 130 return false; 131 131 } else { … … 295 295 296 296 /* ----------------------------------------------------------------- */ 297 /** Crypte un mot de passe en clair en MD5 avec un salt aléatoire297 /** Hashe un mot de passe en clair en MD5 avec un salt aléatoire 298 298 * @param string $pass Mot de passe à crypter (max 32 caractères) 299 299 * @return string Retourne le mot de passe crypté … … 321 321 } 322 322 323 324 /* ----------------------------------------------------------------- */ 325 /** Echappe les caractères pouvant perturber un flux XML standard : 326 * @param string $string Chaine de caractère à encoder en valeur xml. 327 * @return string Retourne la chaîne modifiée si besoin. 328 * @access private 329 */ 330 function xml_entities($string) { 331 return str_replace("<","<",str_replace(">",">",str_replace("&","&",$string))); 332 } 333 323 334 ?>
Note: See TracChangeset
for help on using the changeset viewer.
