css
2 years ago
files
2 years ago
img
2 years ago
jquery
2 years ago
js
2 years ago
php
2 years ago
sounds
2 years ago
themes
2 years ago
.gitignore
2 years ago
Changelog
2 years ago
LICENSE.md
2 years ago
README.md
2 years ago
bower.json
2 years ago
composer.json
2 years ago
elfinder.html
2 years ago
elfinder.legacy.html
2 years ago
index.php
2 years ago
main.default.js
2 years ago
package.json
2 years ago
elfinder.legacy.html
92 lines
| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> |
| 7 | <title>elFinder 2.1.x source version with PHP connector</title> |
| 8 | |
| 9 | <!-- Section CSS --> |
| 10 | <!-- jQuery UI (REQUIRED) --> |
| 11 | <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css"> |
| 12 | |
| 13 | <!-- elFinder CSS (REQUIRED) --> |
| 14 | <link rel="stylesheet" type="text/css" href="css/elfinder.min.css"> |
| 15 | <link rel="stylesheet" type="text/css" href="css/theme.css"> |
| 16 | |
| 17 | <!-- Section JavaScript --> |
| 18 | <!-- jQuery and jQuery UI (REQUIRED) --> |
| 19 | <!--[if lt IE 9]> |
| 20 | <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> |
| 21 | <![endif]--> |
| 22 | <!--[if gte IE 9]><!--> |
| 23 | <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> |
| 24 | <!--<![endif]--> |
| 25 | <script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> |
| 26 | |
| 27 | <!-- elFinder JS (REQUIRED) --> |
| 28 | <script src="js/elfinder.min.js"></script> |
| 29 | |
| 30 | <!-- Extra contents editors (OPTIONAL) --> |
| 31 | <script src="js/extras/editors.default.min.js"></script> |
| 32 | |
| 33 | <!-- GoogleDocs Quicklook plugin for GoogleDrive Volume (OPTIONAL) --> |
| 34 | <!--<script src="js/extras/quicklook.googledocs.js"></script>--> |
| 35 | |
| 36 | <!-- elFinder initialization (REQUIRED) --> |
| 37 | <script type="text/javascript" charset="utf-8"> |
| 38 | // Documentation for client options: |
| 39 | // https://github.com/Studio-42/elFinder/wiki/Client-configuration-options |
| 40 | $(document).ready(function() { |
| 41 | $('#elfinder').elfinder( |
| 42 | // 1st Arg - options |
| 43 | { |
| 44 | cssAutoLoad : false, // Disable CSS auto loading |
| 45 | baseUrl : './', // Base URL to css/*, js/* |
| 46 | url : 'php/connector.minimal.php' // connector URL (REQUIRED) |
| 47 | // , lang: 'ru' // language (OPTIONAL) |
| 48 | }, |
| 49 | // 2nd Arg - before boot up function |
| 50 | function(fm, extraObj) { |
| 51 | // `init` event callback function |
| 52 | fm.bind('init', function() { |
| 53 | // Optional for Japanese decoder "encoding-japanese.js" |
| 54 | if (fm.lang === 'ja') { |
| 55 | fm.loadScript( |
| 56 | [ '//cdn.rawgit.com/polygonplanet/encoding.js/1.0.26/encoding.min.js' ], |
| 57 | function() { |
| 58 | if (window.Encoding && Encoding.convert) { |
| 59 | fm.registRawStringDecoder(function(s) { |
| 60 | return Encoding.convert(s, {to:'UNICODE',type:'string'}); |
| 61 | }); |
| 62 | } |
| 63 | }, |
| 64 | { loadType: 'tag' } |
| 65 | ); |
| 66 | } |
| 67 | }); |
| 68 | // Optional for set document.title dynamically. |
| 69 | var title = document.title; |
| 70 | fm.bind('open', function() { |
| 71 | var path = '', |
| 72 | cwd = fm.cwd(); |
| 73 | if (cwd) { |
| 74 | path = fm.path(cwd.hash) || null; |
| 75 | } |
| 76 | document.title = path? path + ':' + title : title; |
| 77 | }).bind('destroy', function() { |
| 78 | document.title = title; |
| 79 | }); |
| 80 | } |
| 81 | ); |
| 82 | }); |
| 83 | </script> |
| 84 | </head> |
| 85 | <body> |
| 86 | |
| 87 | <!-- Element where elFinder will be created (REQUIRED) --> |
| 88 | <div id="elfinder"></div> |
| 89 | |
| 90 | </body> |
| 91 | </html> |
| 92 |