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