diff --git a/scripts/edit_pages.php b/scripts/edit_pages.php deleted file mode 100644 index 4597b03..0000000 --- a/scripts/edit_pages.php +++ /dev/null @@ -1,46 +0,0 @@ -Moved.', htmlspecialchars($url)); - exit(); -} - -// read the textfile -$text = file_get_contents($file); - -?> - -
- - - - diff --git a/scripts/edit_scripts.php b/scripts/edit_scripts.php deleted file mode 100644 index 9ce3c0a..0000000 --- a/scripts/edit_scripts.php +++ /dev/null @@ -1,46 +0,0 @@ -Moved.', htmlspecialchars($url)); - exit(); -} - -// read the textfile -$text = file_get_contents($file); - -?> - - - - - - diff --git a/scripts/filemanager/LICENSE b/scripts/filemanager/LICENSE new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/scripts/filemanager/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc.""
+
+ Full path:
+ File size:
+ MIME-type:
+
+ Files in archive:
+ Total size:
+ Size in archive:
+ Compression: %
+ ';
+ }
+ // Text info
+ if ($is_text) {
+ $is_utf8 = fm_is_utf8($content);
+ if (function_exists('iconv')) {
+ if (!$is_utf8) {
+ $content = iconv(FM_ICONV_INPUT_ENC, 'UTF-8//IGNORE', $content);
+ }
+ }
+ echo 'Charset: ' . ($is_utf8 ? 'utf-8' : '8 bit') . '
';
+ }
+ ?>
+
';
+ foreach ($filenames as $fn) {
+ if ($fn['folder']) {
+ echo '' . fm_enc($fn['name']) . '
';
+ } else {
+ echo $fn['name'] . ' (' . fm_get_filesize($fn['filesize']) . ')
';
+ }
+ }
+ echo '';
+ } else {
+ echo ''.lng('Error while fetching archive info').'
'; + } + } elseif ($is_image) { + // Image content + if (in_array($ext, array('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico', 'svg', 'webp', 'avif'))) { + echo '' . fm_enc($content) . '';
+ } elseif (in_array($ext, array('php', 'php4', 'php5', 'phtml', 'phps'))) {
+ // php highlight
+ $content = highlight_string($content, true);
+ } else {
+ $content = '' . fm_enc($content) . ''; + } + echo $content; + } + ?> +
+ Full path:
+