|
From: Jonathan H. <the...@us...> - 2002-01-03 15:09:26
|
Update of /cvsroot/phpbb/phpBB2/includes In directory usw-pr-cvs1:/tmp/cvs-serv21851 Modified Files: functions.php Log Message: Updated validate_username function for use with mysql4 Bug #497077 Index: functions.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v retrieving revision 1.100 retrieving revision 1.101 diff -C2 -r1.100 -r1.101 *** functions.php 2002/01/02 15:40:53 1.100 --- functions.php 2002/01/03 15:09:22 1.101 *************** *** 1,1204 **** ! <?php ! /*************************************************************************** ! * functions.php ! * ------------------- ! * begin : Saturday, Feb 13, 2001 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $Id$ ! * [...2404 lines suppressed...] ! ! // ! // this does exactly what preg_quote() does in PHP 4-ish: ! // http://www.php.net/manual/en/function.preg-quote.php ! // ! // This function is here because the 2nd paramter to preg_quote was added in some ! // version of php 4.0.x.. So we use this in order to maintain compatibility with ! // earlier versions of PHP. ! // ! // If you just need the 1-parameter preg_quote call, then don't bother using this. ! // ! function phpbb_preg_quote($str, $delimiter) ! { ! $text = preg_quote($str); ! $text = str_replace($delimiter, "\\" . $delimiter, $text); ! ! return $text; ! } ! ! ?> |