| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 255 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 1 file admin/uploadpicture_form.php |
| my_mktempdir($dir, $prefix='', $mode=0700) X-Ref |
| Create a unique temporary directory with a given prefix name, inside a given directory, with given permissions. Return the full path to the newly created temp directory. param: string $dir where to create the temp directory. param: string $prefix prefix for the temp directory name (default '') param: string $mode permissions for the temp directory (default 700) return: string The full path to the temp directory. |
| process_directory($dir, $userfield, $overwrite, &$results) X-Ref |
| Recursively process a directory, picking regular files and feeding them to process_file(). param: string $dir the full path of the directory to process param: string $userfield the prefix_user table field to use to param: bool $overwrite overwrite existing picture or not. param: array $results (by reference) accumulated statistics of return: nothing |
| process_file($file, $userfield, $overwrite) X-Ref |
| Given the full path of a file, try to find the user the file corresponds to and assign him/her this file as his/her picture. Make extensive checks to make sure we don't open any security holes and report back any success/error. param: string $file the full path of the file to process param: string $userfield the prefix_user table field to use to param: bool $overwrite overwrite existing picture or not. return: integer either PIX_FILE_UPDATED, PIX_FILE_ERROR or |
| my_save_profile_image($id, $originalfile) X-Ref |
| Try to save the given file (specified by its full path) as the picture for the user with the given id. param: integer $id the internal id of the user to assign the param: string $originalfile the full path of the picture file. return: bool |
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |