elfinder.legacy.html 3.1 KB

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