| version 1.40, 2003/02/13 20:17:02 |
version 1.41, 2003/02/13 23:27:46 |
|
|
| * http://www.platon.sk/projects/phpWebFileManager/ |
* http://www.platon.sk/projects/phpWebFileManager/ |
| */ |
*/ |
| |
|
| /* $Platon: phpWebFileManager/index.php,v 1.39 2003/02/12 19:46:07 nepto Exp $ */ |
/* $Platon: phpWebFileManager/index.php,v 1.40 2003/02/13 20:17:02 nepto Exp $ */ |
| |
|
| /* |
/* |
| * phpWebFileManager initialization |
* phpWebFileManager initialization |
| Line 538 function fm_main() /* {{{ */ |
|
| Line 538 function fm_main() /* {{{ */ |
|
| } |
} |
| } |
} |
| case 'edit_file': |
case 'edit_file': |
| if (count($action_message) <= 0) { |
if (count($action_message) <= 0 && ($fp = @fopen($fm_filename, 'r')) != false) { |
| echo '<input type=hidden value="save_file" name="'.$fm_cfg['cgi'].'action">'; |
echo '<input type=hidden value="save_file" name="'.$fm_cfg['cgi'].'action">'; |
| // Please write me, if you want to have cols and rows configurable. |
// Please write me, if you want to have cols and rows configurable. |
| echo '<textarea name="'.$fm_cfg['cgi'].'file_data" cols=50 rows=15>'; |
echo '<textarea name="'.$fm_cfg['cgi'].'file_data" cols=50 rows=15>'; |
| htmlentities(@readfile($fm_filename)); |
while (! @feof($fp)) { |
| |
echo htmlspecialchars(@fread($fp, 1024)); |
| |
} |
| |
@fclose($fp); |
| echo '</textarea><br><br>'; |
echo '</textarea><br><br>'; |
| echo '<input type=submit name="'.$fm_cfg['cgi'].'submit" value="'._FM_FILE_SAVE.'"> '; |
echo '<input type=submit name="'.$fm_cfg['cgi'].'submit" value="'._FM_FILE_SAVE.'"> '; |
| echo '<input type=submit name="'.$fm_cfg['cgi'].'submit" value="'._FM_CANCEL.'">'; |
echo '<input type=submit name="'.$fm_cfg['cgi'].'submit" value="'._FM_CANCEL.'">'; |