| version 1.32, 2002/10/16 21:19:20 |
version 1.33, 2002/11/24 16:51:19 |
|
|
| * http://www.platon.sk/projects/phpWebFileManager/ |
* http://www.platon.sk/projects/phpWebFileManager/ |
| */ |
*/ |
| |
|
| /* $Platon: index.php,v 1.31 2002/08/11 14:10:05 nepto Exp $ */ |
/* $Platon: phpWebFileManager/index.php,v 1.32 2002/10/16 21:19:20 nepto Exp $ */ |
| |
|
| /* |
/* |
| * phpWebFileManager initialization |
* phpWebFileManager initialization |
| Line 106 function fm_main() |
|
| Line 106 function fm_main() |
|
| $fm_filename = fm_get_cgi_var('filename', ''); |
$fm_filename = fm_get_cgi_var('filename', ''); |
| $fm_new_filename = fm_get_cgi_var('new_filename', ''); |
$fm_new_filename = fm_get_cgi_var('new_filename', ''); |
| $fm_file_data = fm_get_cgi_var('file_data', ''); |
$fm_file_data = fm_get_cgi_var('file_data', ''); |
| $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; |
$PHP_SELF = @$HTTP_SERVER_VARS['PHP_SELF']; |
| |
|
| /* |
/* |
| * Debugging CGI varaibles |
* Debugging CGI varaibles |
| */ |
*/ |
| Line 452 function fm_main() |
|
| Line 452 function fm_main() |
|
| * file upload action |
* file upload action |
| */ |
*/ |
| if ($fm_action == 'upload_file' && $fm_cfg['perm']['file']['upload']) { |
if ($fm_action == 'upload_file' && $fm_cfg['perm']['file']['upload']) { |
| |
global $HTTP_POST_FILES; |
| |
$fm_userfile = @$HTTP_POST_FILES[$fm_cfg['cgi'].'userfile']['tmp_name']; |
| |
$fm_userfile_name = @$HTTP_POST_FILES[$fm_cfg['cgi'].'userfile']['name']; |
| if ($fm_submit == _FM_FILE_UPLOAD && $fm_userfile_name != '') { |
if ($fm_submit == _FM_FILE_UPLOAD && $fm_userfile_name != '') { |
| |
|
| $tmp_target_filename = $target_filename = $fm_userfile_name; |
$tmp_target_filename = $target_filename = $fm_userfile_name; |