to achieve valid XHTML (thanks to Marc Magos) * improved delete function * [ava at asl dot se] * new list order: folders first * * Changes of revision 9 * [daniel dot wacker at web dot de] * added workaround for directory listing, if lstat() is disabled * fixed permisson of uploaded files (thanks to Stephan Duffner) * * Changes of revision 8 * [okankan at stud dot sdu dot edu dot tr] * added Turkish translation * [j at kub dot cz] * added Czech translation * [daniel dot wacker at web dot de] * improved charset handling * * Changes of revision 7 * [szuniga at vtr dot net] * added Spanish translation * [lars at soelgaard dot net] * added Danish translation * [daniel dot wacker at web dot de] * improved rename dialog * * Changes of revision 6 * [nederkoorn at tiscali dot nl] * added Dutch translation * * Changes of revision 5 * [daniel dot wacker at web dot de] * added language auto select * fixed symlinks in directory listing * removed word-wrap in edit textarea * * Changes of revision 4 * [daloan at guideo dot fr] * added French translation * [anders at wiik dot cc] * added Swedish translation * * Changes of revision 3 * [nzunta at gabriele dash erba dot it] * improved Italian translation * * Changes of revision 2 * [daniel dot wacker at web dot de] * got images work in some old browsers * fixed creation of directories * fixed files deletion * improved path handling * added missing word 'not_created' * [till at tuxen dot de] * improved human readability of file sizes * [nzunta at gabriele dash erba dot it] * added Italian translation * * Changes of revision 1 * [daniel dot wacker at web dot de] * webadmin.php completely rewritten: * - clean XHTML/CSS output * - several files selectable * - support for windows servers * - no more treeview, because * - webadmin.php is a >simple< file manager * - performance problems (too much additional code) * - I don't like: frames, java-script, to reload after every treeview-click * - execution of shell scripts * - introduced revision numbers * /* ------------------------------------------------------------------------- */ /* Your language: * 'en' - English * 'de' - German * 'fr' - French * 'it' - Italian * 'nl' - Dutch * 'se' - Swedish * 'sp' - Spanish * 'dk' - Danish * 'tr' - Turkish * 'cs' - Czech * 'ru' - Russian * 'pl' - Polish * 'auto' - autoselect */ $lang = 'auto'; /* Homedir: * For example: './' - the script's directory */ $homedir = './'; /* Size of the edit textarea */ $editcols = 80; $editrows = 25; /* ------------------------------------------- * Optional configuration (remove # to enable) */ /* Permission of created directories: * For example: 0705 would be 'drwx---r-x'. */ # $dirpermission = 0705; /* Permission of created files: * For example: 0604 would be '-rw----r--'. */ # $filepermission = 0604; /* Filenames related to the apache web server: */ $htaccess = '.htaccess'; $htpasswd = '.htpasswd'; /* ------------------------------------------------------------------------- */ if (get_magic_quotes_gpc()) { array_walk($_GET, 'strip'); array_walk($_POST, 'strip'); array_walk($_REQUEST, 'strip'); } if (array_key_exists('image', $_GET)) { header('Content-Type: image/gif'); die(getimage($_GET['image'])); } if (!function_exists('lstat')) { function lstat ($filename) { return stat($filename); } } $delim = DIRECTORY_SEPARATOR; if (function_exists('php_uname')) { $win = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? true : false; } else { $win = ($delim == '\\') ? true : false; } if (!empty($_SERVER['PATH_TRANSLATED'])) { $scriptdir = dirname($_SERVER['PATH_TRANSLATED']); } elseif (!empty($_SERVER['SCRIPT_FILENAME'])) { $scriptdir = dirname($_SERVER['SCRIPT_FILENAME']); } elseif (function_exists('getcwd')) { $scriptdir = getcwd(); } else { $scriptdir = '.'; } $homedir = relative2absolute($homedir, $scriptdir); $dir = (array_key_exists('dir', $_REQUEST)) ? $_REQUEST['dir'] : $homedir; if (array_key_exists('olddir', $_POST) && !path_is_relative($_POST['olddir'])) { $dir = relative2absolute($dir, $_POST['olddir']); } $directory = simplify_path(addslash($dir)); $files = array(); $action = ''; if (!empty($_POST['submit_all'])) { $action = $_POST['action_all']; for ($i = 0; $i < $_POST['num']; $i++) { if (array_key_exists("checked$i", $_POST) && $_POST["checked$i"] == 'true') { $files[] = $_POST["file$i"]; } } } elseif (!empty($_REQUEST['action'])) { $action = $_REQUEST['action']; $files[] = relative2absolute($_REQUEST['file'], $directory); } elseif (!empty($_POST['submit_upload']) && !empty($_FILES['upload']['name'])) { $files[] = $_FILES['upload']; $action = 'upload'; } elseif (array_key_exists('num', $_POST)) { for ($i = 0; $i < $_POST['num']; $i++) { if (array_key_exists("submit$i", $_POST)) break; } if ($i < $_POST['num']) { $action = $_POST["action$i"]; $files[] = $_POST["file$i"]; } } if (empty($action) && (!empty($_POST['submit_create']) || (array_key_exists('focus', $_POST) && $_POST['focus'] == 'create')) && !empty($_POST['create_name'])) { $files[] = relative2absolute($_POST['create_name'], $directory); switch ($_POST['create_type']) { case 'directory': $action = 'create_directory'; break; case 'file': $action = 'create_file'; } } if (sizeof($files) == 0) $action = ''; else $file = reset($files); if ($lang == 'auto') { if (array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER) && strlen($_SERVER['HTTP_ACCEPT_LANGUAGE']) >= 2) { $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); } else { $lang = 'en'; } } $words = getwords($lang); if ($site_charset == 'auto') { $site_charset = $word_charset; } $cols = ($win) ? 4 : 7; if (!isset($dirpermission)) { $dirpermission = (function_exists('umask')) ? (0777 & ~umask()) : 0755; } if (!isset($filepermission)) { $filepermission = (function_exists('umask')) ? (0666 & ~umask()) : 0644; } if (!empty($_SERVER['SCRIPT_NAME'])) { $self = html(basename($_SERVER['SCRIPT_NAME'])); } elseif (!empty($_SERVER['PHP_SELF'])) { $self = html(basename($_SERVER['PHP_SELF'])); } else { $self = ''; } if (!empty($_SERVER['SERVER_SOFTWARE'])) { if (strtolower(substr($_SERVER['SERVER_SOFTWARE'], 0, 6)) == 'apache') { $apache = true; } else { $apache = false; } } else { $apache = true; } switch ($action) { case 'view': if (is_script($file)) { /* highlight_file is a mess! */ ob_start(); highlight_file($file); $src = ereg_replace('', '', ob_get_contents()); $src = str_replace(array('', "\r", "\n"), array('', '', ''), $src); ob_end_clean(); html_header(); echo '
|
' . $src . ' |
', '}' =>'', '[' => '', ']' => ''); return str_replace($search, $arguments, str_replace(array_keys($replace), $replace, nl2br(html($words[$phrase])))); } function getwords ($lang) { global $date_format, $word_charset; $word_charset = 'UTF-8'; switch ($lang) { case 'de': $date_format = 'd.m.y H:i:s'; return array( 'directory' => 'Verzeichnis', 'file' => 'Datei', 'filename' => 'Dateiname', 'size' => 'Größe', 'permission' => 'Rechte', 'owner' => 'Eigner', 'group' => 'Gruppe', 'other' => 'Andere', 'functions' => 'Funktionen', 'read' => 'lesen', 'write' => 'schreiben', 'execute' => 'ausführen', 'create_symlink' => 'Symlink erstellen', 'delete' => 'löschen', 'rename' => 'umbenennen', 'move' => 'verschieben', 'copy' => 'kopieren', 'edit' => 'editieren', 'download' => 'herunterladen', 'upload' => 'hochladen', 'create' => 'erstellen', 'change' => 'wechseln', 'save' => 'speichern', 'set' => 'setze', 'reset' => 'zurücksetzen', 'relative' => 'Pfad zum Ziel relativ', 'yes' => 'Ja', 'no' => 'Nein', 'back' => 'zurück', 'destination' => 'Ziel', 'symlink' => 'Symbolischer Link', 'no_output' => 'keine Ausgabe', 'user' => 'Benutzername', 'password' => 'Kennwort', 'add' => 'hinzufügen', 'add_basic_auth' => 'HTTP-Basic-Auth hinzufügen', 'uploaded' => '"[%1]" wurde hochgeladen.', 'not_uploaded' => '"[%1]" konnte nicht hochgeladen werden.', 'already_exists' => '"[%1]" existiert bereits.', 'created' => '"[%1]" wurde erstellt.', 'not_created' => '"[%1]" konnte nicht erstellt werden.', 'really_delete' => 'Sollen folgende Dateien wirklich gelöscht werden?', 'deleted' => "Folgende Dateien wurden gelöscht:\n[%1]", 'not_deleted' => "Folgende Dateien konnten nicht gelöscht werden:\n[%1]", 'rename_file' => 'Benenne Datei um:', 'renamed' => '"[%1]" wurde in "[%2]" umbenannt.', 'not_renamed' => '"[%1] konnte nicht in "[%2]" umbenannt werden.', 'move_files' => 'Verschieben folgende Dateien:', 'moved' => "Folgende Dateien wurden nach \"[%2]\" verschoben:\n[%1]", 'not_moved' => "Folgende Dateien konnten nicht nach \"[%2]\" verschoben werden:\n[%1]", 'copy_files' => 'Kopiere folgende Dateien:', 'copied' => "Folgende Dateien wurden nach \"[%2]\" kopiert:\n[%1]", 'not_copied' => "Folgende Dateien konnten nicht nach \"[%2]\" kopiert werden:\n[%1]", 'not_edited' => '"[%1]" kann nicht editiert werden.', 'executed' => "\"[%1]\" wurde erfolgreich ausgeführt:\n{%2}", 'not_executed' => "\"[%1]\" konnte nicht erfolgreich ausgeführt werden:\n{%2}", 'saved' => '"[%1]" wurde gespeichert.', 'not_saved' => '"[%1]" konnte nicht gespeichert werden.', 'symlinked' => 'Symbolischer Link von "[%2]" nach "[%1]" wurde erstellt.', 'not_symlinked' => 'Symbolischer Link von "[%2]" nach "[%1]" konnte nicht erstellt werden.', 'permission_for' => 'Rechte für "[%1]":', 'permission_set' => 'Die Rechte für "[%1]" wurden auf [%2] gesetzt.', 'permission_not_set' => 'Die Rechte für "[%1]" konnten nicht auf [%2] gesetzt werden.', 'not_readable' => '"[%1]" kann nicht gelesen werden.' ); case 'fr': $date_format = 'd.m.y H:i:s'; return array( 'directory' => 'Répertoire', 'file' => 'Fichier', 'filename' => 'Nom fichier', 'size' => 'Taille', 'permission' => 'Droits', 'owner' => 'Propriétaire', 'group' => 'Groupe', 'other' => 'Autres', 'functions' => 'Fonctions', 'read' => 'Lire', 'write' => 'Ecrire', 'execute' => 'Exécuter', 'create_symlink' => 'Créer lien symbolique', 'delete' => 'Effacer', 'rename' => 'Renommer', 'move' => 'Déplacer', 'copy' => 'Copier', 'edit' => 'Ouvrir', 'download' => 'Télécharger sur PC', 'upload' => 'Télécharger sur serveur', 'create' => 'Créer', 'change' => 'Changer', 'save' => 'Sauvegarder', 'set' => 'Exécuter', 'reset' => 'Réinitialiser', 'relative' => 'Relatif', 'yes' => 'Oui', 'no' => 'Non', 'back' => 'Retour', 'destination' => 'Destination', 'symlink' => 'Lien symbollique', 'no_output' => 'Pas de sortie', 'user' => 'Utilisateur', 'password' => 'Mot de passe', 'add' => 'Ajouter', 'add_basic_auth' => 'add basic-authentification', 'uploaded' => '"[%1]" a été téléchargé sur le serveur.', 'not_uploaded' => '"[%1]" n a pas été téléchargé sur le serveur.', 'already_exists' => '"[%1]" existe déjŕ.', 'created' => '"[%1]" a été créé.', 'not_created' => '"[%1]" n a pas pu ętre créé.', 'really_delete' => 'Effacer le fichier?', 'deleted' => "Ces fichiers ont été détuits:\n[%1]", 'not_deleted' => "Ces fichiers n ont pu ętre détruits:\n[%1]", 'rename_file' => 'Renomme fichier:', 'renamed' => '"[%1]" a été renommé en "[%2]".', 'not_renamed' => '"[%1] n a pas pu ętre renommé en "[%2]".', 'move_files' => 'Déplacer ces fichiers:', 'moved' => "Ces fichiers ont été déplacés en \"[%2]\":\n[%1]", 'not_moved' => "Ces fichiers n ont pas pu ętre déplacés en \"[%2]\":\n[%1]", 'copy_files' => 'Copier ces fichiers:', 'copied' => "Ces fichiers ont été copiés en \"[%2]\":\n[%1]", 'not_copied' => "Ces fichiers n ont pas pu ętre copiés en \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" ne peut ętre ouvert.', 'executed' => "\"[%1]\" a été brillamment exécuté :\n{%2}", 'not_executed' => "\"[%1]\" n a pas pu ętre exécuté:\n{%2}", 'saved' => '"[%1]" a été sauvegardé.', 'not_saved' => '"[%1]" n a pas pu ętre sauvegardé.', 'symlinked' => 'Un lien symbolique depuis "[%2]" vers "[%1]" a été crée.', 'not_symlinked' => 'Un lien symbolique depuis "[%2]" vers "[%1]" n a pas pu ętre créé.', 'permission_for' => 'Droits de "[%1]":', 'permission_set' => 'Droits de "[%1]" ont été changés en [%2].', 'permission_not_set' => 'Droits de "[%1]" n ont pas pu ętre changés en[%2].', 'not_readable' => '"[%1]" ne peut pas ętre ouvert.' ); case 'it': $date_format = 'd-m-Y H:i:s'; return array( 'directory' => 'Directory', 'file' => 'File', 'filename' => 'Nome File', 'size' => 'Dimensioni', 'permission' => 'Permessi', 'owner' => 'Proprietario', 'group' => 'Gruppo', 'other' => 'Altro', 'functions' => 'Funzioni', 'read' => 'leggi', 'write' => 'scrivi', 'execute' => 'esegui', 'create_symlink' => 'crea link simbolico', 'delete' => 'cancella', 'rename' => 'rinomina', 'move' => 'sposta', 'copy' => 'copia', 'edit' => 'modifica', 'download' => 'download', 'upload' => 'upload', 'create' => 'crea', 'change' => 'cambia', 'save' => 'salva', 'set' => 'imposta', 'reset' => 'reimposta', 'relative' => 'Percorso relativo per la destinazione', 'yes' => 'Si', 'no' => 'No', 'back' => 'indietro', 'destination' => 'Destinazione', 'symlink' => 'Link simbolico', 'no_output' => 'no output', 'user' => 'User', 'password' => 'Password', 'add' => 'aggiungi', 'add_basic_auth' => 'aggiungi autenticazione base', 'uploaded' => '"[%1]" č stato caricato.', 'not_uploaded' => '"[%1]" non č stato caricato.', 'already_exists' => '"[%1]" esiste giŕ.', 'created' => '"[%1]" č stato creato.', 'not_created' => '"[%1]" non č stato creato.', 'really_delete' => 'Cancello questi file ?', 'deleted' => "Questi file sono stati cancellati:\n[%1]", 'not_deleted' => "Questi file non possono essere cancellati:\n[%1]", 'rename_file' => 'File rinominato:', 'renamed' => '"[%1]" č stato rinominato in "[%2]".', 'not_renamed' => '"[%1] non č stato rinominato in "[%2]".', 'move_files' => 'Sposto questi file:', 'moved' => "Questi file sono stati spostati in \"[%2]\":\n[%1]", 'not_moved' => "Questi file non possono essere spostati in \"[%2]\":\n[%1]", 'copy_files' => 'Copio questi file', 'copied' => "Questi file sono stati copiati in \"[%2]\":\n[%1]", 'not_copied' => "Questi file non possono essere copiati in \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" non puň essere modificato.', 'executed' => "\"[%1]\" č stato eseguito con successo:\n{%2}", 'not_executed' => "\"[%1]\" non č stato eseguito con successo\n{%2}", 'saved' => '"[%1]" č stato salvato.', 'not_saved' => '"[%1]" non č stato salvato.', 'symlinked' => 'Il link siambolico da "[%2]" a "[%1]" č stato creato.', 'not_symlinked' => 'Il link siambolico da "[%2]" a "[%1]" non č stato creato.', 'permission_for' => 'Permessi di "[%1]":', 'permission_set' => 'I permessi di "[%1]" sono stati impostati [%2].', 'permission_not_set' => 'I permessi di "[%1]" non sono stati impostati [%2].', 'not_readable' => '"[%1]" non puň essere letto.' ); case 'nl': $date_format = 'n/j/y H:i:s'; return array( 'directory' => 'Directory', 'file' => 'Bestand', 'filename' => 'Bestandsnaam', 'size' => 'Grootte', 'permission' => 'Bevoegdheid', 'owner' => 'Eigenaar', 'group' => 'Groep', 'other' => 'Anderen', 'functions' => 'Functies', 'read' => 'lezen', 'write' => 'schrijven', 'execute' => 'uitvoeren', 'create_symlink' => 'maak symlink', 'delete' => 'verwijderen', 'rename' => 'hernoemen', 'move' => 'verplaatsen', 'copy' => 'kopieren', 'edit' => 'bewerken', 'download' => 'downloaden', 'upload' => 'uploaden', 'create' => 'aanmaken', 'change' => 'veranderen', 'save' => 'opslaan', 'set' => 'instellen', 'reset' => 'resetten', 'relative' => 'Relatief pat naar doel', 'yes' => 'Ja', 'no' => 'Nee', 'back' => 'terug', 'destination' => 'Bestemming', 'symlink' => 'Symlink', 'no_output' => 'geen output', 'user' => 'Gebruiker', 'password' => 'Wachtwoord', 'add' => 'toevoegen', 'add_basic_auth' => 'add basic-authentification', 'uploaded' => '"[%1]" is verstuurd.', 'not_uploaded' => '"[%1]" kan niet worden verstuurd.', 'already_exists' => '"[%1]" bestaat al.', 'created' => '"[%1]" is aangemaakt.', 'not_created' => '"[%1]" kan niet worden aangemaakt.', 'really_delete' => 'Deze bestanden verwijderen?', 'deleted' => "Deze bestanden zijn verwijderd:\n[%1]", 'not_deleted' => "Deze bestanden konden niet worden verwijderd:\n[%1]", 'rename_file' => 'Bestandsnaam veranderen:', 'renamed' => '"[%1]" heet nu "[%2]".', 'not_renamed' => '"[%1] kon niet worden veranderd in "[%2]".', 'move_files' => 'Verplaats deze bestanden:', 'moved' => "Deze bestanden zijn verplaatst naar \"[%2]\":\n[%1]", 'not_moved' => "Kan deze bestanden niet verplaatsen naar \"[%2]\":\n[%1]", 'copy_files' => 'Kopieer deze bestanden:', 'copied' => "Deze bestanden zijn gekopieerd naar \"[%2]\":\n[%1]", 'not_copied' => "Deze bestanden kunnen niet worden gekopieerd naar \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" kan niet worden bewerkt.', 'executed' => "\"[%1]\" is met succes uitgevoerd:\n{%2}", 'not_executed' => "\"[%1]\" is niet goed uitgevoerd:\n{%2}", 'saved' => '"[%1]" is opgeslagen.', 'not_saved' => '"[%1]" is niet opgeslagen.', 'symlinked' => 'Symlink van "[%2]" naar "[%1]" is aangemaakt.', 'not_symlinked' => 'Symlink van "[%2]" naar "[%1]" is niet aangemaakt.', 'permission_for' => 'Bevoegdheid voor "[%1]":', 'permission_set' => 'Bevoegdheid van "[%1]" is ingesteld op [%2].', 'permission_not_set' => 'Bevoegdheid van "[%1]" is niet ingesteld op [%2].', 'not_readable' => '"[%1]" kan niet worden gelezen.' ); case 'se': $date_format = 'n/j/y H:i:s'; return array( 'directory' => 'Mapp', 'file' => 'Fil', 'filename' => 'Filnamn', 'size' => 'Storlek', 'permission' => 'Säkerhetsnivĺ', 'owner' => 'Ägare', 'group' => 'Grupp', 'other' => 'Andra', 'functions' => 'Funktioner', 'read' => 'Läs', 'write' => 'Skriv', 'execute' => 'Utför', 'create_symlink' => 'Skapa symlink', 'delete' => 'Radera', 'rename' => 'Byt namn', 'move' => 'Flytta', 'copy' => 'Kopiera', 'edit' => 'Ändra', 'download' => 'Ladda ner', 'upload' => 'Ladda upp', 'create' => 'Skapa', 'change' => 'Ändra', 'save' => 'Spara', 'set' => 'Markera', 'reset' => 'Töm', 'relative' => 'Relative path to target', 'yes' => 'Ja', 'no' => 'Nej', 'back' => 'Tillbaks', 'destination' => 'Destination', 'symlink' => 'Symlink', 'no_output' => 'no output', 'user' => 'Användare', 'password' => 'Lösenord', 'add' => 'Lägg till', 'add_basic_auth' => 'add basic-authentification', 'uploaded' => '"[%1]" har laddats upp.', 'not_uploaded' => '"[%1]" kunde inte laddas upp.', 'already_exists' => '"[%1]" finns redan.', 'created' => '"[%1]" har skapats.', 'not_created' => '"[%1]" kunde inte skapas.', 'really_delete' => 'Radera dessa filer?', 'deleted' => "De här filerna har raderats:\n[%1]", 'not_deleted' => "Dessa filer kunde inte raderas:\n[%1]", 'rename_file' => 'Byt namn pĺ fil:', 'renamed' => '"[%1]" har bytt namn till "[%2]".', 'not_renamed' => '"[%1] kunde inte döpas om till "[%2]".', 'move_files' => 'Flytta dessa filer:', 'moved' => "Dessa filer har flyttats till \"[%2]\":\n[%1]", 'not_moved' => "Dessa filer kunde inte flyttas till \"[%2]\":\n[%1]", 'copy_files' => 'Kopiera dessa filer:', 'copied' => "Dessa filer har kopierats till \"[%2]\":\n[%1]", 'not_copied' => "Dessa filer kunde inte kopieras till \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" kan inte ändras.', 'executed' => "\"[%1]\" har utförts:\n{%2}", 'not_executed' => "\"[%1]\" kunde inte utföras:\n{%2}", 'saved' => '"[%1]" har sparats.', 'not_saved' => '"[%1]" kunde inte sparas.', 'symlinked' => 'Symlink frĺn "[%2]" till "[%1]" har skapats.', 'not_symlinked' => 'Symlink frĺn "[%2]" till "[%1]" kunde inte skapas.', 'permission_for' => 'Rättigheter för "[%1]":', 'permission_set' => 'Rättigheter för "[%1]" ändrades till [%2].', 'permission_not_set' => 'Permission of "[%1]" could not be set to [%2].', 'not_readable' => '"[%1]" kan inte läsas.' ); case 'sp': $date_format = 'j/n/y H:i:s'; return array( 'directory' => 'Directorio', 'file' => 'Archivo', 'filename' => 'Nombre Archivo', 'size' => 'Tamańo', 'permission' => 'Permisos', 'owner' => 'Propietario', 'group' => 'Grupo', 'other' => 'Otros', 'functions' => 'Funciones', 'read' => 'lectura', 'write' => 'escritura', 'execute' => 'ejecución', 'create_symlink' => 'crear enlace', 'delete' => 'borrar', 'rename' => 'renombrar', 'move' => 'mover', 'copy' => 'copiar', 'edit' => 'editar', 'download' => 'bajar', 'upload' => 'subir', 'create' => 'crear', 'change' => 'cambiar', 'save' => 'salvar', 'set' => 'setear', 'reset' => 'resetear', 'relative' => 'Path relativo', 'yes' => 'Si', 'no' => 'No', 'back' => 'atrás', 'destination' => 'Destino', 'symlink' => 'Enlace', 'no_output' => 'sin salida', 'user' => 'Usuario', 'password' => 'Clave', 'add' => 'agregar', 'add_basic_auth' => 'agregar autentificación básica', 'uploaded' => '"[%1]" ha sido subido.', 'not_uploaded' => '"[%1]" no pudo ser subido.', 'already_exists' => '"[%1]" ya existe.', 'created' => '"[%1]" ha sido creado.', 'not_created' => '"[%1]" no pudo ser creado.', 'really_delete' => 'żBorra estos archivos?', 'deleted' => "Estos archivos han sido borrados:\n[%1]", 'not_deleted' => "Estos archivos no pudieron ser borrados:\n[%1]", 'rename_file' => 'Renombra archivo:', 'renamed' => '"[%1]" ha sido renombrado a "[%2]".', 'not_renamed' => '"[%1] no pudo ser renombrado a "[%2]".', 'move_files' => 'Mover estos archivos:', 'moved' => "Estos archivos han sido movidos a \"[%2]\":\n[%1]", 'not_moved' => "Estos archivos no pudieron ser movidos a \"[%2]\":\n[%1]", 'copy_files' => 'Copiar estos archivos:', 'copied' => "Estos archivos han sido copiados a \"[%2]\":\n[%1]", 'not_copied' => "Estos archivos no pudieron ser copiados \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" no pudo ser editado.', 'executed' => "\"[%1]\" ha sido ejecutado correctamente:\n{%2}", 'not_executed' => "\"[%1]\" no pudo ser ejecutado correctamente:\n{%2}", 'saved' => '"[%1]" ha sido salvado.', 'not_saved' => '"[%1]" no pudo ser salvado.', 'symlinked' => 'Enlace desde "[%2]" a "[%1]" ha sido creado.', 'not_symlinked' => 'Enlace desde "[%2]" a "[%1]" no pudo ser creado.', 'permission_for' => 'Permisos de "[%1]":', 'permission_set' => 'Permisos de "[%1]" fueron seteados a [%2].', 'permission_not_set' => 'Permisos de "[%1]" no pudo ser seteado a [%2].', 'not_readable' => '"[%1]" no pudo ser leído.' ); case 'dk': $date_format = 'n/j/y H:i:s'; return array( 'directory' => 'Mappe', 'file' => 'Fil', 'filename' => 'Filnavn', 'size' => 'Střrrelse', 'permission' => 'Rettighed', 'owner' => 'Ejer', 'group' => 'Gruppe', 'other' => 'Andre', 'functions' => 'Funktioner', 'read' => 'lćs', 'write' => 'skriv', 'execute' => 'křr', 'create_symlink' => 'opret symbolsk link', 'delete' => 'slet', 'rename' => 'omdřb', 'move' => 'flyt', 'copy' => 'kopier', 'edit' => 'rediger', 'download' => 'download', 'upload' => 'upload', 'create' => 'opret', 'change' => 'skift', 'save' => 'gem', 'set' => 'sćt', 'reset' => 'nulstil', 'relative' => 'Relativ sti til valg', 'yes' => 'Ja', 'no' => 'Nej', 'back' => 'tilbage', 'destination' => 'Distination', 'symlink' => 'Symbolsk link', 'no_output' => 'ingen resultat', 'user' => 'Bruger', 'password' => 'Kodeord', 'add' => 'tilfřj', 'add_basic_auth' => 'tilfřj grundliggende rettigheder', 'uploaded' => '"[%1]" er blevet uploaded.', 'not_uploaded' => '"[%1]" kunnu ikke uploades.', 'already_exists' => '"[%1]" findes allerede.', 'created' => '"[%1]" er blevet oprettet.', 'not_created' => '"[%1]" kunne ikke oprettes.', 'really_delete' => 'Slet disse filer?', 'deleted' => "Disse filer er blevet slettet:\n[%1]", 'not_deleted' => "Disse filer kunne ikke slettes:\n[%1]", 'rename_file' => 'Omdřd fil:', 'renamed' => '"[%1]" er blevet omdřbt til "[%2]".', 'not_renamed' => '"[%1] kunne ikke omdřbes til "[%2]".', 'move_files' => 'Flyt disse filer:', 'moved' => "Disse filer er blevet flyttet til \"[%2]\":\n[%1]", 'not_moved' => "Disse filer kunne ikke flyttes til \"[%2]\":\n[%1]", 'copy_files' => 'Kopier disse filer:', 'copied' => "Disse filer er kopieret til \"[%2]\":\n[%1]", 'not_copied' => "Disse filer kunne ikke kopieres til \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" kan ikke redigeres.', 'executed' => "\"[%1]\" er blevet křrt korrekt:\n{%2}", 'not_executed' => "\"[%1]\" kan ikke křres korrekt:\n{%2}", 'saved' => '"[%1]" er blevet gemt.', 'not_saved' => '"[%1]" kunne ikke gemmes.', 'symlinked' => 'Symbolsk link fra "[%2]" til "[%1]" er blevet oprettet.', 'not_symlinked' => 'Symbolsk link fra "[%2]" til "[%1]" kunne ikke oprettes.', 'permission_for' => 'Rettigheder for "[%1]":', 'permission_set' => 'Rettigheder for "[%1]" blev sat til [%2].', 'permission_not_set' => 'Rettigheder for "[%1]" kunne ikke sćttes til [%2].', 'not_readable' => '"[%1]" Kan ikke lćses.' ); case 'tr': $date_format = 'n/j/y H:i:s'; return array( 'directory' => 'Klasör', 'file' => 'Dosya', 'filename' => 'dosya adi', 'size' => 'boyutu', 'permission' => 'Izin', 'owner' => 'sahib', 'group' => 'Grup', 'other' => 'Digerleri', 'functions' => 'Fonksiyonlar', 'read' => 'oku', 'write' => 'yaz', 'execute' => 'çalistir', 'create_symlink' => 'yarat symlink', 'delete' => 'sil', 'rename' => 'ad degistir', 'move' => 'tasi', 'copy' => 'kopyala', 'edit' => 'düzenle', 'download' => 'indir', 'upload' => 'yükle', 'create' => 'create', 'change' => 'degistir', 'save' => 'kaydet', 'set' => 'ayar', 'reset' => 'sifirla', 'relative' => 'Hedef yola göre', 'yes' => 'Evet', 'no' => 'Hayir', 'back' => 'Geri', 'destination' => 'Hedef', 'symlink' => 'Kysa yol', 'no_output' => 'çikti yok', 'user' => 'Kullanici', 'password' => 'Sifre', 'add' => 'ekle', 'add_basic_auth' => 'ekle basit-authentification', 'uploaded' => '"[%1]" yüklendi.', 'not_uploaded' => '"[%1]" yüklenemedi.', 'already_exists' => '"[%1]" kullanilmakta.', 'created' => '"[%1]" olusturuldu.', 'not_created' => '"[%1]" olusturulamadi.', 'really_delete' => 'Bu dosyalari silmek istediginizden eminmisiniz?', 'deleted' => "Bu dosyalar silindi:\n[%1]", 'not_deleted' => "Bu dosyalar silinemedi:\n[%1]", 'rename_file' => 'Adi degisen dosya:', 'renamed' => '"[%1]" adili dosyanin yeni adi "[%2]".', 'not_renamed' => '"[%1] adi degistirilemedi "[%2]" ile.', 'move_files' => 'Tasinan dosyalar:', 'moved' => "Bu dosyalari tasidiginiz yer \"[%2]\":\n[%1]", 'not_moved' => "Bu dosyalari tasiyamadiginiz yer \"[%2]\":\n[%1]", 'copy_files' => 'Kopyalanan dosyalar:', 'copied' => "Bu dosyalar kopyalandi \"[%2]\":\n[%1]", 'not_copied' => "Bu dosyalar kopyalanamiyor \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" düzenlenemiyor.', 'executed' => "\"[%1]\" basariyla çalistirildi:\n{%2}", 'not_executed' => "\"[%1]\" çalistirilamadi:\n{%2}", 'saved' => '"[%1]" kaydedildi.', 'not_saved' => '"[%1]" kaydedilemedi.', 'symlinked' => '"[%2]" den "[%1]" e kysayol olu?turuldu.', 'not_symlinked' => '"[%2]"den "[%1]" e kysayol olu?turulamady.', 'permission_for' => 'Izinler "[%1]":', 'permission_set' => 'Izinler "[%1]" degistirildi [%2].', 'permission_not_set' => 'Izinler "[%1]" degistirilemedi [%2].', 'not_readable' => '"[%1]" okunamiyor.' ); case 'cs': $date_format = 'd.m.y H:i:s'; return array( 'directory' => 'Adresár', 'file' => 'Soubor', 'filename' => 'Jméno souboru', 'size' => 'Velikost', 'permission' => 'Práva', 'owner' => 'Vlastník', 'group' => 'Skupina', 'other' => 'Ostatní', 'functions' => 'Funkce', 'read' => 'Ctení', 'write' => 'Zápis', 'execute' => 'Spoutení', 'create_symlink' => 'Vytvorit symbolicky odkaz', 'delete' => 'Smazat', 'rename' => 'Prejmenovat', 'move' => 'Presunout', 'copy' => 'Zkopírovat', 'edit' => 'Otevrít', 'download' => 'Stáhnout', 'upload' => 'Nahraj na server', 'create' => 'Vytvorit', 'change' => 'Zmenit', 'save' => 'Ulozit', 'set' => 'Nastavit', 'reset' => 'zpet', 'relative' => 'Relatif', 'yes' => 'Ano', 'no' => 'Ne', 'back' => 'Zpet', 'destination' => 'Destination', 'symlink' => 'Symbolicky odkaz', 'no_output' => 'Prázdny vystup', 'user' => 'Uzivatel', 'password' => 'Heslo', 'add' => 'Pridat', 'add_basic_auth' => 'pridej základní autentizaci', 'uploaded' => 'Soubor "[%1]" byl nahrán na server.', 'not_uploaded' => 'Soubor "[%1]" nebyl nahrán na server.', 'already_exists' => 'Soubor "[%1]" uz exituje.', 'created' => 'Soubor "[%1]" byl vytvoren.', 'not_created' => 'Soubor "[%1]" nemohl byt vytvoren.', 'really_delete' => 'Vymazat soubor?', 'deleted' => "Byly vymazány tyto soubory:\n[%1]", 'not_deleted' => "Tyto soubory nemohly byt vytvoreny:\n[%1]", 'rename_file' => 'Prejmenuj soubory:', 'renamed' => 'Soubor "[%1]" byl prejmenován na "[%2]".', 'not_renamed' => 'Soubor "[%1]" nemohl byt prejmenován na "[%2]".', 'move_files' => 'Premístit tyto soubory:', 'moved' => "Tyto soubory byly premísteny do \"[%2]\":\n[%1]", 'not_moved' => "Tyto soubory nemohly byt premísteny do \"[%2]\":\n[%1]", 'copy_files' => 'Zkopírovat tyto soubory:', 'copied' => "Tyto soubory byly zkopírovány do \"[%2]\":\n[%1]", 'not_copied' => "Tyto soubory nemohly byt zkopírovány do \"[%2]\":\n[%1]", 'not_edited' => 'Soubor "[%1]" nemohl byt otevren.', 'executed' => "SOubor \"[%1]\" byl sputen :\n{%2}", 'not_executed' => "Soubor \"[%1]\" nemohl byt sputen:\n{%2}", 'saved' => 'Soubor "[%1]" byl ulozen.', 'not_saved' => 'Soubor "[%1]" nemohl byt ulozen.', 'symlinked' => 'Byl vyvoren symbolicky odkaz "[%2]" na soubor "[%1]".', 'not_symlinked' => 'Symbolicky odkaz "[%2]" na soubor "[%1]" nemohl byt vytvoren.', 'permission_for' => 'Práva k "[%1]":', 'permission_set' => 'Práva k "[%1]" byla zmenena na [%2].', 'permission_not_set' => 'Práva k "[%1]" nemohla byt zmenena na [%2].', 'not_readable' => 'Soubor "[%1]" není mozno precíst.' ); case 'ru': $date_format = 'd.m.y H:i:s'; return array( 'directory' => '???????', 'file' => '????', 'filename' => '??? ?????', 'size' => '??????', 'permission' => '?????', 'owner' => '??????', 'group' => '??????', 'other' => '??????', 'functions' => '???????', 'read' => '??????', 'write' => '??????', 'execute' => '?????????', 'create_symlink' => '??????? ???????', 'delete' => '???????', 'rename' => '?????????????', 'move' => '???????????', 'copy' => '??????????', 'edit' => '?????????????', 'download' => '???????', 'upload' => '????????', 'create' => '???????', 'change' => '????????', 'save' => '?????????', 'set' => '??????????', 'reset' => '????????', 'relative' => '????????????? ???? ? ????', 'yes' => '??', 'no' => '???', 'back' => '?????', 'destination' => '????', 'symlink' => '????????????? ????', 'no_output' => '??? ??????', 'user' => '????????????', 'password' => '??????', 'add' => '????????', 'add_basic_auth' => '???????? HTTP-Basic-Auth', 'uploaded' => '"[%1]" ??? ???????.', 'not_uploaded' => '"[%1]" ?????????? ???? ????????.', 'already_exists' => '"[%1]" ??? ??????????.', 'created' => '"[%1]" ??? ??????.', 'not_created' => '"[%1]" ?? ???????? ???????.', 'really_delete' => '????????????? ???? ???? ????????', 'deleted' => "????????? ????? ???? ???????:\n[%1]", 'not_deleted' => "????????? ????? ?? ???????? ???? ???????:\n[%1]", 'rename_file' => '?????????????? ????:', 'renamed' => '"[%1]" ??? ???????????? ?? "[%2]".', 'not_renamed' => '"[%1] ?????????? ???? ????????????? ?? "[%2]".', 'move_files' => '?????????? ????????? ?????:', 'moved' => "????????? ????? ???? ??????????? ? ??????? \"[%2]\":\n[%1]", 'not_moved' => "????????? ????? ?????????? ???? ??????????? ? ??????? \"[%2]\":\n[%1]", 'copy_files' => '??????? ???????? ?????:', 'copied' => "???????? ????? ???? ??????????? ? ??????? \"[%2]\" :\n[%1]", 'not_copied' => "????????? ????? ?????????? ???? ??????????? ? ??????? \"[%2]\" :\n[%1]", 'not_edited' => '"[%1]" ?? ????? ???? ??????????????.', 'executed' => "\"[%1]\" ??? ??????? ????????:\n{%2}", 'not_executed' => "\"[%1]\" ?????????? ???? ????????? ?? ??????????:\n{%2}", 'saved' => '"[%1]" ??? ????????.', 'not_saved' => '"[%1]" ?????????? ???? ?????????.', 'symlinked' => '??????? ? "[%2]" ?? "[%1]" ??? ??????.', 'not_symlinked' => '?????????? ???? ??????? ??????? ? "[%2]" ?? "[%1]".', 'permission_for' => '????? ??????? "[%1]":', 'permission_set' => '????? ??????? "[%1]" ???? ???????? ?? [%2].', 'permission_not_set' => '?????????? ???? ???????? ????? ??????? ? "[%1]" ?? [%2] .', 'not_readable' => '"[%1]" ?????????? ?????????.' ); case 'pl': $date_format = 'd.m.y H:i:s'; return array( 'directory' => 'Katalog', 'file' => 'Plik', 'filename' => 'Nazwa pliku', 'size' => 'Rozmiar', 'permission' => 'Uprawnienia', 'owner' => 'Wlasciciel', 'group' => 'Grupa', 'other' => 'Inni', 'functions' => 'Funkcje', 'read' => 'odczyt', 'write' => 'zapis', 'execute' => 'wykonywanie', 'create_symlink' => 'utwórz dowiazanie symboliczne', 'delete' => 'kasuj', 'rename' => 'zamien', 'move' => 'przenies', 'copy' => 'kopiuj', 'edit' => 'edytuj', 'download' => 'pobierz', 'upload' => 'Przeslij', 'create' => 'Utwórz', 'change' => 'Zmien', 'save' => 'Zapisz', 'set' => 'wykonaj', 'reset' => 'wyczysc', 'relative' => 'wzgledna sciezka do celu', 'yes' => 'Tak', 'no' => 'Nie', 'back' => 'cofnij', 'destination' => 'miejsce przeznaczenia', 'symlink' => 'dowiazanie symboliczne', 'no_output' => 'nie ma wyjscia', 'user' => 'Urzytkownik', 'password' => 'Haslo', 'add' => 'dodaj', 'add_basic_auth' => 'dodaj podstawowe uwierzytelnianie', 'uploaded' => '"[%1]" zostal przeslany.', 'not_uploaded' => '"[%1]" nie moze byc przeslane.', 'already_exists' => '"[%1]" juz istnieje.', 'created' => '"[%1]" zostal utworzony.', 'not_created' => '"[%1]" nie mozna utworzyc.', 'really_delete' => 'usunac te pliki?', 'deleted' => "Pliki zostaly usuniete:\n[%1]", 'not_deleted' => "Te pliki nie moga byc usuniete:\n[%1]", 'rename_file' => 'Zmien nazwe pliku:', 'renamed' => '"[%1]" zostalo zmienione na "[%2]".', 'not_renamed' => '"[%1] nie mozna zmienic na "[%2]".', 'move_files' => 'Przenies te pliki:', 'moved' => "Pliki zostaly przeniesione do \"[%2]\":\n[%1]", 'not_moved' => "Pliki nie moga byc przeniesione do \"[%2]\":\n[%1]", 'copy_files' => 'Skopiuj te pliki:', 'copied' => "Pliki zostaly skopiowane \"[%2]\":\n[%1]", 'not_copied' => "Te pliki nie moga byc kopiowane do \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" nie mozna edytowac.', 'executed' => "\"[%1]\" zostalo wykonane pomyslnie:\n{%2}", 'not_executed' => "\"[%1]\" nie moze byc wykonane:\n{%2}", 'saved' => '"[%1]" zostal zapisany.', 'not_saved' => '"[%1]" nie mozna zapisac.', 'symlinked' => 'Dowiazanie symboliczne "[%2]" do "[%1]" zostalo utworzone.', 'not_symlinked' => 'Dowiazanie symboliczne "[%2]" do "[%1]" nie moze byc utworzone.', 'permission_for' => 'Uprawnienia "[%1]":', 'permission_set' => 'Uprawnienia "[%1]" zostaly ustalone na [%2].', 'permission_not_set' => 'Uprawnienia "[%1]" nie moga byc ustawione na [%2].', 'not_readable' => '"[%1]" nie mozna odczytac.' ); case 'en': default: $date_format = 'n/j/y H:i:s'; return array( 'directory' => 'Directory', 'file' => 'File', 'filename' => 'Filename', 'size' => 'Size', 'permission' => 'Permission', 'owner' => 'Owner', 'group' => 'Group', 'other' => 'Others', 'functions' => 'Functions', 'read' => 'read', 'write' => 'write', 'execute' => 'execute', 'create_symlink' => 'create symlink', 'delete' => 'delete', 'rename' => 'rename', 'move' => 'move', 'copy' => 'copy', 'edit' => 'edit', 'download' => 'download', 'upload' => 'upload', 'create' => 'create', 'change' => 'change', 'save' => 'save', 'set' => 'set', 'reset' => 'reset', 'relative' => 'Relative path to target', 'yes' => 'Yes', 'no' => 'No', 'back' => 'back', 'destination' => 'Destination', 'symlink' => 'Symlink', 'no_output' => 'no output', 'user' => 'User', 'password' => 'Password', 'add' => 'add', 'add_basic_auth' => 'add basic-authentification', 'uploaded' => '"[%1]" has been uploaded.', 'not_uploaded' => '"[%1]" could not be uploaded.', 'already_exists' => '"[%1]" already exists.', 'created' => '"[%1]" has been created.', 'not_created' => '"[%1]" could not be created.', 'really_delete' => 'Delete these files?', 'deleted' => "These files have been deleted:\n[%1]", 'not_deleted' => "These files could not be deleted:\n[%1]", 'rename_file' => 'Rename file:', 'renamed' => '"[%1]" has been renamed to "[%2]".', 'not_renamed' => '"[%1] could not be renamed to "[%2]".', 'move_files' => 'Move these files:', 'moved' => "These files have been moved to \"[%2]\":\n[%1]", 'not_moved' => "These files could not be moved to \"[%2]\":\n[%1]", 'copy_files' => 'Copy these files:', 'copied' => "These files have been copied to \"[%2]\":\n[%1]", 'not_copied' => "These files could not be copied to \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" can not be edited.', 'executed' => "\"[%1]\" has been executed successfully:\n{%2}", 'not_executed' => "\"[%1]\" could not be executed successfully:\n{%2}", 'saved' => '"[%1]" has been saved.', 'not_saved' => '"[%1]" could not be saved.', 'symlinked' => 'Symlink from "[%2]" to "[%1]" has been created.', 'not_symlinked' => 'Symlink from "[%2]" to "[%1]" could not be created.', 'permission_for' => 'Permission of "[%1]":', 'permission_set' => 'Permission of "[%1]" was set to [%2].', 'permission_not_set' => 'Permission of "[%1]" could not be set to [%2].', 'not_readable' => '"[%1]" can not be read.' ); } } function getimage ($image) { switch ($image) { case 'file': return base64_decode('R0lGODlhEQANAJEDAJmZmf///wAAAP///yH5BAHoAwMALAAAAAARAA0AAAItnIGJxg0B42rsiSvCA/REmXQWhmnih3LUSGaqg35vFbSXucbSabunjnMohq8CADsA'); case 'folder': return base64_decode('R0lGODlhEQANAJEDAJmZmf///8zMzP///yH5BAHoAwMALAAAAAARAA0AAAIqnI+ZwKwbYgTPtIudlbwLOgCBQJYmCYrn+m3smY5vGc+0a7dhjh7ZbygAADsA'); case 'hidden_file': return base64_decode('R0lGODlhEQANAJEDAMwAAP///5mZmf///yH5BAHoAwMALAAAAAARAA0AAAItnIGJxg0B42rsiSvCA/REmXQWhmnih3LUSGaqg35vFbSXucbSabunjnMohq8CADsA'); case 'link': return base64_decode('R0lGODlhEQANAKIEAJmZmf///wAAAMwAAP///wAAAAAAAAAAACH5BAHoAwQALAAAAAARAA0AAAM5SArcrDCCQOuLcIotwgTYUllNOA0DxXkmhY4shM5zsMUKTY8gNgUvW6cnAaZgxMyIM2zBLCaHlJgAADsA'); case 'smiley': return base64_decode('R0lGODlhEQANAJECAAAAAP//AP///wAAACH5BAHoAwIALAAAAAARAA0AAAIslI+pAu2wDAiz0jWD3hqmBzZf1VCleJQch0rkdnppB3dKZuIygrMRE/oJDwUAOwA='); case 'arrow': return base64_decode('R0lGODlhEQANAIABAAAAAP///yH5BAEKAAEALAAAAAARAA0AAAIdjA9wy6gNQ4pwUmav0yvn+hhJiI3mCJ6otrIkxxQAOw=='); } } function html_header () { global $site_charset; echo <<