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