1137 |
1138 |
1240 |
1241 |
1242 |
1251 |
1252 |
1253 |
1254 |
1255 | 'Password', 'Username2' => 'Password2', ...), Password has to encripted into MD5
16 | $auth_users = array(
17 | 'admin' => '21232f297a57a5a743894a0e4a801fc3', //admin
18 | 'user' => '827ccb0eea8a706c4c34a16891f84e7b', //12345
19 | );
20 |
21 | // Readonly users (usernames array)
22 | $readonly_users = array(
23 | 'user'
24 | );
25 |
26 | // Show or hide files and folders that starts with a dot
27 | $show_hidden_files = true;
28 |
29 | // Enable highlight.js (https://highlightjs.org/) on view's page
30 | $use_highlightjs = true;
31 |
32 | // highlight.js style
33 | $highlightjs_style = 'vs';
34 |
35 | // Enable ace.js (https://ace.c9.io/) on view's page
36 | $edit_files = true;
37 |
38 | // Send files though mail
39 | $send_mail = false;
40 |
41 | // Send files though mail
42 | $toMailId = ""; //yourmailid@mail.com
43 |
44 | // Default timezone for date() and time() - http://php.net/manual/en/timezones.php
45 | $default_timezone = 'Etc/UTC'; // UTC
46 |
47 | // Root path for file manager
48 | $root_path = $_SERVER['DOCUMENT_ROOT'];
49 |
50 | // Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder'
51 | // Will not working if $root_path will be outside of server document root
52 | $root_url = '';
53 |
54 | // Server hostname. Can set manually if wrong
55 | $http_host = $_SERVER['HTTP_HOST'];
56 |
57 | // input encoding for iconv
58 | $iconv_input_encoding = 'UTF-8';
59 |
60 | // date() format for file modification date
61 | $datetime_format = 'd.m.y H:i';
62 |
63 | // allowed upload file extensions
64 | $upload_extensions = ''; // 'gif,png,jpg'
65 |
66 | // show or hide the left side tree view
67 | $show_tree_view = false;
68 |
69 | //Array of folders excluded from listing
70 | $GLOBALS['exclude_folders'] = array(
71 | );
72 |
73 | // include user config php file
74 | if (defined('FM_CONFIG') && is_file(FM_CONFIG) ) {
75 | include(FM_CONFIG);
76 | }
77 |
78 | //--- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL
79 |
80 | // if fm included
81 | if (defined('FM_EMBED')) {
82 | $use_auth = false;
83 | } else {
84 | @set_time_limit(600);
85 |
86 | date_default_timezone_set($default_timezone);
87 |
88 | ini_set('default_charset', 'UTF-8');
89 | if (version_compare(PHP_VERSION, '5.6.0', '<') && function_exists('mb_internal_encoding')) {
90 | mb_internal_encoding('UTF-8');
91 | }
92 | if (function_exists('mb_regex_encoding')) {
93 | mb_regex_encoding('UTF-8');
94 | }
95 |
96 | session_cache_limiter('');
97 | session_name('filemanager');
98 | session_start();
99 | }
100 |
101 | if (empty($auth_users)) {
102 | $use_auth = false;
103 | }
104 |
105 | $is_https = isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1)
106 | || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https';
107 |
108 | // clean and check $root_path
109 | $root_path = rtrim($root_path, '\\/');
110 | $root_path = str_replace('\\', '/', $root_path);
111 | if (!@is_dir($root_path)) {
112 | echo "
Root path \"{$root_path}\" not found!
";
113 | exit;
114 | }
115 |
116 | // clean $root_url
117 | $root_url = fm_clean_path($root_url);
118 |
119 | // abs path for site
120 | defined('FM_SHOW_HIDDEN') || define('FM_SHOW_HIDDEN', $show_hidden_files);
121 | defined('FM_ROOT_PATH') || define('FM_ROOT_PATH', $root_path);
122 | defined('FM_ROOT_URL') || define('FM_ROOT_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . (!empty($root_url) ? '/' . $root_url : ''));
123 | defined('FM_SELF_URL') || define('FM_SELF_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . $_SERVER['PHP_SELF']);
124 |
125 | // logout
126 | if (isset($_GET['logout'])) {
127 | unset($_SESSION['logged']);
128 | fm_redirect(FM_SELF_URL);
129 | }
130 |
131 | // Show image here
132 | if (isset($_GET['img'])) {
133 | fm_show_image($_GET['img']);
134 | }
135 |
136 | // Auth
137 | if ($use_auth) {
138 | if (isset($_SESSION['logged'], $auth_users[$_SESSION['logged']])) {
139 | // Logged
140 | } elseif (isset($_POST['fm_usr'], $_POST['fm_pwd'])) {
141 | // Logging In
142 | sleep(1);
143 | if (isset($auth_users[$_POST['fm_usr']]) && md5($_POST['fm_pwd']) === $auth_users[$_POST['fm_usr']]) {
144 | $_SESSION['logged'] = $_POST['fm_usr'];
145 | fm_set_msg('You are logged in');
146 | fm_redirect(FM_SELF_URL . '?p=');
147 | } else {
148 | unset($_SESSION['logged']);
149 | fm_set_msg('Wrong password', 'error');
150 | fm_redirect(FM_SELF_URL);
151 | }
152 | } else {
153 | // Form
154 | unset($_SESSION['logged']);
155 | fm_show_header_login();
156 | fm_show_message();
157 | ?>
158 |
166 | %s deleted' : 'File
%s deleted';
243 | fm_set_msg(sprintf($msg, fm_enc($del)));
244 | } else {
245 | $msg = $is_dir ? 'Folder
%s not deleted' : 'File
%s not deleted';
246 | fm_set_msg(sprintf($msg, fm_enc($del)), 'error');
247 | }
248 | } else {
249 | fm_set_msg('Wrong file or folder name', 'error');
250 | }
251 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
252 | }
253 |
254 | // Create folder
255 | if (isset($_GET['new']) && isset($_GET['type']) && !FM_READONLY) {
256 | $new = strip_tags($_GET['new']);
257 | $type = $_GET['type'];
258 | $new = fm_clean_path($new);
259 | $new = str_replace('/', '', $new);
260 | if ($new != '' && $new != '..' && $new != '.') {
261 | $path = FM_ROOT_PATH;
262 | if (FM_PATH != '') {
263 | $path .= '/' . FM_PATH;
264 | }
265 | if($_GET['type']=="file") {
266 | if(!file_exists($path . '/' . $new)) {
267 | @fopen($path . '/' . $new, 'w') or die('Cannot open file: '.$new);
268 | fm_set_msg(sprintf('File
%s created', fm_enc($new)));
269 | } else {
270 | fm_set_msg(sprintf('File
%s already exists', fm_enc($new)), 'alert');
271 | }
272 | } else {
273 | if (fm_mkdir($path . '/' . $new, false) === true) {
274 | fm_set_msg(sprintf('Folder
%s created', $new));
275 | } elseif (fm_mkdir($path . '/' . $new, false) === $path . '/' . $new) {
276 | fm_set_msg(sprintf('Folder
%s already exists', fm_enc($new)), 'alert');
277 | } else {
278 | fm_set_msg(sprintf('Folder
%s not created', fm_enc($new)), 'error');
279 | }
280 | }
281 | } else {
282 | fm_set_msg('Wrong folder name', 'error');
283 | }
284 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
285 | }
286 |
287 | // Copy folder / file
288 | if (isset($_GET['copy'], $_GET['finish']) && !FM_READONLY) {
289 | // from
290 | $copy = $_GET['copy'];
291 | $copy = fm_clean_path($copy);
292 | // empty path
293 | if ($copy == '') {
294 | fm_set_msg('Source path not defined', 'error');
295 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
296 | }
297 | // abs path from
298 | $from = FM_ROOT_PATH . '/' . $copy;
299 | // abs path to
300 | $dest = FM_ROOT_PATH;
301 | if (FM_PATH != '') {
302 | $dest .= '/' . FM_PATH;
303 | }
304 | $dest .= '/' . basename($from);
305 | // move?
306 | $move = isset($_GET['move']);
307 | // copy/move
308 | if ($from != $dest) {
309 | $msg_from = trim(FM_PATH . '/' . basename($from), '/');
310 | if ($move) {
311 | $rename = fm_rename($from, $dest);
312 | if ($rename) {
313 | fm_set_msg(sprintf('Moved from
%s to
%s', fm_enc($copy), fm_enc($msg_from)));
314 | } elseif ($rename === null) {
315 | fm_set_msg('File or folder with this path already exists', 'alert');
316 | } else {
317 | fm_set_msg(sprintf('Error while moving from
%s to
%s', fm_enc($copy), fm_enc($msg_from)), 'error');
318 | }
319 | } else {
320 | if (fm_rcopy($from, $dest)) {
321 | fm_set_msg(sprintf('Copyied from
%s to
%s', fm_enc($copy), fm_enc($msg_from)));
322 | } else {
323 | fm_set_msg(sprintf('Error while copying from
%s to
%s', fm_enc($copy), fm_enc($msg_from)), 'error');
324 | }
325 | }
326 | } else {
327 | fm_set_msg('Paths must be not equal', 'alert');
328 | }
329 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
330 | }
331 |
332 | // Mass copy files/ folders
333 | if (isset($_POST['file'], $_POST['copy_to'], $_POST['finish']) && !FM_READONLY) {
334 | // from
335 | $path = FM_ROOT_PATH;
336 | if (FM_PATH != '') {
337 | $path .= '/' . FM_PATH;
338 | }
339 | // to
340 | $copy_to_path = FM_ROOT_PATH;
341 | $copy_to = fm_clean_path($_POST['copy_to']);
342 | if ($copy_to != '') {
343 | $copy_to_path .= '/' . $copy_to;
344 | }
345 | if ($path == $copy_to_path) {
346 | fm_set_msg('Paths must be not equal', 'alert');
347 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
348 | }
349 | if (!is_dir($copy_to_path)) {
350 | if (!fm_mkdir($copy_to_path, true)) {
351 | fm_set_msg('Unable to create destination folder', 'error');
352 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
353 | }
354 | }
355 | // move?
356 | $move = isset($_POST['move']);
357 | // copy/move
358 | $errors = 0;
359 | $files = $_POST['file'];
360 | if (is_array($files) && count($files)) {
361 | foreach ($files as $f) {
362 | if ($f != '') {
363 | // abs path from
364 | $from = $path . '/' . $f;
365 | // abs path to
366 | $dest = $copy_to_path . '/' . $f;
367 | // do
368 | if ($move) {
369 | $rename = fm_rename($from, $dest);
370 | if ($rename === false) {
371 | $errors++;
372 | }
373 | } else {
374 | if (!fm_rcopy($from, $dest)) {
375 | $errors++;
376 | }
377 | }
378 | }
379 | }
380 | if ($errors == 0) {
381 | $msg = $move ? 'Selected files and folders moved' : 'Selected files and folders copied';
382 | fm_set_msg($msg);
383 | } else {
384 | $msg = $move ? 'Error while moving items' : 'Error while copying items';
385 | fm_set_msg($msg, 'error');
386 | }
387 | } else {
388 | fm_set_msg('Nothing selected', 'alert');
389 | }
390 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
391 | }
392 |
393 | // Rename
394 | if (isset($_GET['ren'], $_GET['to']) && !FM_READONLY) {
395 | // old name
396 | $old = $_GET['ren'];
397 | $old = fm_clean_path($old);
398 | $old = str_replace('/', '', $old);
399 | // new name
400 | $new = $_GET['to'];
401 | $new = fm_clean_path($new);
402 | $new = str_replace('/', '', $new);
403 | // path
404 | $path = FM_ROOT_PATH;
405 | if (FM_PATH != '') {
406 | $path .= '/' . FM_PATH;
407 | }
408 | // rename
409 | if ($old != '' && $new != '') {
410 | if (fm_rename($path . '/' . $old, $path . '/' . $new)) {
411 | fm_set_msg(sprintf('Renamed from
%s to
%s', fm_enc($old), fm_enc($new)));
412 | } else {
413 | fm_set_msg(sprintf('Error while renaming from
%s to
%s', fm_enc($old), fm_enc($new)), 'error');
414 | }
415 | } else {
416 | fm_set_msg('Names not set', 'error');
417 | }
418 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
419 | }
420 |
421 | // Download
422 | if (isset($_GET['dl'])) {
423 | $dl = $_GET['dl'];
424 | $dl = fm_clean_path($dl);
425 | $dl = str_replace('/', '', $dl);
426 | $path = FM_ROOT_PATH;
427 | if (FM_PATH != '') {
428 | $path .= '/' . FM_PATH;
429 | }
430 | if ($dl != '' && is_file($path . '/' . $dl)) {
431 | header('Content-Description: File Transfer');
432 | header('Content-Type: application/octet-stream');
433 | header('Content-Disposition: attachment; filename="' . basename($path . '/' . $dl) . '"');
434 | header('Content-Transfer-Encoding: binary');
435 | header('Connection: Keep-Alive');
436 | header('Expires: 0');
437 | header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
438 | header('Pragma: public');
439 | header('Content-Length: ' . filesize($path . '/' . $dl));
440 | readfile($path . '/' . $dl);
441 | exit;
442 | } else {
443 | fm_set_msg('File not found', 'error');
444 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
445 | }
446 | }
447 |
448 | // Upload
449 | if (!empty($_FILES) && !FM_READONLY) {
450 | $f = $_FILES;
451 | $path = FM_ROOT_PATH;
452 | if (FM_PATH != '') {
453 | $path .= '/' . FM_PATH;
454 | }
455 |
456 | $errors = 0;
457 | $uploads = 0;
458 | $total = count($f['file']['name']);
459 | $allowed = (FM_EXTENSION) ? explode(',', FM_EXTENSION) : false;
460 |
461 | $filename = $f['file']['name'];
462 | $tmp_name = $f['file']['tmp_name'];
463 | $ext = pathinfo($filename, PATHINFO_EXTENSION);
464 | $isFileAllowed = ($allowed) ? in_array($ext, $allowed) : true;
465 |
466 | if (empty($f['file']['error']) && !empty($tmp_name) && $tmp_name != 'none' && $isFileAllowed) {
467 | if (move_uploaded_file($tmp_name, $path . '/' . $f['file']['name'])) {
468 | die('Successfully uploaded');
469 | } else {
470 | die(sprintf('Error while uploading files. Uploaded files: %s', $uploads));
471 | }
472 | }
473 | exit();
474 | }
475 |
476 | // Mass deleting
477 | if (isset($_POST['group'], $_POST['delete']) && !FM_READONLY) {
478 | $path = FM_ROOT_PATH;
479 | if (FM_PATH != '') {
480 | $path .= '/' . FM_PATH;
481 | }
482 |
483 | $errors = 0;
484 | $files = $_POST['file'];
485 | if (is_array($files) && count($files)) {
486 | foreach ($files as $f) {
487 | if ($f != '') {
488 | $new_path = $path . '/' . $f;
489 | if (!fm_rdelete($new_path)) {
490 | $errors++;
491 | }
492 | }
493 | }
494 | if ($errors == 0) {
495 | fm_set_msg('Selected files and folder deleted');
496 | } else {
497 | fm_set_msg('Error while deleting items', 'error');
498 | }
499 | } else {
500 | fm_set_msg('Nothing selected', 'alert');
501 | }
502 |
503 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
504 | }
505 |
506 | // Pack files
507 | if (isset($_POST['group'], $_POST['zip']) && !FM_READONLY) {
508 | $path = FM_ROOT_PATH;
509 | if (FM_PATH != '') {
510 | $path .= '/' . FM_PATH;
511 | }
512 |
513 | if (!class_exists('ZipArchive')) {
514 | fm_set_msg('Operations with archives are not available', 'error');
515 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
516 | }
517 |
518 | $files = $_POST['file'];
519 | if (!empty($files)) {
520 | chdir($path);
521 |
522 | if (count($files) == 1) {
523 | $one_file = reset($files);
524 | $one_file = basename($one_file);
525 | $zipname = $one_file . '_' . date('ymd_His') . '.zip';
526 | } else {
527 | $zipname = 'archive_' . date('ymd_His') . '.zip';
528 | }
529 |
530 | $zipper = new FM_Zipper();
531 | $res = $zipper->create($zipname, $files);
532 |
533 | if ($res) {
534 | fm_set_msg(sprintf('Archive
%s created', fm_enc($zipname)));
535 | } else {
536 | fm_set_msg('Archive not created', 'error');
537 | }
538 | } else {
539 | fm_set_msg('Nothing selected', 'alert');
540 | }
541 |
542 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
543 | }
544 |
545 | // Unpack
546 | if (isset($_GET['unzip']) && !FM_READONLY) {
547 | $unzip = $_GET['unzip'];
548 | $unzip = fm_clean_path($unzip);
549 | $unzip = str_replace('/', '', $unzip);
550 |
551 | $path = FM_ROOT_PATH;
552 | if (FM_PATH != '') {
553 | $path .= '/' . FM_PATH;
554 | }
555 |
556 | if (!class_exists('ZipArchive')) {
557 | fm_set_msg('Operations with archives are not available', 'error');
558 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
559 | }
560 |
561 | if ($unzip != '' && is_file($path . '/' . $unzip)) {
562 | $zip_path = $path . '/' . $unzip;
563 |
564 | //to folder
565 | $tofolder = '';
566 | if (isset($_GET['tofolder'])) {
567 | $tofolder = pathinfo($zip_path, PATHINFO_FILENAME);
568 | if (fm_mkdir($path . '/' . $tofolder, true)) {
569 | $path .= '/' . $tofolder;
570 | }
571 | }
572 |
573 | $zipper = new FM_Zipper();
574 | $res = $zipper->unzip($zip_path, $path);
575 |
576 | if ($res) {
577 | fm_set_msg('Archive unpacked');
578 | } else {
579 | fm_set_msg('Archive not unpacked', 'error');
580 | }
581 |
582 | } else {
583 | fm_set_msg('File not found', 'error');
584 | }
585 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
586 | }
587 |
588 | // Change Perms (not for Windows)
589 | if (isset($_POST['chmod']) && !FM_READONLY && !FM_IS_WIN) {
590 | $path = FM_ROOT_PATH;
591 | if (FM_PATH != '') {
592 | $path .= '/' . FM_PATH;
593 | }
594 |
595 | $file = $_POST['chmod'];
596 | $file = fm_clean_path($file);
597 | $file = str_replace('/', '', $file);
598 | if ($file == '' || (!is_file($path . '/' . $file) && !is_dir($path . '/' . $file))) {
599 | fm_set_msg('File not found', 'error');
600 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
601 | }
602 |
603 | $mode = 0;
604 | if (!empty($_POST['ur'])) {
605 | $mode |= 0400;
606 | }
607 | if (!empty($_POST['uw'])) {
608 | $mode |= 0200;
609 | }
610 | if (!empty($_POST['ux'])) {
611 | $mode |= 0100;
612 | }
613 | if (!empty($_POST['gr'])) {
614 | $mode |= 0040;
615 | }
616 | if (!empty($_POST['gw'])) {
617 | $mode |= 0020;
618 | }
619 | if (!empty($_POST['gx'])) {
620 | $mode |= 0010;
621 | }
622 | if (!empty($_POST['or'])) {
623 | $mode |= 0004;
624 | }
625 | if (!empty($_POST['ow'])) {
626 | $mode |= 0002;
627 | }
628 | if (!empty($_POST['ox'])) {
629 | $mode |= 0001;
630 | }
631 |
632 | if (@chmod($path . '/' . $file, $mode)) {
633 | fm_set_msg('Permissions changed');
634 | } else {
635 | fm_set_msg('Permissions not changed', 'error');
636 | }
637 |
638 | fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH));
639 | }
640 |
641 | /*************************** /ACTIONS ***************************/
642 |
643 | // get current path
644 | $path = FM_ROOT_PATH;
645 | if (FM_PATH != '') {
646 | $path .= '/' . FM_PATH;
647 | }
648 |
649 | // check path
650 | if (!is_dir($path)) {
651 | fm_redirect(FM_SELF_URL . '?p=');
652 | }
653 |
654 | // get parent folder
655 | $parent = fm_get_parent_path(FM_PATH);
656 |
657 | $objects = is_readable($path) ? scandir($path) : array();
658 | $folders = array();
659 | $files = array();
660 | if (is_array($objects)) {
661 | foreach ($objects as $file) {
662 | if ($file == '.' || $file == '..' && in_array($file, $GLOBALS['exclude_folders'])) {
663 | continue;
664 | }
665 | if (!FM_SHOW_HIDDEN && substr($file, 0, 1) === '.') {
666 | continue;
667 | }
668 | $new_path = $path . '/' . $file;
669 | if (is_file($new_path)) {
670 | $files[] = $file;
671 | } elseif (is_dir($new_path) && $file != '.' && $file != '..' && !in_array($file, $GLOBALS['exclude_folders'])) {
672 | $folders[] = $file;
673 | }
674 | }
675 | }
676 |
677 | if (!empty($files)) {
678 | natcasesort($files);
679 | }
680 | if (!empty($folders)) {
681 | natcasesort($folders);
682 | }
683 |
684 | // upload form
685 | if (isset($_GET['upload']) && !FM_READONLY) {
686 | fm_show_header(); // HEADER
687 | fm_show_nav_path(FM_PATH); // current path
688 | ?>
689 |
690 |
691 |
692 |
693 |
694 |
Uploading files
695 |
Destination folder:
696 |
702 |
703 |
704 |
720 |
721 |
Copying
722 |
741 |
742 |
759 |
760 |
Copying
761 |
762 | Source path:
763 | Destination folder:
764 |
765 |
766 | Copy
767 | Move
768 | Cancel
769 |
770 |
Select folder
771 |
772 |
775 | - ..
776 |
780 | -
781 |
784 |
785 |
786 |
840 |
841 |
""
842 |
843 | Full path:
844 | File size: = 1000): ?> ()
845 | MIME-type:
846 |
860 | Files in archive:
861 | Total size:
862 | Size in archive:
863 | Compression: %
864 | ';
870 | }
871 | // Text info
872 | if ($is_text) {
873 | $is_utf8 = fm_is_utf8($content);
874 | if (function_exists('iconv')) {
875 | if (!$is_utf8) {
876 | $content = iconv(FM_ICONV_INPUT_ENC, 'UTF-8//IGNORE', $content);
877 | }
878 | }
879 | echo 'Charset: ' . ($is_utf8 ? 'utf-8' : '8 bit') . '
';
880 | }
881 | ?>
882 |
883 |
884 | Download
885 | Open
886 |
891 | UnZip
892 |
893 | UnZip to folder
894 |
898 | Edit
899 | Advanced Edit
900 |
903 | Mail
904 |
905 | Back
906 |
907 | ';
912 | foreach ($filenames as $fn) {
913 | if ($fn['folder']) {
914 | echo '
' . fm_enc($fn['name']) . '';
915 | } else {
916 | echo $fn['name'] . ' (' . fm_get_filesize($fn['filesize']) . ')
';
917 | }
918 | }
919 | echo '';
920 | } else {
921 | echo '
Error while fetching archive info
';
922 | }
923 | } elseif ($is_image) {
924 | // Image content
925 | if (in_array($ext, array('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico'))) {
926 | echo '
 . ')
';
927 | }
928 | } elseif ($is_audio) {
929 | // Audio content
930 | echo '
';
931 | } elseif ($is_video) {
932 | // Video content
933 | echo '
';
934 | } elseif ($is_text) {
935 | if (FM_USE_HIGHLIGHTJS) {
936 | // highlight
937 | $hljs_classes = array(
938 | 'shtml' => 'xml',
939 | 'htaccess' => 'apache',
940 | 'phtml' => 'php',
941 | 'lock' => 'json',
942 | 'svg' => 'xml',
943 | );
944 | $hljs_class = isset($hljs_classes[$ext]) ? 'lang-' . $hljs_classes[$ext] : 'lang-' . $ext;
945 | if (empty($ext) || in_array(strtolower($file), fm_get_text_names()) || preg_match('#\.min\.(css|js)$#i', $file)) {
946 | $hljs_class = 'nohighlight';
947 | }
948 | $content = '
' . fm_enc($content) . '
';
949 | } elseif (in_array($ext, array('php', 'php4', 'php5', 'phtml', 'phps'))) {
950 | // php highlight
951 | $content = highlight_string($content, true);
952 | } else {
953 | $content = '
' . fm_enc($content) . '
';
954 | }
955 | echo $content;
956 | }
957 | ?>
958 |
959 |
1009 |
1010 |
1023 | '. htmlspecialchars($content) .'';
1026 | } elseif ($is_text) {
1027 | echo '
'. htmlspecialchars($content) .'
';
1028 | } else {
1029 | fm_set_msg('FILE EXTENSION HAS NOT SUPPORTED', 'error');
1030 | }
1031 | ?>
1032 |
1033 |
1057 |
1058 |
1059 |
1060 |
1061 |
1062 |
1099 |
1100 |
1101 |
1117 |
1241 |
1242 | = $time1 && $upd) {
1385 | return false;
1386 | }
1387 | }
1388 | $ok = copy($f1, $f2);
1389 | if ($ok) {
1390 | touch($f2, $time1);
1391 | }
1392 | return $ok;
1393 | }
1394 |
1395 | /**
1396 | * Get mime type
1397 | * @param string $file_path
1398 | * @return mixed|string
1399 | */
1400 | function fm_get_mime_type($file_path)
1401 | {
1402 | if (function_exists('finfo_open')) {
1403 | $finfo = finfo_open(FILEINFO_MIME_TYPE);
1404 | $mime = finfo_file($finfo, $file_path);
1405 | finfo_close($finfo);
1406 | return $mime;
1407 | } elseif (function_exists('mime_content_type')) {
1408 | return mime_content_type($file_path);
1409 | } elseif (!stristr(ini_get('disable_functions'), 'shell_exec')) {
1410 | $file = escapeshellarg($file_path);
1411 | $mime = shell_exec('file -bi ' . $file);
1412 | return $mime;
1413 | } else {
1414 | return '--';
1415 | }
1416 | }
1417 |
1418 | /**
1419 | * HTTP Redirect
1420 | * @param string $url
1421 | * @param int $code
1422 | */
1423 | function fm_redirect($url, $code = 302)
1424 | {
1425 | header('Location: ' . $url, true, $code);
1426 | exit;
1427 | }
1428 |
1429 | /**
1430 | * Clean path
1431 | * @param string $path
1432 | * @return string
1433 | */
1434 | function fm_clean_path($path)
1435 | {
1436 | $path = trim($path);
1437 | $path = trim($path, '\\/');
1438 | $path = str_replace(array('../', '..\\'), '', $path);
1439 | if ($path == '..') {
1440 | $path = '';
1441 | }
1442 | return str_replace('\\', '/', $path);
1443 | }
1444 |
1445 | /**
1446 | * Get parent path
1447 | * @param string $path
1448 | * @return bool|string
1449 | */
1450 | function fm_get_parent_path($path)
1451 | {
1452 | $path = fm_clean_path($path);
1453 | if ($path != '') {
1454 | $array = explode('/', $path);
1455 | if (count($array) > 1) {
1456 | $array = array_slice($array, 0, -1);
1457 | return implode('/', $array);
1458 | }
1459 | return '';
1460 | }
1461 | return false;
1462 | }
1463 |
1464 | /**
1465 | * Get nice filesize
1466 | * @param int $size
1467 | * @return string
1468 | */
1469 | function fm_get_filesize($size)
1470 | {
1471 | if ($size < 1000) {
1472 | return sprintf('%s B', $size);
1473 | } elseif (($size / 1024) < 1000) {
1474 | return sprintf('%s KiB', round(($size / 1024), 2));
1475 | } elseif (($size / 1024 / 1024) < 1000) {
1476 | return sprintf('%s MiB', round(($size / 1024 / 1024), 2));
1477 | } elseif (($size / 1024 / 1024 / 1024) < 1000) {
1478 | return sprintf('%s GiB', round(($size / 1024 / 1024 / 1024), 2));
1479 | } else {
1480 | return sprintf('%s TiB', round(($size / 1024 / 1024 / 1024 / 1024), 2));
1481 | }
1482 | }
1483 |
1484 | /**
1485 | * Get info about zip archive
1486 | * @param string $path
1487 | * @return array|bool
1488 | */
1489 | function fm_get_zif_info($path)
1490 | {
1491 | if (function_exists('zip_open')) {
1492 | $arch = zip_open($path);
1493 | if ($arch) {
1494 | $filenames = array();
1495 | while ($zip_entry = zip_read($arch)) {
1496 | $zip_name = zip_entry_name($zip_entry);
1497 | $zip_folder = substr($zip_name, -1) == '/';
1498 | $filenames[] = array(
1499 | 'name' => $zip_name,
1500 | 'filesize' => zip_entry_filesize($zip_entry),
1501 | 'compressed_size' => zip_entry_compressedsize($zip_entry),
1502 | 'folder' => $zip_folder
1503 | //'compression_method' => zip_entry_compressionmethod($zip_entry),
1504 | );
1505 | }
1506 | zip_close($arch);
1507 | return $filenames;
1508 | }
1509 | }
1510 | return false;
1511 | }
1512 |
1513 | /**
1514 | * Encode html entities
1515 | * @param string $text
1516 | * @return string
1517 | */
1518 | function fm_enc($text)
1519 | {
1520 | return htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
1521 | }
1522 |
1523 | /**
1524 | * This function scans the files folder recursively, and builds a large array
1525 | * @param string $dir
1526 | * @return json
1527 | */
1528 | function scan($dir){
1529 | $files = array();
1530 | $_dir = $dir;
1531 | $dir = FM_ROOT_PATH.'/'.$dir;
1532 | // Is there actually such a folder/file?
1533 | if(file_exists($dir)){
1534 | foreach(scandir($dir) as $f) {
1535 | if(!$f || $f[0] == '.') {
1536 | continue; // Ignore hidden files
1537 | }
1538 |
1539 | if(is_dir($dir . '/' . $f)) {
1540 | // The path is a folder
1541 | $files[] = array(
1542 | "name" => $f,
1543 | "type" => "folder",
1544 | "path" => $_dir.'/'.$f,
1545 | "items" => scan($dir . '/' . $f), // Recursively get the contents of the folder
1546 | );
1547 | } else {
1548 | // It is a file
1549 | $files[] = array(
1550 | "name" => $f,
1551 | "type" => "file",
1552 | "path" => $_dir,
1553 | "size" => filesize($dir . '/' . $f) // Gets the size of this file
1554 | );
1555 | }
1556 | }
1557 | }
1558 | return $files;
1559 | }
1560 |
1561 | /**
1562 | * Scan directory and return tree view
1563 | * @param string $directory
1564 | * @param boolean $first_call
1565 | */
1566 | function php_file_tree_dir($directory, $first_call = true) {
1567 | // Recursive function called by php_file_tree() to list directories/files
1568 |
1569 | $php_file_tree = "";
1570 | // Get and sort directories/files
1571 | if( function_exists("scandir") ) $file = scandir($directory);
1572 | natcasesort($file);
1573 | // Make directories first
1574 | $files = $dirs = array();
1575 | foreach($file as $this_file) {
1576 | if( is_dir("$directory/$this_file" ) ) {
1577 | if(!in_array($this_file, $GLOBALS['exclude_folders'])){
1578 | $dirs[] = $this_file;
1579 | }
1580 | } else {
1581 | $files[] = $this_file;
1582 | }
1583 | }
1584 | $file = array_merge($dirs, $files);
1585 |
1586 | if( count($file) > 2 ) { // Use 2 instead of 0 to account for . and .. "directories"
1587 | $php_file_tree = "
" . htmlspecialchars($this_file) . "";
1595 | $php_file_tree .= php_file_tree_dir("$directory/$this_file", false);
1596 | $php_file_tree .= "";
1597 | } else {
1598 | // File
1599 | $ext = fm_get_file_icon_class($this_file);
1600 | $path = str_replace($_SERVER['DOCUMENT_ROOT'],"",$directory);
1601 | $link = "?p="."$path" ."&view=".urlencode($this_file);
1602 | $php_file_tree .= "- " . htmlspecialchars($this_file) . "
";
1603 | }
1604 | }
1605 | }
1606 | $php_file_tree .= "
";
1607 | }
1608 | return $php_file_tree;
1609 | }
1610 |
1611 | /**
1612 | * Scan directory and render tree view
1613 | * @param string $directory
1614 | */
1615 | function php_file_tree($directory) {
1616 | // Remove trailing slash
1617 | $code = "";
1618 | if( substr($directory, -1) == "/" ) $directory = substr($directory, 0, strlen($directory) - 1);
1619 | if(function_exists('php_file_tree_dir')) {
1620 | $code .= php_file_tree_dir($directory);
1621 | return $code;
1622 | }
1623 | }
1624 |
1625 | /**
1626 | * Save message in session
1627 | * @param string $msg
1628 | * @param string $status
1629 | */
1630 | function fm_set_msg($msg, $status = 'ok')
1631 | {
1632 | $_SESSION['message'] = $msg;
1633 | $_SESSION['status'] = $status;
1634 | }
1635 |
1636 | /**
1637 | * Check if string is in UTF-8
1638 | * @param string $string
1639 | * @return int
1640 | */
1641 | function fm_is_utf8($string)
1642 | {
1643 | return preg_match('//u', $string);
1644 | }
1645 |
1646 | /**
1647 | * Convert file name to UTF-8 in Windows
1648 | * @param string $filename
1649 | * @return string
1650 | */
1651 | function fm_convert_win($filename)
1652 | {
1653 | if (FM_IS_WIN && function_exists('iconv')) {
1654 | $filename = iconv(FM_ICONV_INPUT_ENC, 'UTF-8//IGNORE', $filename);
1655 | }
1656 | return $filename;
1657 | }
1658 |
1659 | /**
1660 | * Get CSS classname for file
1661 | * @param string $path
1662 | * @return string
1663 | */
1664 | function fm_get_file_icon_class($path)
1665 | {
1666 | // get extension
1667 | $ext = strtolower(pathinfo($path, PATHINFO_EXTENSION));
1668 |
1669 | switch ($ext) {
1670 | case 'ico': case 'gif': case 'jpg': case 'jpeg': case 'jpc': case 'jp2':
1671 | case 'jpx': case 'xbm': case 'wbmp': case 'png': case 'bmp': case 'tif':
1672 | case 'tiff': case 'svg':
1673 | $img = 'fa fa-picture-o';
1674 | break;
1675 | case 'passwd': case 'ftpquota': case 'sql': case 'js': case 'json': case 'sh':
1676 | case 'config': case 'twig': case 'tpl': case 'md': case 'gitignore':
1677 | case 'c': case 'cpp': case 'cs': case 'py': case 'map': case 'lock': case 'dtd':
1678 | $img = 'fa fa-file-code-o';
1679 | break;
1680 | case 'txt': case 'ini': case 'conf': case 'log': case 'htaccess':
1681 | $img = 'fa fa-file-text-o';
1682 | break;
1683 | case 'css': case 'less': case 'sass': case 'scss':
1684 | $img = 'fa fa-css3';
1685 | break;
1686 | case 'zip': case 'rar': case 'gz': case 'tar': case '7z':
1687 | $img = 'fa fa-file-archive-o';
1688 | break;
1689 | case 'php': case 'php4': case 'php5': case 'phps': case 'phtml':
1690 | $img = 'fa fa-code';
1691 | break;
1692 | case 'htm': case 'html': case 'shtml': case 'xhtml':
1693 | $img = 'fa fa-html5';
1694 | break;
1695 | case 'xml': case 'xsl':
1696 | $img = 'fa fa-file-excel-o';
1697 | break;
1698 | case 'wav': case 'mp3': case 'mp2': case 'm4a': case 'aac': case 'ogg':
1699 | case 'oga': case 'wma': case 'mka': case 'flac': case 'ac3': case 'tds':
1700 | $img = 'fa fa-music';
1701 | break;
1702 | case 'm3u': case 'm3u8': case 'pls': case 'cue':
1703 | $img = 'fa fa-headphones';
1704 | break;
1705 | case 'avi': case 'mpg': case 'mpeg': case 'mp4': case 'm4v': case 'flv':
1706 | case 'f4v': case 'ogm': case 'ogv': case 'mov': case 'mkv': case '3gp':
1707 | case 'asf': case 'wmv':
1708 | $img = 'fa fa-file-video-o';
1709 | break;
1710 | case 'eml': case 'msg':
1711 | $img = 'fa fa-envelope-o';
1712 | break;
1713 | case 'xls': case 'xlsx':
1714 | $img = 'fa fa-file-excel-o';
1715 | break;
1716 | case 'csv':
1717 | $img = 'fa fa-file-text-o';
1718 | break;
1719 | case 'bak':
1720 | $img = 'fa fa-clipboard';
1721 | break;
1722 | case 'doc': case 'docx':
1723 | $img = 'fa fa-file-word-o';
1724 | break;
1725 | case 'ppt': case 'pptx':
1726 | $img = 'fa fa-file-powerpoint-o';
1727 | break;
1728 | case 'ttf': case 'ttc': case 'otf': case 'woff':case 'woff2': case 'eot': case 'fon':
1729 | $img = 'fa fa-font';
1730 | break;
1731 | case 'pdf':
1732 | $img = 'fa fa-file-pdf-o';
1733 | break;
1734 | case 'psd': case 'ai': case 'eps': case 'fla': case 'swf':
1735 | $img = 'fa fa-file-image-o';
1736 | break;
1737 | case 'exe': case 'msi':
1738 | $img = 'fa fa-file-o';
1739 | break;
1740 | case 'bat':
1741 | $img = 'fa fa-terminal';
1742 | break;
1743 | default:
1744 | $img = 'fa fa-info-circle';
1745 | }
1746 |
1747 | return $img;
1748 | }
1749 |
1750 | /**
1751 | * Get image files extensions
1752 | * @return array
1753 | */
1754 | function fm_get_image_exts()
1755 | {
1756 | return array('ico', 'gif', 'jpg', 'jpeg', 'jpc', 'jp2', 'jpx', 'xbm', 'wbmp', 'png', 'bmp', 'tif', 'tiff', 'psd');
1757 | }
1758 |
1759 | /**
1760 | * Get video files extensions
1761 | * @return array
1762 | */
1763 | function fm_get_video_exts()
1764 | {
1765 | return array('webm', 'mp4', 'm4v', 'ogm', 'ogv', 'mov');
1766 | }
1767 |
1768 | /**
1769 | * Get audio files extensions
1770 | * @return array
1771 | */
1772 | function fm_get_audio_exts()
1773 | {
1774 | return array('wav', 'mp3', 'ogg', 'm4a');
1775 | }
1776 |
1777 | /**
1778 | * Get text file extensions
1779 | * @return array
1780 | */
1781 | function fm_get_text_exts()
1782 | {
1783 | return array(
1784 | 'txt', 'css', 'ini', 'conf', 'log', 'htaccess', 'passwd', 'ftpquota', 'sql', 'js', 'json', 'sh', 'config',
1785 | 'php', 'php4', 'php5', 'phps', 'phtml', 'htm', 'html', 'shtml', 'xhtml', 'xml', 'xsl', 'm3u', 'm3u8', 'pls', 'cue',
1786 | 'eml', 'msg', 'csv', 'bat', 'twig', 'tpl', 'md', 'gitignore', 'less', 'sass', 'scss', 'c', 'cpp', 'cs', 'py',
1787 | 'map', 'lock', 'dtd', 'svg',
1788 | );
1789 | }
1790 |
1791 | /**
1792 | * Get mime types of text files
1793 | * @return array
1794 | */
1795 | function fm_get_text_mimes()
1796 | {
1797 | return array(
1798 | 'application/xml',
1799 | 'application/javascript',
1800 | 'application/x-javascript',
1801 | 'image/svg+xml',
1802 | 'message/rfc822',
1803 | );
1804 | }
1805 |
1806 | /**
1807 | * Get file names of text files w/o extensions
1808 | * @return array
1809 | */
1810 | function fm_get_text_names()
1811 | {
1812 | return array(
1813 | 'license',
1814 | 'readme',
1815 | 'authors',
1816 | 'contributors',
1817 | 'changelog',
1818 | );
1819 | }
1820 |
1821 | /**
1822 | * Class to work with zip files (using ZipArchive)
1823 | */
1824 | class FM_Zipper
1825 | {
1826 | private $zip;
1827 |
1828 | public function __construct()
1829 | {
1830 | $this->zip = new ZipArchive();
1831 | }
1832 |
1833 | /**
1834 | * Create archive with name $filename and files $files (RELATIVE PATHS!)
1835 | * @param string $filename
1836 | * @param array|string $files
1837 | * @return bool
1838 | */
1839 | public function create($filename, $files)
1840 | {
1841 | $res = $this->zip->open($filename, ZipArchive::CREATE);
1842 | if ($res !== true) {
1843 | return false;
1844 | }
1845 | if (is_array($files)) {
1846 | foreach ($files as $f) {
1847 | if (!$this->addFileOrDir($f)) {
1848 | $this->zip->close();
1849 | return false;
1850 | }
1851 | }
1852 | $this->zip->close();
1853 | return true;
1854 | } else {
1855 | if ($this->addFileOrDir($files)) {
1856 | $this->zip->close();
1857 | return true;
1858 | }
1859 | return false;
1860 | }
1861 | }
1862 |
1863 | /**
1864 | * Extract archive $filename to folder $path (RELATIVE OR ABSOLUTE PATHS)
1865 | * @param string $filename
1866 | * @param string $path
1867 | * @return bool
1868 | */
1869 | public function unzip($filename, $path)
1870 | {
1871 | $res = $this->zip->open($filename);
1872 | if ($res !== true) {
1873 | return false;
1874 | }
1875 | if ($this->zip->extractTo($path)) {
1876 | $this->zip->close();
1877 | return true;
1878 | }
1879 | return false;
1880 | }
1881 |
1882 | /**
1883 | * Add file/folder to archive
1884 | * @param string $filename
1885 | * @return bool
1886 | */
1887 | private function addFileOrDir($filename)
1888 | {
1889 | if (is_file($filename)) {
1890 | return $this->zip->addFile($filename);
1891 | } elseif (is_dir($filename)) {
1892 | return $this->addDir($filename);
1893 | }
1894 | return false;
1895 | }
1896 |
1897 | /**
1898 | * Add folder recursively
1899 | * @param string $path
1900 | * @return bool
1901 | */
1902 | private function addDir($path)
1903 | {
1904 | if (!$this->zip->addEmptyDir($path)) {
1905 | return false;
1906 | }
1907 | $objects = scandir($path);
1908 | if (is_array($objects)) {
1909 | foreach ($objects as $file) {
1910 | if ($file != '.' && $file != '..') {
1911 | if (is_dir($path . '/' . $file)) {
1912 | if (!$this->addDir($path . '/' . $file)) {
1913 | return false;
1914 | }
1915 | } elseif (is_file($path . '/' . $file)) {
1916 | if (!$this->zip->addFile($path . '/' . $file)) {
1917 | return false;
1918 | }
1919 | }
1920 | }
1921 | }
1922 | return true;
1923 | }
1924 | return false;
1925 | }
1926 | }
1927 |
1928 | //--- templates functions
1929 |
1930 | /**
1931 | * Show nav block
1932 | * @param string $path
1933 | */
1934 | function fm_show_nav_path($path)
1935 | {
1936 | global $lang;
1937 | ?>
1938 |
1939 |
1940 |
";
1943 | $sep = '
';
1944 | if ($path != '') {
1945 | $exploded = explode('/', $path);
1946 | $count = count($exploded);
1947 | $array = array();
1948 | $parent = '';
1949 | for ($i = 0; $i < $count; $i++) {
1950 | $parent = trim($parent . '/' . $exploded[$i], '/');
1951 | $parent_enc = urlencode($parent);
1952 | $array[] = "
" . fm_enc(fm_convert_win($exploded[$i])) . "";
1953 | }
1954 | $root_url .= $sep . implode($sep, $array);
1955 | }
1956 | echo '
' . $root_url . '
';
1957 | ?>
1958 |
1959 |
1960 |
1961 |
1962 |
1963 |
1964 |
1965 |
1966 |
1967 |
1968 | ' . $_SESSION['message'] . '';
1979 | unset($_SESSION['message']);
1980 | unset($_SESSION['status']);
1981 | }
1982 | }
1983 |
1984 | /**
1985 | * Show page header in Login Form
1986 | */
1987 | function fm_show_header_login()
1988 | {
1989 | $sprites_ver = '20160315';
1990 | header("Content-Type: text/html; charset=utf-8");
1991 | header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
1992 | header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
1993 | header("Pragma: no-cache");
1994 |
1995 | global $lang;
1996 | ?>
1997 |
1998 |
1999 |
2000 |
2001 |
H3K | File Manager
2002 |
2003 |
2004 |
2005 |
2006 |
2009 |
2010 |
2011 |
2012 |
2013 |
2022 |
2023 |
2024 |
2025 |
2041 |
2042 |
2043 |
2044 |
2045 |
H3K | File Manager
2046 |
2047 |
2048 |
2049 |
2050 |
2051 |
2052 |
2053 |
2056 |
2057 |
2058 |
2059 |
2062 |
X
2063 |
2064 |
Search Results
2065 |
2066 |
2067 |
2076 |
2077 |
2080 |
2081 |
2082 |
2083 |
2084 |
2085 |
2086 |
2087 |
2088 |
2089 |
2090 | 'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
2140 | bWFnZVJlYWR5ccllPAAAAZVJREFUeNqkk79Lw0AUx1+uidTQim4Waxfpnl1BcHMR6uLkIF0cpYOI
2141 | f4KbOFcRwbGTc0HQSVQQXCqlFIXgFkhIyvWS870LaaPYH9CDy8vdfb+fey930aSUMEvT6VHVzw8x
2142 | rKUX3N3Hj/8M+cZ6GcOtBPl6KY5iAA7KJzfVWrfbhUKhALZtQ6myDf1+X5nsuzjLUmUOnpa+v5r1
2143 | Z4ZDDfsLiwER45xDEATgOI6KntfDd091GidzC8vZ4vH1QQ09+4MSMAMWRREKPMhmsyr6voYmrnb2
2144 | PKEizdEabUaeFCDKCCHAdV0wTVNFznMgpVqGlZ2cipzHGtKSZwCIZJgJwxB38KHT6Sjx21V75Jcn
2145 | LXmGAKTRpGVZUx2dAqQzSEqw9kqwuGqONTufPrw37D8lQFxCvjgPXIixANLEGfwuQacMOC4kZz+q
2146 | GdhJS550BjpRCdCbAJCMJRkMASEIg+4Bxz4JwAwDSEueAYDLIM+QrOk6GHiRxjXSkJY8KUCvdXZ6
2147 | kbuvNx+mOcbN9taGBlpLAWf9nX8EGADoCfqkKWV/cgAAAABJRU5ErkJggg==',
2148 | 'sprites' => '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
2177 | Aj4BMqlAXCqV4e3udG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+KlOJPV6bJM
2230 | yfg3wNf+r99KxafOibNu5IQvKKsv2x9lTtEFvmGlXq9/rFeL/gnWD2kB6KcwcpB+wP/IyeP2svqp
2231 | 9oeiCT9Fr1cL/gmp125aUc4P+B85iX+qJ/la0k/Ze0D0T0j93jXTpv0BYUGhQhdSooYAAAAASUVO
2232 | RK5CYII=',
2233 | );
2234 | }
2235 | ?>
2236 |
--------------------------------------------------------------------------------