mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
V 3.5 RC 1
This commit is contained in:
11
www/include/jslibs/jquery-validation/test/users.php
Normal file
11
www/include/jslibs/jquery-validation/test/users.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$request = trim(strtolower($_REQUEST['username']));
|
||||
//sleep(1);
|
||||
$users = array('asdf', 'Peter', 'Peter2', 'George');
|
||||
$valid = 'true';
|
||||
foreach($users as $user) {
|
||||
if( strtolower($user) == $request )
|
||||
$valid = 'false';
|
||||
}
|
||||
echo $valid;
|
||||
?>
|
Reference in New Issue
Block a user