Go to the source code of this file.
Functions | |
| check_file ($file) | |
| check_user_name ($name) | |
| check_real_name ($name, $real_name) | |
Variables | |
| global | $HTTP_POST_FILES |
| $err = array() | |
| $action = $HTTP_GET_VARS['action'] | |
|
|
Definition at line 36 of file bulk_admin_users.php. References $file, empty, and exit_error(). 00037 { 00038 if(empty($file)){ 00039 exit_error('You have to upload something.', $file['error']); 00040 } 00041 if(!$file['name']){ 00042 exit_error('You have to upload something.', $file['name']); 00043 } 00044 if(!is_uploaded_file($file['tmp_name'])){ 00045 exit_error('No file found.', $file['tmp_name']); 00046 } 00047 00048 $mime = preg_split("/\//",$file['type']); 00049 00050 if($mime[0] != "text"){ 00051 exit_error('File type not allowed.', $file['type']); 00052 } 00053 }
|
|
||||||||||||
|
Definition at line 79 of file bulk_admin_users.php. |
|
|
Definition at line 55 of file bulk_admin_users.php. References $err, $name, db_numrows(), and db_query(). 00056 { 00057 global $err; 00058 $retval = 1; 00059 00060 if (db_numrows(db_query("SELECT user_id FROM user WHERE " 00061 . "user_name='".trim($name)."'")) > 0) { 00062 $err[$name] .= "user_exists "; 00063 $retval = 0; 00064 } 00065 00066 # For compatibility with various PAM mechanisms, we restrict to 8 characters 00067 if(strlen(trim($name)) > 8) { 00068 $err[$name] .= "bad_user_name "; 00069 $retval = 0; 00070 } 00071 elseif(!ereg('^[_a-zA-Z0-9-]*$', trim($name))) { 00072 $err[$name] .= "bad_user_name "; 00073 $retval = 0; 00074 } 00075 00076 return $retval; 00077 }
|
|
|
Definition at line 33 of file bulk_admin_users.php. |
|
|
Definition at line 32 of file bulk_admin_users.php. Referenced by check_real_name(), and check_user_name(). |
|
|
Definition at line 31 of file bulk_admin_users.php. |
1.4.4