· 9 years ago · Oct 12, 2016, 11:08 AM
1<?php
2//a:9:{s:4:"lang";s:2:"en";s:9:"auth_pass";s:32:"d20817b41293089d72772848f4b5fe3f";s:8:"quota_mb";i:0;s:17:"upload_ext_filter";a:0:{}s:19:"download_ext_filter";a:0:{}s:15:"error_reporting";s:0:"";s:7:"fm_root";s:0:"";s:17:"cookie_cache_time";i:2592000;s:7:"version";s:5:"0.9.7";}
3/*--------------------------------------------------
4 | PHP FILE MANAGER
5 +--------------------------------------------------
6 | phpFileManager 0.9.7
7 | By Fabricio Seger Kolling
8 | Copyright (c) 2004-2012 Fabricio Seger Kolling
9 | E-mail: dulldusk@gmail.com
10 | URL: http://phpfm.sf.net
11 | Last Changed: 2012-11-26
12 +--------------------------------------------------
13 | OPEN SOURCE CONTRIBUTIONS
14 +--------------------------------------------------
15 | TAR/GZIP/BZIP2/ZIP ARCHIVE CLASSES 2.0
16 | By Devin Doucette
17 | Copyright (c) 2004 Devin Doucette
18 | E-mail: darksnoopy@shaw.ca
19 | URL: http://www.phpclasses.org
20 +--------------------------------------------------
21 | It is the AUTHOR'S REQUEST that you keep intact the above header information
22 | and notify him if you conceive any BUGFIXES or IMPROVEMENTS to this program.
23 +--------------------------------------------------
24 | LICENSE
25 +--------------------------------------------------
26 | Licensed under the terms of any of the following licenses at your choice:
27 | - GNU General Public License Version 2 or later (the "GPL");
28 | - GNU Lesser General Public License Version 2.1 or later (the "LGPL");
29 | - Mozilla Public License Version 1.1 or later (the "MPL").
30 | You are not required to, but if you want to explicitly declare the license
31 | you have chosen to be bound to when using, reproducing, modifying and
32 | distributing this software, just include a text file titled "LEGAL" in your version
33 | of this software, indicating your license choice. In any case, your choice will not
34 | restrict any recipient of your version of this software to use, reproduce, modify
35 | and distribute this software under any of the above licenses.
36 +--------------------------------------------------
37 | CONFIGURATION AND INSTALATION NOTES
38 +--------------------------------------------------
39 | This program does not include any instalation or configuration
40 | notes because it simply does not require them.
41 | Just throw this file anywhere in your webserver and enjoy !!
42 +--------------------------------------------------
43*/
44// +--------------------------------------------------
45// | Header and Globals
46// +--------------------------------------------------
47 $charset = "UTF-8";
48 //@setlocale(LC_CTYPE, 'C');
49 header("Pragma: no-cache");
50 header("Cache-Control: no-store");
51 header("Content-Type: text/html; charset=".$charset);
52 //@ini_set('default_charset', $charset);
53 if (@get_magic_quotes_gpc()) {
54 function stripslashes_deep($value){
55 return is_array($value)? array_map('stripslashes_deep', $value):$value;
56 }
57 $_POST = array_map('stripslashes_deep', $_POST);
58 $_GET = array_map('stripslashes_deep', $_GET);
59 $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
60 $_REQUEST = array_map('stripslashes_deep', $_REQUEST);
61 }
62 // Register Globals
63 foreach ($_GET as $key => $val) $$key=$val;
64 foreach ($_POST as $key => $val) $$key=$val;
65 foreach ($_COOKIE as $key => $val) $$key=$val;
66 // Server Vars
67 $ip = $_SERVER["REMOTE_ADDR"];
68 if (strlen($_SERVER["HTTP_X_FORWARDED_FOR"])) $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; // using proxy
69 if ($ip == "::1") $ip = "";
70 $islinux = !(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
71 function getServerURL() {
72 $url = ($_SERVER["HTTPS"] == "on")?"https://":"http://";
73 $url .= $_SERVER["SERVER_NAME"]; // variável do servidor, $_SERVER["HTTP_HOST"] é equivalente
74 if ($_SERVER["SERVER_PORT"] != "80") $url .= ":".$_SERVER["SERVER_PORT"];
75 return $url;
76 }
77 function getCompleteURL() {
78 return getServerURL().$_SERVER["REQUEST_URI"];
79 }
80 $url = getCompleteURL();
81 $url_info = parse_url($url);
82 if( !isset($_SERVER['DOCUMENT_ROOT']) ) {
83 if ( isset($_SERVER['SCRIPT_FILENAME']) ) $path = $_SERVER['SCRIPT_FILENAME'];
84 elseif ( isset($_SERVER['PATH_TRANSLATED']) ) $path = str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']);
85 $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($path, 0, 0-strlen($_SERVER['PHP_SELF'])));
86 }
87 $doc_root = str_replace('//','/',str_replace(DIRECTORY_SEPARATOR,'/',$_SERVER["DOCUMENT_ROOT"]));
88 $fm_self = $doc_root.$_SERVER["PHP_SELF"];
89 $path_info = pathinfo($fm_self);
90// +--------------------------------------------------
91// | Config
92// +--------------------------------------------------
93 $cfg = new config();
94 $cfg->load();
95 ini_set("display_errors",1);
96 ini_set("error_reporting",$error_reporting);
97 if (!isset($current_dir)){
98 $current_dir = $path_info["dirname"]."/";
99 if (!$islinux) $current_dir = ucfirst($current_dir);
100 //@chmod($current_dir,0777);
101 } else $current_dir = format_path($current_dir);
102 // Auto Expand Local Path
103 if (!isset($expanded_dir_list)){
104 $expanded_dir_list = "";
105 $mat = explode("/",$path_info["dirname"]);
106 for ($x=0;$x<count($mat);$x++) $expanded_dir_list .= ":".$mat[$x];
107 setcookie("expanded_dir_list", $expanded_dir_list, 0, "/");
108 }
109 if (!isset($fm_current_root)){
110 if (strlen($fm_root)) $fm_current_root = $fm_root;
111 else {
112 if (!$islinux) $fm_current_root = ucfirst($path_info["dirname"]."/");
113 else $fm_current_root = $doc_root."/";
114 }
115 setcookie("fm_current_root", $fm_current_root, 0, "/");
116 } elseif (isset($set_fm_current_root)) {
117 if (!$islinux) $fm_current_root = ucfirst($set_fm_current_root);
118 setcookie("fm_current_root", $fm_current_root, 0, "/");
119 }
120 if (!isset($resolveIDs)){
121 setcookie("resolveIDs", 0, time()+$cookie_cache_time, "/");
122 } elseif (isset($set_resolveIDs)){
123 $resolveIDs=($resolveIDs)?0:1;
124 setcookie("resolveIDs", $resolveIDs, time()+$cookie_cache_time, "/");
125 }
126 if ($resolveIDs){
127 exec("cat /etc/passwd",$mat_passwd);
128 exec("cat /etc/group",$mat_group);
129 }
130 $fm_color['Bg'] = "EEEEEE";
131 $fm_color['Text'] = "000000";
132 $fm_color['Link'] = "0A77F7";
133 $fm_color['Entry'] = "FFFFFF";
134 $fm_color['Over'] = "C0EBFD";
135 $fm_color['Mark'] = "A7D2E4";
136 foreach($fm_color as $tag=>$color){
137 $fm_color[$tag]=strtolower($color);
138 }
139// +--------------------------------------------------
140// | File Manager Actions
141// +--------------------------------------------------
142if ($loggedon==$auth_pass){
143 switch ($frame){
144 case 1: break; // Empty Frame
145 case 2: frame2(); break;
146 case 3: frame3(); break;
147 default:
148 switch($action){
149 case 1: logout(); break;
150 case 2: config_form(); break;
151 case 3: download(); break;
152 case 4: view(); break;
153 case 5: server_info(); break;
154 case 6: execute_cmd(); break;
155 case 7: edit_file_form(); break;
156 case 8: chmod_form(); break;
157 case 9: shell_form(); break;
158 case 10: upload_form(); break;
159 case 11: execute_file(); break;
160 default: frameset();
161 }
162 }
163} else {
164 if (isset($pass)) login();
165 else login_form();
166}
167// +--------------------------------------------------
168// | Config Class
169// +--------------------------------------------------
170class config {
171 var $data;
172 var $filename;
173 function config(){
174 global $fm_self;
175 $this->data = array(
176 'lang'=>'en',
177 'auth_pass'=>md5(''),
178 'quota_mb'=>0,
179 'upload_ext_filter'=>array(),
180 'download_ext_filter'=>array(),
181 'error_reporting'=>'',
182 'fm_root'=>'',
183 'cookie_cache_time'=>60*60*24*30, // 30 Days
184 'version'=>'0.9.7'
185 );
186 $data = false;
187 $this->filename = $fm_self;
188 if (file_exists($this->filename)){
189 $mat = file($this->filename);
190 $objdata = trim(substr($mat[1],2));
191 if (strlen($objdata)) $data = unserialize($objdata);
192 }
193 if (is_array($data)&&count($data)==count($this->data)) $this->data = $data;
194 else $this->save();
195 }
196 function save(){
197 $objdata = "<?php".chr(13).chr(10)."//".serialize($this->data).chr(13).chr(10);
198 if (strlen($objdata)){
199 if (file_exists($this->filename)){
200 $mat = file($this->filename);
201 if ($fh = @fopen($this->filename, "w")){
202 @fputs($fh,$objdata,strlen($objdata));
203 for ($x=2;$x<count($mat);$x++) @fputs($fh,$mat[$x],strlen($mat[$x]));
204 @fclose($fh);
205 }
206 }
207 }
208 }
209 function load(){
210 foreach ($this->data as $key => $val) $GLOBALS[$key] = $val;
211 }
212}
213// +--------------------------------------------------
214// | Internationalization
215// +--------------------------------------------------
216function et($tag){
217 global $lang;
218
219 // English - by Fabricio Seger Kolling
220 $en['Version'] = 'Version';
221 $en['DocRoot'] = 'Document Root';
222 $en['FLRoot'] = 'File Manager Root';
223 $en['Name'] = 'Name';
224 $en['And'] = 'and';
225 $en['Enter'] = 'Enter';
226 $en['Send'] = 'Send';
227 $en['Refresh'] = 'Refresh';
228 $en['SaveConfig'] = 'Save Configurations';
229 $en['SavePass'] = 'Save Password';
230 $en['SaveFile'] = 'Save File';
231 $en['Save'] = 'Save';
232 $en['Leave'] = 'Leave';
233 $en['Edit'] = 'Edit';
234 $en['View'] = 'View';
235 $en['Config'] = 'Config';
236 $en['Ren'] = 'Rename';
237 $en['Rem'] = 'Delete';
238 $en['Compress'] = 'Compress';
239 $en['Decompress'] = 'Decompress';
240 $en['ResolveIDs'] = 'Resolve IDs';
241 $en['Move'] = 'Move';
242 $en['Copy'] = 'Copy';
243 $en['ServerInfo'] = 'Server Info';
244 $en['CreateDir'] = 'Create Directory';
245 $en['CreateArq'] = 'Create File';
246 $en['ExecCmd'] = 'Execute Command';
247 $en['Upload'] = 'Upload';
248 $en['UploadEnd'] = 'Upload Finished';
249 $en['Perm'] = 'Perm';
250 $en['Perms'] = 'Permissions';
251 $en['Owner'] = 'Owner';
252 $en['Group'] = 'Group';
253 $en['Other'] = 'Other';
254 $en['Size'] = 'Size';
255 $en['Date'] = 'Date';
256 $en['Type'] = 'Type';
257 $en['Free'] = 'free';
258 $en['Shell'] = 'Shell';
259 $en['Read'] = 'Read';
260 $en['Write'] = 'Write';
261 $en['Exec'] = 'Execute';
262 $en['Apply'] = 'Apply';
263 $en['StickyBit'] = 'Sticky Bit';
264 $en['Pass'] = 'Password';
265 $en['Lang'] = 'Language';
266 $en['File'] = 'File';
267 $en['File_s'] = 'file(s)';
268 $en['Dir_s'] = 'directory(s)';
269 $en['To'] = 'to';
270 $en['Destination'] = 'Destination';
271 $en['Configurations'] = 'Configurations';
272 $en['JSError'] = 'JavaScript Error';
273 $en['NoSel'] = 'There are no selected itens';
274 $en['SelDir'] = 'Select the destination directory on the left tree';
275 $en['TypeDir'] = 'Enter the directory name';
276 $en['TypeArq'] = 'Enter the file name';
277 $en['TypeCmd'] = 'Enter the command';
278 $en['TypeArqComp'] = 'Enter the file name.\\nThe extension will define the compression type.\\nEx:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
279 $en['RemSel'] = 'DELETE selected itens';
280 $en['NoDestDir'] = 'There is no selected destination directory';
281 $en['DestEqOrig'] = 'Origin and destination directories are equal';
282 $en['InvalidDest'] = 'Destination directory is invalid';
283 $en['NoNewPerm'] = 'New permission not set';
284 $en['CopyTo'] = 'COPY to';
285 $en['MoveTo'] = 'MOVE to';
286 $en['AlterPermTo'] = 'CHANGE PERMISSIONS to';
287 $en['ConfExec'] = 'Confirm EXECUTE';
288 $en['ConfRem'] = 'Confirm DELETE';
289 $en['EmptyDir'] = 'Empty directory';
290 $en['IOError'] = 'I/O Error';
291 $en['FileMan'] = 'PHP File Manager';
292 $en['TypePass'] = 'Enter the password';
293 $en['InvPass'] = 'Invalid Password';
294 $en['ReadDenied'] = 'Read Access Denied';
295 $en['FileNotFound'] = 'File not found';
296 $en['AutoClose'] = 'Close on Complete';
297 $en['OutDocRoot'] = 'File beyond DOCUMENT_ROOT';
298 $en['NoCmd'] = 'Error: Command not informed';
299 $en['ConfTrySave'] = 'File without write permisson.\\nTry to save anyway';
300 $en['ConfSaved'] = 'Configurations saved';
301 $en['PassSaved'] = 'Password saved';
302 $en['FileDirExists'] = 'File or directory already exists';
303 $en['NoPhpinfo'] = 'Function phpinfo disabled';
304 $en['NoReturn'] = 'no return';
305 $en['FileSent'] = 'File sent';
306 $en['SpaceLimReached'] = 'Space limit reached';
307 $en['InvExt'] = 'Invalid extension';
308 $en['FileNoOverw'] = 'File could not be overwritten';
309 $en['FileOverw'] = 'File overwritten';
310 $en['FileIgnored'] = 'File ignored';
311 $en['ChkVer'] = 'Check for new version';
312 $en['ChkVerAvailable'] = 'New version, click here to begin download!!';
313 $en['ChkVerNotAvailable'] = 'No new version available. :(';
314 $en['ChkVerError'] = 'Connection Error.';
315 $en['Website'] = 'Website';
316 $en['SendingForm'] = 'Sending files, please wait';
317 $en['NoFileSel'] = 'No file selected';
318 $en['SelAll'] = 'All';
319 $en['SelNone'] = 'None';
320 $en['SelInverse'] = 'Inverse';
321 $en['Selected_s'] = 'selected';
322 $en['Total'] = 'total';
323 $en['Partition'] = 'Partition';
324 $en['RenderTime'] = 'Time to render this page';
325 $en['Seconds'] = 'sec';
326 $en['ErrorReport'] = 'Error Reporting';
327
328 // Portuguese by - Fabricio Seger Kolling
329 $pt['Version'] = 'Versão';
330 $pt['DocRoot'] = 'Document Root';
331 $pt['FLRoot'] = 'File Manager Root';
332 $pt['Name'] = 'Nome';
333 $pt['And'] = 'e';
334 $pt['Enter'] = 'Entrar';
335 $pt['Send'] = 'Enviar';
336 $pt['Refresh'] = 'Atualizar';
337 $pt['SaveConfig'] = 'Salvar Configurações';
338 $pt['SavePass'] = 'Salvar Senha';
339 $pt['SaveFile'] = 'Salvar Arquivo';
340 $pt['Save'] = 'Salvar';
341 $pt['Leave'] = 'Sair';
342 $pt['Edit'] = 'Editar';
343 $pt['View'] = 'Visualizar';
344 $pt['Config'] = 'Config';
345 $pt['Ren'] = 'Renomear';
346 $pt['Rem'] = 'Apagar';
347 $pt['Compress'] = 'Compactar';
348 $pt['Decompress'] = 'Descompactar';
349 $pt['ResolveIDs'] = 'Resolver IDs';
350 $pt['Move'] = 'Mover';
351 $pt['Copy'] = 'Copiar';
352 $pt['ServerInfo'] = 'Server Info';
353 $pt['CreateDir'] = 'Criar Diretório';
354 $pt['CreateArq'] = 'Criar Arquivo';
355 $pt['ExecCmd'] = 'Executar Comando';
356 $pt['Upload'] = 'Upload';
357 $pt['UploadEnd'] = 'Upload Terminado';
358 $pt['Perm'] = 'Perm';
359 $pt['Perms'] = 'Permissões';
360 $pt['Owner'] = 'Dono';
361 $pt['Group'] = 'Grupo';
362 $pt['Other'] = 'Outros';
363 $pt['Size'] = 'Tamanho';
364 $pt['Date'] = 'Data';
365 $pt['Type'] = 'Tipo';
366 $pt['Free'] = 'livre';
367 $pt['Shell'] = 'Shell';
368 $pt['Read'] = 'Ler';
369 $pt['Write'] = 'Escrever';
370 $pt['Exec'] = 'Executar';
371 $pt['Apply'] = 'Aplicar';
372 $pt['StickyBit'] = 'Sticky Bit';
373 $pt['Pass'] = 'Senha';
374 $pt['Lang'] = 'Idioma';
375 $pt['File'] = 'Arquivo';
376 $pt['File_s'] = 'arquivo(s)';
377 $pt['Dir_s'] = 'diretorio(s)';
378 $pt['To'] = 'para';
379 $pt['Destination'] = 'Destino';
380 $pt['Configurations'] = 'Configurações';
381 $pt['JSError'] = 'Erro de JavaScript';
382 $pt['NoSel'] = 'Não há itens selecionados';
383 $pt['SelDir'] = 'Selecione o diretório de destino na árvore a esquerda';
384 $pt['TypeDir'] = 'Digite o nome do diretório';
385 $pt['TypeArq'] = 'Digite o nome do arquivo';
386 $pt['TypeCmd'] = 'Digite o commando';
387 $pt['TypeArqComp'] = 'Digite o nome do arquivo.\\nA extensão determina o tipo de compactação.\\nEx:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
388 $pt['RemSel'] = 'APAGAR itens selecionados';
389 $pt['NoDestDir'] = 'Não há um diretório de destino selecionado';
390 $pt['DestEqOrig'] = 'Diretório de origem e destino iguais';
391 $pt['InvalidDest'] = 'Diretório de destino inválido';
392 $pt['NoNewPerm'] = 'Nova permissão não foi setada';
393 $pt['CopyTo'] = 'COPIAR para';
394 $pt['MoveTo'] = 'MOVER para';
395 $pt['AlterPermTo'] = 'ALTERAR PERMISSÕES para';
396 $pt['ConfExec'] = 'Confirma EXECUTAR';
397 $pt['ConfRem'] = 'Confirma APAGAR';
398 $pt['EmptyDir'] = 'Diretório vazio';
399 $pt['IOError'] = 'Erro de E/S';
400 $pt['FileMan'] = 'PHP File Manager';
401 $pt['TypePass'] = 'Digite a senha';
402 $pt['InvPass'] = 'Senha Inválida';
403 $pt['ReadDenied'] = 'Acesso de leitura negado';
404 $pt['FileNotFound'] = 'Arquivo não encontrado';
405 $pt['AutoClose'] = 'Fechar Automaticamente';
406 $pt['OutDocRoot'] = 'Arquivo fora do DOCUMENT_ROOT';
407 $pt['NoCmd'] = 'Erro: Comando não informado';
408 $pt['ConfTrySave'] = 'Arquivo sem permissão de escrita.\\nTentar salvar assim mesmo';
409 $pt['ConfSaved'] = 'Configurações salvas';
410 $pt['PassSaved'] = 'Senha salva';
411 $pt['FileDirExists'] = 'Arquivo ou diretório já existe';
412 $pt['NoPhpinfo'] = 'Função phpinfo desabilitada';
413 $pt['NoReturn'] = 'sem retorno';
414 $pt['FileSent'] = 'Arquivo enviado';
415 $pt['SpaceLimReached'] = 'Limite de espaço alcançado';
416 $pt['InvExt'] = 'Extensão inválida';
417 $pt['FileNoOverw'] = 'Arquivo não pode ser sobreescrito';
418 $pt['FileOverw'] = 'Arquivo sobreescrito';
419 $pt['FileIgnored'] = 'Arquivo omitido';
420 $pt['ChkVer'] = 'Verificar por nova versão';
421 $pt['ChkVerAvailable'] = 'Nova versão, clique aqui para iniciar download!!';
422 $pt['ChkVerNotAvailable'] = 'Não há nova versão disponÃvel. :(';
423 $pt['ChkVerError'] = 'Erro de conexão.';
424 $pt['Website'] = 'Website';
425 $pt['SendingForm'] = 'Enviando arquivos, aguarde';
426 $pt['NoFileSel'] = 'Nenhum arquivo selecionado';
427 $pt['SelAll'] = 'Tudo';
428 $pt['SelNone'] = 'Nada';
429 $pt['SelInverse'] = 'Inverso';
430 $pt['Selected_s'] = 'selecionado(s)';
431 $pt['Total'] = 'total';
432 $pt['Partition'] = 'Partição';
433 $pt['RenderTime'] = 'Tempo para gerar esta página';
434 $pt['Seconds'] = 'seg';
435 $pt['ErrorReport'] = 'Error Reporting';
436
437 // Spanish - by Sh Studios
438 $es['Version'] = 'Versión';
439 $es['DocRoot'] = 'Raiz del programa';
440 $es['FLRoot'] = 'Raiz del administrador de archivos';
441 $es['Name'] = 'Nombre';
442 $es['And'] = 'y';
443 $es['Enter'] = 'Enter';
444 $es['Send'] = 'Enviar';
445 $es['Refresh'] = 'Refrescar';
446 $es['SaveConfig'] = 'Guardar configuraciones';
447 $es['SavePass'] = 'Cuardar Contraseña';
448 $es['SaveFile'] = 'Guardar Archivo';
449 $es['Save'] = 'Guardar';
450 $es['Leave'] = 'Salir';
451 $es['Edit'] = 'Editar';
452 $es['View'] = 'Mirar';
453 $es['Config'] = 'Config.';
454 $es['Ren'] = 'Renombrar';
455 $es['Rem'] = 'Borrar';
456 $es['Compress'] = 'Comprimir';
457 $es['Decompress'] = 'Decomprimir';
458 $es['ResolveIDs'] = 'Resolver IDs';
459 $es['Move'] = 'Mover';
460 $es['Copy'] = 'Copiar';
461 $es['ServerInfo'] = 'Info del Server';
462 $es['CreateDir'] = 'Crear Directorio';
463 $es['CreateArq'] = 'Crear Archivo';
464 $es['ExecCmd'] = 'Ejecutar Comando';
465 $es['Upload'] = 'Subir';
466 $es['UploadEnd'] = 'Subida exitosa';
467 $es['Perm'] = 'Perm';
468 $es['Perms'] = 'Permisiones';
469 $es['Owner'] = 'Propietario';
470 $es['Group'] = 'Grupo';
471 $es['Other'] = 'Otro';
472 $es['Size'] = 'Tamaño';
473 $es['Date'] = 'Fecha';
474 $es['Type'] = 'Tipo';
475 $es['Free'] = 'libre';
476 $es['Shell'] = 'Ejecutar';
477 $es['Read'] = 'Leer';
478 $es['Write'] = 'Escribir';
479 $es['Exec'] = 'Ejecutar';
480 $es['Apply'] = 'Aplicar';
481 $es['StickyBit'] = 'Sticky Bit';
482 $es['Pass'] = 'Contraseña';
483 $es['Lang'] = 'Lenguage';
484 $es['File'] = 'Archivos';
485 $es['File_s'] = 'archivo(s)';
486 $es['Dir_s'] = 'directorio(s)';
487 $es['To'] = 'a';
488 $es['Destination'] = 'Destino';
489 $es['Configurations'] = 'Configuracion';
490 $es['JSError'] = 'Error de JavaScript';
491 $es['NoSel'] = 'No hay items seleccionados';
492 $es['SelDir'] = 'Seleccione el directorio de destino en el arbol derecho';
493 $es['TypeDir'] = 'Escriba el nombre del directorio';
494 $es['TypeArq'] = 'Escriba el nombre del archivo';
495 $es['TypeCmd'] = 'Escriba el comando';
496 $es['TypeArqComp'] = 'Escriba el nombre del directorio.\\nLa extension definira el tipo de compresion.\\nEj:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
497 $es['RemSel'] = 'BORRAR items seleccionados';
498 $es['NoDestDir'] = 'No se ha seleccionado el directorio de destino';
499 $es['DestEqOrig'] = 'El origen y el destino son iguales';
500 $es['InvalidDest'] = 'El destino del directorio es invalido';
501 $es['NoNewPerm'] = 'Las permisiones no se pudieron establecer';
502 $es['CopyTo'] = 'COPIAR a';
503 $es['MoveTo'] = 'MOVER a';
504 $es['AlterPermTo'] = 'CAMBIAR PERMISIONES a';
505 $es['ConfExec'] = 'Confirmar EJECUCION';
506 $es['ConfRem'] = 'Confirmar BORRADO';
507 $es['EmptyDir'] = 'Directorio Vacio';
508 $es['IOError'] = 'Error I/O';
509 $es['FileMan'] = 'PHP File Manager';
510 $es['TypePass'] = 'Escriba la contraseña';
511 $es['InvPass'] = 'Contraseña invalida';
512 $es['ReadDenied'] = 'Acceso de lectura denegado';
513 $es['FileNotFound'] = 'Archivo no encontrado';
514 $es['AutoClose'] = 'Cerrar al completar';
515 $es['OutDocRoot'] = 'Archivo antes de DOCUMENT_ROOT';
516 $es['NoCmd'] = 'Error: No se ha escrito ningun comando';
517 $es['ConfTrySave'] = 'Archivo sin permisos de escritura.\\nIntente guardar en otro lugar';
518 $es['ConfSaved'] = 'Configuracion Guardada';
519 $es['PassSaved'] = 'Contraseña guardada';
520 $es['FileDirExists'] = 'Archivo o directorio ya existente';
521 $es['NoPhpinfo'] = 'Funcion phpinfo() inhabilitada';
522 $es['NoReturn'] = 'sin retorno';
523 $es['FileSent'] = 'Archivo enviado';
524 $es['SpaceLimReached'] = 'Limite de espacio en disco alcanzado';
525 $es['InvExt'] = 'Extension inalida';
526 $es['FileNoOverw'] = 'El archivo no pudo ser sobreescrito';
527 $es['FileOverw'] = 'Archivo sobreescrito';
528 $es['FileIgnored'] = 'Archivo ignorado';
529 $es['ChkVer'] = 'Chequear las actualizaciones';
530 $es['ChkVerAvailable'] = 'Nueva version, haga click aqui para descargar!!';
531 $es['ChkVerNotAvailable'] = 'Su version es la mas reciente.';
532 $es['ChkVerError'] = 'Error de coneccion.';
533 $es['Website'] = 'Sitio Web';
534 $es['SendingForm'] = 'Enviando archivos, espere!';
535 $es['NoFileSel'] = 'Ningun archivo seleccionado';
536 $es['SelAll'] = 'Todos';
537 $es['SelNone'] = 'Ninguno';
538 $es['SelInverse'] = 'Inverso';
539 $es['Selected_s'] = 'seleccionado';
540 $es['Total'] = 'total';
541 $es['Partition'] = 'Particion';
542 $es['RenderTime'] = 'Generado en';
543 $es['Seconds'] = 'seg';
544 $es['ErrorReport'] = 'Reporte de error';
545
546 // Korean - by Airplanez
547 $kr['Version'] = 'ë²„ì „';
548 $kr['DocRoot'] = '웹서버 루트';
549 $kr['FLRoot'] = 'íŒŒì¼ ë§¤ë‹ˆì € 루트';
550 $kr['Name'] = 'ì´ë¦„';
551 $kr['Enter'] = 'ìž…ë ¥';
552 $kr['Send'] = 'ì „ì†¡';
553 $kr['Refresh'] = 'ìƒˆë¡œê³ ì¹¨';
554 $kr['SaveConfig'] = '환경 ì €ìž¥';
555 $kr['SavePass'] = '비밀번호 ì €ìž¥';
556 $kr['SaveFile'] = 'íŒŒì¼ ì €ìž¥';
557 $kr['Save'] = 'ì €ìž¥';
558 $kr['Leave'] = '나가기';
559 $kr['Edit'] = 'ìˆ˜ì •';
560 $kr['View'] = '보기';
561 $kr['Config'] = '환경';
562 $kr['Ren'] = 'ì´ë¦„바꾸기';
563 $kr['Rem'] = 'ì‚ì œ';
564 $kr['Compress'] = '압축하기';
565 $kr['Decompress'] = '압축풀기';
566 $kr['ResolveIDs'] = 'ì†Œìœ ìž';
567 $kr['Move'] = 'ì´ë™';
568 $kr['Copy'] = '복사';
569 $kr['ServerInfo'] = '서버 ì •ë³´';
570 $kr['CreateDir'] = 'ë””ë ‰í† ë¦¬ ìƒì„±';
571 $kr['CreateArq'] = 'íŒŒì¼ ìƒì„±';
572 $kr['ExecCmd'] = 'ëª…ë ¹ 실행';
573 $kr['Upload'] = '업로드';
574 $kr['UploadEnd'] = '업로드가 완료ë˜ì—ˆìŠµë‹ˆë‹¤.';
575 $kr['Perm'] = '권한';
576 $kr['Perms'] = '권한';
577 $kr['Owner'] = 'ì†Œìœ ìž';
578 $kr['Group'] = '그룹';
579 $kr['Other'] = 'ëª¨ë“ ì‚¬ìš©ìž';
580 $kr['Size'] = 'í¬ê¸°';
581 $kr['Date'] = 'ë‚ ì§œ';
582 $kr['Type'] = '종류';
583 $kr['Free'] = 'ì—¬ìœ ';
584 $kr['Shell'] = '쉘';
585 $kr['Read'] = 'ì½ê¸°';
586 $kr['Write'] = '쓰기';
587 $kr['Exec'] = '실행';
588 $kr['Apply'] = 'ì ìš©';
589 $kr['StickyBit'] = '스티키 비트';
590 $kr['Pass'] = '비밀번호';
591 $kr['Lang'] = '언어';
592 $kr['File'] = '파ì¼';
593 $kr['File_s'] = '파ì¼';
594 $kr['To'] = '으로';
595 $kr['Destination'] = '대ìƒ';
596 $kr['Configurations'] = '환경';
597 $kr['JSError'] = 'ìžë°”스í¬ë¦½íЏ 오류';
598 $kr['NoSel'] = 'ì„ íƒëœ ê²ƒì´ ì—†ìŠµë‹ˆë‹¤';
599 $kr['SelDir'] = '왼쪽리스트ì—서 ëŒ€ìƒ ë””ë ‰í† ë¦¬ë¥¼ ì„ íƒí•˜ì„¸ìš”';
600 $kr['TypeDir'] = 'ë””ë ‰í† ë¦¬ëª…ì„ ìž…ë ¥í•˜ì„¸ìš”';
601 $kr['TypeArq'] = '파ì¼ëª…ì„ ìž…ë ¥í•˜ì„¸ìš”';
602 $kr['TypeCmd'] = 'ëª…ë ¹ì„ ìž…ë ¥í•˜ì„¸ìš”';
603 $kr['TypeArqComp'] = '파ì¼ëª…ì„ ìž…ë ¥í•˜ì„¸ìš”.\\n확장ìžì— ë”°ë¼ ì••ì¶•í˜•ì‹ì´ ì •í•´ì§‘ë‹ˆë‹¤.\\n예:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
604 $kr['RemSel'] = 'ì„ íƒëœ ê²ƒì„ ì‚ì œí–ˆìŠµë‹ˆë‹¤';
605 $kr['NoDestDir'] = 'ì„ íƒëœ ëŒ€ìƒ ë””ë ‰í† ë¦¬ê°€ 없습니다.';
606 $kr['DestEqOrig'] = 'ì›ëž˜ ë””ë ‰í† ë¦¬ì™€ ëŒ€ìƒ ë””ë ‰í† ë¦¬ê°€ 같습니다';
607 $kr['NoNewPerm'] = '새로운 ê¶Œí•œì´ ì„¤ì •ë˜ì§€ 않았습니다';
608 $kr['CopyTo'] = 'ì—¬ê¸°ì— ë³µì‚¬';
609 $kr['MoveTo'] = '여기로 ì´ë™';
610 $kr['AlterPermTo'] = '으로 권한변경';
611 $kr['ConfExec'] = '실행 확ì¸';
612 $kr['ConfRem'] = 'ì‚ì œ 확ì¸';
613 $kr['EmptyDir'] = '빈 ë””ë ‰í† ë¦¬';
614 $kr['IOError'] = 'ìž…/ì¶œë ¥ 오류';
615 $kr['FileMan'] = 'PHP íŒŒì¼ ë§¤ë‹ˆì €';
616 $kr['TypePass'] = '비밀번호를 ìž…ë ¥í•˜ì„¸ìš”';
617 $kr['InvPass'] = '비밀번호가 틀립니다';
618 $kr['ReadDenied'] = 'ì½ê¸°ê°€ ê±°ë¶€ë˜ì—ˆìŠµë‹ˆë‹¤';
619 $kr['FileNotFound'] = '파ì¼ì´ 없습니다';
620 $kr['AutoClose'] = '완료후 닫기';
621 $kr['OutDocRoot'] = 'DOCUMENT_ROOT ì´ë‚´ì˜ 파ì¼ì´ 아닙니다';
622 $kr['NoCmd'] = '오류: ëª…ë ¹ì´ ì‹¤í–‰ë˜ì§€ 않았습니다';
623 $kr['ConfTrySave'] = '파ì¼ì— 쓰기 ê¶Œí•œì´ ì—†ìŠµë‹ˆë‹¤.\\nê·¸ëž˜ë„ ì €ìž¥í•˜ì‹œê² ìŠµë‹ˆê¹Œ';
624 $kr['ConfSaved'] = 'í™˜ê²½ì´ ì €ìž¥ë˜ì—ˆìŠµë‹ˆë‹¤';
625 $kr['PassSaved'] = '비밀번호 ì €ìž¥';
626 $kr['FileDirExists'] = 'íŒŒì¼ ë˜ëŠ” ë””ë ‰í† ë¦¬ê°€ ì´ë¯¸ 존재합니다';
627 $kr['NoPhpinfo'] = 'PHPINFO()를 ì‚¬ìš©í• ìˆ˜ 없습니다';
628 $kr['NoReturn'] = '반환값 ì—†ìŒ';
629 $kr['FileSent'] = 'íŒŒì¼ ì „ì†¡';
630 $kr['SpaceLimReached'] = 'ì €ìž¥ê³µê°€ ì—¬ìœ ê°€ 없습니다';
631 $kr['InvExt'] = 'ìœ íš¨í•˜ì§€ ì•Šì€ í™•ìž¥ìž';
632 $kr['FileNoOverw'] = '파ì¼ì„ ë®ì–´ 쓸수 없습니다';
633 $kr['FileOverw'] = '파ì¼ì„ ë®ì–´ ì¼ìŠµë‹ˆë‹¤';
634 $kr['FileIgnored'] = '파ì¼ì´ 무시ë˜ì—ˆìŠµë‹ˆë‹¤';
635 $kr['ChkVer'] = 'ì—서 ìƒˆë²„ì „ 확ì¸';
636 $kr['ChkVerAvailable'] = '새로운 ë²„ì „ì´ ìžˆìŠµë‹ˆë‹¤. ë‹¤ìš´ë°›ìœ¼ë ¤ë©´ í´ë¦í•˜ì„¸ìš”!!';
637 $kr['ChkVerNotAvailable'] = '새로운 ë²„ì „ì´ ì—†ìŠµë‹ˆë‹¤. :(';
638 $kr['ChkVerError'] = '연결 오류';
639 $kr['Website'] = '웹사ì´íЏ';
640 $kr['SendingForm'] = '파ì¼ì„ ì „ì†¡ì¤‘ìž…ë‹ˆë‹¤. 기다리세요';
641 $kr['NoFileSel'] = '파ì¼ì´ ì„ íƒë˜ì§€ 않았습니다';
642 $kr['SelAll'] = 'ëª¨ë“ ';
643 $kr['SelNone'] = 'ì œë¡œ';
644 $kr['SelInverse'] = 'ì—';
645
646 // German - by Guido Ogrzal
647 $de1['Version'] = 'Version';
648 $de1['DocRoot'] = 'Dokument Wurzelverzeichnis';
649 $de1['FLRoot'] = 'Dateimanager Wurzelverzeichnis';
650 $de1['Name'] = 'Name';
651 $de1['And'] = 'und';
652 $de1['Enter'] = 'Eintreten';
653 $de1['Send'] = 'Senden';
654 $de1['Refresh'] = 'Aktualisieren';
655 $de1['SaveConfig'] = 'Konfiguration speichern';
656 $de1['SavePass'] = 'Passwort speichern';
657 $de1['SaveFile'] = 'Datei speichern';
658 $de1['Save'] = 'Speichern';
659 $de1['Leave'] = 'Verlassen';
660 $de1['Edit'] = 'Bearbeiten';
661 $de1['View'] = 'Ansehen';
662 $de1['Config'] = 'Konfigurieren';
663 $de1['Ren'] = 'Umbenennen';
664 $de1['Rem'] = 'Löschen';
665 $de1['Compress'] = 'Komprimieren';
666 $de1['Decompress'] = 'Dekomprimieren';
667 $de1['ResolveIDs'] = 'Resolve IDs';
668 $de1['Move'] = 'Verschieben';
669 $de1['Copy'] = 'Kopieren';
670 $de1['ServerInfo'] = 'Server-Info';
671 $de1['CreateDir'] = 'Neues Verzeichnis';
672 $de1['CreateArq'] = 'Neue Datei';
673 $de1['ExecCmd'] = 'Kommando';
674 $de1['Upload'] = 'Datei hochladen';
675 $de1['UploadEnd'] = 'Datei hochladen beendet';
676 $de1['Perm'] = 'Erlaubnis';
677 $de1['Perms'] = 'Erlaubnis';
678 $de1['Owner'] = 'Besitzer';
679 $de1['Group'] = 'Gruppe';
680 $de1['Other'] = 'Andere';
681 $de1['Size'] = 'Größe';
682 $de1['Date'] = 'Datum';
683 $de1['Type'] = 'Typ';
684 $de1['Free'] = 'frei';
685 $de1['Shell'] = 'Shell';
686 $de1['Read'] = 'Lesen';
687 $de1['Write'] = 'Schreiben';
688 $de1['Exec'] = 'Ausführen';
689 $de1['Apply'] = 'Bestätigen';
690 $de1['StickyBit'] = 'Sticky Bit';
691 $de1['Pass'] = 'Passwort';
692 $de1['Lang'] = 'Sprache';
693 $de1['File'] = 'Datei';
694 $de1['File_s'] = 'Datei(en)';
695 $de1['Dir_s'] = 'Verzeichniss(e)';
696 $de1['To'] = '->';
697 $de1['Destination'] = 'Ziel';
698 $de1['Configurations'] = 'Konfiguration';
699 $de1['JSError'] = 'JavaScript Fehler';
700 $de1['NoSel'] = 'Es gibt keine selektierten Objekte';
701 $de1['SelDir'] = 'Selektiere das Zielverzeichnis im linken Verzeichnisbaum';
702 $de1['TypeDir'] = 'Trage den Verzeichnisnamen ein';
703 $de1['TypeArq'] = 'Trage den Dateinamen ein';
704 $de1['TypeCmd'] = 'Gib das Kommando ein';
705 $de1['TypeArqComp'] = 'Trage den Dateinamen ein.\\nDie Dateierweiterung wird den Kompressiontyp bestimmen.\\nBsp.:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
706 $de1['RemSel'] = 'LÖSCHE die selektierten Objekte';
707 $de1['NoDestDir'] = 'Das selektierte Zielverzeichnis existiert nicht';
708 $de1['DestEqOrig'] = 'Quell- und Zielverzeichnis stimmen überein';
709 $de1['InvalidDest'] = 'Zielverzeichnis ist ungültig';
710 $de1['NoNewPerm'] = 'Neue Zugriffserlaubnis konnte nicht gesetzt werden';
711 $de1['CopyTo'] = 'KOPIERE nach';
712 $de1['MoveTo'] = 'VERSCHIEBE nach';
713 $de1['AlterPermTo'] = 'ÄNDERE ZUGRIFFSERLAUBSNIS in';
714 $de1['ConfExec'] = 'Bestätige AUSFÜHRUNG';
715 $de1['ConfRem'] = 'Bestätige LÖSCHEN';
716 $de1['EmptyDir'] = 'Leeres Verzeichnis';
717 $de1['IOError'] = 'Eingabe/Ausgabe-Fehler';
718 $de1['FileMan'] = 'PHP File Manager';
719 $de1['TypePass'] = 'Trage das Passwort ein';
720 $de1['InvPass'] = 'Ungültiges Passwort';
721 $de1['ReadDenied'] = 'Lesezugriff verweigert';
722 $de1['FileNotFound'] = 'Datei nicht gefunden';
723 $de1['AutoClose'] = 'Schließen, wenn fertig';
724 $de1['OutDocRoot'] = 'Datei außerhalb von DOCUMENT_ROOT';
725 $de1['NoCmd'] = 'Fehler: Es wurde kein Kommando eingetragen';
726 $de1['ConfTrySave'] = 'Keine Schreibberechtigung für die Datei.\\nVersuche trotzdem zu speichern';
727 $de1['ConfSaved'] = 'Konfiguration gespeichert';
728 $de1['PassSaved'] = 'Passwort gespeichert';
729 $de1['FileDirExists'] = 'Datei oder Verzeichnis existiert schon';
730 $de1['NoPhpinfo'] = 'Funktion phpinfo ist inaktiv';
731 $de1['NoReturn'] = 'keine Rückgabe';
732 $de1['FileSent'] = 'Datei wurde gesendet';
733 $de1['SpaceLimReached'] = 'Verfügbares Speicherlimit wurde erreicht';
734 $de1['InvExt'] = 'Ungültige Dateiendung';
735 $de1['FileNoOverw'] = 'Datei kann nicht überschrieben werden';
736 $de1['FileOverw'] = 'Datei überschrieben';
737 $de1['FileIgnored'] = 'Datei ignoriert';
738 $de1['ChkVer'] = 'Prüfe auf neue Version';
739 $de1['ChkVerAvailable'] = 'Neue Version verfügbar; klicke hier, um den Download zu starten!!';
740 $de1['ChkVerNotAvailable'] = 'Keine neue Version gefunden. :(';
741 $de1['ChkVerError'] = 'Verbindungsfehler.';
742 $de1['Website'] = 'Webseite';
743 $de1['SendingForm'] = 'Sende Dateien... Bitte warten.';
744 $de1['NoFileSel'] = 'Keine Datei selektiert';
745 $de1['SelAll'] = 'Alle';
746 $de1['SelNone'] = 'Keine';
747 $de1['SelInverse'] = 'Invertieren';
748 $de1['Selected_s'] = 'selektiert';
749 $de1['Total'] = 'Gesamt';
750 $de1['Partition'] = 'Partition';
751 $de1['RenderTime'] = 'Zeit, um die Seite anzuzeigen';
752 $de1['Seconds'] = 's';
753 $de1['ErrorReport'] = 'Fehlerreport';
754
755 // German - by AXL
756 $de2['Version'] = 'Version';
757 $de2['DocRoot'] = 'Document Stammverzeichnis';
758 $de2['FLRoot'] = 'Datei Manager Stammverzeichnis';
759 $de2['Name'] = 'Name';
760 $de2['And'] = 'und';
761 $de2['Enter'] = 'Enter';
762 $de2['Send'] = 'Senden';
763 $de2['Refresh'] = 'Aktualisieren';
764 $de2['SaveConfig'] = 'Konfiguration speichern';
765 $de2['SavePass'] = 'Passwort speichern';
766 $de2['SaveFile'] = 'Datei speichern';
767 $de2['Save'] = 'Speichern';
768 $de2['Leave'] = 'Verlassen';
769 $de2['Edit'] = 'Bearb.';
770 $de2['View'] = 'Anzeigen';
771 $de2['Config'] = 'Konfigurieren';
772 $de2['Ren'] = 'Umb.';
773 $de2['Rem'] = 'Löschen';
774 $de2['Compress'] = 'Komprimieren';
775 $de2['Decompress'] = 'De-Komprimieren';
776 $de2['ResolveIDs'] = 'IDs auflösen';
777 $de2['Move'] = 'Versch.';
778 $de2['Copy'] = 'Kopie';
779 $de2['ServerInfo'] = 'Server Info';
780 $de2['CreateDir'] = 'Verzeichnis erstellen';
781 $de2['CreateArq'] = 'Datei erstellen';
782 $de2['ExecCmd'] = 'Befehl ausführen';
783 $de2['Upload'] = 'Upload';
784 $de2['UploadEnd'] = 'Upload abgeschlossen';
785 $de2['Perm'] = 'Rechte';
786 $de2['Perms'] = 'Rechte';
787 $de2['Owner'] = 'Besitzer';
788 $de2['Group'] = 'Gruppe';
789 $de2['Other'] = 'Andere';
790 $de2['Size'] = 'Größe';
791 $de2['Date'] = 'Datum';
792 $de2['Type'] = 'Typ';
793 $de2['Free'] = 'frei';
794 $de2['Shell'] = 'Shell';
795 $de2['Read'] = 'Read';
796 $de2['Write'] = 'Write';
797 $de2['Exec'] = 'Execute';
798 $de2['Apply'] = 'Anwenden';
799 $de2['StickyBit'] = 'Sticky Bit';
800 $de2['Pass'] = 'Passwort';
801 $de2['Lang'] = 'Sprache';
802 $de2['File'] = 'Datei';
803 $de2['File_s'] = 'Datei(en)';
804 $de2['Dir_s'] = 'Verzeichnis(se)';
805 $de2['To'] = 'an';
806 $de2['Destination'] = 'Ziel';
807 $de2['Configurations'] = 'Konfigurationen';
808 $de2['JSError'] = 'JavaScript Fehler';
809 $de2['NoSel'] = 'Keine Einträge ausgewählt';
810 $de2['SelDir'] = 'Wählen Sie das Zeilverzeichnis im Verzeichnis links';
811 $de2['TypeDir'] = 'Geben Sie den Verzeichnisnamen ein';
812 $de2['TypeArq'] = 'Geben Sie den Dateinamen ein';
813 $de2['TypeCmd'] = 'Geben Sie den Befehl ein';
814 $de2['TypeArqComp'] = 'Geben Sie den Dateinamen ein.\\nDie Datei-Extension legt den Kopressionstyp fest.\\nBeispiel:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
815 $de2['RemSel'] = 'Ausgewählte Dateien LÖSCHEN';
816 $de2['NoDestDir'] = 'Es wurde kein Zielverzeichnis angegeben';
817 $de2['DestEqOrig'] = 'Quell- und Zielverzeichnis sind identisch';
818 $de2['InvalidDest'] = 'Zielverzeichnis ungültig';
819 $de2['NoNewPerm'] = 'Unzureichende Rechte';
820 $de2['CopyTo'] = 'KOPIEREN nach';
821 $de2['MoveTo'] = 'VERSCHIEBEN nach';
822 $de2['AlterPermTo'] = 'RECHTE ÄNDERN in';
823 $de2['ConfExec'] = 'Bestätigung AUSFÜHREN';
824 $de2['ConfRem'] = 'Bestätigung LÖSCHEN';
825 $de2['EmptyDir'] = 'Leeres Verzeichnis';
826 $de2['IOError'] = 'Ein-/Ausgabe-Fehler';
827 $de2['FileMan'] = 'PHP File Manager';
828 $de2['TypePass'] = 'Bitte geben Sie das Passwort ein';
829 $de2['InvPass'] = 'Ungültiges Passwort';
830 $de2['ReadDenied'] = 'Leasezugriff verweigert';
831 $de2['FileNotFound'] = 'Datei nicht gefunden';
832 $de2['AutoClose'] = 'Schliessen nach Beenden';
833 $de2['OutDocRoot'] = 'Datei oberhalb DOCUMENT_ROOT';
834 $de2['NoCmd'] = 'Fehler: Befehl nicht informed';
835 $de2['ConfTrySave'] = 'Datei ohne Schreibberechtigung.\\nTrotzdem versuchen zu speichern';
836 $de2['ConfSaved'] = 'Konfigurationen gespeichert';
837 $de2['PassSaved'] = 'Passwort gespeichert';
838 $de2['FileDirExists'] = 'Datei oder Verzeichnis existiert bereits';
839 $de2['NoPhpinfo'] = 'Funktion phpinfo ausgeschaltet';
840 $de2['NoReturn'] = 'keine Rückgabe';
841 $de2['FileSent'] = 'Datei versandt';
842 $de2['SpaceLimReached'] = 'Plattenplatz erschöpft';
843 $de2['InvExt'] = 'Ungültige datei-Extension';
844 $de2['FileNoOverw'] = 'Datei kann nicht überschrieben werden';
845 $de2['FileOverw'] = 'Datei überschrieben';
846 $de2['FileIgnored'] = 'Datei ignoriert';
847 $de2['ChkVer'] = 'Überprüfe neuer Version';
848 $de2['ChkVerAvailable'] = 'Neue Version. Hier klicken für Download!!';
849 $de2['ChkVerNotAvailable'] = 'Keine neue Version verfügbar. :(';
850 $de2['ChkVerError'] = 'Verbindungsfehler.';
851 $de2['Website'] = 'Webseite';
852 $de2['SendingForm'] = 'Sende Dateien, bitte warten';
853 $de2['NoFileSel'] = 'Keine Dateien ausgewählt';
854 $de2['SelAll'] = 'Alle';
855 $de2['SelNone'] = 'Keine';
856 $de2['SelInverse'] = 'Invers';
857 $de2['Selected_s'] = 'ausgewählt';
858 $de2['Total'] = 'Total';
859 $de2['Partition'] = 'Partition';
860 $de2['RenderTime'] = 'Zeit zum Erzeugen der Seite';
861 $de2['Seconds'] = 'Sekunden';
862 $de2['ErrorReport'] = 'Fehler berichten';
863
864 // German - by Mathias Rothe
865 $de3['Version'] = 'Version';
866 $de3['DocRoot'] = 'Dokumenten Root';
867 $de3['FLRoot'] = 'Datei Manager Root';
868 $de3['Name'] = 'Name';
869 $de3['And'] = 'und';
870 $de3['Enter'] = 'Enter';
871 $de3['Send'] = 'Senden';
872 $de3['Refresh'] = 'Refresh';
873 $de3['SaveConfig'] = 'Konfiguration speichern';
874 $de3['SavePass'] = 'Passwort speichern';
875 $de3['SaveFile'] = 'Datei speichern';
876 $de3['Save'] = 'Speichern';
877 $de3['Leave'] = 'Abbrechen';
878 $de3['Edit'] = 'Bearbeiten';
879 $de3['View'] = 'Anzeigen';
880 $de3['Config'] = 'Konfiguration';
881 $de3['Ren'] = 'Umbenennen';
882 $de3['Rem'] = 'Entfernen';
883 $de3['Compress'] = 'Packen';
884 $de3['Decompress'] = 'Entpacken';
885 $de3['ResolveIDs'] = 'IDs aufloesen';
886 $de3['Move'] = 'Verschieben';
887 $de3['Copy'] = 'Kopie';
888 $de3['ServerInfo'] = 'Server Info';
889 $de3['CreateDir'] = 'Neuer Ordner';
890 $de3['CreateArq'] = 'Neue Datei';
891 $de3['ExecCmd'] = 'Befehl ausfuehren';
892 $de3['Upload'] = 'Upload';
893 $de3['UploadEnd'] = 'Upload beendet';
894 $de3['Perm'] = 'Rechte';
895 $de3['Perms'] = 'Rechte';
896 $de3['Owner'] = 'Eigent';
897 $de3['Group'] = 'Gruppe';
898 $de3['Other'] = 'Andere';
899 $de3['Size'] = 'Groesse';
900 $de3['Date'] = 'Datum';
901 $de3['Type'] = 'Typ';
902 $de3['Free'] = 'frei';
903 $de3['Shell'] = 'Shell';
904 $de3['Read'] = 'Lesen';
905 $de3['Write'] = 'Schreiben';
906 $de3['Exec'] = 'Ausfuehren';
907 $de3['Apply'] = 'Bestaetigen';
908 $de3['StickyBit'] = 'Sticky Bit';
909 $de3['Pass'] = 'Passwort';
910 $de3['Lang'] = 'Sprache';
911 $de3['File'] = 'Datei';
912 $de3['File_s'] = 'Datei(en)';
913 $de3['Dir_s'] = 'Ordner';
914 $de3['To'] = 'nach';
915 $de3['Destination'] = 'Ziel';
916 $de3['Configurations'] = 'Konfiguration';
917 $de3['JSError'] = 'JavaScript Error';
918 $de3['NoSel'] = 'Keine Objekte ausgewaehlt';
919 $de3['SelDir'] = 'Waehlen Sie links das Zielverzeichnis aus';
920 $de3['TypeDir'] = 'Verzeichnisname eingeben';
921 $de3['TypeArq'] = 'Dateiname eingeben';
922 $de3['TypeCmd'] = 'Befehl eingeben';
923 $de3['TypeArqComp'] = 'Dateinamen eingeben.\\nDie Erweiterung definiert den Archiv-Typ.\\nEx:\\nname.zip\\nname.tar\\nname.bzip\\nname.gzip';
924 $de3['RemSel'] = 'Entferne ausgewaehlte Objekte';
925 $de3['NoDestDir'] = 'Kein Zielverzeichnis ausgewaehlt';
926 $de3['DestEqOrig'] = 'Quelle und Zielverzeichnis sind gleich';
927 $de3['InvalidDest'] = 'Zielverzeichnis ungueltig';
928 $de3['NoNewPerm'] = 'Neue Rechte nicht gesetzt';
929 $de3['CopyTo'] = 'Kopiere nach';
930 $de3['MoveTo'] = 'Verschiebe nach';
931 $de3['AlterPermTo'] = 'Aendere Rechte zu';
932 $de3['ConfExec'] = 'Ausfuehren bestaetigen';
933 $de3['ConfRem'] = 'Entfernen bestaetigen';
934 $de3['EmptyDir'] = 'Leerer Ordner';
935 $de3['IOError'] = 'I/O Fehler';
936 $de3['FileMan'] = 'PHP Datei Manager';
937 $de3['TypePass'] = 'Bitte Passwort eingeben';
938 $de3['InvPass'] = 'Falsches Passwort';
939 $de3['ReadDenied'] = 'Kein Lesezugriff';
940 $de3['FileNotFound'] = 'Datei nicht gefunden';
941 $de3['AutoClose'] = 'Beenden bei Fertigstellung';
942 $de3['OutDocRoot'] = 'Datei ausserhalb des DOCUMENT_ROOT';
943 $de3['NoCmd'] = 'Fehler: unbekannter Befehl';
944 $de3['ConfTrySave'] = 'Datei ohne Schreibrecht.\\nVersuche dennoch zu speichern';
945 $de3['ConfSaved'] = 'Konfiguration gespeichert';
946 $de3['PassSaved'] = 'Passwort gespeichert';
947 $de3['FileDirExists'] = 'Datei oder Verzeichnis existiert bereits';
948 $de3['NoPhpinfo'] = 'Funktion phpinfo gesperrt';
949 $de3['NoReturn'] = 'kein zurueck';
950 $de3['FileSent'] = 'Datei gesendet';
951 $de3['SpaceLimReached'] = 'Speicherplatz Grenze erreicht';
952 $de3['InvExt'] = 'Ungueltige Erweiterung';
953 $de3['FileNoOverw'] = 'Datei konnte nicht ueberschrieben werden';
954 $de3['FileOverw'] = 'Datei ueberschrieben';
955 $de3['FileIgnored'] = 'Datei ignoriert';
956 $de3['ChkVer'] = 'Puefe eine neuere Version';
957 $de3['ChkVerAvailable'] = 'Neue Version, hier klicken zum Download!!';
958 $de3['ChkVerNotAvailable'] = 'Keine neuere Version vorhanden. :(';
959 $de3['ChkVerError'] = 'Verbindungsfehler.';
960 $de3['Website'] = 'Website';
961 $de3['SendingForm'] = 'Dateien werden gesendet, bitte warten';
962 $de3['NoFileSel'] = 'Keine Datei ausgewaehlt';
963 $de3['SelAll'] = 'Alle';
964 $de3['SelNone'] = 'Keine';
965 $de3['SelInverse'] = 'Invertiere';
966 $de3['Selected_s'] = 'ausgewaehlt';
967 $de3['Total'] = 'gesamt';
968 $de3['Partition'] = 'Partition';
969 $de3['RenderTime'] = 'Zeit zur Erzeugung dieser Seite';
970 $de3['Seconds'] = 'sec';
971 $de3['ErrorReport'] = 'Fehlermeldungen';
972
973 // French - by Jean Bilwes
974 $fr1['Version'] = 'Version';
975 $fr1['DocRoot'] = 'Racine des documents';
976 $fr1['FLRoot'] = 'Racine du gestionnaire de fichers';
977 $fr1['Name'] = 'Nom';
978 $fr1['And'] = 'et';
979 $fr1['Enter'] = 'Enter';
980 $fr1['Send'] = 'Envoyer';
981 $fr1['Refresh'] = 'Rafraichir';
982 $fr1['SaveConfig'] = 'Enregistrer la Configuration';
983 $fr1['SavePass'] = 'Enregistrer le mot de passe';
984 $fr1['SaveFile'] = 'Enregistrer le fichier';
985 $fr1['Save'] = 'Enregistrer';
986 $fr1['Leave'] = 'Quitter';
987 $fr1['Edit'] = 'Modifier';
988 $fr1['View'] = 'Voir';
989 $fr1['Config'] = 'Config';
990 $fr1['Ren'] = 'Renommer';
991 $fr1['Rem'] = 'Detruire';
992 $fr1['Compress'] = 'Compresser';
993 $fr1['Decompress'] = 'Decompresser';
994 $fr1['ResolveIDs'] = 'Resoudre les IDs';
995 $fr1['Move'] = 'Déplacer';
996 $fr1['Copy'] = 'Copier';
997 $fr1['ServerInfo'] = 'info du sreveur';
998 $fr1['CreateDir'] = 'Créer un répertoire';
999 $fr1['CreateArq'] = 'Créer un fichier';
1000 $fr1['ExecCmd'] = 'Executer une Commande';
1001 $fr1['Upload'] = 'Téléversement(upload)';
1002 $fr1['UploadEnd'] = 'Téléversement Fini';
1003 $fr1['Perm'] = 'Perm';
1004 $fr1['Perms'] = 'Permissions';
1005 $fr1['Owner'] = 'Propriétaire';
1006 $fr1['Group'] = 'Groupe';
1007 $fr1['Other'] = 'Autre';
1008 $fr1['Size'] = 'Taille';
1009 $fr1['Date'] = 'Date';
1010 $fr1['Type'] = 'Type';
1011 $fr1['Free'] = 'libre';
1012 $fr1['Shell'] = 'Shell';
1013 $fr1['Read'] = 'Lecture';
1014 $fr1['Write'] = 'Ecriture';
1015 $fr1['Exec'] = 'Executer';
1016 $fr1['Apply'] = 'Appliquer';
1017 $fr1['StickyBit'] = 'Sticky Bit';
1018 $fr1['Pass'] = 'Mot de passe';
1019 $fr1['Lang'] = 'Langage';
1020 $fr1['File'] = 'Fichier';
1021 $fr1['File_s'] = 'fichier(s)';
1022 $fr1['Dir_s'] = 'répertoire(s)';
1023 $fr1['To'] = 'Ã ';
1024 $fr1['Destination'] = 'Destination';
1025 $fr1['Configurations'] = 'Configurations';
1026 $fr1['JSError'] = 'Erreur JavaScript';
1027 $fr1['NoSel'] = 'Rien n\'est sélectionné';
1028 $fr1['SelDir'] = 'Selectionnez le répertoire de destination dans le panneau gauche';
1029 $fr1['TypeDir'] = 'Entrer le nom du répertoire';
1030 $fr1['TypeArq'] = 'Entrer le nom du fichier';
1031 $fr1['TypeCmd'] = 'Entrer la commande';
1032 $fr1['TypeArqComp'] = 'Entrer le nom du fichier.\\nL\'extension définira le type de compression.\\nEx:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
1033 $fr1['RemSel'] = 'EFFACER les objets sélectionnés';
1034 $fr1['NoDestDir'] = 'Aucun répertoire de destination n\'est sélectionné';
1035 $fr1['DestEqOrig'] = 'Les répertoires source et destination sont identiques';
1036 $fr1['InvalidDest'] = 'Le répertoire de destination est invalide';
1037 $fr1['NoNewPerm'] = 'Nouvelle permission non établie';
1038 $fr1['CopyTo'] = 'COPIER vers';
1039 $fr1['MoveTo'] = 'DEPLACER vers';
1040 $fr1['AlterPermTo'] = 'CHANGER LES PERMISSIONS';
1041 $fr1['ConfExec'] = 'Confirmer l\'EXECUTION';
1042 $fr1['ConfRem'] = 'Confirmer la DESTRUCTION';
1043 $fr1['EmptyDir'] = 'Répertoire vide';
1044 $fr1['IOError'] = 'I/O Error';
1045 $fr1['FileMan'] = 'PHP File Manager';
1046 $fr1['TypePass'] = 'Entrer le mot de passe';
1047 $fr1['InvPass'] = 'Mot de passe invalide';
1048 $fr1['ReadDenied'] = 'Droit de lecture refusé';
1049 $fr1['FileNotFound'] = 'Fichier introuvable';
1050 $fr1['AutoClose'] = 'Fermer sur fin';
1051 $fr1['OutDocRoot'] = 'Fichier au delà de DOCUMENT_ROOT';
1052 $fr1['NoCmd'] = 'Erreur: Commande non renseignée';
1053 $fr1['ConfTrySave'] = 'Fichier sans permission d\'écriture.\\nJ\'essaie de l\'enregister';
1054 $fr1['ConfSaved'] = 'Configurations enreristrée';
1055 $fr1['PassSaved'] = 'Mot de passe enreristré';
1056 $fr1['FileDirExists'] = 'Le fichier ou le répertoire existe déjà ';
1057 $fr1['NoPhpinfo'] = 'Function phpinfo désactivée';
1058 $fr1['NoReturn'] = 'pas de retour';
1059 $fr1['FileSent'] = 'Fichier envoyé';
1060 $fr1['SpaceLimReached'] = 'Espace maxi atteint';
1061 $fr1['InvExt'] = 'Extension invalide';
1062 $fr1['FileNoOverw'] = 'Le fichier ne peut pas etre écrasé';
1063 $fr1['FileOverw'] = 'Fichier écrasé';
1064 $fr1['FileIgnored'] = 'Fichier ignoré';
1065 $fr1['ChkVer'] = 'Verifier nouvelle version';
1066 $fr1['ChkVerAvailable'] = 'Nouvelle version, cliquer ici pour la téléchager!!';
1067 $fr1['ChkVerNotAvailable'] = 'Aucune mise a jour de disponible. :(';
1068 $fr1['ChkVerError'] = 'Erreur de connection.';
1069 $fr1['Website'] = 'siteweb';
1070 $fr1['SendingForm'] = 'Envoi des fichiers en cours, Patienter';
1071 $fr1['NoFileSel'] = 'Aucun fichier sélectionné';
1072 $fr1['SelAll'] = 'Tous';
1073 $fr1['SelNone'] = 'Aucun';
1074 $fr1['SelInverse'] = 'Inverser';
1075 $fr1['Selected_s'] = 'selectioné';
1076 $fr1['Total'] = 'total';
1077 $fr1['Partition'] = 'Partition';
1078 $fr1['RenderTime'] = 'Temps pour afficher cette page';
1079 $fr1['Seconds'] = 'sec';
1080 $fr1['ErrorReport'] = 'Rapport d\'erreur';
1081
1082 // French - by Sharky
1083 $fr2['Version'] = 'Version';
1084 $fr2['DocRoot'] = 'Racine document';
1085 $fr2['FLRoot'] = 'Gestion des fichiers racine';
1086 $fr2['Name'] = 'Nom';
1087 $fr2['And'] = 'et';
1088 $fr2['Enter'] = 'Entrer';
1089 $fr2['Send'] = 'Envoi';
1090 $fr2['Refresh'] = 'Rafraîchir';
1091 $fr2['SaveConfig'] = 'Sauver configurations';
1092 $fr2['SavePass'] = 'Sauver mot de passe';
1093 $fr2['SaveFile'] = 'Sauver fichier';
1094 $fr2['Save'] = 'Sauver';
1095 $fr2['Leave'] = 'Permission';
1096 $fr2['Edit'] = 'Éditer';
1097 $fr2['View'] = 'Afficher';
1098 $fr2['Config'] = 'config';
1099 $fr2['Ren'] = 'Renommer';
1100 $fr2['Rem'] = 'Effacer';
1101 $fr2['Compress'] = 'Compresser';
1102 $fr2['Decompress'] = 'Décompresser';
1103 $fr2['ResolveIDs'] = 'Résoudre ID';
1104 $fr2['Move'] = 'Déplacer';
1105 $fr2['Copy'] = 'Copier';
1106 $fr2['ServerInfo'] = 'Information Serveur';
1107 $fr2['CreateDir'] = 'Créer un répertoire';
1108 $fr2['CreateArq'] = 'Créer un fichier';
1109 $fr2['ExecCmd'] = 'Executé une commande';
1110 $fr2['Upload'] = 'Transférer';
1111 $fr2['UploadEnd'] = 'Transfert terminé';
1112 $fr2['Perm'] = 'Perm';
1113 $fr2['Perms'] = 'Permissions';
1114 $fr2['Owner'] = 'Propriétaire';
1115 $fr2['Group'] = 'Groupe';
1116 $fr2['Other'] = 'Autre';
1117 $fr2['Size'] = 'Taille';
1118 $fr2['Date'] = 'date';
1119 $fr2['Type'] = 'Type';
1120 $fr2['Free'] = 'Libre';
1121 $fr2['Shell'] = 'Shell';
1122 $fr2['Read'] = 'lecture';
1123 $fr2['Write'] = 'écriture';
1124 $fr2['Exec'] = 'Execute';
1125 $fr2['Apply'] = 'Appliquer';
1126 $fr2['StickyBit'] = 'Bit figer';
1127 $fr2['Pass'] = 'mot de passe';
1128 $fr2['Lang'] = 'Language';
1129 $fr2['File'] = 'Fichier';
1130 $fr2['File_s'] = 'fichier(s)';
1131 $fr2['Dir_s'] = 'répertoire(s)';
1132 $fr2['To'] = 'Ã ';
1133 $fr2['Destination'] = 'Destination';
1134 $fr2['Configurations'] = 'Configurations';
1135 $fr2['JSError'] = 'Erreur JavaScript';
1136 $fr2['NoSel'] = 'Il n\'y a pas d\'objets sélectionnés';
1137 $fr2['SelDir'] = 'Sélectionnez le répertoire de destination sur l\'arborescence de gauche';
1138 $fr2['TypeDir'] = 'Entrez le nom du répertoire';
1139 $fr2['TypeArq'] = 'Entrez le nom du fichier';
1140 $fr2['TypeCmd'] = 'Entrez la commande';
1141 $fr2['TypeArqComp'] = 'Entrez le fichier.\\nL\'extension définira le type de compression.\\nEx:\\nnom.zip\\nnom.tar\\nnom.bzip\\nnom.gzip';
1142 $fr2['RemSel'] = 'EFFACEZ l\'objet sélectionné';
1143 $fr2['NoDestDir'] = 'Il n\'y a aucun répertoire de destination sélectionné';
1144 $fr2['DestEqOrig'] = 'Origine et répertoires de destination sont identique';
1145 $fr2['InvalidDest'] = 'Répertoire de destination est invalide';
1146 $fr2['NoNewPerm'] = 'Nouvelle autorisation n\'a pas été configuré';
1147 $fr2['CopyTo'] = 'COPIE dans';
1148 $fr2['MoveTo'] = 'DÉPLACER dans';
1149 $fr2['AlterPermTo'] = 'CHANGER PERMISSIONS dans';
1150 $fr2['ConfExec'] = 'Confirmer EXECUTE';
1151 $fr2['ConfRem'] = 'Confirmer EFFACER';
1152 $fr2['EmptyDir'] = 'Répertoire vide';
1153 $fr2['IOError'] = 'I/O Erreur';
1154 $fr2['FileMan'] = 'Gestion de fichiers PHP';
1155 $fr2['TypePass'] = 'Entrer le mot de passe';
1156 $fr2['InvPass'] = 'Mot de passe invalide';
1157 $fr2['ReadDenied'] = 'Accès en lecture refuser';
1158 $fr2['FileNotFound'] = 'Fichier non-trouvé';
1159 $fr2['AutoClose'] = 'Fermez a la fin';
1160 $fr2['OutDocRoot'] = 'Fichier au-delà DOCUMENT_ROOT';
1161 $fr2['NoCmd'] = 'Erreur: Commande inconnue';
1162 $fr2['ConfTrySave'] = 'Fichier sans permission d\'écriture.\\nEssayez de sauver';
1163 $fr2['ConfSaved'] = 'Configurations sauvée';
1164 $fr2['PassSaved'] = 'Mot de passe sauvé';
1165 $fr2['FileDirExists'] = 'Fichier ou répertoire déjà existant';
1166 $fr2['NoPhpinfo'] = 'Function phpinfo désactivé';
1167 $fr2['NoReturn'] = 'sans retour possible';
1168 $fr2['FileSent'] = 'Fichier envoyé';
1169 $fr2['SpaceLimReached'] = 'Limite de d\'espace atteint';
1170 $fr2['InvExt'] = 'Extension invalide';
1171 $fr2['FileNoOverw'] = 'Fichier ne peut pas être écrasé';
1172 $fr2['FileOverw'] = 'Fichier écrasé';
1173 $fr2['FileIgnored'] = 'Fichier ignoré';
1174 $fr2['ChkVer'] = 'Check nouvelle version';
1175 $fr2['ChkVerAvailable'] = 'Nouvelle version, cliquez ici pour commencer le téléchargement!!';
1176 $fr2['ChkVerNotAvailable'] = 'Aucune nouvelle version disponible. :(';
1177 $fr2['ChkVerError'] = 'Erreur de connection.';
1178 $fr2['Website'] = 'Site Web';
1179 $fr2['SendingForm'] = 'Envoye de fichier, s\'il vous plaît patientez';
1180 $fr2['NoFileSel'] = 'Aucun fichier sélectionné';
1181 $fr2['SelAll'] = 'Tout';
1182 $fr2['SelNone'] = 'Aucuns';
1183 $fr2['SelInverse'] = 'Inverser';
1184 $fr2['Selected_s'] = 'sélectionné';
1185 $fr2['Total'] = 'total';
1186 $fr2['Partition'] = 'Partition';
1187 $fr2['RenderTime'] = 'Temps pour afficher la page';
1188 $fr2['Seconds'] = 'sec';
1189 $fr2['ErrorReport'] = 'Liste des erreurs';
1190
1191 // French - by Michel Lainey
1192 $fr3['Version'] = 'Version';
1193 $fr3['DocRoot'] = 'Racine Document';
1194 $fr3['FLRoot'] = 'Racine File Manager';
1195 $fr3['Name'] = 'Nom';
1196 $fr3['And'] = 'et';
1197 $fr3['Enter'] = 'Valider';
1198 $fr3['Send'] = 'Envoyer';
1199 $fr3['Refresh'] = 'Raffraichir';
1200 $fr3['SaveConfig'] = 'Sauvegarder Config';
1201 $fr3['SavePass'] = 'Sauvegarder Password';
1202 $fr3['SaveFile'] = 'Sauvegarder Fichier';
1203 $fr3['Save'] = 'Sauvegarder';
1204 $fr3['Leave'] = 'Quitter';
1205 $fr3['Edit'] = 'Editer';
1206 $fr3['View'] = 'Visualiser';
1207 $fr3['Config'] = 'Config';
1208 $fr3['Ren'] = 'Renommer';
1209 $fr3['Rem'] = 'Supprimer';
1210 $fr3['Compress'] = 'Compresser';
1211 $fr3['Decompress'] = 'Décompresser';
1212 $fr3['ResolveIDs'] = 'Resoudre IDs';
1213 $fr3['Move'] = 'Déplacer';
1214 $fr3['Copy'] = 'Copier';
1215 $fr3['ServerInfo'] = 'Server Info';
1216 $fr3['CreateDir'] = 'Créer Répertoire';
1217 $fr3['CreateArq'] = 'Créer Fichier';
1218 $fr3['ExecCmd'] = 'Executer Commande';
1219 $fr3['Upload'] = 'Upload';
1220 $fr3['UploadEnd'] = 'Upload Fini';
1221 $fr3['Perm'] = 'Perm';
1222 $fr3['Perms'] = 'Permissions';
1223 $fr3['Owner'] = 'Propriétaire';
1224 $fr3['Group'] = 'Groupe';
1225 $fr3['Other'] = 'Autres';
1226 $fr3['Size'] = 'Taille';
1227 $fr3['Date'] = 'Date';
1228 $fr3['Type'] = 'Type';
1229 $fr3['Free'] = 'libre';
1230 $fr3['Shell'] = 'Shell';
1231 $fr3['Read'] = 'Lecture';
1232 $fr3['Write'] = 'Ecriture';
1233 $fr3['Exec'] = 'Execute';
1234 $fr3['Apply'] = 'Application';
1235 $fr3['StickyBit'] = 'Sticky Bit';
1236 $fr3['Pass'] = 'Password';
1237 $fr3['Lang'] = 'Language';
1238 $fr3['File'] = 'Fichier';
1239 $fr3['File_s'] = 'fichier(s)';
1240 $fr3['Dir_s'] = 'répertoire(s)';
1241 $fr3['To'] = 'Ã ';
1242 $fr3['Destination'] = 'Destination';
1243 $fr3['Configurations'] = 'Configurations';
1244 $fr3['JSError'] = 'Erreur JavaScript';
1245 $fr3['NoSel'] = 'Aucun élément sélectionné';
1246 $fr3['SelDir'] = "Sélectionner le répertoire de destination dans l'arboresence de gauchethe destination directory on the left tree";
1247 $fr3['TypeDir'] = 'Indiquer le nom du répertoire';
1248 $fr3['TypeArq'] = 'Indiquer le nom du fichier';
1249 $fr3['TypeCmd'] = 'Entrer une commande';
1250 $fr3['TypeArqComp'] = "Indiquer le nom du fichier.\\nL'extension définira le type de compression.\\nEx:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip";
1251 $fr3['RemSel'] = "SUPPRIMER l'élément sélectionné";
1252 $fr3['NoDestDir'] = "Il n'y a pas de répertoire destination sélectionné";
1253 $fr3['DestEqOrig'] = 'Répertoire Origine et Destination sont identiques';
1254 $fr3['InvalidDest'] = 'Le répertoire de destination est invalide';
1255 $fr3['NoNewPerm'] = 'Nouvelle permission non appliquée';
1256 $fr3['CopyTo'] = 'COPIER vers';
1257 $fr3['MoveTo'] = 'DEPLACER vers';
1258 $fr3['AlterPermTo'] = 'CHANGER LES PERMISSIONS vers';
1259 $fr3['ConfExec'] = 'Confirmer EXECUTION';
1260 $fr3['ConfRem'] = 'Confirmer SUPPRESSION';
1261 $fr3['EmptyDir'] = 'Répertoire vide';
1262 $fr3['IOError'] = 'Erreur entrée/sortie';
1263 $fr3['FileMan'] = 'PHP File Manager';
1264 $fr3['TypePass'] = 'Saisir le mot de passe';
1265 $fr3['InvPass'] = 'Mot de passe invalide';
1266 $fr3['ReadDenied'] = 'Accès en lecture refusé';
1267 $fr3['FileNotFound'] = 'Fichier non trouvé';
1268 $fr3['AutoClose'] = 'Fermeture en fin de traitement';
1269 $fr3['OutDocRoot'] = 'Fichier en dessous de DOCUMENT_ROOT';
1270 $fr3['NoCmd'] = 'Erreur : Commande non renseignée';
1271 $fr3['ConfTrySave'] = "Fichier sans permission d'écriture.\\nTenter de sauver malgré tout";
1272 $fr3['ConfSaved'] = 'Configurations sauvegardée';
1273 $fr3['PassSaved'] = 'Password sauvegardé';
1274 $fr3['FileDirExists'] = 'Fichier ou répertoire déjà existant';
1275 $fr3['NoPhpinfo'] = 'Fonction phpinfo disactivée';
1276 $fr3['NoReturn'] = 'pas de retour';
1277 $fr3['FileSent'] = 'Fichier envoyé';
1278 $fr3['SpaceLimReached'] = 'Capacité maximale atteinte';
1279 $fr3['InvExt'] = 'Extension invalide';
1280 $fr3['FileNoOverw'] = 'Fichier ne pouvant être remplacé';
1281 $fr3['FileOverw'] = 'Fichier remplacé';
1282 $fr3['FileIgnored'] = 'Fichier ignoré';
1283 $fr3['ChkVer'] = 'Vérifier nouvelle version';
1284 $fr3['ChkVerAvailable'] = 'Nouvelle version, cliquer ici pour commencer le téléchargement !';
1285 $fr3['ChkVerNotAvailable'] = 'Pas de nouvelle version disponible. :(';
1286 $fr3['ChkVerError'] = 'Erreur de connection.';
1287 $fr3['Website'] = 'Site Web';
1288 $fr3['SendingForm'] = "Fichiers en cours d'envoi, merci de patienter";
1289 $fr3['NoFileSel'] = 'Pas de fichier sélectionné';
1290 $fr3['SelAll'] = 'Tous';
1291 $fr3['SelNone'] = 'Aucun';
1292 $fr3['SelInverse'] = 'Inverser';
1293 $fr3['Selected_s'] = 'sélectionné';
1294 $fr3['Total'] = 'total';
1295 $fr3['Partition'] = 'Partition';
1296 $fr3['RenderTime'] = 'Temps nécessaire pour obtenir cette page';
1297 $fr3['Seconds'] = 'sec';
1298 $fr3['ErrorReport'] = 'Erreur de compte rendu';
1299
1300 // Dutch - by Leon Buijs
1301 $nl['Version'] = 'Versie';
1302 $nl['DocRoot'] = 'Document Root';
1303 $nl['FLRoot'] = 'File Manager Root';
1304 $nl['Name'] = 'Naam';
1305 $nl['And'] = 'en';
1306 $nl['Enter'] = 'Enter';
1307 $nl['Send'] = 'Verzend';
1308 $nl['Refresh'] = 'Vernieuw';
1309 $nl['SaveConfig'] = 'Configuratie opslaan';
1310 $nl['SavePass'] = 'Wachtwoord opslaan';
1311 $nl['SaveFile'] = 'Bestand opslaan';
1312 $nl['Save'] = 'Opslaan';
1313 $nl['Leave'] = 'Verlaten';
1314 $nl['Edit'] = 'Wijzigen';
1315 $nl['View'] = 'Toon';
1316 $nl['Config'] = 'Configuratie';
1317 $nl['Ren'] = 'Naam wijzigen';
1318 $nl['Rem'] = 'Verwijderen';
1319 $nl['Compress'] = 'Comprimeren';
1320 $nl['Decompress'] = 'Decomprimeren';
1321 $nl['ResolveIDs'] = 'Resolve IDs';
1322 $nl['Move'] = 'Verplaats';
1323 $nl['Copy'] = 'Kopieer';
1324 $nl['ServerInfo'] = 'Serverinformatie';
1325 $nl['CreateDir'] = 'Nieuwe map';
1326 $nl['CreateArq'] = 'Nieuw bestand';
1327 $nl['ExecCmd'] = 'Commando uitvoeren';
1328 $nl['Upload'] = 'Upload';
1329 $nl['UploadEnd'] = 'Upload voltooid';
1330 $nl['Perm'] = 'Rechten';
1331 $nl['Perms'] = 'Rechten';
1332 $nl['Owner'] = 'Eigenaar';
1333 $nl['Group'] = 'Groep';
1334 $nl['Other'] = 'Anderen';
1335 $nl['Size'] = 'Grootte';
1336 $nl['Date'] = 'Datum';
1337 $nl['Type'] = 'Type';
1338 $nl['Free'] = 'free';
1339 $nl['Shell'] = 'Shell';
1340 $nl['Read'] = 'Lezen';
1341 $nl['Write'] = 'Schrijven';
1342 $nl['Exec'] = 'Uitvoeren';
1343 $nl['Apply'] = 'Toepassen';
1344 $nl['StickyBit'] = 'Sticky Bit';
1345 $nl['Pass'] = 'Wachtwoord';
1346 $nl['Lang'] = 'Taal';
1347 $nl['File'] = 'Bestand';
1348 $nl['File_s'] = 'bestand(en)';
1349 $nl['Dir_s'] = 'map(pen)';
1350 $nl['To'] = 'naar';
1351 $nl['Destination'] = 'Bestemming';
1352 $nl['Configurations'] = 'Instellingen';
1353 $nl['JSError'] = 'Javascriptfout';
1354 $nl['NoSel'] = 'Er zijn geen bestanden geselecteerd';
1355 $nl['SelDir'] = 'Kies de bestemming in de boom aan de linker kant';
1356 $nl['TypeDir'] = 'Voer de mapnaam in';
1357 $nl['TypeArq'] = 'Voer de bestandsnaam in';
1358 $nl['TypeCmd'] = 'Voer het commando in';
1359 $nl['TypeArqComp'] = 'Voer de bestandsnaam in.\\nDe extensie zal het compressietype bepalen.\\nEx:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
1360 $nl['RemSel'] = 'VERWIJDER geselecteerde itens';
1361 $nl['NoDestDir'] = 'Er is geen doelmap geselecteerd';
1362 $nl['DestEqOrig'] = 'Bron- en doelmap zijn hetzelfde';
1363 $nl['InvalidDest'] = 'Doelmap is ongeldig';
1364 $nl['NoNewPerm'] = 'Nieuwe rechten niet geset';
1365 $nl['CopyTo'] = 'KOPIEER naar';
1366 $nl['MoveTo'] = 'VERPLAATS naar';
1367 $nl['AlterPermTo'] = 'VERANDER RECHTEN in';
1368 $nl['ConfExec'] = 'Bevestig UITVOEREN';
1369 $nl['ConfRem'] = 'Bevestig VERWIJDEREN';
1370 $nl['EmptyDir'] = 'Lege map';
1371 $nl['IOError'] = 'I/O Error';
1372 $nl['FileMan'] = 'PHP File Manager';
1373 $nl['TypePass'] = 'Voer het wachtwoord in';
1374 $nl['InvPass'] = 'Ongeldig wachtwoord';
1375 $nl['ReadDenied'] = 'Leestoegang ontzegd';
1376 $nl['FileNotFound'] = 'Bestand niet gevonden';
1377 $nl['AutoClose'] = 'Sluit na voltooien';
1378 $nl['OutDocRoot'] = 'Bestand buiten DOCUMENT_ROOT';
1379 $nl['NoCmd'] = 'Error: Command not informed';
1380 $nl['ConfTrySave'] = 'Bestand zonder schrijfrechten.\\nProbeer een andere manier';
1381 $nl['ConfSaved'] = 'Instellingen opgeslagen';
1382 $nl['PassSaved'] = 'Wachtwoord opgeslagen';
1383 $nl['FileDirExists'] = 'Bestand of map bestaat al';
1384 $nl['NoPhpinfo'] = 'Functie \'phpinfo\' is uitgeschakeld';
1385 $nl['NoReturn'] = 'no return';
1386 $nl['FileSent'] = 'Bestand verzonden';
1387 $nl['SpaceLimReached'] = 'Opslagruimtelimiet bereikt';
1388 $nl['InvExt'] = 'Ongeldige extensie';
1389 $nl['FileNoOverw'] = 'Bestand kan niet worden overgeschreven';
1390 $nl['FileOverw'] = 'Bestand overgeschreven';
1391 $nl['FileIgnored'] = 'Bestand genegeerd';
1392 $nl['ChkVer'] = 'Controleer nieuwe versie';
1393 $nl['ChkVerAvailable'] = 'Nieuwe versie, klik hier om de download te starten';
1394 $nl['ChkVerNotAvailable'] = 'Geen nieuwe versie beschikbaar';
1395 $nl['ChkVerError'] = 'Verbindingsfout.';
1396 $nl['Website'] = 'Website';
1397 $nl['SendingForm'] = 'Bestanden worden verzonden. Even geduld...';
1398 $nl['NoFileSel'] = 'Geen bestanden geselecteerd';
1399 $nl['SelAll'] = 'Alles';
1400 $nl['SelNone'] = 'Geen';
1401 $nl['SelInverse'] = 'Keer om';
1402 $nl['Selected_s'] = 'geselecteerd';
1403 $nl['Total'] = 'totaal';
1404 $nl['Partition'] = 'Partitie';
1405 $nl['RenderTime'] = 'Tijd voor maken van deze pagina';
1406 $nl['Seconds'] = 'sec';
1407 $nl['ErrorReport'] = 'Foutenrapport';
1408
1409 // Italian - by Valerio Capello
1410 $it1['Version'] = 'Versione';
1411 $it1['DocRoot'] = 'Document Root';
1412 $it1['FLRoot'] = 'File Manager Root';
1413 $it1['Name'] = 'Nome';
1414 $it1['And'] = 'e';
1415 $it1['Enter'] = 'Immetti';
1416 $it1['Send'] = 'Invia';
1417 $it1['Refresh'] = 'Aggiorna';
1418 $it1['SaveConfig'] = 'Salva la Configurazione';
1419 $it1['SavePass'] = 'Salva la Password';
1420 $it1['SaveFile'] = 'Salva il File';
1421 $it1['Save'] = 'Salva';
1422 $it1['Leave'] = 'Abbandona';
1423 $it1['Edit'] = 'Modifica';
1424 $it1['View'] = 'Guarda';
1425 $it1['Config'] = 'Configurazione';
1426 $it1['Ren'] = 'Rinomina';
1427 $it1['Rem'] = 'Elimina';
1428 $it1['Compress'] = 'Comprimi';
1429 $it1['Decompress'] = 'Decomprimi';
1430 $it1['ResolveIDs'] = 'Risolvi IDs';
1431 $it1['Move'] = 'Sposta';
1432 $it1['Copy'] = 'Copia';
1433 $it1['ServerInfo'] = 'Informazioni sul Server';
1434 $it1['CreateDir'] = 'Crea Directory';
1435 $it1['CreateArq'] = 'Crea File';
1436 $it1['ExecCmd'] = 'Esegui Comando';
1437 $it1['Upload'] = 'Carica';
1438 $it1['UploadEnd'] = 'Caricamento terminato';
1439 $it1['Perm'] = 'Perm';
1440 $it1['Perms'] = 'Permessi';
1441 $it1['Owner'] = 'Proprietario';
1442 $it1['Group'] = 'Gruppo';
1443 $it1['Other'] = 'Altri';
1444 $it1['Size'] = 'Dimensioni';
1445 $it1['Date'] = 'Data';
1446 $it1['Type'] = 'Tipo';
1447 $it1['Free'] = 'liberi';
1448 $it1['Shell'] = 'Shell';
1449 $it1['Read'] = 'Lettura';
1450 $it1['Write'] = 'Scrittura';
1451 $it1['Exec'] = 'Esecuzione';
1452 $it1['Apply'] = 'Applica';
1453 $it1['StickyBit'] = 'Sticky Bit';
1454 $it1['Pass'] = 'Password';
1455 $it1['Lang'] = 'Lingua';
1456 $it1['File'] = 'File';
1457 $it1['File_s'] = 'file';
1458 $it1['Dir_s'] = 'directory';
1459 $it1['To'] = 'a';
1460 $it1['Destination'] = 'Destinazione';
1461 $it1['Configurations'] = 'Configurazione';
1462 $it1['JSError'] = 'Errore JavaScript';
1463 $it1['NoSel'] = 'Non ci sono elementi selezionati';
1464 $it1['SelDir'] = 'Scegli la directory di destinazione';
1465 $it1['TypeDir'] = 'Inserisci il nome della directory';
1466 $it1['TypeArq'] = 'Inserisci il nome del file';
1467 $it1['TypeCmd'] = 'Inserisci il comando';
1468 $it1['TypeArqComp'] = 'Inserisci il nome del file.\\nLa estensione definirà il tipo di compressione.\\nEsempio:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
1469 $it1['RemSel'] = 'ELIMINA gli elementi selezionati';
1470 $it1['NoDestDir'] = 'LA directory di destinazione non è stata selezionata';
1471 $it1['DestEqOrig'] = 'La directory di origine e di destinazione sono la stessa';
1472 $it1['InvalidDest'] = 'La directory di destinazione non è valida';
1473 $it1['NoNewPerm'] = 'Nuovi permessi non attivati';
1474 $it1['CopyTo'] = 'COPIA in';
1475 $it1['MoveTo'] = 'SPOSTA in';
1476 $it1['AlterPermTo'] = 'CAMBIA I PERMESSI: ';
1477 $it1['ConfExec'] = 'Conferma ESECUZIONE';
1478 $it1['ConfRem'] = 'Conferma ELIMINAZIONE';
1479 $it1['EmptyDir'] = 'Directory vuota';
1480 $it1['IOError'] = 'Errore di I/O';
1481 $it1['FileMan'] = 'PHP File Manager';
1482 $it1['TypePass'] = 'Immetti la password';
1483 $it1['InvPass'] = 'Password non valida';
1484 $it1['ReadDenied'] = 'Permesso di lettura negato';
1485 $it1['FileNotFound'] = 'File non trovato';
1486 $it1['AutoClose'] = 'Chiudi la finestra al termine';
1487 $it1['OutDocRoot'] = 'File oltre DOCUMENT_ROOT';
1488 $it1['NoCmd'] = 'Errore: Comando non informato';
1489 $it1['ConfTrySave'] = 'File senza permesso di scrittura.\\nProvo a salvare comunque';
1490 $it1['ConfSaved'] = 'Configurazione salvata';
1491 $it1['PassSaved'] = 'Password salvata';
1492 $it1['FileDirExists'] = 'Il file o la directory esiste già ';
1493 $it1['NoPhpinfo'] = 'La funzione phpinfo è disabilitata';
1494 $it1['NoReturn'] = 'senza Return';
1495 $it1['FileSent'] = 'File inviato';
1496 $it1['SpaceLimReached'] = 'è stato raggiunto il limite di spazio disponibile';
1497 $it1['InvExt'] = 'Estensione non valida';
1498 $it1['FileNoOverw'] = 'Il file non può essere sovrascritto';
1499 $it1['FileOverw'] = 'File sovrascritto';
1500 $it1['FileIgnored'] = 'File ignorato';
1501 $it1['ChkVer'] = 'Controlla se è disponibile una nuova versione';
1502 $it1['ChkVerAvailable'] = 'è disponibile una nuova versione: premi qui per scaricarla.';
1503 $it1['ChkVerNotAvailable'] = 'Non è disponibile nessuna nuova versione. :(';
1504 $it1['ChkVerError'] = 'Errore di connessione.';
1505 $it1['Website'] = 'Sito Web';
1506 $it1['SendingForm'] = 'Invio file, attendere prego';
1507 $it1['NoFileSel'] = 'Nessun file selezionato';
1508 $it1['SelAll'] = 'Tutti';
1509 $it1['SelNone'] = 'Nessuno';
1510 $it1['SelInverse'] = 'Inverti';
1511 $it1['Selected_s'] = 'selezionato';
1512 $it1['Total'] = 'totali';
1513 $it1['Partition'] = 'Partizione';
1514 $it1['RenderTime'] = 'Tempo per elaborare questa pagina';
1515 $it1['Seconds'] = 'sec';
1516 $it1['ErrorReport'] = 'Error Reporting';
1517
1518 // Italian - by Federico CorrÃ
1519 $it2['Version'] = 'Versione';
1520 $it2['DocRoot'] = 'Root Documenti';
1521 $it2['FLRoot'] = 'Root del File Manager';
1522 $it2['Name'] = 'Nome';
1523 $it2['And'] = 'e';
1524 $it2['Enter'] = 'Invio';
1525 $it2['Send'] = 'Spedisci';
1526 $it2['Refresh'] = 'Aggiorna';
1527 $it2['SaveConfig'] = 'Salva configurazioni';
1528 $it2['SavePass'] = 'Salva password';
1529 $it2['SaveFile'] = 'Salva file';
1530 $it2['Save'] = 'Salva';
1531 $it2['Leave'] = 'Esci';
1532 $it2['Edit'] = 'Modifica';
1533 $it2['View'] = 'Visualizza';
1534 $it2['Config'] = 'Configura';
1535 $it2['Ren'] = 'Rinomina';
1536 $it2['Rem'] = 'Cancella';
1537 $it2['Compress'] = 'Comprimi';
1538 $it2['Decompress'] = 'Decomprimi';
1539 $it2['ResolveIDs'] = 'Risolvi ID';
1540 $it2['Move'] = 'Muovi';
1541 $it2['Copy'] = 'Copia';
1542 $it2['ServerInfo'] = 'Server info';
1543 $it2['CreateDir'] = 'Crea cartella';
1544 $it2['CreateArq'] = 'Crea file';
1545 $it2['ExecCmd'] = 'Esegui comando';
1546 $it2['Upload'] = 'Upload';
1547 $it2['UploadEnd'] = 'Upload terminato';
1548 $it2['Perm'] = 'Perm';
1549 $it2['Perms'] = 'Permessi';
1550 $it2['Owner'] = 'Owner';
1551 $it2['Group'] = 'Grouppo';
1552 $it2['Other'] = 'Altro';
1553 $it2['Size'] = 'Dimensione';
1554 $it2['Date'] = 'Data';
1555 $it2['Type'] = 'Tipo';
1556 $it2['Free'] = 'liberi';
1557 $it2['Shell'] = 'Shell';
1558 $it2['Read'] = 'Lettura';
1559 $it2['Write'] = 'Scrittura';
1560 $it2['Exec'] = 'Esecuzione';
1561 $it2['Apply'] = 'Applica';
1562 $it2['StickyBit'] = 'Sticky Bit';
1563 $it2['Pass'] = 'Password';
1564 $it2['Lang'] = 'Lingua';
1565 $it2['File'] = 'File';
1566 $it2['File_s'] = 'file';
1567 $it2['Dir_s'] = 'cartella';
1568 $it2['To'] = 'a';
1569 $it2['Destination'] = 'Destinazione';
1570 $it2['Configurations'] = 'Configurazioni';
1571 $it2['JSError'] = 'Errore JavaScript';
1572 $it2['NoSel'] = 'Nessun item selezionato';
1573 $it2['SelDir'] = 'Scegli la cartella di destinazione sull\'albero a sinistra';
1574 $it2['TypeDir'] = 'Inserisci il nome della cartella';
1575 $it2['TypeArq'] = 'Inserisci il nome del file';
1576 $it2['TypeCmd'] = 'Inserisci il comando';
1577 $it2['TypeArqComp'] = 'Inserisci il nome del file.\\nL\'estensione definirà le modalità di compressione.\\nEx:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
1578 $it2['RemSel'] = 'ELIMINA gli item selezionati';
1579 $it2['NoDestDir'] = 'Non è stata selezionata la cartella di destinazione';
1580 $it2['DestEqOrig'] = 'La cartella di origine e di destinazione coincidono';
1581 $it2['InvalidDest'] = 'La cartella di destinazione non è valida';
1582 $it2['NoNewPerm'] = 'Nuovo permesso non definito';
1583 $it2['CopyTo'] = 'COPIA in';
1584 $it2['MoveTo'] = 'MUOVI in';
1585 $it2['AlterPermTo'] = 'CAMBIA PERMESSI in';
1586 $it2['ConfExec'] = 'Conferma ESECUZIONE';
1587 $it2['ConfRem'] = 'Conferma CANCELLA';
1588 $it2['EmptyDir'] = 'Cartella Vuota';
1589 $it2['IOError'] = 'Errore I/O';
1590 $it2['FileMan'] = 'PHP File Manager';
1591 $it2['TypePass'] = 'Inserisci la password';
1592 $it2['InvPass'] = 'Password non valida';
1593 $it2['ReadDenied'] = 'Accesso in lettura non consentito';
1594 $it2['FileNotFound'] = 'File non trovato';
1595 $it2['AutoClose'] = 'Chiudi dopo aver completato';
1596 $it2['OutDocRoot'] = 'File oltre DOCUMENT_ROOT';
1597 $it2['NoCmd'] = 'Errore: comando non informato';
1598 $it2['ConfTrySave'] = 'Accesso in scrittura non consentito.\\nProva a salvare comunque';
1599 $it2['ConfSaved'] = 'Configurazioni salvate';
1600 $it2['PassSaved'] = 'Password salvate';
1601 $it2['FileDirExists'] = 'Il file o la cartella esiste già ';
1602 $it2['NoPhpinfo'] = 'Funzione phpinfo disabilitata';
1603 $it2['NoReturn'] = 'Nessun ritorno';
1604 $it2['FileSent'] = 'File spedito';
1605 $it2['SpaceLimReached'] = 'Limite di spazio raggiunto';
1606 $it2['InvExt'] = 'Estensione non valida';
1607 $it2['FileNoOverw'] = 'Il file non potrebbe essere sovrascritto';
1608 $it2['FileOverw'] = 'File sovrascritto';
1609 $it2['FileIgnored'] = 'File ignorato';
1610 $it2['ChkVer'] = 'Check nuova versione';
1611 $it2['ChkVerAvailable'] = 'Nuova versione, clicca qui per iniziare il download!!';
1612 $it2['ChkVerNotAvailable'] = 'Nessuna nuova versione disponibile. :(';
1613 $it2['ChkVerError'] = 'Errore di connessione.';
1614 $it2['Website'] = 'Sito Web';
1615 $it2['SendingForm'] = 'Invio file, prego attendi';
1616 $it2['NoFileSel'] = 'Nessun file selezionato';
1617 $it2['SelAll'] = 'Tutti';
1618 $it2['SelNone'] = 'Nessuno';
1619 $it2['SelInverse'] = 'Inverti';
1620 $it2['Selected_s'] = 'selezionati';
1621 $it2['Total'] = 'totale';
1622 $it2['Partition'] = 'Partizione';
1623 $it2['RenderTime'] = 'Tempo per renderizzare questa pagina';
1624 $it2['Seconds'] = 'sec';
1625 $it2['ErrorReport'] = 'Report errori';
1626
1627 // Italian - by Luca Zorzi
1628 $it3['Version'] = 'Versione';
1629 $it3['DocRoot'] = 'Document Root';
1630 $it3['FLRoot'] = 'Root del File Manager';
1631 $it3['Name'] = 'Nome';
1632 $it3['And'] = 'e';
1633 $it3['Enter'] = 'Invio';
1634 $it3['Send'] = 'Invia';
1635 $it3['Refresh'] = 'Aggiorna';
1636 $it3['SaveConfig'] = 'Salva le impostazioni';
1637 $it3['SavePass'] = 'Salva la Password';
1638 $it3['SaveFile'] = 'Salva il File';
1639 $it3['Save'] = 'Salva';
1640 $it3['Leave'] = 'Annulla';
1641 $it3['Edit'] = 'Modifica';
1642 $it3['View'] = 'Guarda';
1643 $it3['Config'] = 'Impostazioni';
1644 $it3['Ren'] = 'Rinomina';
1645 $it3['Rem'] = 'Elimina';
1646 $it3['Compress'] = 'Comprimi';
1647 $it3['Decompress'] = 'Decomprimi';
1648 $it3['ResolveIDs'] = 'Risolvi ID';
1649 $it3['Move'] = 'Sposta';
1650 $it3['Copy'] = 'Copia';
1651 $it3['ServerInfo'] = 'Server Info';
1652 $it3['CreateDir'] = 'Crea Cartella';
1653 $it3['CreateArq'] = 'Crea File';
1654 $it3['ExecCmd'] = 'Esegui Comando';
1655 $it3['Upload'] = 'Upload';
1656 $it3['UploadEnd'] = 'Upload completato';
1657 $it3['Perm'] = 'Perm';
1658 $it3['Perms'] = 'Permessi';
1659 $it3['Owner'] = 'Proprietario';
1660 $it3['Group'] = 'Gruppo';
1661 $it3['Other'] = 'Altri';
1662 $it3['Size'] = 'Dimensione';
1663 $it3['Date'] = 'Data';
1664 $it3['Type'] = 'Tipo';
1665 $it3['Free'] = 'libero';
1666 $it3['Shell'] = 'Shell';
1667 $it3['Read'] = 'Lettura';
1668 $it3['Write'] = 'Scruttura';
1669 $it3['Exec'] = 'Esecuzione';
1670 $it3['Apply'] = 'Applica';
1671 $it3['StickyBit'] = 'Bit Sticky';
1672 $it3['Pass'] = 'Password';
1673 $it3['Lang'] = 'Lingua';
1674 $it3['File'] = 'File';
1675 $it3['File_s'] = 'file';
1676 $it3['Dir_s'] = 'cartella/e';
1677 $it3['To'] = 'a';
1678 $it3['Destination'] = 'Destinazione';
1679 $it3['Configurations'] = 'Configurazioni';
1680 $it3['JSError'] = 'Errore JavaScript';
1681 $it3['NoSel'] = 'Non ci sono elementi selezioneti';
1682 $it3['SelDir'] = 'Scegli la cartella di destinazione nell\'elenco a sinistra';
1683 $it3['TypeDir'] = 'Inserisci il nome della cartella';
1684 $it3['TypeArq'] = 'Inserisci il nome del file';
1685 $it3['TypeCmd'] = 'Inserisci il comando';
1686 $it3['TypeArqComp'] = 'Inserisci il nome del file.\\nIl nome definir à il tipo della compressione .\\nEs:\\nnome.zip\\nnome.tar\\nnome.bzip\\nnome.gzip';
1687 $it3['RemSel'] = 'ELIMINA gli elementi selezionati';
1688 $it3['NoDestDir'] = 'Non hai selezionato la cartella di destinazione';
1689 $it3['DestEqOrig'] = 'La cartella di origine e destinazione è la stessa';
1690 $it3['InvalidDest'] = 'La cartella di destinazione non è valida';
1691 $it3['NoNewPerm'] = 'Nuovi permessi non impostati';
1692 $it3['CopyTo'] = 'COPIA in';
1693 $it3['MoveTo'] = 'SPOSTA in';
1694 $it3['AlterPermTo'] = 'CAMBIA I PERMESSI a';
1695 $it3['ConfExec'] = 'Conferma ESECUZIONE';
1696 $it3['ConfRem'] = 'Conferma ELIMINAZIONE';
1697 $it3['EmptyDir'] = 'CArtella vuota';
1698 $it3['IOError'] = 'Errore di I/O';
1699 $it3['FileMan'] = 'PHP File Manager';
1700 $it3['TypePass'] = 'Inserisci la password';
1701 $it3['InvPass'] = 'Password errata';
1702 $it3['ReadDenied'] = 'Accesso in lettura negato';
1703 $it3['FileNotFound'] = 'File non trovato';
1704 $it3['AutoClose'] = 'Chiudi alla fine';
1705 $it3['OutDocRoot'] = 'File fuori dalla DOCUMENT_ROOT';
1706 $it3['NoCmd'] = 'Errore: Comando non informato';
1707 $it3['ConfTrySave'] = 'File senza il permesso di scrittura.\\nProvare a salvarlo comunque';
1708 $it3['ConfSaved'] = 'Configurazione salvata';
1709 $it3['PassSaved'] = 'Password salvata';
1710 $it3['FileDirExists'] = 'Il file o la cartella esiste già';
1711 $it3['NoPhpinfo'] = 'Funzione phpinfo disabilitata';
1712 $it3['NoReturn'] = 'no return';
1713 $it3['FileSent'] = 'File inviato';
1714 $it3['SpaceLimReached'] = 'Limite di spazio raggiunto';
1715 $it3['InvExt'] = 'Estensione non valida';
1716 $it3['FileNoOverw'] = 'Il file non può essere sovrascritto';
1717 $it3['FileOverw'] = 'File sovrascritto';
1718 $it3['FileIgnored'] = 'File ignorato';
1719 $it3['ChkVer'] = 'Controlla la presnza di una nuova versione';
1720 $it3['ChkVerAvailable'] = 'Nuova versione, clicca qui per avviare il download!!';
1721 $it3['ChkVerNotAvailable'] = 'Nessuna nuova versione disponibile. :(';
1722 $it3['ChkVerError'] = 'Errore di connessione.';
1723 $it3['Website'] = 'Sito';
1724 $it3['SendingForm'] = 'Invio dei file, attendi';
1725 $it3['NoFileSel'] = 'Nessun file selezionato';
1726 $it3['SelAll'] = 'Tutti';
1727 $it3['SelNone'] = 'Nessuno';
1728 $it3['SelInverse'] = 'Inverti selezione';
1729 $it3['Selected_s'] = 'selezionato';
1730 $it3['Total'] = 'totale';
1731 $it3['Partition'] = 'Partizione';
1732 $it3['RenderTime'] = 'Tempo di generazione';
1733 $it3['Seconds'] = 'sec';
1734 $it3['ErrorReport'] = 'Error Reporting';
1735
1736 // Italian - by Gianni
1737 $it4['Version'] = 'Versione';
1738 $it4['DocRoot'] = 'Root documenti';
1739 $it4['FLRoot'] = 'Root file manager';
1740 $it4['Name'] = 'Nome';
1741 $it4['And'] = 'e';
1742 $it4['Enter'] = 'Entra';
1743 $it4['Send'] = 'Invia';
1744 $it4['Refresh'] = 'Aggiorna';
1745 $it4['SaveConfig'] = 'Salva configurazioni';
1746 $it4['SavePass'] = 'Salva password';
1747 $it4['SaveFile'] = 'Salva file';
1748 $it4['Save'] = 'Salva';
1749 $it4['Leave'] = 'Esci';
1750 $it4['Edit'] = 'Modifica';
1751 $it4['View'] = 'Vedi';
1752 $it4['Config'] = 'Preferenze';
1753 $it4['Ren'] = 'Rinomina';
1754 $it4['Rem'] = 'Cancella';
1755 $it4['Compress'] = 'Comprimi';
1756 $it4['Decompress'] = 'Decomprimi';
1757 $it4['ResolveIDs'] = 'Risolvi IDs';
1758 $it4['Move'] = 'Sposta';
1759 $it4['Copy'] = 'Copia';
1760 $it4['ServerInfo'] = 'Versione PHP';
1761 $it4['CreateDir'] = 'Crea directory';
1762 $it4['CreateArq'] = 'Crea file';
1763 $it4['ExecCmd'] = 'Esegui comando';
1764 $it4['Upload'] = 'Upload';
1765 $it4['UploadEnd'] = 'Upload terminato';
1766 $it4['Perm'] = 'Perm';
1767 $it4['Perms'] = 'Permessi';
1768 $it4['Owner'] = 'Proprietario';
1769 $it4['Group'] = 'Gruppo';
1770 $it4['Other'] = 'Altro';
1771 $it4['Size'] = 'Dimensione';
1772 $it4['Date'] = 'Data';
1773 $it4['Type'] = 'Tipo';
1774 $it4['Free'] = 'liberi';
1775 $it4['Shell'] = 'Shell';
1776 $it4['Read'] = 'Lettura';
1777 $it4['Write'] = 'Scrittura';
1778 $it4['Exec'] = 'Esecuzione';
1779 $it4['Apply'] = 'Applica';
1780 $it4['StickyBit'] = 'Sticky Bit';
1781 $it4['Pass'] = 'Password';
1782 $it4['Lang'] = 'Lingua';
1783 $it4['File'] = 'File';
1784 $it4['File_s'] = 'files';
1785 $it4['Dir_s'] = 'directory';
1786 $it4['To'] = 'in';
1787 $it4['Destination'] = 'Destinazione';
1788 $it4['Configurations'] = 'Preferenze';
1789 $it4['JSError'] = 'Errore JavaScript';
1790 $it4['NoSel'] = 'Non ci sono elementi selezionati';
1791 $it4['SelDir'] = 'Seleziona una directory di destinazione a sinistra';
1792 $it4['TypeDir'] = 'Inserisci il nome della directory';
1793 $it4['TypeArq'] = 'Inserisci il nome del file';
1794 $it4['TypeCmd'] = 'Inserisci il comando';
1795 $it4['TypeArqComp'] = 'Inserisci il nome del file e tipo di compressione\\n(.Zip .Tar .Bzip .Gzip)';
1796 $it4['RemSel'] = 'Cancella gli elementi selezionati';
1797 $it4['NoDestDir'] = 'Seleziona una directory di destinazione';
1798 $it4['DestEqOrig'] = 'Origine e destinazione sono uguali';
1799 $it4['InvalidDest'] = 'Directory di destinazione non valida';
1800 $it4['NoNewPerm'] = 'Nuovi permessi non impostati';
1801 $it4['CopyTo'] = 'Copia in';
1802 $it4['MoveTo'] = 'Sposta in';
1803 $it4['AlterPermTo'] = 'Cambia permessi in';
1804 $it4['ConfExec'] = 'Conferma esecuzione';
1805 $it4['ConfRem'] = 'Conferma eliminazione';
1806 $it4['EmptyDir'] = 'Directory Vuota';
1807 $it4['IOError'] = 'Errore I/O';
1808 $it4['FileMan'] = 'PHP File Manager';
1809 $it4['TypePass'] = 'Inserisci la password';
1810 $it4['InvPass'] = 'Password non valida';
1811 $it4['ReadDenied'] = 'Accesso in lettura negato';
1812 $it4['FileNotFound'] = 'File non trovato';
1813 $it4['AutoClose'] = 'Chiudi al termine';
1814 $it4['OutDocRoot'] = 'File fuori dalla Root documenti';
1815 $it4['NoCmd'] = 'Errore: comando non informato';
1816 $it4['ConfTrySave'] = 'File senza permessi di scrittura.\\nRiprova a salvare';
1817 $it4['ConfSaved'] = 'Preferenze salvate';
1818 $it4['PassSaved'] = 'Password salvata';
1819 $it4['FileDirExists'] = 'Il file o la directory esistono già ';
1820 $it4['NoPhpinfo'] = 'Funzione phpinfo disabilitata';
1821 $it4['NoReturn'] = 'Nessun ritorno';
1822 $it4['FileSent'] = 'File inviato';
1823 $it4['SpaceLimReached'] = 'Raggiunto spazio limite';
1824 $it4['InvExt'] = 'Estensione non valida';
1825 $it4['FileNoOverw'] = 'Il file non può essere sovrascritto';
1826 $it4['FileOverw'] = 'File sovrascritto';
1827 $it4['FileIgnored'] = 'File ignorato';
1828 $it4['ChkVer'] = 'Controlla aggiornamenti';
1829 $it4['ChkVerAvailable'] = 'Nuova versione, click qui per effettuare il download!';
1830 $it4['ChkVerNotAvailable'] = 'Nessuna nuova versione';
1831 $it4['ChkVerError'] = 'Errore di connessione';
1832 $it4['Website'] = 'Sito';
1833 $it4['SendingForm'] = 'Invio files, attendere...';
1834 $it4['NoFileSel'] = 'Nessun file selezionato';
1835 $it4['SelAll'] = 'Tutti';
1836 $it4['SelNone'] = 'Nessuno';
1837 $it4['SelInverse'] = 'Inverti';
1838 $it4['Selected_s'] = 'selezionati';
1839 $it4['Total'] = 'totale';
1840 $it4['Partition'] = 'Partizione';
1841 $it4['RenderTime'] = 'Tempo per il render di questa pagina';
1842 $it4['Seconds'] = 'sec';
1843 $it4['ErrorReport'] = 'Report errori';
1844
1845 // Turkish - by Necdet Yazilimlari
1846 $tr['Version'] = 'Versiyon';
1847 $tr['DocRoot'] = 'Kok dosya';
1848 $tr['FLRoot'] = 'Kok dosya yoneticisi';
1849 $tr['Name'] = 'Isim';
1850 $tr['And'] = 've';
1851 $tr['Enter'] = 'Giris';
1852 $tr['Send'] = 'Yolla';
1853 $tr['Refresh'] = 'Yenile';
1854 $tr['SaveConfig'] = 'Ayarlari kaydet';
1855 $tr['SavePass'] = 'Parolayi kaydet';
1856 $tr['SaveFile'] = 'Dosyayi kaydet';
1857 $tr['Save'] = 'Kaydet';
1858 $tr['Leave'] = 'Ayril';
1859 $tr['Edit'] = 'Duzenle';
1860 $tr['View'] = 'Goster';
1861 $tr['Config'] = 'Yapilandirma';
1862 $tr['Ren'] = 'Yeniden adlandir';
1863 $tr['Rem'] = 'Sil';
1864 $tr['Compress'] = '.Zip';
1865 $tr['Decompress'] = '.ZipCoz';
1866 $tr['ResolveIDs'] = 'Kimlikleri coz';
1867 $tr['Move'] = 'Tasi';
1868 $tr['Copy'] = 'Kopyala';
1869 $tr['ServerInfo'] = 'Sunucu Bilgisi';
1870 $tr['CreateDir'] = 'Dizin olustur';
1871 $tr['CreateArq'] = 'Dosya olusutur';
1872 $tr['ExecCmd'] = 'Komut calistir';
1873 $tr['Upload'] = 'Dosya yukle';
1874 $tr['UploadEnd'] = 'Yukleme tamamlandi';
1875 $tr['Perm'] = 'Izinler';
1876 $tr['Perms'] = 'Izinler';
1877 $tr['Owner'] = 'Sahip';
1878 $tr['Group'] = 'Grup';
1879 $tr['Other'] = 'Diger';
1880 $tr['Size'] = 'Boyut';
1881 $tr['Date'] = 'Tarih';
1882 $tr['Type'] = 'Tip';
1883 $tr['Free'] = 'Bos';
1884 $tr['Shell'] = 'Kabuk';
1885 $tr['Read'] = 'Oku';
1886 $tr['Write'] = 'Yaz';
1887 $tr['Exec'] = 'Calistir';
1888 $tr['Apply'] = 'Uygula';
1889 $tr['StickyBit'] = 'Sabit bit';
1890 $tr['Pass'] = 'Parola';
1891 $tr['Lang'] = 'Dil';
1892 $tr['File'] = 'Dosya';
1893 $tr['File_s'] = 'Dosya(lar)';
1894 $tr['Dir_s'] = 'Dizin(ler)';
1895 $tr['To'] = 'icin';
1896 $tr['Destination'] = 'Hedef';
1897 $tr['Configurations'] = 'Yapilandirmalar';
1898 $tr['JSError'] = 'JavaScript hatasi';
1899 $tr['NoSel'] = 'Secilen oge yok';
1900 $tr['SelDir'] = 'Soldaki hedef dizin agaci secin';
1901 $tr['TypeDir'] = 'Dizin adini girin';
1902 $tr['TypeArq'] = 'Dosya adini girin';
1903 $tr['TypeCmd'] = 'Komut girin';
1904 $tr['TypeArqComp'] = 'Dosya ismini yazdiktan sonra sonuna .zip ekleyin';
1905 $tr['RemSel'] = 'Secili ogeleri sil';
1906 $tr['NoDestDir'] = 'Secili dizin yok';
1907 $tr['DestEqOrig'] = 'Kokenli ve esit gidis rehberi';
1908 $tr['InvalidDest'] = 'Hedef dizin gecersiz';
1909 $tr['NoNewPerm'] = 'Izinler uygun degil';
1910 $tr['CopyTo'] = 'Kopya icin';
1911 $tr['MoveTo'] = 'Tasi icin';
1912 $tr['AlterPermTo'] = 'Permission secin';
1913 $tr['ConfExec'] = 'Yapilandirmayi onayla';
1914 $tr['ConfRem'] = 'Simeyi onayla';
1915 $tr['EmptyDir'] = 'Dizin bos';
1916 $tr['IOError'] = 'Hata';
1917 $tr['FileMan'] = 'Necdet_Yazilimlari';
1918 $tr['TypePass'] = 'Parolayi girin';
1919 $tr['InvPass'] = 'Gecersiz parola';
1920 $tr['ReadDenied'] = 'Okumaya erisim engellendi';
1921 $tr['FileNotFound'] = 'Dosya bulunamadi';
1922 $tr['AutoClose'] = 'Otomatik kapat';
1923 $tr['OutDocRoot'] = 'Kok klasor disindaki dosya';
1924 $tr['NoCmd'] = 'Hata: Komut haberdar degil';
1925 $tr['ConfTrySave'] = 'Dosya yazma izniniz yok. Yine de kaydetmeyi deneyebilirsiniz.';
1926 $tr['ConfSaved'] = 'Ayarlar kaydedildi';
1927 $tr['PassSaved'] = 'Parola kaydedildi';
1928 $tr['FileDirExists'] = 'Dosya veya dizin zaten var';
1929 $tr['NoPhpinfo'] = 'Php fonksiyon bilgisi devre disi';
1930 $tr['NoReturn'] = 'Deger dondurmuyor';
1931 $tr['FileSent'] = 'Dosya gonderildi';
1932 $tr['SpaceLimReached'] = 'Disk limitine ulasildi';
1933 $tr['InvExt'] = 'Gecersiz uzanti';
1934 $tr['FileNoOverw'] = 'Dosya degistirilemiyor';
1935 $tr['FileOverw'] = 'Dosya degistiribiliyor';
1936 $tr['FileIgnored'] = 'Dosya kabul edildi';
1937 $tr['ChkVer'] = 'Yeni versiyonu kontrol et';
1938 $tr['ChkVerAvailable'] = 'Yeni surum bulundu. Indirmek icin buraya tiklayin.';
1939 $tr['ChkVerNotAvailable'] = 'Yeni surum bulunamadi.';
1940 $tr['ChkVerError'] = 'Baglanti hatasi';
1941 $tr['Website'] = 'Website';
1942 $tr['SendingForm'] = 'Dosyalar gonderiliyor, lutfen bekleyin';
1943 $tr['NoFileSel'] = 'Secili dosya yok';
1944 $tr['SelAll'] = 'Hepsi';
1945 $tr['SelNone'] = 'Hicbiri';
1946 $tr['SelInverse'] = 'Ters';
1947 $tr['Selected_s'] = 'Secili oge(ler)';
1948 $tr['Total'] = 'Toplam';
1949 $tr['Partition'] = 'Bolme';
1950 $tr['RenderTime'] = 'Olusturuluyor';
1951 $tr['Seconds'] = 'Saniye';
1952 $tr['ErrorReport'] = 'Hata raporu';
1953
1954 // РоÑÑÐ¸Ñ - Евгений Рашев
1955 $ru['Version']='ВерÑиÑ';
1956 $ru['DocRoot']='Документ Root ';
1957 $ru['FLRoot']='Файловый менеджер';
1958 $ru['Name']='ИмÑ';
1959 $ru['And']='и';
1960 $ru['Enter']='Enter';
1961 $ru['Send']='Отправить';
1962 $ru['Refresh']='Обновить';
1963 $ru['SaveConfig']='Сохранить конфигурацию';
1964 $ru['SavePass']='Сохранить пароль';
1965 $ru['SaveFile']='Сохранить файл ';
1966 $ru['Save']='Сохранить';
1967 $ru['Leave']='ОÑтавь';
1968 $ru['Edit']='Изменить';
1969 $ru['View']='ПроÑмотр';
1970 $ru['Config']='ÐаÑтройки';
1971 $ru['Ren']='Переименовать';
1972 $ru['Rem']='Удалить';
1973 $ru['Compress']='Сжать';
1974 $ru['Decompress']='РаÑпаковать';
1975 $ru['ResolveIDs']='ОпределÑть id';
1976 $ru['Move']='ПеремеÑтить';
1977 $ru['Copy']='Копировать';
1978 $ru['ServerInfo']='Инфо о Ñервере';
1979 $ru['CreateDir']='Создать папку';
1980 $ru['CreateArq']='Создайте файл ';
1981 $ru['ExecCmd']='Выполнить';
1982 $ru['Upload']='Загрузить';
1983 $ru['UploadEnd']='Загружено';
1984 $ru['Perm']='Права';
1985 $ru['Perms']='РазрешениÑ';
1986 $ru['Owner']='Владелец';
1987 $ru['Group']='Группа';
1988 $ru['Other']='Другие';
1989 $ru['Size']='Размер';
1990 $ru['Date']='Дата';
1991 $ru['Type']='Тип';
1992 $ru['Free']='Свободно';
1993 $ru['Shell']='Shell';
1994 $ru['Read']='Читать';
1995 $ru['Write']='ПиÑать';
1996 $ru['Exec']='ВыполнÑть';
1997 $ru['Apply']='Применить';
1998 $ru['StickyBit']='StickyBit';
1999 $ru['Pass']='Пароль';
2000 $ru['Lang']='Язык';
2001 $ru['File']='Файл';
2002 $ru['File_s']='Файл..';
2003 $ru['Dir_s']='Пап..';
2004 $ru['To']='в';
2005 $ru['Destination']='Ðазначение';
2006 $ru['Configurations']='КонфигурациÑ';
2007 $ru['JSError']='Ошибка JavaScript';
2008 $ru['NoSel']='нет выбранных Ñлементов';
2009 $ru['SelDir']='Выберите папку Ð½Ð°Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð½Ð° левом дереве ';
2010 $ru['TypeDir']='Введите Ð¸Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð° ';
2011 $ru['TypeArq']='Введите Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð°';
2012 $ru['TypeCmd']='Введите команду ';
2013 $ru['TypeArqComp']='Введите Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° ,раÑширение\\n Ñто позволит определить тип ÑÐ¶Ð°Ñ‚Ð¸Ñ \\n Пример:.. \\n nome.zip \\n nome.tar \\n nome.bzip \\n nome.gzip ';
2014 $ru['RemSel']='Удалить выбранные Ñлементы';
2015 $ru['NoDestDir']='нет выбранного каталога назначениÑ';
2016 $ru['DestEqOrig']='ПроиÑхождение и назначение каталогов равны ';
2017 $ru['InvalidDest']='Ðазначение каталога недейÑтвительно';
2018 $ru['NoNewPerm']='Ðовые Ñ€Ð°Ð·Ñ€ÐµÑˆÐµÐ½Ð¸Ñ Ð½Ðµ уÑтановлены';
2019 $ru['CopyTo']='Копировать в ';
2020 $ru['MoveTo']='ПеремеÑтить в';
2021 $ru['AlterPermTo']='Изменение разрешений в ';
2022 $ru['ConfExec']='Подтвердить ВЫПОЛÐИТЬ ';
2023 $ru['ConfRem']='Подтвердить УДÐЛЕÐИЕ';
2024 $ru['EmptyDir']='ПуÑтой каталог ';
2025 $ru['IOError']='I/O Error';
2026 $ru['FileMan']='PHP Файловый менеджер ';
2027 $ru['TypePass']='Введите пароль';
2028 $ru['InvPass']='Ðеверный пароль';
2029 $ru['ReadDenied']='ДоÑтуп запрещен ';
2030 $ru['FileNotFound']='Файл не найден';
2031 $ru['AutoClose']='Закрыть полноÑтью ';
2032 $ru['OutDocRoot']='Файлы за пределами DOCUMENT_ROOT';
2033 $ru['NoCmd']='Ошибка: Ðе Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶Ð¸Ð²Ð°ÐµÐ¼Ð°Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð°';
2034 $ru['ConfTrySave']='Файл без прав на запиÑÑŒ. \\n Сохранить в любом Ñлучае. ';
2035 $ru['ConfSaved']='ÐšÐ¾Ð½Ñ„Ð¸Ð³ÑƒÑ€Ð°Ñ†Ð¸Ñ Ñохранена';
2036 $ru['PassSaved']='Пароль Ñохранен';
2037 $ru['FileDirExists']='Файл или каталог уже ÑущеÑтвует';
2038 $ru['NoPhpinfo']='Ð¤ÑƒÐ½ÐºÑ†Ð¸Ñ PHPInfo отключена';
2039 $ru['NoReturn']='Ðет возврата';
2040 $ru['FileSent']='Файл отправлен';
2041 $ru['SpaceLimReached']='ДоÑтигнут предел ПроÑтранÑтва';
2042 $ru['InvExt']='Ðеверное раÑширение';
2043 $ru['FileNoOverw']='Файл не может быть перезапиÑан ';
2044 $ru['FileOverw']='Файл перезапиÑываетÑÑ';
2045 $ru['FileIgnored']='Файл игнорируетÑÑ';
2046 $ru['ChkVer']='Проверить обновление';
2047 $ru['ChkVerAvailable']=' ДоÑтупна Ð½Ð¾Ð²Ð°Ñ Ð²ÐµÑ€ÑиÑ, нажмите здеÑÑŒ, чтобы начать загрузку! ';
2048 $ru['ChkVerNotAvailable']='Ðет новой верÑии. :(';
2049 $ru['ChkVerError']='Ошибка подключениÑ. ';
2050 $ru['Website']='Сайт';
2051 $ru['SendingForm']='Отправка файлов, пожалуйÑта, подождите ';
2052 $ru['NoFileSel']='Ðет выбранных файлов';
2053 $ru['SelAll']='Выделить вÑе';
2054 $ru['SelNone']='Отмена';
2055 $ru['SelInverse']='Обратить';
2056 $ru['Selected_s']='Выбран';
2057 $ru['Total']='Ð’Ñего';
2058 $ru['Partition']='Раздел';
2059 $ru['RenderTime']='Скрипт выполнен за';
2060 $ru['Seconds']='Секунд';
2061 $ru['ErrorReport']='Отчет об ошибках';
2062
2063 $lang_ = $$lang;
2064 if (isset($lang_[$tag])) return html_encode($lang_[$tag]);
2065 //else return "[$tag]"; // So we can know what is missing
2066 return $en[$tag];
2067}
2068// +--------------------------------------------------
2069// | File System
2070// +--------------------------------------------------
2071function total_size($arg) {
2072 $total = 0;
2073 if (file_exists($arg)) {
2074 if (is_dir($arg)) {
2075 $handle = opendir($arg);
2076 while($aux = readdir($handle)) {
2077 if ($aux != "." && $aux != "..") $total += total_size($arg."/".$aux);
2078 }
2079 @closedir($handle);
2080 } else $total = filesize($arg);
2081 }
2082 return $total;
2083}
2084function total_delete($arg) {
2085 if (file_exists($arg)) {
2086 @chmod($arg,0777);
2087 if (is_dir($arg)) {
2088 $handle = opendir($arg);
2089 while($aux = readdir($handle)) {
2090 if ($aux != "." && $aux != "..") total_delete($arg."/".$aux);
2091 }
2092 @closedir($handle);
2093 rmdir($arg);
2094 } else unlink($arg);
2095 }
2096}
2097function total_copy($orig,$dest) {
2098 $ok = true;
2099 if (file_exists($orig)) {
2100 if (is_dir($orig)) {
2101 mkdir($dest,0777);
2102 $handle = opendir($orig);
2103 while(($aux = readdir($handle))&&($ok)) {
2104 if ($aux != "." && $aux != "..") $ok = total_copy($orig."/".$aux,$dest."/".$aux);
2105 }
2106 @closedir($handle);
2107 } else $ok = copy((string)$orig,(string)$dest);
2108 }
2109 return $ok;
2110}
2111function total_move($orig,$dest) {
2112 // Just why doesn't it has a MOVE alias?!
2113 return rename((string)$orig,(string)$dest);
2114}
2115function download(){
2116 global $current_dir,$filename;
2117 $file = $current_dir.$filename;
2118 if(file_exists($file)){
2119 $is_denied = false;
2120 foreach($download_ext_filter as $key=>$ext){
2121 if (eregi($ext,$filename)){
2122 $is_denied = true;
2123 break;
2124 }
2125 }
2126 if (!$is_denied){
2127 $size = filesize($file);
2128 header("Content-Type: application/save");
2129 header("Content-Length: $size");
2130 header("Content-Disposition: attachment; filename=\"$filename\"");
2131 header("Content-Transfer-Encoding: binary");
2132 if ($fh = fopen("$file", "rb")){
2133 fpassthru($fh);
2134 fclose($fh);
2135 } else alert(et('ReadDenied').": ".$file);
2136 } else alert(et('ReadDenied').": ".$file);
2137 } else alert(et('FileNotFound').": ".$file);
2138}
2139function execute_cmd(){
2140 global $cmd;
2141 header("Content-type: text/plain");
2142 if (strlen($cmd)){
2143 echo "# ".$cmd."\n";
2144 exec($cmd,$mat);
2145 if (count($mat)) echo trim(implode("\n",$mat));
2146 else echo "exec(\"$cmd\") ".et('NoReturn')."...";
2147 } else echo et('NoCmd');
2148}
2149function execute_file(){
2150 global $current_dir,$filename;
2151 header("Content-type: text/plain");
2152 $file = $current_dir.$filename;
2153 if(file_exists($file)){
2154 echo "# ".$file."\n";
2155 exec($file,$mat);
2156 if (count($mat)) echo trim(implode("\n",$mat));
2157 } else alert(et('FileNotFound').": ".$file);
2158}
2159function save_upload($temp_file,$filename,$dir_dest) {
2160 global $upload_ext_filter;
2161 $filename = remove_special_chars($filename);
2162 $file = $dir_dest.$filename;
2163 $filesize = filesize($temp_file);
2164 $is_denied = false;
2165 foreach($upload_ext_filter as $key=>$ext){
2166 if (eregi($ext,$filename)){
2167 $is_denied = true;
2168 break;
2169 }
2170 }
2171 if (!$is_denied){
2172 if (!limite($filesize)){
2173 if (file_exists($file)){
2174 if (unlink($file)){
2175 if (copy($temp_file,$file)){
2176 chmod($file,0777);
2177 $out = 6;
2178 } else $out = 2;
2179 } else $out = 5;
2180 } else {
2181 if (copy($temp_file,$file)){
2182 chmod($file,0777);
2183 $out = 1;
2184 } else $out = 2;
2185 }
2186 } else $out = 3;
2187 } else $out = 4;
2188 return $out;
2189}
2190function zip_extract(){
2191 global $cmd_arg,$current_dir,$islinux;
2192 $zip = zip_open($current_dir.$cmd_arg);
2193 if ($zip) {
2194 while ($zip_entry = zip_read($zip)) {
2195 if (zip_entry_filesize($zip_entry)) {
2196 $complete_path = $path.dirname(zip_entry_name($zip_entry));
2197 $complete_name = $path.zip_entry_name($zip_entry);
2198 if(!file_exists($complete_path)) {
2199 $tmp = '';
2200 foreach(explode('/',$complete_path) AS $k) {
2201 $tmp .= $k.'/';
2202 if(!file_exists($tmp)) {
2203 @mkdir($current_dir.$tmp, 0777);
2204 }
2205 }
2206 }
2207 if (zip_entry_open($zip, $zip_entry, "r")) {
2208 if ($fd = fopen($current_dir.$complete_name, 'w')){
2209 fwrite($fd, zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)));
2210 fclose($fd);
2211 } else echo "fopen($current_dir.$complete_name) error<br>";
2212 zip_entry_close($zip_entry);
2213 } else echo "zip_entry_open($zip,$zip_entry) error<br>";
2214 }
2215 }
2216 zip_close($zip);
2217 }
2218}
2219// +--------------------------------------------------
2220// | Data Formating
2221// +--------------------------------------------------
2222function html_encode($str){
2223 return preg_replace(array('/&/', '/</', '/>/', '/"/'), array('&', '<', '>', '"'), $str); // Bypass PHP to allow any charset!!
2224}
2225function rep($x,$y){
2226 if ($x) {
2227 $aux = "";
2228 for ($a=1;$a<=$x;$a++) $aux .= $y;
2229 return $aux;
2230 } else return "";
2231}
2232function str_zero($arg1,$arg2){
2233 if (strstr($arg1,"-") == false){
2234 $aux = intval($arg2) - strlen($arg1);
2235 if ($aux) return rep($aux,"0").$arg1;
2236 else return $arg1;
2237 } else {
2238 return "[$arg1]";
2239 }
2240}
2241function replace_double($sub,$str){
2242 $out=str_replace($sub.$sub,$sub,$str);
2243 while ( strlen($out) != strlen($str) ){
2244 $str=$out;
2245 $out=str_replace($sub.$sub,$sub,$str);
2246 }
2247 return $out;
2248}
2249function remove_special_chars($str){
2250 $str = trim($str);
2251 $str = strtr($str,"¥µÀÃÂÃÄÅÆÇÈÉÊËÌÃÃŽÃÃÑÒÓÔÕÖØÙÚÛÜÃßà áâãäåæçèéêëìÃîïðñòóôõöøùúûüýÿ!@#%&*()[]{}+=?",
2252 "YuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy_______________");
2253 $str = str_replace("..","",str_replace("/","",str_replace("\\","",str_replace("\$","",$str))));
2254 return $str;
2255}
2256function format_path($str){
2257 global $islinux;
2258 $str = trim($str);
2259 $str = str_replace("..","",str_replace("\\","/",str_replace("\$","",$str)));
2260 $done = false;
2261 while (!$done) {
2262 $str2 = str_replace("//","/",$str);
2263 if (strlen($str) == strlen($str2)) $done = true;
2264 else $str = $str2;
2265 }
2266 $tam = strlen($str);
2267 if ($tam){
2268 $last_char = $tam - 1;
2269 if ($str[$last_char] != "/") $str .= "/";
2270 if (!$islinux) $str = ucfirst($str);
2271 }
2272 return $str;
2273}
2274function array_csort() {
2275 $args = func_get_args();
2276 $marray = array_shift($args);
2277 $msortline = "return(array_multisort(";
2278 foreach ($args as $arg) {
2279 $i++;
2280 if (is_string($arg)) {
2281 foreach ($marray as $row) {
2282 $sortarr[$i][] = $row[$arg];
2283 }
2284 } else {
2285 $sortarr[$i] = $arg;
2286 }
2287 $msortline .= "\$sortarr[".$i."],";
2288 }
2289 $msortline .= "\$marray));";
2290 eval($msortline);
2291 return $marray;
2292}
2293function show_perms( $P ) {
2294 $sP = "<b>";
2295 if($P & 0x1000) $sP .= 'p'; // FIFO pipe
2296 elseif($P & 0x2000) $sP .= 'c'; // Character special
2297 elseif($P & 0x4000) $sP .= 'd'; // Directory
2298 elseif($P & 0x6000) $sP .= 'b'; // Block special
2299 elseif($P & 0x8000) $sP .= '−'; // Regular
2300 elseif($P & 0xA000) $sP .= 'l'; // Symbolic Link
2301 elseif($P & 0xC000) $sP .= 's'; // Socket
2302 else $sP .= 'u'; // UNKNOWN
2303 $sP .= "</b>";
2304 // owner - group - others
2305 $sP .= (($P & 0x0100) ? 'r' : '−') . (($P & 0x0080) ? 'w' : '−') . (($P & 0x0040) ? (($P & 0x0800) ? 's' : 'x' ) : (($P & 0x0800) ? 'S' : '−'));
2306 $sP .= (($P & 0x0020) ? 'r' : '−') . (($P & 0x0010) ? 'w' : '−') . (($P & 0x0008) ? (($P & 0x0400) ? 's' : 'x' ) : (($P & 0x0400) ? 'S' : '−'));
2307 $sP .= (($P & 0x0004) ? 'r' : '−') . (($P & 0x0002) ? 'w' : '−') . (($P & 0x0001) ? (($P & 0x0200) ? 't' : 'x' ) : (($P & 0x0200) ? 'T' : '−'));
2308 return $sP;
2309}
2310function format_size($arg) {
2311 if ($arg>0){
2312 $j = 0;
2313 $ext = array(" bytes"," Kb"," Mb"," Gb"," Tb");
2314 while ($arg >= pow(1024,$j)) ++$j;
2315 return round($arg / pow(1024,$j-1) * 100) / 100 . $ext[$j-1];
2316 } else return "0 bytes";
2317}
2318function get_size($file) {
2319 return format_size(filesize($file));
2320}
2321function limite($new_filesize=0) {
2322 global $fm_current_root;
2323 global $quota_mb;
2324 if($quota_mb){
2325 $total = total_size($fm_current_root);
2326 if (floor(($total+$new_filesize)/(1024*1024)) > $quota_mb) return true;
2327 }
2328 return false;
2329}
2330function get_user ($arg) {
2331 global $mat_passwd;
2332 $aux = "x:".trim($arg).":";
2333 for($x=0;$x<count($mat_passwd);$x++){
2334 if (strstr($mat_passwd[$x],$aux)){
2335 $mat = explode(":",$mat_passwd[$x]);
2336 return $mat[0];
2337 }
2338 }
2339 return $arg;
2340}
2341function get_group ($arg) {
2342 global $mat_group;
2343 $aux = "x:".trim($arg).":";
2344 for($x=0;$x<count($mat_group);$x++){
2345 if (strstr($mat_group[$x],$aux)){
2346 $mat = explode(":",$mat_group[$x]);
2347 return $mat[0];
2348 }
2349 }
2350 return $arg;
2351}
2352// +--------------------------------------------------
2353// | Interface
2354// +--------------------------------------------------
2355function html_header($header=""){
2356 global $charset,$fm_color;
2357 echo "
2358 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
2359 <html xmlns=\"http://www.w3.org/1999/xhtml\">
2360 <head>
2361 <meta http-equiv=\"content-type\" content=\"text/html; charset=".$charset."\" />
2362 <title>...:::: ".et('FileMan')."</title>
2363 <script language=\"Javascript\" type=\"text/javascript\">
2364 <!--
2365 function Is(){
2366 this.appname = navigator.appName;
2367 this.appversion = navigator.appVersion;
2368 this.platform = navigator.platform;
2369 this.useragent = navigator.userAgent.toLowerCase();
2370 this.ie = ( this.appname == 'Microsoft Internet Explorer' );
2371 if (( this.useragent.indexOf( 'mac' ) != -1 ) || ( this.platform.indexOf( 'mac' ) != -1 )){
2372 this.sisop = 'mac';
2373 } else if (( this.useragent.indexOf( 'windows' ) != -1 ) || ( this.platform.indexOf( 'win32' ) != -1 )){
2374 this.sisop = 'windows';
2375 } else if (( this.useragent.indexOf( 'inux' ) != -1 ) || ( this.platform.indexOf( 'linux' ) != -1 )){
2376 this.sisop = 'linux';
2377 }
2378 }
2379 var is = new Is();
2380 function enterSubmit(keypressEvent,submitFunc){
2381 var kCode = (is.ie) ? keypressEvent.keyCode : keypressEvent.which
2382 if( kCode == 13) eval(submitFunc);
2383 }
2384 function getCookieVal (offset) {
2385 var endstr = document.cookie.indexOf (';', offset);
2386 if (endstr == -1) endstr = document.cookie.length;
2387 return unescape(document.cookie.substring(offset, endstr));
2388 }
2389 function getCookie (name) {
2390 var arg = name + '=';
2391 var alen = arg.length;
2392 var clen = document.cookie.length;
2393 var i = 0;
2394 while (i < clen) {
2395 var j = i + alen;
2396 if (document.cookie.substring(i, j) == arg) return getCookieVal (j);
2397 i = document.cookie.indexOf(' ', i) + 1;
2398 if (i == 0) break;
2399 }
2400 return null;
2401 }
2402 function setCookie (name, value, expires) {
2403 var argv = setCookie.arguments;
2404 var argc = setCookie.arguments.length;
2405 var expires = (argc > 2) ? argv[2] : null;
2406 var path = (argc > 3) ? argv[3] : null;
2407 var domain = (argc > 4) ? argv[4] : null;
2408 var secure = (argc > 5) ? argv[5] : false;
2409 document.cookie = name + '=' + escape (value) +
2410 ((expires == null) ? '' : ('; expires=' + expires.toGMTString())) +
2411 ((path == null) ? '' : ('; path=' + path)) +
2412 ((domain == null) ? '' : ('; domain=' + domain)) +
2413 ((secure == true) ? '; secure' : '');
2414 }
2415 function delCookie (name) {
2416 var exp = new Date();
2417 exp.setTime (exp.getTime() - 1);
2418 var cval = getCookie (name);
2419 document.cookie = name + '=' + cval + '; expires=' + exp.toGMTString();
2420 }
2421 var frameWidth, frameHeight;
2422 function getFrameSize(){
2423 if (self.innerWidth){
2424 frameWidth = self.innerWidth;
2425 frameHeight = self.innerHeight;
2426 }else if (document.documentElement && document.documentElement.clientWidth){
2427 frameWidth = document.documentElement.clientWidth;
2428 frameHeight = document.documentElement.clientHeight;
2429 }else if (document.body){
2430 frameWidth = document.body.clientWidth;
2431 frameHeight = document.body.clientHeight;
2432 }else return false;
2433 return true;
2434 }
2435 getFrameSize();
2436 //-->
2437 </script>
2438 $header
2439 </head>
2440 <script language=\"Javascript\" type=\"text/javascript\">
2441 <!--
2442 var W = screen.width;
2443 var H = screen.height;
2444 var FONTSIZE = 0;
2445 switch (W){
2446 case 640:
2447 FONTSIZE = 8;
2448 break;
2449 case 800:
2450 FONTSIZE = 10;
2451 break;
2452 case 1024:
2453 FONTSIZE = 12;
2454 break;
2455 default:
2456 FONTSIZE = 14;
2457 break;
2458 }
2459 ";
2460 echo replace_double(" ",str_replace(chr(13),"",str_replace(chr(10),"","
2461 document.writeln('
2462 <style type=\"text/css\">
2463 body {
2464 font-family : Arial;
2465 font-size: '+FONTSIZE+'px;
2466 font-weight : normal;
2467 color: #".$fm_color['Text'].";
2468 background-color: #".$fm_color['Bg'].";
2469 }
2470 table {
2471 font-family : Arial;
2472 font-size: '+FONTSIZE+'px;
2473 font-weight : normal;
2474 color: #".$fm_color['Text'].";
2475 cursor: default;
2476 }
2477 input {
2478 font-family : Arial;
2479 font-size: '+FONTSIZE+'px;
2480 font-weight : normal;
2481 color: #".$fm_color['Text'].";
2482 }
2483 textarea {
2484 font-family : Courier;
2485 font-size: 12px;
2486 font-weight : normal;
2487 color: #".$fm_color['Text'].";
2488 }
2489 a {
2490 font-family : Arial;
2491 font-size : '+FONTSIZE+'px;
2492 font-weight : bold;
2493 text-decoration: none;
2494 color: #".$fm_color['Text'].";
2495 }
2496 a:link {
2497 color: #".$fm_color['Text'].";
2498 }
2499 a:visited {
2500 color: #".$fm_color['Text'].";
2501 }
2502 a:hover {
2503 color: #".$fm_color['Link'].";
2504 }
2505 a:active {
2506 color: #".$fm_color['Text'].";
2507 }
2508 tr.entryUnselected {
2509 background-color: #".$fm_color['Entry'].";
2510 }
2511 tr.entryUnselected:hover {
2512 background-color: #".$fm_color['Over'].";
2513 }
2514 tr.entrySelected {
2515 background-color: #".$fm_color['Mark'].";
2516 }
2517 </style>
2518 ');
2519 ")));
2520 echo "
2521 //-->
2522 </script>
2523 ";
2524}
2525function reloadframe($ref,$frame_number,$Plus=""){
2526 global $current_dir,$path_info;
2527 echo "
2528 <script language=\"Javascript\" type=\"text/javascript\">
2529 <!--
2530 ".$ref.".frame".$frame_number.".location.href='".$path_info["basename"]."?frame=".$frame_number."¤t_dir=".$current_dir.$Plus."';
2531 //-->
2532 </script>
2533 ";
2534}
2535function alert($arg){
2536 echo "
2537 <script language=\"Javascript\" type=\"text/javascript\">
2538 <!--
2539 alert('$arg');
2540 //-->
2541 </script>
2542 ";
2543}
2544function tree($dir_before,$dir_current,$indice){
2545 global $fm_current_root, $current_dir, $islinux;
2546 global $expanded_dir_list;
2547 $indice++;
2548 $num_dir = 0;
2549 $dir_name = str_replace($dir_before,"",$dir_current);
2550 $dir_before = str_replace("//","/",$dir_before);
2551 $dir_current = str_replace("//","/",$dir_current);
2552 $is_denied = false;
2553 if ($islinux) {
2554 $denied_list = "/proc#/dev";
2555 $mat = explode("#",$denied_list);
2556 foreach($mat as $key => $val){
2557 if ($dir_current == $val){
2558 $is_denied = true;
2559 break;
2560 }
2561 }
2562 unset($mat);
2563 }
2564 if (!$is_denied){
2565 if ($handle = @opendir($dir_current)){
2566 // Permitido
2567 while ($file = readdir($handle)){
2568 if ($file != "." && $file != ".." && is_dir("$dir_current/$file"))
2569 $mat_dir[] = $file;
2570 }
2571 @closedir($handle);
2572 if (count($mat_dir)){
2573 sort($mat_dir,SORT_STRING);
2574 // with Sub-dir
2575 if ($indice != 0){
2576 for ($aux=1;$aux<$indice;$aux++) echo " ";
2577 }
2578 if ($dir_before != $dir_current){
2579 if (strstr($expanded_dir_list,":$dir_current/$dir_name")) $op_str = "[–]";
2580 else $op_str = "[+]";
2581 echo "<nobr><a href=\"JavaScript:go_dir('$dir_current/$dir_name')\">$op_str</a> <a href=\"JavaScript:go('$dir_current')\">$dir_name</a></nobr><br>\n";
2582 } else {
2583 echo "<nobr><a href=\"JavaScript:go('$dir_current')\">$fm_current_root</a></nobr><br>\n";
2584 }
2585 for ($x=0;$x<count($mat_dir);$x++){
2586 if (($dir_before == $dir_current)||(strstr($expanded_dir_list,":$dir_current/$dir_name"))){
2587 tree($dir_current."/",$dir_current."/".$mat_dir[$x],$indice);
2588 } else flush();
2589 }
2590 } else {
2591 // no Sub-dir
2592 if ($dir_before != $dir_current){
2593 for ($aux=1;$aux<$indice;$aux++) echo " ";
2594 echo "<b>[ ]</b>";
2595 echo "<nobr><a href=\"JavaScript:go('$dir_current')\"> $dir_name</a></nobr><br>\n";
2596 } else {
2597 echo "<nobr><a href=\"JavaScript:go('$dir_current')\"> $fm_current_root</a></nobr><br>\n";
2598 }
2599 }
2600 } else {
2601 // denied
2602 if ($dir_before != $dir_current){
2603 for ($aux=1;$aux<$indice;$aux++) echo " ";
2604 echo "<b>[ ]</b>";
2605 echo "<nobr><a href=\"JavaScript:go('$dir_current')\"><font color=red> $dir_name</font></a></nobr><br>\n";
2606 } else {
2607 echo "<nobr><a href=\"JavaScript:go('$dir_current')\"><font color=red> $fm_current_root</font></a></nobr><br>\n";
2608 }
2609
2610 }
2611 } else {
2612 // denied
2613 if ($dir_before != $dir_current){
2614 for ($aux=1;$aux<$indice;$aux++) echo " ";
2615 echo "<b>[ ]</b>";
2616 echo "<nobr><a href=\"JavaScript:go('$dir_current')\"><font color=red> $dir_name</font></a></nobr><br>\n";
2617 } else {
2618 echo "<nobr><a href=\"JavaScript:go('$dir_current')\"><font color=red> $fm_current_root</font></a></nobr><br>\n";
2619 }
2620 }
2621}
2622function show_tree(){
2623 global $fm_current_root,$path_info,$setflag,$islinux,$cookie_cache_time;
2624 html_header("
2625 <script language=\"Javascript\" type=\"text/javascript\">
2626 <!--
2627 function saveFrameSize(){
2628 if (getFrameSize()){
2629 var exp = new Date();
2630 exp.setTime(exp.getTime()+$cookie_cache_time);
2631 setCookie('leftFrameWidth',frameWidth,exp);
2632 }
2633 }
2634 window.onresize = saveFrameSize;
2635 //-->
2636 </script>");
2637 echo "<body marginwidth=\"0\" marginheight=\"0\">\n";
2638 echo "
2639 <script language=\"Javascript\" type=\"text/javascript\">
2640 <!--
2641 // Disable text selection, binding the onmousedown, but not for some elements, it must work.
2642 function disableTextSelection(e){
2643 var type = String(e.target.type);
2644 return (type.indexOf('select') != -1 || type.indexOf('button') != -1 || type.indexOf('input') != -1 || type.indexOf('radio') != -1);
2645 }
2646 function enableTextSelection(){return true}
2647 if (is.ie) document.onselectstart=new Function('return false')
2648 else {
2649 document.body.onmousedown=disableTextSelection
2650 document.body.onclick=enableTextSelection
2651 }
2652 var flag = ".(($setflag)?"true":"false")."
2653 function set_flag(arg) {
2654 flag = arg;
2655 }
2656 function go_dir(arg) {
2657 var setflag;
2658 setflag = (flag)?1:0;
2659 document.location.href='".addslashes($path_info["basename"])."?frame=2&setflag='+setflag+'¤t_dir=".addslashes($current_dir)."&ec_dir='+arg;
2660 }
2661 function go(arg) {
2662 if (flag) {
2663 parent.frame3.set_dir_dest(arg+'/');
2664 flag = false;
2665 } else {
2666 parent.frame3.location.href='".addslashes($path_info["basename"])."?frame=3¤t_dir='+arg+'/';
2667 }
2668 }
2669 function set_fm_current_root(arg){
2670 document.location.href='".addslashes($path_info["basename"])."?frame=2&set_fm_current_root='+escape(arg);
2671 }
2672 function atualizar(){
2673 document.location.href='".addslashes($path_info["basename"])."?frame=2';
2674 }
2675 //-->
2676 </script>
2677 ";
2678 echo "<table width=\"100%\" height=\"100%\" border=0 cellspacing=0 cellpadding=5>\n";
2679 echo "<form><tr valign=top height=10><td>";
2680 if (!$islinux){
2681 echo "<select name=drive onchange=\"set_fm_current_root(this.value)\">";
2682 $aux="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
2683 for($x=0;$x<strlen($aux);$x++){
2684 if ($handle = opendir($aux[$x].":/")){
2685 @closedir($handle);
2686 if (strstr(strtoupper($fm_current_root),$aux[$x].":/")) $is_sel="selected";
2687 else $is_sel="";
2688 echo "<option $is_sel value=\"".$aux[$x].":/\">".$aux[$x].":/";
2689 }
2690 }
2691 echo "</select> ";
2692 }
2693 echo "<input type=button value=".et('Refresh')." onclick=\"atualizar()\"></tr></form>";
2694 echo "<tr valign=top><td>";
2695 clearstatcache();
2696 tree($fm_current_root,$fm_current_root,-1,0);
2697 echo "</td></tr>";
2698 echo "
2699 <form name=\"login_form\" action=\"".$path_info["basename"]."\" method=\"post\" target=\"_parent\">
2700 <input type=hidden name=action value=1>
2701 <tr>
2702 <td height=10 colspan=2><input type=submit value=\"".et('Leave')."\">
2703 </tr>
2704 </form>
2705 ";
2706 echo "</table>\n";
2707 echo "</body>\n</html>";
2708}
2709function getmicrotime(){
2710 list($usec, $sec) = explode(" ", microtime());
2711 return ((float)$usec + (float)$sec);
2712}
2713function dir_list_form() {
2714 global $fm_current_root,$current_dir,$quota_mb,$resolveIDs,$order_dir_list_by,$islinux,$cmd_name,$ip,$path_info,$fm_color;
2715 $ti = getmicrotime();
2716 clearstatcache();
2717 $out = "<table border=0 cellspacing=1 cellpadding=4 width=\"100%\" bgcolor=\"#eeeeee\">\n";
2718 if ($opdir = @opendir($current_dir)) {
2719 $has_files = false;
2720 $entry_count = 0;
2721 $total_size = 0;
2722 $entry_list = array();
2723 while ($file = readdir($opdir)) {
2724 if (($file != ".")&&($file != "..")){
2725 $entry_list[$entry_count]["size"] = 0;
2726 $entry_list[$entry_count]["sizet"] = 0;
2727 $entry_list[$entry_count]["type"] = "none";
2728 if (is_file($current_dir.$file)){
2729 $ext = strtolower(strrchr($file,"."));
2730 $entry_list[$entry_count]["type"] = "file";
2731 // Função filetype() returns only "file"...
2732 $entry_list[$entry_count]["size"] = filesize($current_dir.$file);
2733 $entry_list[$entry_count]["sizet"] = format_size($entry_list[$entry_count]["size"]);
2734 if (strstr($ext,".")){
2735 $entry_list[$entry_count]["ext"] = $ext;
2736 $entry_list[$entry_count]["extt"] = $ext;
2737 } else {
2738 $entry_list[$entry_count]["ext"] = "";
2739 $entry_list[$entry_count]["extt"] = " ";
2740 }
2741 $has_files = true;
2742 } elseif (is_dir($current_dir.$file)) {
2743 // Recursive directory size disabled
2744 // $entry_list[$entry_count]["size"] = total_size($current_dir.$file);
2745 $entry_list[$entry_count]["size"] = 0;
2746 $entry_list[$entry_count]["sizet"] = " ";
2747 $entry_list[$entry_count]["type"] = "dir";
2748 }
2749 $entry_list[$entry_count]["name"] = $file;
2750 $entry_list[$entry_count]["date"] = date("Ymd", filemtime($current_dir.$file));
2751 $entry_list[$entry_count]["time"] = date("his", filemtime($current_dir.$file));
2752 $entry_list[$entry_count]["datet"] = date("d/m/y h:i", filemtime($current_dir.$file));
2753 if ($islinux && $resolveIDs){
2754 $entry_list[$entry_count]["p"] = show_perms(fileperms($current_dir.$file));
2755 $entry_list[$entry_count]["u"] = get_user(fileowner($current_dir.$file));
2756 $entry_list[$entry_count]["g"] = get_group(filegroup($current_dir.$file));
2757 } else {
2758 $entry_list[$entry_count]["p"] = base_convert(fileperms($current_dir.$file),10,8);
2759 $entry_list[$entry_count]["p"] = substr($entry_list[$entry_count]["p"],strlen($entry_list[$entry_count]["p"])-3);
2760 $entry_list[$entry_count]["u"] = fileowner($current_dir.$file);
2761 $entry_list[$entry_count]["g"] = filegroup($current_dir.$file);
2762 }
2763 $total_size += $entry_list[$entry_count]["size"];
2764 $entry_count++;
2765 }
2766 }
2767 @closedir($opdir);
2768
2769 if($entry_count){
2770 $or1="1A";
2771 $or2="2D";
2772 $or3="3A";
2773 $or4="4A";
2774 $or5="5A";
2775 $or6="6D";
2776 $or7="7D";
2777 switch($order_dir_list_by){
2778 case "1A": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"name",SORT_STRING,SORT_ASC); $or1="1D"; break;
2779 case "1D": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"name",SORT_STRING,SORT_DESC); $or1="1A"; break;
2780 case "2A": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"p",SORT_STRING,SORT_ASC,"g",SORT_STRING,SORT_ASC,"u",SORT_STRING,SORT_ASC); $or2="2D"; break;
2781 case "2D": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"p",SORT_STRING,SORT_DESC,"g",SORT_STRING,SORT_ASC,"u",SORT_STRING,SORT_ASC); $or2="2A"; break;
2782 case "3A": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"u",SORT_STRING,SORT_ASC,"g",SORT_STRING,SORT_ASC); $or3="3D"; break;
2783 case "3D": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"u",SORT_STRING,SORT_DESC,"g",SORT_STRING,SORT_ASC); $or3="3A"; break;
2784 case "4A": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"g",SORT_STRING,SORT_ASC,"u",SORT_STRING,SORT_DESC); $or4="4D"; break;
2785 case "4D": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"g",SORT_STRING,SORT_DESC,"u",SORT_STRING,SORT_DESC); $or4="4A"; break;
2786 case "5A": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"size",SORT_NUMERIC,SORT_ASC); $or5="5D"; break;
2787 case "5D": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"size",SORT_NUMERIC,SORT_DESC); $or5="5A"; break;
2788 case "6A": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"date",SORT_STRING,SORT_ASC,"time",SORT_STRING,SORT_ASC,"name",SORT_STRING,SORT_ASC); $or6="6D"; break;
2789 case "6D": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"date",SORT_STRING,SORT_DESC,"time",SORT_STRING,SORT_DESC,"name",SORT_STRING,SORT_ASC); $or6="6A"; break;
2790 case "7A": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"ext",SORT_STRING,SORT_ASC,"name",SORT_STRING,SORT_ASC); $or7="7D"; break;
2791 case "7D": $entry_list = array_csort ($entry_list,"type",SORT_STRING,SORT_ASC,"ext",SORT_STRING,SORT_DESC,"name",SORT_STRING,SORT_ASC); $or7="7A"; break;
2792 }
2793 }
2794 $out .= "
2795 <script language=\"Javascript\" type=\"text/javascript\">
2796 <!--
2797 function go(arg) {
2798 document.location.href='".addslashes($path_info["basename"])."?frame=3¤t_dir=".addslashes($current_dir)."'+arg+'/';
2799 }
2800 function resolveIDs() {
2801 document.location.href='".addslashes($path_info["basename"])."?frame=3&set_resolveIDs=1¤t_dir=".addslashes($current_dir)."';
2802 }
2803 var entry_list = new Array();
2804 // Custom object constructor
2805 function entry(name, type, size, selected){
2806 this.name = name;
2807 this.type = type;
2808 this.size = size;
2809 this.selected = false;
2810 }
2811 // Declare entry_list for selection procedures";
2812 foreach ($entry_list as $i=>$data){
2813 $out .= "\nentry_list['entry$i'] = new entry('".addslashes($data["name"])."', '".$data["type"]."', ".$data["size"].", false);";
2814 }
2815 $out .= "
2816 // Select/Unselect Rows OnClick/OnMouseOver
2817 var lastRows = new Array(null,null);
2818 function selectEntry(Row, Action){
2819 if (multipleSelection){
2820 // Avoid repeated onmouseover events from same Row ( cell transition )
2821 if (Row != lastRows[0]){
2822 if (Action == 'over') {
2823 if (entry_list[Row.id].selected){
2824 if (unselect(entry_list[Row.id])) {
2825 Row.className = 'entryUnselected';
2826 }
2827 // Change the last Row when you change the movement orientation
2828 if (lastRows[0] != null && lastRows[1] != null){
2829 var LastRowID = lastRows[0].id;
2830 if (Row.id == lastRows[1].id){
2831 if (unselect(entry_list[LastRowID])) {
2832 lastRows[0].className = 'entryUnselected';
2833 }
2834 }
2835 }
2836 } else {
2837 if (select(entry_list[Row.id])){
2838 Row.className = 'entrySelected';
2839 }
2840 // Change the last Row when you change the movement orientation
2841 if (lastRows[0] != null && lastRows[1] != null){
2842 var LastRowID = lastRows[0].id;
2843 if (Row.id == lastRows[1].id){
2844 if (select(entry_list[LastRowID])) {
2845 lastRows[0].className = 'entrySelected';
2846 }
2847 }
2848 }
2849 }
2850 lastRows[1] = lastRows[0];
2851 lastRows[0] = Row;
2852 }
2853 }
2854 } else {
2855 if (Action == 'click') {
2856 var newClassName = null;
2857 if (entry_list[Row.id].selected){
2858 if (unselect(entry_list[Row.id])) newClassName = 'entryUnselected';
2859 } else {
2860 if (select(entry_list[Row.id])) newClassName = 'entrySelected';
2861 }
2862 if (newClassName) {
2863 lastRows[0] = lastRows[1] = Row;
2864 Row.className = newClassName;
2865 }
2866 }
2867 }
2868 return true;
2869 }
2870 // Disable text selection and bind multiple selection flag
2871 var multipleSelection = false;
2872 if (is.ie) {
2873 document.onselectstart=new Function('return false');
2874 document.onmousedown=switch_flag_on;
2875 document.onmouseup=switch_flag_off;
2876 // Event mouseup is not generated over scrollbar.. curiously, mousedown is.. go figure.
2877 window.onscroll=new Function('multipleSelection=false');
2878 window.onresize=new Function('multipleSelection=false');
2879 } else {
2880 if (document.layers) window.captureEvents(Event.MOUSEDOWN);
2881 if (document.layers) window.captureEvents(Event.MOUSEUP);
2882 window.onmousedown=switch_flag_on;
2883 window.onmouseup=switch_flag_off;
2884 }
2885 // Using same function and a ternary operator couses bug on double click
2886 function switch_flag_on(e) {
2887 if (is.ie){
2888 multipleSelection = (event.button == 1);
2889 } else {
2890 multipleSelection = (e.which == 1);
2891 }
2892 var type = String(e.target.type);
2893 return (type.indexOf('select') != -1 || type.indexOf('button') != -1 || type.indexOf('input') != -1 || type.indexOf('radio') != -1);
2894 }
2895 function switch_flag_off(e) {
2896 if (is.ie){
2897 multipleSelection = (event.button != 1);
2898 } else {
2899 multipleSelection = (e.which != 1);
2900 }
2901 lastRows[0] = lastRows[1] = null;
2902 update_sel_status();
2903 return false;
2904 }
2905 var total_dirs_selected = 0;
2906 var total_files_selected = 0;
2907 function unselect(Entry){
2908 if (!Entry.selected) return false;
2909 Entry.selected = false;
2910 sel_totalsize -= Entry.size;
2911 if (Entry.type == 'dir') total_dirs_selected--;
2912 else total_files_selected--;
2913 return true;
2914 }
2915 function select(Entry){
2916 if(Entry.selected) return false;
2917 Entry.selected = true;
2918 sel_totalsize += Entry.size;
2919 if(Entry.type == 'dir') total_dirs_selected++;
2920 else total_files_selected++;
2921 return true;
2922 }
2923 function is_anything_selected(){
2924 var selected_dir_list = new Array();
2925 var selected_file_list = new Array();
2926 for(var x=0;x<".(integer)count($entry_list).";x++){
2927 if(entry_list['entry'+x].selected){
2928 if(entry_list['entry'+x].type == 'dir') selected_dir_list.push(entry_list['entry'+x].name);
2929 else selected_file_list.push(entry_list['entry'+x].name);
2930 }
2931 }
2932 document.form_action.selected_dir_list.value = selected_dir_list.join('<|*|>');
2933 document.form_action.selected_file_list.value = selected_file_list.join('<|*|>');
2934 return (total_dirs_selected>0 || total_files_selected>0);
2935 }
2936 function format_size (arg) {
2937 var resul = '';
2938 if (arg>0){
2939 var j = 0;
2940 var ext = new Array(' bytes',' Kb',' Mb',' Gb',' Tb');
2941 while (arg >= Math.pow(1024,j)) ++j;
2942 resul = (Math.round(arg/Math.pow(1024,j-1)*100)/100) + ext[j-1];
2943 } else resul = 0;
2944 return resul;
2945 }
2946 var sel_totalsize = 0;
2947 function update_sel_status(){
2948 var t = total_dirs_selected+' ".et('Dir_s')." ".et('And')." '+total_files_selected+' ".et('File_s')." ".et('Selected_s')." = '+format_size(sel_totalsize);
2949 //document.getElementById(\"sel_status\").innerHTML = t;
2950 window.status = t;
2951 }
2952 // Select all/none/inverse
2953 function selectANI(Butt){
2954 for(var x=0;x<". (integer)count($entry_list).";x++){
2955 var Row = document.getElementById('entry'+x);
2956 var newClassName = null;
2957 switch (Butt.value){
2958 case '".et('SelAll')."':
2959 if (select(entry_list[Row.id])) newClassName = 'entrySelected';
2960 break;
2961 case '".et('SelNone')."':
2962 if (unselect(entry_list[Row.id])) newClassName = 'entryUnselected';
2963 break;
2964 case '".et('SelInverse')."':
2965 if (entry_list[Row.id].selected){
2966 if (unselect(entry_list[Row.id])) newClassName = 'entryUnselected';
2967 } else {
2968 if (select(entry_list[Row.id])) newClassName = 'entrySelected';
2969 }
2970 break;
2971 }
2972 if (newClassName) {
2973 Row.className = newClassName;
2974 }
2975 }
2976 if (Butt.value == '".et('SelAll')."'){
2977 Butt.value = '".et('SelNone')."';
2978 } else if (Butt.value == '".et('SelNone')."'){
2979 Butt.value = '".et('SelAll')."';
2980 }
2981 update_sel_status();
2982 return true;
2983 }
2984 function download(arg){
2985 parent.frame1.location.href='".addslashes($path_info["basename"])."?action=3¤t_dir=".addslashes($current_dir)."&filename='+escape(arg);
2986 }
2987 function upload(){
2988 var w = 400;
2989 var h = 250;
2990 window.open('".addslashes($path_info["basename"])."?action=10¤t_dir=".addslashes($current_dir)."', '', 'width='+w+',height='+h+',fullscreen=no,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no,location=no');
2991 }
2992 function execute_cmd(){
2993 var arg = prompt('".et('TypeCmd').".');
2994 if(arg.length>0){
2995 if(confirm('".et('ConfExec')." \\' '+arg+' \\' ?')) {
2996 var w = 800;
2997 var h = 600;
2998 window.open('".addslashes($path_info["basename"])."?action=6¤t_dir=".addslashes($current_dir)."&cmd='+escape(arg), '', 'width='+w+',height='+h+',fullscreen=no,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no');
2999 }
3000 }
3001 }
3002 function decompress(arg){
3003 if(confirm('".strtoupper(et('Decompress'))." \\' '+arg+' \\' ?')) {
3004 document.form_action.action.value = 72;
3005 document.form_action.cmd_arg.value = arg;
3006 document.form_action.submit();
3007 }
3008 }
3009 function execute_file(arg){
3010 if(arg.length>0){
3011 if(confirm('".et('ConfExec')." \\' '+arg+' \\' ?')) {
3012 var w = 800;
3013 var h = 600;
3014 window.open('".addslashes($path_info["basename"])."?action=11¤t_dir=".addslashes($current_dir)."&filename='+escape(arg), '', 'width='+w+',height='+h+',fullscreen=no,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no');
3015 }
3016 }
3017 }
3018 function edit_file(arg){
3019 var w = 1024;
3020 var h = 768;
3021 // if(confirm('".strtoupper(et('Edit'))." \\' '+arg+' \\' ?'))
3022 window.open('".addslashes($path_info["basename"])."?action=7¤t_dir=".addslashes($current_dir)."&filename='+escape(arg), '', 'width='+w+',height='+h+',fullscreen=no,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no,location=no');
3023 }
3024 function config(){
3025 var w = 650;
3026 var h = 400;
3027 window.open('".addslashes($path_info["basename"])."?action=2', 'win_config', 'width='+w+',height='+h+',fullscreen=no,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no');
3028 }
3029 function server_info(arg){
3030 var w = 800;
3031 var h = 600;
3032 window.open('".addslashes($path_info["basename"])."?action=5', 'win_serverinfo', 'width='+w+',height='+h+',fullscreen=no,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no');
3033 }
3034 function shell(){
3035 var w = 800;
3036 var h = 600;
3037 window.open('".addslashes($path_info["basename"])."?action=9', '', 'width='+w+',height='+h+',fullscreen=no,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no');
3038 }
3039 function view(arg){
3040 var w = 800;
3041 var h = 600;
3042 if(confirm('".strtoupper(et('View'))." \\' '+arg+' \\' ?')) window.open('".addslashes($path_info["basename"])."?action=4¤t_dir=".addslashes($current_dir)."&filename='+escape(arg), '', 'width='+w+',height='+h+',fullscreen=no,scrollbars=yes,resizable=yes,status=yes,toolbar=no,menubar=no,location=yes');
3043 }
3044 function rename(arg){
3045 var nome = '';
3046 if (nome = prompt('".strtoupper(et('Ren'))." \\' '+arg+' \\' ".et('To')." ...')) document.location.href='".addslashes($path_info["basename"])."?frame=3&action=3¤t_dir=".addslashes($current_dir)."&old_name='+escape(arg)+'&new_name='+escape(nome);
3047 }
3048 function set_dir_dest(arg){
3049 document.form_action.dir_dest.value=arg;
3050 if (document.form_action.action.value.length>0) test(document.form_action.action.value);
3051 else alert('".et('JSError').".');
3052 }
3053 function sel_dir(arg){
3054 document.form_action.action.value = arg;
3055 document.form_action.dir_dest.value='';
3056 if (!is_anything_selected()) alert('".et('NoSel').".');
3057 else {
3058 if (!getCookie('sel_dir_warn')) {
3059 // alert('".et('SelDir').".');
3060 document.cookie='sel_dir_warn'+'='+escape('true')+';';
3061 }
3062 parent.frame2.set_flag(true);
3063 }
3064 }
3065 function set_chmod_arg(arg){
3066 document.form_action.chmod_arg.value=arg;
3067 if (document.form_action.action.value.length>0) test(document.form_action.action.value);
3068 else alert('".et('JSError')."');
3069 }
3070 function chmod(arg){
3071 document.form_action.action.value = arg;
3072 document.form_action.dir_dest.value='';
3073 document.form_action.chmod_arg.value='';
3074 if (!is_anything_selected()) alert('".et('NoSel').".');
3075 else {
3076 var w = 280;
3077 var h = 180;
3078 window.open('".addslashes($path_info["basename"])."?action=8', '', 'width='+w+',height='+h+',fullscreen=no,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no,location=no');
3079 }
3080 }
3081 function test_action(){
3082 if (document.form_action.action.value != 0) return true;
3083 else return false;
3084 }
3085 function test_prompt(arg){
3086 var erro='';
3087 var conf='';
3088 if (arg == 1){
3089 document.form_action.cmd_arg.value = prompt('".et('TypeDir').".');
3090 } else if (arg == 2){
3091 document.form_action.cmd_arg.value = prompt('".et('TypeArq').".');
3092 } else if (arg == 71){
3093 if (!is_anything_selected()) erro = '".et('NoSel').".';
3094 else document.form_action.cmd_arg.value = prompt('".et('TypeArqComp')."');
3095 }
3096 if (erro!=''){
3097 document.form_action.cmd_arg.focus();
3098 alert(erro);
3099 } else if(document.form_action.cmd_arg.value.length>0) {
3100 document.form_action.action.value = arg;
3101 document.form_action.submit();
3102 }
3103 }
3104 function strstr(haystack,needle){
3105 var index = haystack.indexOf(needle);
3106 return (index==-1)?false:index;
3107 }
3108 function valid_dest(dest,orig){
3109 return (strstr(dest,orig)==false)?true:false;
3110 }
3111 // ArrayAlert - Selection debug only
3112 function aa(){
3113 var str = 'selected_dir_list:\\n';
3114 for (x=0;x<selected_dir_list.length;x++){
3115 str += selected_dir_list[x]+'\\n';
3116 }
3117 str += '\\nselected_file_list:\\n';
3118 for (x=0;x<selected_file_list.length;x++){
3119 str += selected_file_list[x]+'\\n';
3120 }
3121 alert(str);
3122 }
3123 function test(arg){
3124 var erro='';
3125 var conf='';
3126 if (arg == 4){
3127 if (!is_anything_selected()) erro = '".et('NoSel').".\\n';
3128 conf = '".et('RemSel')." ?\\n';
3129 } else if (arg == 5){
3130 if (!is_anything_selected()) erro = '".et('NoSel').".\\n';
3131 else if(document.form_action.dir_dest.value.length == 0) erro = '".et('NoDestDir').".';
3132 else if(document.form_action.dir_dest.value == document.form_action.current_dir.value) erro = '".et('DestEqOrig').".';
3133 else if(!valid_dest(document.form_action.dir_dest.value,document.form_action.current_dir.value)) erro = '".et('InvalidDest').".';
3134 conf = '".et('CopyTo')." \\' '+document.form_action.dir_dest.value+' \\' ?\\n';
3135 } else if (arg == 6){
3136 if (!is_anything_selected()) erro = '".et('NoSel').".';
3137 else if(document.form_action.dir_dest.value.length == 0) erro = '".et('NoDestDir').".';
3138 else if(document.form_action.dir_dest.value == document.form_action.current_dir.value) erro = '".et('DestEqOrig').".';
3139 else if(!valid_dest(document.form_action.dir_dest.value,document.form_action.current_dir.value)) erro = '".et('InvalidDest').".';
3140 conf = '".et('MoveTo')." \\' '+document.form_action.dir_dest.value+' \\' ?\\n';
3141 } else if (arg == 9){
3142 if (!is_anything_selected()) erro = '".et('NoSel').".';
3143 else if(document.form_action.chmod_arg.value.length == 0) erro = '".et('NoNewPerm').".';
3144 conf = '".et('AlterPermTo')." \\' '+document.form_action.chmod_arg.value+' \\' ?\\n';
3145 }
3146 if (erro!=''){
3147 document.form_action.cmd_arg.focus();
3148 alert(erro);
3149 } else if(conf!='') {
3150 if(confirm(conf)) {
3151 document.form_action.action.value = arg;
3152 document.form_action.submit();
3153 }
3154 } else {
3155 document.form_action.action.value = arg;
3156 document.form_action.submit();
3157 }
3158 }
3159 //-->
3160 </script>";
3161 $out .= "
3162 <form name=\"form_action\" action=\"".$path_info["basename"]."\" method=\"post\" onsubmit=\"return test_action();\">
3163 <input type=hidden name=\"frame\" value=3>
3164 <input type=hidden name=\"action\" value=0>
3165 <input type=hidden name=\"dir_dest\" value=\"\">
3166 <input type=hidden name=\"chmod_arg\" value=\"\">
3167 <input type=hidden name=\"cmd_arg\" value=\"\">
3168 <input type=hidden name=\"current_dir\" value=\"$current_dir\">
3169 <input type=hidden name=\"dir_before\" value=\"$dir_before\">
3170 <input type=hidden name=\"selected_dir_list\" value=\"\">
3171 <input type=hidden name=\"selected_file_list\" value=\"\">";
3172 $out .= "
3173 <tr>
3174 <td bgcolor=\"#DDDDDD\" colspan=50><nobr>
3175 <input type=button onclick=\"config()\" value=\"".et('Config')."\">
3176 <input type=button onclick=\"server_info()\" value=\"".et('ServerInfo')."\">
3177 <input type=button onclick=\"test_prompt(1)\" value=\"".et('CreateDir')."\">
3178 <input type=button onclick=\"test_prompt(2)\" value=\"".et('CreateArq')."\">
3179 <input type=button onclick=\"execute_cmd()\" value=\"".et('ExecCmd')."\">
3180 <input type=button onclick=\"upload()\" value=\"".et('Upload')."\">
3181 <input type=button onclick=\"shell()\" value=\"".et('Shell')."\">
3182 <b>$ip</b>
3183 </nobr>";
3184 $uplink = "";
3185 if ($current_dir != $fm_current_root){
3186 $mat = explode("/",$current_dir);
3187 $dir_before = "";
3188 for($x=0;$x<(count($mat)-2);$x++) $dir_before .= $mat[$x]."/";
3189 $uplink = "<a href=\"".$path_info["basename"]."?frame=3¤t_dir=$dir_before\"><<</a> ";
3190 }
3191 if($entry_count){
3192 $out .= "
3193 <tr bgcolor=\"#DDDDDD\"><td colspan=50><nobr>$uplink <a href=\"".$path_info["basename"]."?frame=3¤t_dir=$current_dir\">$current_dir</a></nobr>
3194 <tr>
3195 <td bgcolor=\"#DDDDDD\" colspan=50><nobr>
3196 <input type=\"button\" style=\"width:80\" onclick=\"selectANI(this)\" value=\"".et('SelAll')."\">
3197 <input type=\"button\" style=\"width:80\" onclick=\"selectANI(this)\" value=\"".et('SelInverse')."\">
3198 <input type=\"button\" style=\"width:80\" onclick=\"test(4)\" value=\"".et('Rem')."\">
3199 <input type=\"button\" style=\"width:80\" onclick=\"sel_dir(5)\" value=\"".et('Copy')."\">
3200 <input type=\"button\" style=\"width:80\" onclick=\"sel_dir(6)\" value=\"".et('Move')."\">
3201 <input type=\"button\" style=\"width:100\" onclick=\"test_prompt(71)\" value=\"".et('Compress')."\">";
3202 if ($islinux) $out .= "
3203 <input type=\"button\" style=\"width:100\" onclick=\"resolveIDs()\" value=\"".et('ResolveIDs')."\">";
3204 $out .= "
3205 <input type=\"button\" style=\"width:100\" onclick=\"chmod(9)\" value=\"".et('Perms')."\">";
3206 $out .= "
3207 </nobr></td>
3208 </tr>";
3209 $file_count = 0;
3210 $dir_count = 0;
3211 $dir_out = array();
3212 $file_out = array();
3213 $max_opt = 0;
3214 foreach ($entry_list as $ind=>$dir_entry) {
3215 $file = $dir_entry["name"];
3216 if ($dir_entry["type"]=="dir"){
3217 $dir_out[$dir_count] = array();
3218 $dir_out[$dir_count][] = "
3219 <tr ID=\"entry$ind\" class=\"entryUnselected\" onmouseover=\"selectEntry(this, 'over');\" onmousedown=\"selectEntry(this, 'click');\">
3220 <td><nobr><a href=\"JavaScript:go('".addslashes($file)."')\">$file</a></nobr></td>";
3221 $dir_out[$dir_count][] = "<td>".$dir_entry["p"]."</td>";
3222 if ($islinux) {
3223 $dir_out[$dir_count][] = "<td><nobr>".$dir_entry["u"]."</nobr></td>";
3224 $dir_out[$dir_count][] = "<td><nobr>".$dir_entry["g"]."</nobr></td>";
3225 }
3226 $dir_out[$dir_count][] = "<td><nobr>".$dir_entry["sizet"]."</nobr></td>";
3227 $dir_out[$dir_count][] = "<td><nobr>".$dir_entry["datet"]."</nobr></td>";
3228 if ($has_files) $dir_out[$dir_count][] = "<td> </td>";
3229 // Opções de diretório
3230 if ( is_writable($current_dir.$file) ) $dir_out[$dir_count][] = "
3231 <td align=center><a href=\"JavaScript:if(confirm('".et('ConfRem')." \\'".addslashes($file)."\\' ?')) document.location.href='".addslashes($path_info["basename"])."?frame=3&action=8&cmd_arg=".addslashes($file)."¤t_dir=".addslashes($current_dir)."'\">".et('Rem')."</a>";
3232 if ( is_writable($current_dir.$file) ) $dir_out[$dir_count][] = "
3233 <td align=center><a href=\"JavaScript:rename('".addslashes($file)."')\">".et('Ren')."</a>";
3234 if (count($dir_out[$dir_count])>$max_opt){
3235 $max_opt = count($dir_out[$dir_count]);
3236 }
3237 $dir_count++;
3238 } else {
3239 $file_out[$file_count] = array();
3240 $file_out[$file_count][] = "
3241 <tr ID=\"entry$ind\" class=\"entryUnselected\" onmouseover=\"selectEntry(this, 'over');\" onmousedown=\"selectEntry(this, 'click');\">
3242 <td><nobr><a href=\"JavaScript:download('".addslashes($file)."')\">$file</a></nobr></td>";
3243 $file_out[$file_count][] = "<td>".$dir_entry["p"]."</td>";
3244 if ($islinux) {
3245 $file_out[$file_count][] = "<td><nobr>".$dir_entry["u"]."</nobr></td>";
3246 $file_out[$file_count][] = "<td><nobr>".$dir_entry["g"]."</nobr></td>";
3247 }
3248 $file_out[$file_count][] = "<td><nobr>".$dir_entry["sizet"]."</nobr></td>";
3249 $file_out[$file_count][] = "<td><nobr>".$dir_entry["datet"]."</nobr></td>";
3250 $file_out[$file_count][] = "<td>".$dir_entry["extt"]."</td>";
3251 // Opções de arquivo
3252 if ( is_writable($current_dir.$file) ) $file_out[$file_count][] = "
3253 <td align=center><a href=\"javascript:if(confirm('".strtoupper(et('Rem'))." \\'".addslashes($file)."\\' ?')) document.location.href='".addslashes($path_info["basename"])."?frame=3&action=8&cmd_arg=".addslashes($file)."¤t_dir=".addslashes($current_dir)."'\">".et('Rem')."</a>";
3254 else $file_out[$file_count][] = "<td> </td>";
3255 if ( is_writable($current_dir.$file) ) $file_out[$file_count][] = "
3256 <td align=center><a href=\"javascript:rename('".addslashes($file)."')\">".et('Ren')."</a>";
3257 else $file_out[$file_count][] = "<td> </td>";
3258 if ( is_readable($current_dir.$file) && (strpos(".wav#.mp3#.mid#.avi#.mov#.mpeg#.mpg#.rm#.iso#.bin#.img#.dll#.psd#.fla#.swf#.class#.ppt#.tif#.tiff#.pcx#.jpg#.gif#.png#.wmf#.eps#.bmp#.msi#.exe#.com#.rar#.tar#.zip#.bz2#.tbz2#.bz#.tbz#.bzip#.gzip#.gz#.tgz#", $dir_entry["ext"]."#" ) === false)) $file_out[$file_count][] = "
3259 <td align=center><a href=\"javascript:edit_file('".addslashes($file)."')\">".et('Edit')."</a>";
3260 else $file_out[$file_count][] = "<td> </td>";
3261 if ( is_readable($current_dir.$file) && (strpos(".txt#.sys#.bat#.ini#.conf#.swf#.php#.php3#.asp#.html#.htm#.jpg#.gif#.png#.bmp#", $dir_entry["ext"]."#" ) !== false)) $file_out[$file_count][] = "
3262 <td align=center><a href=\"javascript:view('".addslashes($file)."');\">".et('View')."</a>";
3263 else $file_out[$file_count][] = "<td> </td>";
3264 if ( is_readable($current_dir.$file) && strlen($dir_entry["ext"]) && (strpos(".tar#.zip#.bz2#.tbz2#.bz#.tbz#.bzip#.gzip#.gz#.tgz#", $dir_entry["ext"]."#" ) !== false)) $file_out[$file_count][] = "
3265 <td align=center><a href=\"javascript:decompress('".addslashes($file)."')\">".et('Decompress')."</a>";
3266 else $file_out[$file_count][] = "<td> </td>";
3267 if ( is_readable($current_dir.$file) && strlen($dir_entry["ext"]) && (strpos(".exe#.com#.sh#.bat#", $dir_entry["ext"]."#" ) !== false)) $file_out[$file_count][] = "
3268 <td align=center><a href=\"javascript:execute_file('".addslashes($file)."')\">".et('Exec')."</a>";
3269 else $file_out[$file_count][] = "<td> </td>";
3270 if (count($file_out[$file_count])>$max_opt){
3271 $max_opt = count($file_out[$file_count]);
3272 }
3273 $file_count++;
3274 }
3275 }
3276 if ($dir_count){
3277 $out .= "
3278 <tr>
3279 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or1¤t_dir=$current_dir\">".et('Name')."</a></nobr></td>
3280 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or2¤t_dir=$current_dir\">".et('Perm')."</a></nobr></td>";
3281 if ($islinux) $out .= "
3282 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or3¤t_dir=$current_dir\">".et('Owner')."</a></td>
3283 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or4¤t_dir=$current_dir\">".et('Group')."</a></nobr></td>";
3284 $out .= "
3285 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or5¤t_dir=$current_dir\">".et('Size')."</a></nobr></td>
3286 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or6¤t_dir=$current_dir\">".et('Date')."</a></nobr></td>";
3287 if ($file_count) $out .= "
3288 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or7¤t_dir=$current_dir\">".et('Type')."</a></nobr></td>";
3289 $out .= "
3290 <td bgcolor=\"#DDDDDD\" colspan=50> </td>
3291 </tr>";
3292
3293 }
3294 foreach($dir_out as $k=>$v){
3295 while (count($dir_out[$k])<$max_opt) {
3296 $dir_out[$k][] = "<td> </td>";
3297 }
3298 $out .= implode($dir_out[$k]);
3299 $out .= "</tr>";
3300 }
3301 if ($file_count){
3302 $out .= "
3303 <tr>
3304 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or1¤t_dir=$current_dir\">".et('Name')."</a></nobr></td>
3305 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or2¤t_dir=$current_dir\">".et('Perm')."</a></nobr></td>";
3306 if ($islinux) $out .= "
3307 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or3¤t_dir=$current_dir\">".et('Owner')."</a></td>
3308 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or4¤t_dir=$current_dir\">".et('Group')."</a></nobr></td>";
3309 $out .= "
3310 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or5¤t_dir=$current_dir\">".et('Size')."</a></nobr></td>
3311 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or6¤t_dir=$current_dir\">".et('Date')."</a></nobr></td>
3312 <td bgcolor=\"#DDDDDD\"><nobr><a href=\"".$path_info["basename"]."?frame=3&or_by=$or7¤t_dir=$current_dir\">".et('Type')."</a></nobr></td>
3313 <td bgcolor=\"#DDDDDD\" colspan=50> </td>
3314 </tr>";
3315
3316 }
3317 foreach($file_out as $k=>$v){
3318 while (count($file_out[$k])<$max_opt) {
3319 $file_out[$k][] = "<td> </td>";
3320 }
3321 $out .= implode($file_out[$k]);
3322 $out .= "</tr>";
3323 }
3324 $out .= "
3325 <tr>
3326 <td bgcolor=\"#DDDDDD\" colspan=50><nobr>
3327 <input type=\"button\" style=\"width:80\" onclick=\"selectANI(this)\" value=\"".et('SelAll')."\">
3328 <input type=\"button\" style=\"width:80\" onclick=\"selectANI(this)\" value=\"".et('SelInverse')."\">
3329 <input type=\"button\" style=\"width:80\" onclick=\"test(4)\" value=\"".et('Rem')."\">
3330 <input type=\"button\" style=\"width:80\" onclick=\"sel_dir(5)\" value=\"".et('Copy')."\">
3331 <input type=\"button\" style=\"width:80\" onclick=\"sel_dir(6)\" value=\"".et('Move')."\">
3332 <input type=\"button\" style=\"width:100\" onclick=\"test_prompt(71)\" value=\"".et('Compress')."\">";
3333 if ($islinux) $out .= "
3334 <input type=\"button\" style=\"width:100\" onclick=\"resolveIDs()\" value=\"".et('ResolveIDs')."\">";
3335 $out .= "
3336 <input type=\"button\" style=\"width:100\" onclick=\"chmod(9)\" value=\"".et('Perms')."\">";
3337 $out .= "
3338 </nobr></td>
3339 </tr>";
3340 $out .= "
3341 </form>";
3342 $out .= "
3343 <tr><td bgcolor=\"#DDDDDD\" colspan=50><b>$dir_count ".et('Dir_s')." ".et('And')." $file_count ".et('File_s')." = ".format_size($total_size)."</td></tr>";
3344 if ($quota_mb) {
3345 $out .= "
3346 <tr><td bgcolor=\"#DDDDDD\" colspan=50><b>".et('Partition').": ".format_size(($quota_mb*1024*1024))." ".et('Total')." - ".format_size(($quota_mb*1024*1024)-total_size($fm_current_root))." ".et('Free')."</td></tr>";
3347 } else {
3348 $out .= "
3349 <tr><td bgcolor=\"#DDDDDD\" colspan=50><b>".et('Partition').": ".format_size(disk_total_space($current_dir))." ".et('Total')." - ".format_size(disk_free_space($fm_current_root))." ".et('Free')."</td></tr>";
3350 }
3351 $tf = getmicrotime();
3352 $tt = ($tf - $ti);
3353 $out .= "
3354 <tr><td bgcolor=\"#DDDDDD\" colspan=50><b>".et('RenderTime').": ".substr($tt,0,strrpos($tt,".")+5)." ".et('Seconds')."</td></tr>";
3355 $out .= "
3356 <script language=\"Javascript\" type=\"text/javascript\">
3357 <!--
3358 update_sel_status();
3359 //-->
3360 </script>";
3361 } else {
3362 $out .= "
3363 <tr>
3364 <td bgcolor=\"#DDDDDD\" width=\"1%\">$uplink<td bgcolor=\"#DDDDDD\" colspan=50><nobr><a href=\"".$path_info["basename"]."?frame=3¤t_dir=$current_dir\">$current_dir</a></nobr>
3365 <tr><td bgcolor=\"#DDDDDD\" colspan=50>".et('EmptyDir').".</tr>";
3366 }
3367 } else $out .= "<tr><td><font color=red>".et('IOError').".<br>$current_dir</font>";
3368 $out .= "</table>";
3369 echo $out;
3370}
3371function upload_form(){
3372 global $_FILES,$current_dir,$dir_dest,$fechar,$quota_mb,$path_info;
3373 $num_uploads = 5;
3374 html_header();
3375 echo "<body marginwidth=\"0\" marginheight=\"0\">";
3376 if (count($_FILES)==0){
3377 echo "
3378 <table height=\"100%\" border=0 cellspacing=0 cellpadding=2 align=center>
3379 <form name=\"upload_form\" action=\"".$path_info["basename"]."\" method=\"post\" ENCTYPE=\"multipart/form-data\">
3380 <input type=hidden name=dir_dest value=\"$current_dir\">
3381 <input type=hidden name=action value=10>
3382 <tr><th colspan=2>".et('Upload')."</th></tr>
3383 <tr><td align=right><b>".et('Destination').":<td><b><nobr>$current_dir</nobr>";
3384 for ($x=0;$x<$num_uploads;$x++){
3385 echo "<tr><td width=1 align=right><b>".et('File').":<td><nobr><input type=\"file\" name=\"file$x\"></nobr>";
3386 $test_js .= "(document.upload_form.file$x.value.length>0)||";
3387 }
3388 echo "
3389 <input type=button value=\"".et('Send')."\" onclick=\"test_upload_form()\"></nobr>
3390 <tr><td> <td><input type=checkbox name=fechar value=\"1\"> <a href=\"JavaScript:troca();\">".et('AutoClose')."</a>
3391 <tr><td colspan=2> </td></tr>
3392 </form>
3393 </table>
3394 <script language=\"Javascript\" type=\"text/javascript\">
3395 <!--
3396 function troca(){
3397 if(document.upload_form.fechar.checked){document.upload_form.fechar.checked=false;}else{document.upload_form.fechar.checked=true;}
3398 }
3399 foi = false;
3400 function test_upload_form(){
3401 if(".substr($test_js,0,strlen($test_js)-2)."){
3402 if (foi) alert('".et('SendingForm')."...');
3403 else {
3404 foi = true;
3405 document.upload_form.submit();
3406 }
3407 } else alert('".et('NoFileSel').".');
3408 }
3409 window.moveTo((window.screen.width-400)/2,((window.screen.height-200)/2)-20);
3410 //-->
3411 </script>";
3412 } else {
3413 $out = "<tr><th colspan=2>".et('UploadEnd')."</th></tr>
3414 <tr><th colspan=2><nobr>".et('Destination').": $dir_dest</nobr>";
3415 for ($x=0;$x<$num_uploads;$x++){
3416 $temp_file = $_FILES["file".$x]["tmp_name"];
3417 $filename = $_FILES["file".$x]["name"];
3418 if (strlen($filename)) $resul = save_upload($temp_file,$filename,$dir_dest);
3419 else $resul = 7;
3420 switch($resul){
3421 case 1:
3422 $out .= "<tr><td><b>".str_zero($x+1,3).".<font color=green><b> ".et('FileSent').":</font><td>".$filename."</td></tr>\n";
3423 break;
3424 case 2:
3425 $out .= "<tr><td colspan=2><font color=red><b>".et('IOError')."</font></td></tr>\n";
3426 $x = $upload_num;
3427 break;
3428 case 3:
3429 $out .= "<tr><td colspan=2><font color=red><b>".et('SpaceLimReached')." ($quota_mb Mb)</font></td></tr>\n";
3430 $x = $upload_num;
3431 break;
3432 case 4:
3433 $out .= "<tr><td><b>".str_zero($x+1,3).".<font color=red><b> ".et('InvExt').":</font><td>".$filename."</td></tr>\n";
3434 break;
3435 case 5:
3436 $out .= "<tr><td><b>".str_zero($x+1,3).".<font color=red><b> ".et('FileNoOverw')."</font><td>".$filename."</td></tr>\n";
3437 break;
3438 case 6:
3439 $out .= "<tr><td><b>".str_zero($x+1,3).".<font color=green><b> ".et('FileOverw').":</font><td>".$filename."</td></tr>\n";
3440 break;
3441 case 7:
3442 $out .= "<tr><td colspan=2><b>".str_zero($x+1,3).".<font color=red><b> ".et('FileIgnored')."</font></td></tr>\n";
3443 }
3444 }
3445 if ($fechar) {
3446 echo "
3447 <script language=\"Javascript\" type=\"text/javascript\">
3448 <!--
3449 window.close();
3450 //-->
3451 </script>
3452 ";
3453 } else {
3454 echo "
3455 <table height=\"100%\" border=0 cellspacing=0 cellpadding=2 align=center>
3456 $out
3457 <tr><td colspan=2> </td></tr>
3458 </table>
3459 <script language=\"Javascript\" type=\"text/javascript\">
3460 <!--
3461 window.focus();
3462 //-->
3463 </script>
3464 ";
3465 }
3466 }
3467 echo "</body>\n</html>";
3468}
3469function chmod_form(){
3470 html_header("
3471 <script language=\"Javascript\" type=\"text/javascript\">
3472 <!--
3473 function octalchange()
3474 {
3475 var val = document.chmod_form.t_total.value;
3476 var stickybin = parseInt(val.charAt(0)).toString(2);
3477 var ownerbin = parseInt(val.charAt(1)).toString(2);
3478 while (ownerbin.length<3) { ownerbin=\"0\"+ownerbin; };
3479 var groupbin = parseInt(val.charAt(2)).toString(2);
3480 while (groupbin.length<3) { groupbin=\"0\"+groupbin; };
3481 var otherbin = parseInt(val.charAt(3)).toString(2);
3482 while (otherbin.length<3) { otherbin=\"0\"+otherbin; };
3483 document.chmod_form.sticky.checked = parseInt(stickybin.charAt(0));
3484 document.chmod_form.owner4.checked = parseInt(ownerbin.charAt(0));
3485 document.chmod_form.owner2.checked = parseInt(ownerbin.charAt(1));
3486 document.chmod_form.owner1.checked = parseInt(ownerbin.charAt(2));
3487 document.chmod_form.group4.checked = parseInt(groupbin.charAt(0));
3488 document.chmod_form.group2.checked = parseInt(groupbin.charAt(1));
3489 document.chmod_form.group1.checked = parseInt(groupbin.charAt(2));
3490 document.chmod_form.other4.checked = parseInt(otherbin.charAt(0));
3491 document.chmod_form.other2.checked = parseInt(otherbin.charAt(1));
3492 document.chmod_form.other1.checked = parseInt(otherbin.charAt(2));
3493 calc_chmod(1);
3494 };
3495
3496 function calc_chmod(nototals)
3497 {
3498 var users = new Array(\"owner\", \"group\", \"other\");
3499 var totals = new Array(\"\",\"\",\"\");
3500 var syms = new Array(\"\",\"\",\"\");
3501
3502 for (var i=0; i<users.length; i++)
3503 {
3504 var user=users[i];
3505 var field4 = user + \"4\";
3506 var field2 = user + \"2\";
3507 var field1 = user + \"1\";
3508 var symbolic = \"sym_\" + user;
3509 var number = 0;
3510 var sym_string = \"\";
3511 var sticky = \"0\";
3512 var sticky_sym = \" \";
3513 if (document.chmod_form.sticky.checked){
3514 sticky = \"1\";
3515 sticky_sym = \"t\";
3516 }
3517 if (document.chmod_form[field4].checked == true) { number += 4; }
3518 if (document.chmod_form[field2].checked == true) { number += 2; }
3519 if (document.chmod_form[field1].checked == true) { number += 1; }
3520
3521 if (document.chmod_form[field4].checked == true) {
3522 sym_string += \"r\";
3523 } else {
3524 sym_string += \"-\";
3525 }
3526 if (document.chmod_form[field2].checked == true) {
3527 sym_string += \"w\";
3528 } else {
3529 sym_string += \"-\";
3530 }
3531 if (document.chmod_form[field1].checked == true) {
3532 sym_string += \"x\";
3533 } else {
3534 sym_string += \"-\";
3535 }
3536
3537 totals[i] = totals[i]+number;
3538 syms[i] = syms[i]+sym_string;
3539
3540 };
3541 if (!nototals) document.chmod_form.t_total.value = sticky + totals[0] + totals[1] + totals[2];
3542 document.chmod_form.sym_total.value = syms[0] + syms[1] + syms[2] + sticky_sym;
3543 }
3544 function troca(){
3545 if(document.chmod_form.sticky.checked){document.chmod_form.sticky.checked=false;}else{document.chmod_form.sticky.checked=true;}
3546 }
3547
3548 window.onload=octalchange
3549 window.moveTo((window.screen.width-400)/2,((window.screen.height-200)/2)-20);
3550 //-->
3551 </script>");
3552 echo "<body marginwidth=\"0\" marginheight=\"0\">
3553 <form name=\"chmod_form\">
3554 <TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"4\" ALIGN=CENTER>
3555 <tr><th colspan=4>".et('Perms')."</th></tr>
3556 <TR ALIGN=\"LEFT\" VALIGN=\"MIDDLE\">
3557 <TD><input type=\"text\" name=\"t_total\" value=\"0777\" size=\"4\" onKeyUp=\"octalchange()\"> </TD>
3558 <TD><input type=\"text\" name=\"sym_total\" value=\"\" size=\"12\" READONLY=\"1\"></TD>
3559 </TR>
3560 </TABLE>
3561 <table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" ALIGN=CENTER>
3562 <tr bgcolor=\"#333333\">
3563 <td WIDTH=\"60\" align=\"left\"> </td>
3564 <td WIDTH=\"55\" align=\"center\" style=\"color:#FFFFFF\"><b>".et('Owner')."
3565 </b></td>
3566 <td WIDTH=\"55\" align=\"center\" style=\"color:#FFFFFF\"><b>".et('Group')."
3567 </b></td>
3568 <td WIDTH=\"55\" align=\"center\" style=\"color:#FFFFFF\"><b>".et('Other')."
3569 <b></td>
3570 </tr>
3571 <tr bgcolor=\"#DDDDDD\">
3572 <td WIDTH=\"60\" align=\"left\" nowrap BGCOLOR=\"#FFFFFF\">".et('Read')."</td>
3573 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#EEEEEE\">
3574 <input type=\"checkbox\" name=\"owner4\" value=\"4\" onclick=\"calc_chmod()\">
3575 </td>
3576 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#FFFFFF\"><input type=\"checkbox\" name=\"group4\" value=\"4\" onclick=\"calc_chmod()\">
3577 </td>
3578 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#EEEEEE\">
3579 <input type=\"checkbox\" name=\"other4\" value=\"4\" onclick=\"calc_chmod()\">
3580 </td>
3581 </tr>
3582 <tr bgcolor=\"#DDDDDD\">
3583 <td WIDTH=\"60\" align=\"left\" nowrap BGCOLOR=\"#FFFFFF\">".et('Write')."</td>
3584 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#EEEEEE\">
3585 <input type=\"checkbox\" name=\"owner2\" value=\"2\" onclick=\"calc_chmod()\"></td>
3586 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#FFFFFF\"><input type=\"checkbox\" name=\"group2\" value=\"2\" onclick=\"calc_chmod()\">
3587 </td>
3588 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#EEEEEE\">
3589 <input type=\"checkbox\" name=\"other2\" value=\"2\" onclick=\"calc_chmod()\">
3590 </td>
3591 </tr>
3592 <tr bgcolor=\"#DDDDDD\">
3593 <td WIDTH=\"60\" align=\"left\" nowrap BGCOLOR=\"#FFFFFF\">".et('Exec')."</td>
3594 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#EEEEEE\">
3595 <input type=\"checkbox\" name=\"owner1\" value=\"1\" onclick=\"calc_chmod()\">
3596 </td>
3597 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#FFFFFF\"><input type=\"checkbox\" name=\"group1\" value=\"1\" onclick=\"calc_chmod()\">
3598 </td>
3599 <td WIDTH=\"55\" align=\"center\" bgcolor=\"#EEEEEE\">
3600 <input type=\"checkbox\" name=\"other1\" value=\"1\" onclick=\"calc_chmod()\">
3601 </td>
3602 </tr>
3603 </TABLE>
3604 <TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"4\" ALIGN=CENTER>
3605 <tr><td colspan=2><input type=checkbox name=sticky value=\"1\" onclick=\"calc_chmod()\"> <a href=\"JavaScript:troca();\">".et('StickyBit')."</a><td colspan=2 align=right><input type=button value=\"".et('Apply')."\" onClick=\"window.opener.set_chmod_arg(document.chmod_form.t_total.value); window.close();\"></tr>
3606 </table>
3607 </form>
3608 </body>\n</html>";
3609}
3610function get_mime_type($ext = ''){
3611 $mimes = array(
3612 'hqx' => 'application/mac-binhex40',
3613 'cpt' => 'application/mac-compactpro',
3614 'doc' => 'application/msword',
3615 'bin' => 'application/macbinary',
3616 'dms' => 'application/octet-stream',
3617 'lha' => 'application/octet-stream',
3618 'lzh' => 'application/octet-stream',
3619 'exe' => 'application/octet-stream',
3620 'class' => 'application/octet-stream',
3621 'psd' => 'application/octet-stream',
3622 'so' => 'application/octet-stream',
3623 'sea' => 'application/octet-stream',
3624 'dll' => 'application/octet-stream',
3625 'oda' => 'application/oda',
3626 'pdf' => 'application/pdf',
3627 'ai' => 'application/postscript',
3628 'eps' => 'application/postscript',
3629 'ps' => 'application/postscript',
3630 'smi' => 'application/smil',
3631 'smil' => 'application/smil',
3632 'mif' => 'application/vnd.mif',
3633 'xls' => 'application/vnd.ms-excel',
3634 'ppt' => 'application/vnd.ms-powerpoint',
3635 'pptx' => 'application/vnd.ms-powerpoint',
3636 'wbxml' => 'application/vnd.wap.wbxml',
3637 'wmlc' => 'application/vnd.wap.wmlc',
3638 'dcr' => 'application/x-director',
3639 'dir' => 'application/x-director',
3640 'dxr' => 'application/x-director',
3641 'dvi' => 'application/x-dvi',
3642 'gtar' => 'application/x-gtar',
3643 'php' => 'application/x-httpd-php',
3644 'php4' => 'application/x-httpd-php',
3645 'php3' => 'application/x-httpd-php',
3646 'phtml' => 'application/x-httpd-php',
3647 'phps' => 'application/x-httpd-php-source',
3648 'js' => 'application/x-javascript',
3649 'swf' => 'application/x-shockwave-flash',
3650 'sit' => 'application/x-stuffit',
3651 'tar' => 'application/x-tar',
3652 'tgz' => 'application/x-tar',
3653 'xhtml' => 'application/xhtml+xml',
3654 'xht' => 'application/xhtml+xml',
3655 'zip' => 'application/zip',
3656 'mid' => 'audio/midi',
3657 'midi' => 'audio/midi',
3658 'mpga' => 'audio/mpeg',
3659 'mp2' => 'audio/mpeg',
3660 'mp3' => 'audio/mpeg',
3661 'aif' => 'audio/x-aiff',
3662 'aiff' => 'audio/x-aiff',
3663 'aifc' => 'audio/x-aiff',
3664 'ram' => 'audio/x-pn-realaudio',
3665 'rm' => 'audio/x-pn-realaudio',
3666 'rpm' => 'audio/x-pn-realaudio-plugin',
3667 'ra' => 'audio/x-realaudio',
3668 'rv' => 'video/vnd.rn-realvideo',
3669 'wav' => 'audio/x-wav',
3670 'bmp' => 'image/bmp',
3671 'gif' => 'image/gif',
3672 'jpeg' => 'image/jpeg',
3673 'jpg' => 'image/jpeg',
3674 'jpe' => 'image/jpeg',
3675 'png' => 'image/png',
3676 'tiff' => 'image/tiff',
3677 'tif' => 'image/tiff',
3678 'css' => 'text/css',
3679 'html' => 'text/html',
3680 'htm' => 'text/html',
3681 'shtml' => 'text/html',
3682 'txt' => 'text/plain',
3683 'text' => 'text/plain',
3684 'log' => 'text/plain',
3685 'rtx' => 'text/richtext',
3686 'rtf' => 'text/rtf',
3687 'xml' => 'text/xml',
3688 'xsl' => 'text/xml',
3689 'mpeg' => 'video/mpeg',
3690 'mpg' => 'video/mpeg',
3691 'mpe' => 'video/mpeg',
3692 'qt' => 'video/quicktime',
3693 'mov' => 'video/quicktime',
3694 'avi' => 'video/x-msvideo',
3695 'movie' => 'video/x-sgi-movie',
3696 'doc' => 'application/msword',
3697 'docx' => 'application/msword',
3698 'word' => 'application/msword',
3699 'xl' => 'application/excel',
3700 'xls' => 'application/excel',
3701 'xlsx' => 'application/excel',
3702 'eml' => 'message/rfc822'
3703 );
3704 return (!isset($mimes[strtolower($ext)])) ? 'application/octet-stream' : $mimes[strtolower($ext)];
3705}
3706function view(){
3707 global $doc_root,$path_info,$url_info,$current_dir,$islinux,$filename,$passthru;
3708 if (intval($passthru)){
3709 $file = $current_dir.$filename;
3710 if(file_exists($file)){
3711 $is_denied = false;
3712 foreach($download_ext_filter as $key=>$ext){
3713 if (eregi($ext,$filename)){
3714 $is_denied = true;
3715 break;
3716 }
3717 }
3718 if (!$is_denied){
3719 if ($fh = fopen("$file", "rb")){
3720 fclose($fh);
3721 $ext = pathinfo($file, PATHINFO_EXTENSION);
3722 header("Pragma: public");
3723 header("Expires: 0");
3724 header("Connection: close");
3725 header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
3726 header("Cache-Control: public");
3727 header("Content-Description: File Transfer");
3728 header("Content-Type: ".get_mime_type($ext));
3729 header("Content-Disposition: inline; filename=\"".pathinfo($file, PATHINFO_BASENAME)."\";");
3730 header("Content-Transfer-Encoding: binary");
3731 header("Content-Length: ".filesize($file));
3732 @readfile($file);
3733 exit();
3734 } else alert(et('ReadDenied').": ".$file);
3735 } else alert(et('ReadDenied').": ".$file);
3736 } else alert(et('FileNotFound').": ".$file);
3737 echo "
3738 <script language=\"Javascript\" type=\"text/javascript\">
3739 <!--
3740 window.close();
3741 //-->
3742 </script>";
3743 } else {
3744 html_header();
3745 echo "<body marginwidth=\"0\" marginheight=\"0\">";
3746 $is_reachable_thru_webserver = (stristr($current_dir,$doc_root)!==false);
3747 if ($is_reachable_thru_webserver){
3748 $url = $url_info["scheme"]."://".$url_info["host"];
3749 if (strlen($url_info["port"])) $url .= ":".$url_info["port"];
3750 // Malditas variaveis de sistema!! No windows doc_root é sempre em lowercase... cadê o str_ireplace() ??
3751 $url .= str_replace($doc_root,"",$current_dir).$filename;
3752 } else {
3753 $url = addslashes($path_info["basename"])."?action=4¤t_dir=".addslashes($current_dir)."&filename=".addslashes($filename)."&passthru=1";
3754 }
3755 echo "
3756 <script language=\"Javascript\" type=\"text/javascript\">
3757 <!--
3758 window.moveTo((window.screen.width-800)/2,((window.screen.height-600)/2)-20);
3759 document.location.href='$url';
3760 //-->
3761 </script>
3762 </body>\n</html>";
3763 }
3764}
3765function edit_file_form(){
3766 global $current_dir,$filename,$file_data,$save_file,$path_info;
3767 $file = $current_dir.$filename;
3768 if ($save_file){
3769 $fh=fopen($file,"w");
3770 fputs($fh,$file_data,strlen($file_data));
3771 fclose($fh);
3772 }
3773 $fh=fopen($file,"r");
3774 $file_data=fread($fh, filesize($file));
3775 fclose($fh);
3776 html_header();
3777 echo "<body marginwidth=\"0\" marginheight=\"0\">
3778 <table border=0 cellspacing=0 cellpadding=5 align=center>
3779 <form name=\"edit_form\" action=\"".$path_info["basename"]."\" method=\"post\">
3780 <input type=hidden name=action value=\"7\">
3781 <input type=hidden name=save_file value=\"1\">
3782 <input type=hidden name=current_dir value=\"$current_dir\">
3783 <input type=hidden name=filename value=\"$filename\">
3784 <tr><th colspan=2>".$file."</th></tr>
3785 <tr><td colspan=2><textarea name=file_data style='width:1000px;height:680px;'>".html_encode($file_data)."</textarea></td></tr>
3786 <tr><td><input type=button value=\"".et('Refresh')."\" onclick=\"document.edit_form_refresh.submit()\"></td><td align=right><input type=button value=\"".et('SaveFile')."\" onclick=\"go_save()\"></td></tr>
3787 </form>
3788 <form name=\"edit_form_refresh\" action=\"".$path_info["basename"]."\" method=\"post\">
3789 <input type=hidden name=action value=\"7\">
3790 <input type=hidden name=current_dir value=\"$current_dir\">
3791 <input type=hidden name=filename value=\"$filename\">
3792 </form>
3793 </table>
3794 <script language=\"Javascript\" type=\"text/javascript\">
3795 <!--
3796 window.moveTo((window.screen.width-1024)/2,((window.screen.height-728)/2)-20);
3797 function go_save(){";
3798 if (is_writable($file)) {
3799 echo "
3800 document.edit_form.submit();";
3801 } else {
3802 echo "
3803 if(confirm('".et('ConfTrySave')." ?')) document.edit_form.submit();";
3804 }
3805 echo "
3806 }
3807 //-->
3808 </script>
3809 </body>\n</html>";
3810}
3811function config_form(){
3812 global $cfg;
3813 global $current_dir,$fm_self,$doc_root,$path_info,$fm_current_root,$lang,$error_reporting,$version;
3814 global $config_action,$newpass,$newlang,$newerror,$newfm_root;
3815 $Warning = "";
3816 switch ($config_action){
3817 case 1:
3818 if ($fh = fopen("http://phpfm.sf.net/latest.php","r")){
3819 $data = "";
3820 while (!feof($fh)) $data .= fread($fh,1024);
3821 fclose($fh);
3822 $data = unserialize($data);
3823 $ChkVerWarning = "<tr><td align=right> ";
3824 if (is_array($data)&&count($data)){
3825 $ChkVerWarning .= "<a href=\"JavaScript:open_win('http://sourceforge.net')\">
3826 <img src=\"http://sourceforge.net/sflogo.php?group_id=114392&type=1\" width=\"88\" height=\"31\" style=\"border: 1px solid #AAAAAA\" alt=\"SourceForge.net Logo\" />
3827 </a>";
3828 if (str_replace(".","",$data['version'])>str_replace(".","",$cfg->data['version'])) $ChkVerWarning .= "<td><a href=\"JavaScript:open_win('http://prdownloads.sourceforge.net/phpfm/phpFileManager-".$data['version'].".zip?download')\"><font color=green>".et('ChkVerAvailable')."</font></a>";
3829 else $ChkVerWarning .= "<td><font color=red>".et('ChkVerNotAvailable')."</font>";
3830 } else $ChkVerWarning .= "<td><font color=red>".et('ChkVerError')."</font>";
3831 } else $ChkVerWarning .= "<td><font color=red>".et('ChkVerError')."</font>";
3832 break;
3833 case 2:
3834 $reload = false;
3835 if ($cfg->data['lang'] != $newlang){
3836 $cfg->data['lang'] = $newlang;
3837 $lang = $newlang;
3838 $reload = true;
3839 }
3840 if ($cfg->data['error_reporting'] != $newerror){
3841 $cfg->data['error_reporting'] = $newerror;
3842 $error_reporting = $newerror;
3843 $reload = true;
3844 }
3845 $newfm_root = format_path($newfm_root);
3846 if ($cfg->data['fm_root'] != $newfm_root){
3847 $cfg->data['fm_root'] = $newfm_root;
3848 if (strlen($newfm_root)) $current_dir = $newfm_root;
3849 else $current_dir = $path_info["dirname"]."/";
3850 setcookie("fm_current_root", $newfm_root , 0 , "/");
3851 $reload = true;
3852 }
3853 $cfg->save();
3854 if ($reload){
3855 reloadframe("window.opener.parent",2);
3856 reloadframe("window.opener.parent",3);
3857 }
3858 $Warning1 = et('ConfSaved')."...";
3859 break;
3860 case 3:
3861 if ($cfg->data['auth_pass'] != md5($newpass)){
3862 $cfg->data['auth_pass'] = md5($newpass);
3863 setcookie("loggedon", md5($newpass) , 0 , "/");
3864 }
3865 $cfg->save();
3866 $Warning2 = et('PassSaved')."...";
3867 break;
3868 }
3869 html_header();
3870 echo "<body marginwidth=\"0\" marginheight=\"0\">\n";
3871 echo "
3872 <table border=0 cellspacing=0 cellpadding=5 align=center width=\"100%\">
3873 <tr><td colspan=2 align=center><b>".strtoupper(et('Configurations'))."</b></td></tr>
3874 </table>
3875 <table border=0 cellspacing=0 cellpadding=5 align=center width=\"100%\">
3876 <form>
3877 <tr><td align=right width=\"1%\">".et('Version').":<td>$version (".get_size($fm_self).")</td></tr>
3878 <tr><td align=right>".et('Website').":<td><a href=\"JavaScript:open_win('http://phpfm.sf.net')\">http://phpfm.sf.net</a> <input type=button value=\"".et('ChkVer')."\" onclick=\"test_config_form(1)\"></td></tr>
3879 </form>";
3880 if (strlen($ChkVerWarning)) echo $ChkVerWarning.$data['warnings'];
3881 echo "
3882 <style type=\"text/css\">
3883 .buymeabeer {
3884 background: url('http://phpfm.sf.net/img/buymeabeer.png') 0 0 no-repeat;
3885 text-indent: -9999px;
3886 width: 128px;
3887 height: 31px;
3888 border: none;
3889 cursor: hand;
3890 cursor: pointer;
3891 }
3892 .buymeabeer:hover {
3893 background: url('http://phpfm.sf.net/img/buymeabeer.png') 0 -31px no-repeat;
3894 }
3895 </style>
3896 <tr><td align=right>Like this project?</td><td>
3897 <form name=\"buymeabeer_form\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">
3898 <input type=\"hidden\" name=\"cmd\" value=\"_xclick\">
3899 <input type=\"hidden\" name=\"business\" value=\"dulldusk@gmail.com\">
3900 <input type=\"hidden\" name=\"lc\" value=\"BR\">
3901 <input type=\"hidden\" name=\"item_name\" value=\"A Beer\">
3902 <input type=\"hidden\" name=\"button_subtype\" value=\"services\">
3903 <input type=\"hidden\" name=\"currency_code\" value=\"USD\">
3904 <input type=\"hidden\" name=\"tax_rate\" value=\"0.000\">
3905 <input type=\"hidden\" name=\"shipping\" value=\"0.00\">
3906 <input type=\"hidden\" name=\"bn\" value=\"PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest\">
3907 <input type=\"submit\" class=\"buymeabeer\" value=\"buy me a beer\">
3908 <input type=\"hidden\" name=\"buyer_credit_promo_code\" value=\"\">
3909 <input type=\"hidden\" name=\"buyer_credit_product_category\" value=\"\">
3910 <input type=\"hidden\" name=\"buyer_credit_shipping_method\" value=\"\">
3911 <input type=\"hidden\" name=\"buyer_credit_user_address_change\" value=\"\">
3912 <input type=\"hidden\" name=\"tax\" value=\"0\">
3913 <input type=\"hidden\" name=\"no_shipping\" value=\"1\">
3914 <input type=\"hidden\" name=\"return\" value=\"http://phpfm.sf.net\">
3915 <input type=\"hidden\" name=\"cancel_return\" value=\"http://phpfm.sf.net\">
3916 </form>
3917 </td></tr>
3918 <form name=\"config_form\" action=\"".$path_info["basename"]."\" method=\"post\">
3919 <input type=hidden name=action value=2>
3920 <input type=hidden name=config_action value=0>
3921 <tr><td align=right width=1><nobr>".et('DocRoot').":</nobr><td>".$doc_root."</td></tr>
3922 <tr><td align=right><nobr>".et('FLRoot').":</nobr><td><input type=text size=60 name=newfm_root value=\"".$cfg->data['fm_root']."\" onkeypress=\"enterSubmit(event,'test_config_form(2)')\"></td></tr>
3923 <tr><td align=right>".et('Lang').":<td>
3924 <select name=newlang>
3925 <option value=nl>Dutch - by Leon Buijs
3926 <option value=en>English - by Fabricio Seger Kolling
3927 <option value=fr1>French - by Jean Bilwes
3928 <option value=fr2>French - by Sharky
3929 <option value=fr3>French - by Michel Lainey
3930 <option value=de1>German - by Guido Ogrzal
3931 <option value=de2>German - by AXL
3932 <option value=de3>German - by Mathias Rothe
3933 <option value=it1>Italian - by Valerio Capello
3934 <option value=it2>Italian - by Federico CorrÃ
3935 <option value=it3>Italian - by Luca Zorzi
3936 <option value=it4>Italian - by Gianni
3937 <option value=kr>Korean - by Airplanez
3938 <option value=pt>Portuguese - by Fabricio Seger Kolling
3939 <option value=es>Spanish - by Sh Studios
3940 <option value=ru>Russian - by Евгений Рашев
3941 <option value=tr>Turkish - by Necdet Yazilimlari
3942 </select></td></tr>
3943 <tr><td align=right>".et('ErrorReport').":<td><select name=newerror><option value=\"\">NONE<option value=\"".E_ALL."\">E_ALL<option value=\"".E_ERROR."\">E_ERROR<option value=\"".(E_ERROR | E_WARNING)."\">E_ERROR & E_WARNING<option value=\"".(E_ERROR | E_WARNING | E_NOTICE)."\">E_ERROR & E_WARNING & E_NOTICE</select></td></tr>
3944 <tr><td> <td><input type=button value=\"".et('SaveConfig')."\" onclick=\"test_config_form(2)\">";
3945 if (strlen($Warning1)) echo " <font color=red>$Warning1</font>";
3946 echo "
3947 <tr><td align=right>".et('Pass').":<td><input type=text size=30 name=newpass value=\"\" onkeypress=\"enterSubmit(event,'test_config_form(3)')\"></td></tr>
3948 <tr><td> <td><input type=button value=\"".et('SavePass')."\" onclick=\"test_config_form(3)\">";
3949 if (strlen($Warning2)) echo " <font color=red>$Warning2</font>";
3950 echo "</td></tr>";
3951 echo "
3952 </form>
3953 </table>
3954 <script language=\"Javascript\" type=\"text/javascript\">
3955 <!--
3956 function set_select(sel,val){
3957 for(var x=0;x<sel.length;x++){
3958 if(sel.options[x].value==val){
3959 sel.options[x].selected=true;
3960 break;
3961 }
3962 }
3963 }
3964 set_select(document.config_form.newlang,'".$cfg->data['lang']."');
3965 set_select(document.config_form.newerror,'".$cfg->data['error_reporting']."');
3966 function test_config_form(arg){
3967 document.config_form.config_action.value = arg;
3968 document.config_form.submit();
3969 }
3970 function open_win(url){
3971 var w = 800;
3972 var h = 600;
3973 window.open(url, '', 'width='+w+',height='+h+',fullscreen=no,scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=yes');
3974 }
3975 window.moveTo((window.screen.width-600)/2,((window.screen.height-400)/2)-20);
3976 window.focus();
3977 //-->
3978 </script>
3979 ";
3980 echo "</body>\n</html>";
3981}
3982function shell_form(){
3983 global $current_dir,$shell_form,$cmd_arg,$path_info;
3984 $data_out = "";
3985 if (strlen($cmd_arg)){
3986 exec($cmd_arg,$mat);
3987 if (count($mat)) $data_out = trim(implode("\n",$mat));
3988 }
3989 switch ($shell_form){
3990 case 1:
3991 html_header();
3992 echo "
3993 <body marginwidth=\"0\" marginheight=\"0\">
3994 <table border=0 cellspacing=0 cellpadding=0 align=center>
3995 <form name=\"data_form\">
3996 <tr><td><textarea name=data_out rows=36 cols=105 READONLY=\"1\"></textarea></td></tr>
3997 </form>
3998 </table>
3999 </body></html>";
4000 break;
4001 case 2:
4002 html_header();
4003 echo "
4004 <body marginwidth=\"0\" marginheight=\"0\">
4005 <table border=0 cellspacing=0 cellpadding=0 align=center>
4006 <form name=\"shell_form\" action=\"".$path_info["basename"]."\" method=\"post\">
4007 <input type=hidden name=current_dir value=\"$current_dir\">
4008 <input type=hidden name=action value=\"9\">
4009 <input type=hidden name=shell_form value=\"2\">
4010 <tr><td align=center><input type=text size=90 name=cmd_arg></td></tr>
4011 </form>";
4012 echo "
4013 <script language=\"Javascript\" type=\"text/javascript\">
4014 <!--";
4015 if (strlen($data_out)) echo "
4016 var val = '# ".html_encode($cmd_arg)."\\n".html_encode(str_replace("<","[",str_replace(">","]",str_replace("\n","\\n",str_replace("'","\'",str_replace("\\","\\\\",$data_out))))))."\\n';
4017 parent.frame1.document.data_form.data_out.value += val;";
4018 echo "
4019 document.shell_form.cmd_arg.focus();
4020 //-->
4021 </script>
4022 ";
4023 echo "
4024 </table>
4025 </body></html>";
4026 break;
4027 default:
4028 html_header("
4029 <script language=\"Javascript\" type=\"text/javascript\">
4030 <!--
4031 window.moveTo((window.screen.width-800)/2,((window.screen.height-600)/2)-20);
4032 //-->
4033 </script>");
4034 echo "
4035 <frameset rows=\"570,*\" framespacing=\"0\" frameborder=no>
4036 <frame src=\"".$path_info["basename"]."?action=9&shell_form=1\" name=frame1 border=\"0\" marginwidth=\"0\" marginheight=\"0\">
4037 <frame src=\"".$path_info["basename"]."?action=9&shell_form=2\" name=frame2 border=\"0\" marginwidth=\"0\" marginheight=\"0\">
4038 </frameset>
4039 </html>";
4040 }
4041}
4042function server_info(){
4043 if (!@phpinfo()) echo et('NoPhpinfo')."...";
4044 echo "<br><br>";
4045 $a=ini_get_all();
4046 $output="<table border=1 cellspacing=0 cellpadding=4 align=center>";
4047 $output.="<tr><th colspan=2>ini_get_all()</td></tr>";
4048 while(list($key, $value)=each($a)) {
4049 list($k, $v)= each($a[$key]);
4050 $output.="<tr><td align=right>$key</td><td>$v</td></tr>";
4051 }
4052 $output.="</table>";
4053 echo $output;
4054 echo "<br><br>";
4055 $output="<table border=1 cellspacing=0 cellpadding=4 align=center>";
4056 $output.="<tr><th colspan=2>\$_SERVER</td></tr>";
4057 foreach ($_SERVER as $k=>$v) {
4058 $output.="<tr><td align=right>$k</td><td>$v</td></tr>";
4059 }
4060 $output.="</table>";
4061 echo $output;
4062 echo "<br><br>";
4063 echo "<table border=1 cellspacing=0 cellpadding=4 align=center>";
4064 $safe_mode=trim(ini_get("safe_mode"));
4065 if ((strlen($safe_mode)==0)||($safe_mode==0)) $safe_mode=false;
4066 else $safe_mode=true;
4067 $is_windows_server = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
4068 echo "<tr><td colspan=2>".php_uname();
4069 echo "<tr><td>safe_mode<td>".($safe_mode?"on":"off");
4070 if ($is_windows_server) echo "<tr><td>sisop<td>Windows<br>";
4071 else echo "<tr><td>sisop<td>Linux<br>";
4072 echo "</table><br><br><table border=1 cellspacing=0 cellpadding=4 align=center>";
4073 $display_errors=ini_get("display_errors");
4074 $ignore_user_abort = ignore_user_abort();
4075 $max_execution_time = ini_get("max_execution_time");
4076 $upload_max_filesize = ini_get("upload_max_filesize");
4077 $memory_limit=ini_get("memory_limit");
4078 $output_buffering=ini_get("output_buffering");
4079 $default_socket_timeout=ini_get("default_socket_timeout");
4080 $allow_url_fopen = ini_get("allow_url_fopen");
4081 $magic_quotes_gpc = ini_get("magic_quotes_gpc");
4082 ignore_user_abort(true);
4083 ini_set("display_errors",0);
4084 ini_set("max_execution_time",0);
4085 ini_set("upload_max_filesize","10M");
4086 ini_set("memory_limit","20M");
4087 ini_set("output_buffering",0);
4088 ini_set("default_socket_timeout",30);
4089 ini_set("allow_url_fopen",1);
4090 ini_set("magic_quotes_gpc",0);
4091 echo "<tr><td> <td>Get<td>Set<td>Get";
4092 echo "<tr><td>display_errors<td>$display_errors<td>0<td>".ini_get("display_errors");
4093 echo "<tr><td>ignore_user_abort<td>".($ignore_user_abort?"on":"off")."<td>on<td>".(ignore_user_abort()?"on":"off");
4094 echo "<tr><td>max_execution_time<td>$max_execution_time<td>0<td>".ini_get("max_execution_time");
4095 echo "<tr><td>upload_max_filesize<td>$upload_max_filesize<td>10M<td>".ini_get("upload_max_filesize");
4096 echo "<tr><td>memory_limit<td>$memory_limit<td>20M<td>".ini_get("memory_limit");
4097 echo "<tr><td>output_buffering<td>$output_buffering<td>0<td>".ini_get("output_buffering");
4098 echo "<tr><td>default_socket_timeout<td>$default_socket_timeout<td>30<td>".ini_get("default_socket_timeout");
4099 echo "<tr><td>allow_url_fopen<td>$allow_url_fopen<td>1<td>".ini_get("allow_url_fopen");
4100 echo "<tr><td>magic_quotes_gpc<td>$magic_quotes_gpc<td>0<td>".ini_get("magic_quotes_gpc");
4101 echo "</table><br><br>";
4102 echo "
4103 <script language=\"Javascript\" type=\"text/javascript\">
4104 <!--
4105 window.moveTo((window.screen.width-800)/2,((window.screen.height-600)/2)-20);
4106 window.focus();
4107 //-->
4108 </script>";
4109 echo "</body>\n</html>";
4110}
4111// +--------------------------------------------------
4112// | Session
4113// +--------------------------------------------------
4114function logout(){
4115 setcookie("loggedon",0,0,"/");
4116 login_form();
4117}
4118function login(){
4119 global $pass,$auth_pass,$path_info;
4120 if (md5(trim($pass)) == $auth_pass){
4121 setcookie("loggedon",$auth_pass,0,"/");
4122 header ("Location: ".$path_info["basename"]."");
4123 } else header ("Location: ".$path_info["basename"]."?erro=1");
4124}
4125function login_form(){
4126 global $erro,$auth_pass,$path_info;
4127 html_header();
4128 echo "<body onLoad=\"if(parent.location.href != self.location.href){ parent.location.href = self.location.href } return true;\">\n";
4129 if ($auth_pass != md5("")){
4130 echo "
4131 <table border=0 cellspacing=0 cellpadding=5>
4132 <form name=\"login_form\" action=\"".$path_info["basename"]."\" method=\"post\">
4133 <tr>
4134 <td><b>".et('FileMan')."</b>
4135 </tr>
4136 <tr>
4137 <td align=left><font size=4>".et('TypePass').".</font>
4138 </tr>
4139 <tr>
4140 <td><input name=pass type=password size=10> <input type=submit value=\"".et('Send')."\">
4141 </tr>
4142 ";
4143 if (strlen($erro)) echo "
4144 <tr>
4145 <td align=left><font color=red size=4>".et('InvPass').".</font>
4146 </tr>
4147 ";
4148 echo "
4149 </form>
4150 </table>
4151 <script language=\"Javascript\" type=\"text/javascript\">
4152 <!--
4153 document.login_form.pass.focus();
4154 //-->
4155 </script>
4156 ";
4157 } else {
4158 echo "
4159 <table border=0 cellspacing=0 cellpadding=5>
4160 <form name=\"login_form\" action=\"".$path_info["basename"]."\" method=\"post\">
4161 <input type=hidden name=frame value=3>
4162 <input type=hidden name=pass value=\"\">
4163 <tr>
4164 <td><b>".et('FileMan')."</b>
4165 </tr>
4166 <tr>
4167 <td><input type=submit value=\"".et('Enter')."\">
4168 </tr>
4169 </form>
4170 </table>
4171 ";
4172 }
4173 echo "</body>\n</html>";
4174}
4175function frame3(){
4176 global $islinux,$cmd_arg,$chmod_arg,$zip_dir,$fm_current_root,$cookie_cache_time;
4177 global $dir_dest,$current_dir,$dir_before;
4178 global $selected_file_list,$selected_dir_list,$old_name,$new_name;
4179 global $action,$or_by,$order_dir_list_by;
4180 if (!isset($order_dir_list_by)){
4181 $order_dir_list_by = "1A";
4182 setcookie("order_dir_list_by", $order_dir_list_by , time()+$cookie_cache_time , "/");
4183 } elseif (strlen($or_by)){
4184 $order_dir_list_by = $or_by;
4185 setcookie("order_dir_list_by", $or_by , time()+$cookie_cache_time , "/");
4186 }
4187 html_header();
4188 echo "<body>\n";
4189 if ($action){
4190 switch ($action){
4191 case 1: // create dir
4192 if (strlen($cmd_arg)){
4193 $cmd_arg = format_path($current_dir.$cmd_arg);
4194 if (!file_exists($cmd_arg)){
4195 mkdir($cmd_arg,0777);
4196 chmod($cmd_arg,0777);
4197 reloadframe("parent",2,"&ec_dir=".$cmd_arg);
4198 } else alert(et('FileDirExists').".");
4199 }
4200 break;
4201 case 2: // create arq
4202 if (strlen($cmd_arg)){
4203 $cmd_arg = $current_dir.$cmd_arg;
4204 if (!file_exists($cmd_arg)){
4205 if ($fh = @fopen($cmd_arg, "w")){
4206 @fclose($fh);
4207 }
4208 chmod($cmd_arg,0666);
4209 } else alert(et('FileDirExists').".");
4210 }
4211 break;
4212 case 3: // rename arq ou dir
4213 if ((strlen($old_name))&&(strlen($new_name))){
4214 rename($current_dir.$old_name,$current_dir.$new_name);
4215 if (is_dir($current_dir.$new_name)) reloadframe("parent",2);
4216 }
4217 break;
4218 case 4: // delete sel
4219 if(strstr($current_dir,$fm_current_root)){
4220 if (strlen($selected_file_list)){
4221 $selected_file_list = explode("<|*|>",$selected_file_list);
4222 if (count($selected_file_list)) {
4223 for($x=0;$x<count($selected_file_list);$x++) {
4224 $selected_file_list[$x] = trim($selected_file_list[$x]);
4225 if (strlen($selected_file_list[$x])) total_delete($current_dir.$selected_file_list[$x],$dir_dest.$selected_file_list[$x]);
4226 }
4227 }
4228 }
4229 if (strlen($selected_dir_list)){
4230 $selected_dir_list = explode("<|*|>",$selected_dir_list);
4231 if (count($selected_dir_list)) {
4232 for($x=0;$x<count($selected_dir_list);$x++) {
4233 $selected_dir_list[$x] = trim($selected_dir_list[$x]);
4234 if (strlen($selected_dir_list[$x])) total_delete($current_dir.$selected_dir_list[$x],$dir_dest.$selected_dir_list[$x]);
4235 }
4236 reloadframe("parent",2);
4237 }
4238 }
4239 }
4240 break;
4241 case 5: // copy sel
4242 if (strlen($dir_dest)){
4243 if(strtoupper($dir_dest) != strtoupper($current_dir)){
4244 if (strlen($selected_file_list)){
4245 $selected_file_list = explode("<|*|>",$selected_file_list);
4246 if (count($selected_file_list)) {
4247 for($x=0;$x<count($selected_file_list);$x++) {
4248 $selected_file_list[$x] = trim($selected_file_list[$x]);
4249 if (strlen($selected_file_list[$x])) total_copy($current_dir.$selected_file_list[$x],$dir_dest.$selected_file_list[$x]);
4250 }
4251 }
4252 }
4253 if (strlen($selected_dir_list)){
4254 $selected_dir_list = explode("<|*|>",$selected_dir_list);
4255 if (count($selected_dir_list)) {
4256 for($x=0;$x<count($selected_dir_list);$x++) {
4257 $selected_dir_list[$x] = trim($selected_dir_list[$x]);
4258 if (strlen($selected_dir_list[$x])) total_copy($current_dir.$selected_dir_list[$x],$dir_dest.$selected_dir_list[$x]);
4259 }
4260 reloadframe("parent",2);
4261 }
4262 }
4263 $current_dir = $dir_dest;
4264 }
4265 }
4266 break;
4267 case 6: // move sel
4268 if (strlen($dir_dest)){
4269 if(strtoupper($dir_dest) != strtoupper($current_dir)){
4270 if (strlen($selected_file_list)){
4271 $selected_file_list = explode("<|*|>",$selected_file_list);
4272 if (count($selected_file_list)) {
4273 for($x=0;$x<count($selected_file_list);$x++) {
4274 $selected_file_list[$x] = trim($selected_file_list[$x]);
4275 if (strlen($selected_file_list[$x])) total_move($current_dir.$selected_file_list[$x],$dir_dest.$selected_file_list[$x]);
4276 }
4277 }
4278 }
4279 if (strlen($selected_dir_list)){
4280 $selected_dir_list = explode("<|*|>",$selected_dir_list);
4281 if (count($selected_dir_list)) {
4282 for($x=0;$x<count($selected_dir_list);$x++) {
4283 $selected_dir_list[$x] = trim($selected_dir_list[$x]);
4284 if (strlen($selected_dir_list[$x])) total_move($current_dir.$selected_dir_list[$x],$dir_dest.$selected_dir_list[$x]);
4285 }
4286 reloadframe("parent",2);
4287 }
4288 }
4289 $current_dir = $dir_dest;
4290 }
4291 }
4292 break;
4293 case 71: // compress sel
4294 if (strlen($cmd_arg)){
4295 ignore_user_abort(true);
4296 ini_set("display_errors",0);
4297 ini_set("max_execution_time",0);
4298 $zipfile=false;
4299 if (strstr($cmd_arg,".tar")) $zipfile = new tar_file($cmd_arg);
4300 elseif (strstr($cmd_arg,".zip")) $zipfile = new zip_file($cmd_arg);
4301 elseif (strstr($cmd_arg,".bzip")) $zipfile = new bzip_file($cmd_arg);
4302 elseif (strstr($cmd_arg,".gzip")) $zipfile = new gzip_file($cmd_arg);
4303 if ($zipfile){
4304 $zipfile->set_options(array('basedir'=>$current_dir,'overwrite'=>1,'level'=>3));
4305 if (strlen($selected_file_list)){
4306 $selected_file_list = explode("<|*|>",$selected_file_list);
4307 if (count($selected_file_list)) {
4308 for($x=0;$x<count($selected_file_list);$x++) {
4309 $selected_file_list[$x] = trim($selected_file_list[$x]);
4310 if (strlen($selected_file_list[$x])) $zipfile->add_files($selected_file_list[$x]);
4311 }
4312 }
4313 }
4314 if (strlen($selected_dir_list)){
4315 $selected_dir_list = explode("<|*|>",$selected_dir_list);
4316 if (count($selected_dir_list)) {
4317 for($x=0;$x<count($selected_dir_list);$x++) {
4318 $selected_dir_list[$x] = trim($selected_dir_list[$x]);
4319 if (strlen($selected_dir_list[$x])) $zipfile->add_files($selected_dir_list[$x]);
4320 }
4321 }
4322 }
4323 $zipfile->create_archive();
4324 }
4325 unset($zipfile);
4326 }
4327 break;
4328 case 72: // decompress arq
4329 if (strlen($cmd_arg)){
4330 if (file_exists($current_dir.$cmd_arg)){
4331 $zipfile=false;
4332 if (strstr($cmd_arg,".zip")) zip_extract();
4333 elseif (strstr($cmd_arg,".bzip")||strstr($cmd_arg,".bz2")||strstr($cmd_arg,".tbz2")||strstr($cmd_arg,".bz")||strstr($cmd_arg,".tbz")) $zipfile = new bzip_file($cmd_arg);
4334 elseif (strstr($cmd_arg,".gzip")||strstr($cmd_arg,".gz")||strstr($cmd_arg,".tgz")) $zipfile = new gzip_file($cmd_arg);
4335 elseif (strstr($cmd_arg,".tar")) $zipfile = new tar_file($cmd_arg);
4336 if ($zipfile){
4337 $zipfile->set_options(array('basedir'=>$current_dir,'overwrite'=>1));
4338 $zipfile->extract_files();
4339 }
4340 unset($zipfile);
4341 reloadframe("parent",2);
4342 }
4343 }
4344 break;
4345 case 8: // delete arq/dir
4346 if (strlen($cmd_arg)){
4347 if (file_exists($current_dir.$cmd_arg)) total_delete($current_dir.$cmd_arg);
4348 if (is_dir($current_dir.$cmd_arg)) reloadframe("parent",2);
4349 }
4350 break;
4351 case 9: // CHMOD
4352 if((strlen($chmod_arg) == 4)&&(strlen($current_dir))){
4353 if ($chmod_arg[0]=="1") $chmod_arg = "0".$chmod_arg;
4354 else $chmod_arg = "0".substr($chmod_arg,strlen($chmod_arg)-3);
4355 $new_mod = octdec($chmod_arg);
4356 $selected_file_list = explode("<|*|>",$selected_file_list);
4357 if (count($selected_file_list)) for($x=0;$x<count($selected_file_list);$x++) @chmod($current_dir.$selected_file_list[$x],$new_mod);
4358 $selected_dir_list = explode("<|*|>",$selected_dir_list);
4359 if (count($selected_dir_list)) for($x=0;$x<count($selected_dir_list);$x++) @chmod($current_dir.$selected_dir_list[$x],$new_mod);
4360 }
4361 break;
4362 }
4363 if ($action != 10) dir_list_form();
4364 } else dir_list_form();
4365 echo "</body>\n</html>";
4366}
4367function frame2(){
4368 global $expanded_dir_list,$ec_dir;
4369 if (!isset($expanded_dir_list)) $expanded_dir_list = "";
4370 if (strlen($ec_dir)){
4371 if (strstr($expanded_dir_list,":".$ec_dir)) $expanded_dir_list = str_replace(":".$ec_dir,"",$expanded_dir_list);
4372 else $expanded_dir_list .= ":".$ec_dir;
4373 setcookie("expanded_dir_list", $expanded_dir_list , 0 , "/");
4374 }
4375 show_tree();
4376}
4377function frameset(){
4378 global $path_info,$leftFrameWidth;
4379 if (!isset($leftFrameWidth)) $leftFrameWidth = 300;
4380 html_header();
4381 echo "
4382 <frameset cols=\"".$leftFrameWidth.",*\" framespacing=\"0\">
4383 <frameset rows=\"0,*\" framespacing=\"0\" frameborder=\"0\">
4384 <frame src=\"".$path_info["basename"]."?frame=1\" name=frame1 border=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\">
4385 <frame src=\"".$path_info["basename"]."?frame=2\" name=frame2 border=\"0\" marginwidth=\"0\" marginheight=\"0\">
4386 </frameset>
4387 <frame src=\"".$path_info["basename"]."?frame=3\" name=frame3 border=\"0\" marginwidth=\"0\" marginheight=\"0\">
4388 </frameset>
4389 </html>";
4390}
4391// +--------------------------------------------------
4392// | Open Source Contributions
4393// +--------------------------------------------------
4394 /*-------------------------------------------------
4395 | TAR/GZIP/BZIP2/ZIP ARCHIVE CLASSES 2.0
4396 | By Devin Doucette
4397 | Copyright (c) 2004 Devin Doucette
4398 | Email: darksnoopy@shaw.ca
4399 +--------------------------------------------------
4400 | Email bugs/suggestions to darksnoopy@shaw.ca
4401 +--------------------------------------------------
4402 | This script has been created and released under
4403 | the GNU GPL and is free to use and redistribute
4404 | only if this copyright statement is not removed
4405 +--------------------------------------------------
4406 | Limitations:
4407 | - Only USTAR archives are officially supported for extraction, but others may work.
4408 | - Extraction of bzip2 and gzip archives is limited to compatible tar files that have
4409 | been compressed by either bzip2 or gzip. For greater support, use the functions
4410 | bzopen and gzopen respectively for bzip2 and gzip extraction.
4411 | - Zip extraction is not supported due to the wide variety of algorithms that may be
4412 | used for compression and newer features such as encryption.
4413 +--------------------------------------------------
4414 */
4415class archive
4416{
4417 function archive($name)
4418 {
4419 $this->options = array(
4420 'basedir'=>".",
4421 'name'=>$name,
4422 'prepend'=>"",
4423 'inmemory'=>0,
4424 'overwrite'=>0,
4425 'recurse'=>1,
4426 'storepaths'=>1,
4427 'level'=>3,
4428 'method'=>1,
4429 'sfx'=>"",
4430 'type'=>"",
4431 'comment'=>""
4432 );
4433 $this->files = array();
4434 $this->exclude = array();
4435 $this->storeonly = array();
4436 $this->error = array();
4437 }
4438
4439 function set_options($options)
4440 {
4441 foreach($options as $key => $value)
4442 {
4443 $this->options[$key] = $value;
4444 }
4445 if(!empty($this->options['basedir']))
4446 {
4447 $this->options['basedir'] = str_replace("\\","/",$this->options['basedir']);
4448 $this->options['basedir'] = preg_replace("/\/+/","/",$this->options['basedir']);
4449 $this->options['basedir'] = preg_replace("/\/$/","",$this->options['basedir']);
4450 }
4451 if(!empty($this->options['name']))
4452 {
4453 $this->options['name'] = str_replace("\\","/",$this->options['name']);
4454 $this->options['name'] = preg_replace("/\/+/","/",$this->options['name']);
4455 }
4456 if(!empty($this->options['prepend']))
4457 {
4458 $this->options['prepend'] = str_replace("\\","/",$this->options['prepend']);
4459 $this->options['prepend'] = preg_replace("/^(\.*\/+)+/","",$this->options['prepend']);
4460 $this->options['prepend'] = preg_replace("/\/+/","/",$this->options['prepend']);
4461 $this->options['prepend'] = preg_replace("/\/$/","",$this->options['prepend']) . "/";
4462 }
4463 }
4464
4465 function create_archive()
4466 {
4467 $this->make_list();
4468
4469 if($this->options['inmemory'] == 0)
4470 {
4471 $Pwd = getcwd();
4472 chdir($this->options['basedir']);
4473 if($this->options['overwrite'] == 0 && file_exists($this->options['name'] . ($this->options['type'] == "gzip" || $this->options['type'] == "bzip"? ".tmp" : "")))
4474 {
4475 $this->error[] = "File {$this->options['name']} already exists.";
4476 chdir($Pwd);
4477 return 0;
4478 }
4479 else if($this->archive = @fopen($this->options['name'] . ($this->options['type'] == "gzip" || $this->options['type'] == "bzip"? ".tmp" : ""),"wb+"))
4480 {
4481 chdir($Pwd);
4482 }
4483 else
4484 {
4485 $this->error[] = "Could not open {$this->options['name']} for writing.";
4486 chdir($Pwd);
4487 return 0;
4488 }
4489 }
4490 else
4491 {
4492 $this->archive = "";
4493 }
4494
4495 switch($this->options['type'])
4496 {
4497 case "zip":
4498 if(!$this->create_zip())
4499 {
4500 $this->error[] = "Could not create zip file.";
4501 return 0;
4502 }
4503 break;
4504 case "bzip":
4505 if(!$this->create_tar())
4506 {
4507 $this->error[] = "Could not create tar file.";
4508 return 0;
4509 }
4510 if(!$this->create_bzip())
4511 {
4512 $this->error[] = "Could not create bzip2 file.";
4513 return 0;
4514 }
4515 break;
4516 case "gzip":
4517 if(!$this->create_tar())
4518 {
4519 $this->error[] = "Could not create tar file.";
4520 return 0;
4521 }
4522 if(!$this->create_gzip())
4523 {
4524 $this->error[] = "Could not create gzip file.";
4525 return 0;
4526 }
4527 break;
4528 case "tar":
4529 if(!$this->create_tar())
4530 {
4531 $this->error[] = "Could not create tar file.";
4532 return 0;
4533 }
4534 }
4535
4536 if($this->options['inmemory'] == 0)
4537 {
4538 fclose($this->archive);
4539 chmod($this->options['name'],0666);
4540 if($this->options['type'] == "gzip" || $this->options['type'] == "bzip")
4541 {
4542 unlink($this->options['basedir'] . "/" . $this->options['name'] . ".tmp");
4543 }
4544 }
4545 }
4546
4547 function add_data($data)
4548 {
4549 if($this->options['inmemory'] == 0)
4550 {
4551 fwrite($this->archive,$data);
4552 }
4553 else
4554 {
4555 $this->archive .= $data;
4556 }
4557 }
4558
4559 function make_list()
4560 {
4561 if(!empty($this->exclude))
4562 {
4563 foreach($this->files as $key => $value)
4564 {
4565 foreach($this->exclude as $current)
4566 {
4567 if($value['name'] == $current['name'])
4568 {
4569 unset($this->files[$key]);
4570 }
4571 }
4572 }
4573 }
4574 if(!empty($this->storeonly))
4575 {
4576 foreach($this->files as $key => $value)
4577 {
4578 foreach($this->storeonly as $current)
4579 {
4580 if($value['name'] == $current['name'])
4581 {
4582 $this->files[$key]['method'] = 0;
4583 }
4584 }
4585 }
4586 }
4587 unset($this->exclude,$this->storeonly);
4588 }
4589
4590
4591 function add_files($list)
4592 {
4593 $temp = $this->list_files($list);
4594 foreach($temp as $current)
4595 {
4596 $this->files[] = $current;
4597 }
4598 }
4599
4600 function exclude_files($list)
4601 {
4602 $temp = $this->list_files($list);
4603 foreach($temp as $current)
4604 {
4605 $this->exclude[] = $current;
4606 }
4607 }
4608
4609 function store_files($list)
4610 {
4611 $temp = $this->list_files($list);
4612 foreach($temp as $current)
4613 {
4614 $this->storeonly[] = $current;
4615 }
4616 }
4617
4618 function list_files($list)
4619 {
4620 if(!is_array($list))
4621 {
4622 $temp = $list;
4623 $list = array($temp);
4624 unset($temp);
4625 }
4626
4627 $files = array();
4628
4629 $Pwd = getcwd();
4630 chdir($this->options['basedir']);
4631
4632 foreach($list as $current)
4633 {
4634 $current = str_replace("\\","/",$current);
4635 $current = preg_replace("/\/+/","/",$current);
4636 $current = preg_replace("/\/$/","",$current);
4637 if(strstr($current,"*"))
4638 {
4639 $regex = preg_replace("/([\\\^\$\.\[\]\|\(\)\?\+\{\}\/])/","\\\\\\1",$current);
4640 $regex = str_replace("*",".*",$regex);
4641 $dir = strstr($current,"/")? substr($current,0,strrpos($current,"/")) : ".";
4642 $temp = $this->parse_dir($dir);
4643 foreach($temp as $current2)
4644 {
4645 if(preg_match("/^{$regex}$/i",$current2['name']))
4646 {
4647 $files[] = $current2;
4648 }
4649 }
4650 unset($regex,$dir,$temp,$current);
4651 }
4652 else if(@is_dir($current))
4653 {
4654 $temp = $this->parse_dir($current);
4655 foreach($temp as $file)
4656 {
4657 $files[] = $file;
4658 }
4659 unset($temp,$file);
4660 }
4661 else if(@file_exists($current))
4662 {
4663 $files[] = array('name'=>$current,'name2'=>$this->options['prepend'] .
4664 preg_replace("/(\.+\/+)+/","",($this->options['storepaths'] == 0 && strstr($current,"/"))?
4665 substr($current,strrpos($current,"/") + 1) : $current),'type'=>0,
4666 'ext'=>substr($current,strrpos($current,".")),'stat'=>stat($current));
4667 }
4668 }
4669
4670 chdir($Pwd);
4671
4672 unset($current,$Pwd);
4673
4674 usort($files,array("archive","sort_files"));
4675
4676 return $files;
4677 }
4678
4679 function parse_dir($dirname)
4680 {
4681 if($this->options['storepaths'] == 1 && !preg_match("/^(\.+\/*)+$/",$dirname))
4682 {
4683 $files = array(array('name'=>$dirname,'name2'=>$this->options['prepend'] .
4684 preg_replace("/(\.+\/+)+/","",($this->options['storepaths'] == 0 && strstr($dirname,"/"))?
4685 substr($dirname,strrpos($dirname,"/") + 1) : $dirname),'type'=>5,'stat'=>stat($dirname)));
4686 }
4687 else
4688 {
4689 $files = array();
4690 }
4691 $dir = @opendir($dirname);
4692
4693 while($file = @readdir($dir))
4694 {
4695 if($file == "." || $file == "..")
4696 {
4697 continue;
4698 }
4699 else if(@is_dir($dirname."/".$file))
4700 {
4701 if(empty($this->options['recurse']))
4702 {
4703 continue;
4704 }
4705 $temp = $this->parse_dir($dirname."/".$file);
4706 foreach($temp as $file2)
4707 {
4708 $files[] = $file2;
4709 }
4710 }
4711 else if(@file_exists($dirname."/".$file))
4712 {
4713 $files[] = array('name'=>$dirname."/".$file,'name2'=>$this->options['prepend'] .
4714 preg_replace("/(\.+\/+)+/","",($this->options['storepaths'] == 0 && strstr($dirname."/".$file,"/"))?
4715 substr($dirname."/".$file,strrpos($dirname."/".$file,"/") + 1) : $dirname."/".$file),'type'=>0,
4716 'ext'=>substr($file,strrpos($file,".")),'stat'=>stat($dirname."/".$file));
4717 }
4718 }
4719
4720 @closedir($dir);
4721
4722 return $files;
4723 }
4724
4725 function sort_files($a,$b)
4726 {
4727 if($a['type'] != $b['type'])
4728 {
4729 return $a['type'] > $b['type']? -1 : 1;
4730 }
4731 else if($a['type'] == 5)
4732 {
4733 return strcmp(strtolower($a['name']),strtolower($b['name']));
4734 }
4735 else
4736 {
4737 if($a['ext'] != $b['ext'])
4738 {
4739 return strcmp($a['ext'],$b['ext']);
4740 }
4741 else if($a['stat'][7] != $b['stat'][7])
4742 {
4743 return $a['stat'][7] > $b['stat'][7]? -1 : 1;
4744 }
4745 else
4746 {
4747 return strcmp(strtolower($a['name']),strtolower($b['name']));
4748 }
4749 }
4750 return 0;
4751 }
4752
4753 function download_file()
4754 {
4755 if($this->options['inmemory'] == 0)
4756 {
4757 $this->error[] = "Can only use download_file() if archive is in memory. Redirect to file otherwise, it is faster.";
4758 return;
4759 }
4760 switch($this->options['type'])
4761 {
4762 case "zip":
4763 header("Content-type:application/zip");
4764 break;
4765 case "bzip":
4766 header("Content-type:application/x-compressed");
4767 break;
4768 case "gzip":
4769 header("Content-type:application/x-compressed");
4770 break;
4771 case "tar":
4772 header("Content-type:application/x-tar");
4773 }
4774 $header = "Content-disposition: attachment; filename=\"";
4775 $header .= strstr($this->options['name'],"/")? substr($this->options['name'],strrpos($this->options['name'],"/") + 1) : $this->options['name'];
4776 $header .= "\"";
4777 header($header);
4778 header("Content-length: " . strlen($this->archive));
4779 header("Content-transfer-encoding: binary");
4780 header("Cache-control: no-cache, must-revalidate, post-check=0, pre-check=0");
4781 header("Pragma: no-cache");
4782 header("Expires: 0");
4783 print($this->archive);
4784 }
4785}
4786
4787class tar_file extends archive
4788{
4789 function tar_file($name)
4790 {
4791 $this->archive($name);
4792 $this->options['type'] = "tar";
4793 }
4794
4795 function create_tar()
4796 {
4797 $Pwd = getcwd();
4798 chdir($this->options['basedir']);
4799
4800 foreach($this->files as $current)
4801 {
4802 if($current['name'] == $this->options['name'])
4803 {
4804 continue;
4805 }
4806 if(strlen($current['name2']) > 99)
4807 {
4808 $Path = substr($current['name2'],0,strpos($current['name2'],"/",strlen($current['name2']) - 100) + 1);
4809 $current['name2'] = substr($current['name2'],strlen($Path));
4810 if(strlen($Path) > 154 || strlen($current['name2']) > 99)
4811 {
4812 $this->error[] = "Could not add {$Path}{$current['name2']} to archive because the filename is too long.";
4813 continue;
4814 }
4815 }
4816 $block = pack("a100a8a8a8a12a12a8a1a100a6a2a32a32a8a8a155a12",$current['name2'],decoct($current['stat'][2]),
4817 sprintf("%6s ",decoct($current['stat'][4])),sprintf("%6s ",decoct($current['stat'][5])),
4818 sprintf("%11s ",decoct($current['stat'][7])),sprintf("%11s ",decoct($current['stat'][9])),
4819 " ",$current['type'],"","ustar","00","Unknown","Unknown","","",!empty($Path)? $Path : "","");
4820
4821 $checksum = 0;
4822 for($i = 0; $i < 512; $i++)
4823 {
4824 $checksum += ord(substr($block,$i,1));
4825 }
4826 $checksum = pack("a8",sprintf("%6s ",decoct($checksum)));
4827 $block = substr_replace($block,$checksum,148,8);
4828
4829 if($current['stat'][7] == 0)
4830 {
4831 $this->add_data($block);
4832 }
4833 else if($fp = @fopen($current['name'],"rb"))
4834 {
4835 $this->add_data($block);
4836 while($temp = fread($fp,1048576))
4837 {
4838 $this->add_data($temp);
4839 }
4840 if($current['stat'][7] % 512 > 0)
4841 {
4842 $temp = "";
4843 for($i = 0; $i < 512 - $current['stat'][7] % 512; $i++)
4844 {
4845 $temp .= "\0";
4846 }
4847 $this->add_data($temp);
4848 }
4849 fclose($fp);
4850 }
4851 else
4852 {
4853 $this->error[] = "Could not open file {$current['name']} for reading. It was not added.";
4854 }
4855 }
4856
4857 $this->add_data(pack("a512",""));
4858
4859 chdir($Pwd);
4860
4861 return 1;
4862
4863 }
4864
4865 function extract_files()
4866 {
4867 $Pwd = getcwd();
4868 chdir($this->options['basedir']);
4869
4870 if($fp = $this->open_archive())
4871 {
4872 if($this->options['inmemory'] == 1)
4873 {
4874 $this->files = array();
4875 }
4876
4877 while($block = fread($fp,512))
4878 {
4879 $temp = unpack("a100name/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100temp/a6magic/a2temp/a32temp/a32temp/a8temp/a8temp/a155prefix/a12temp",$block);
4880 $file = array(
4881 'name'=>$temp['prefix'] . $temp['name'],
4882 'stat'=>array(
4883 2=>$temp['mode'],
4884 4=>octdec($temp['uid']),
4885 5=>octdec($temp['gid']),
4886 7=>octdec($temp['size']),
4887 9=>octdec($temp['mtime']),
4888 ),
4889 'checksum'=>octdec($temp['checksum']),
4890 'type'=>$temp['type'],
4891 'magic'=>$temp['magic'],
4892 );
4893 if($file['checksum'] == 0x00000000)
4894 {
4895 break;
4896 }
4897 else if($file['magic'] != "ustar")
4898 {
4899 $this->error[] = "This script does not support extracting this type of tar file.";
4900 break;
4901 }
4902 $block = substr_replace($block," ",148,8);
4903 $checksum = 0;
4904 for($i = 0; $i < 512; $i++)
4905 {
4906 $checksum += ord(substr($block,$i,1));
4907 }
4908 if($file['checksum'] != $checksum)
4909 {
4910 $this->error[] = "Could not extract from {$this->options['name']}, it is corrupt.";
4911 }
4912
4913 if($this->options['inmemory'] == 1)
4914 {
4915 $file['data'] = fread($fp,$file['stat'][7]);
4916 fread($fp,(512 - $file['stat'][7] % 512) == 512? 0 : (512 - $file['stat'][7] % 512));
4917 unset($file['checksum'],$file['magic']);
4918 $this->files[] = $file;
4919 }
4920 else
4921 {
4922 if($file['type'] == 5)
4923 {
4924 if(!is_dir($file['name']))
4925 {
4926 mkdir($file['name'],0777);
4927 //mkdir($file['name'],$file['stat'][2]);
4928 //chown($file['name'],$file['stat'][4]);
4929 //chgrp($file['name'],$file['stat'][5]);
4930 }
4931 }
4932 else if($this->options['overwrite'] == 0 && file_exists($file['name']))
4933 {
4934 $this->error[] = "{$file['name']} already exists.";
4935 }
4936 else if($new = @fopen($file['name'],"wb"))
4937 {
4938 fwrite($new,fread($fp,$file['stat'][7]));
4939 fread($fp,(512 - $file['stat'][7] % 512) == 512? 0 : (512 - $file['stat'][7] % 512));
4940 fclose($new);
4941 chmod($file['name'],0666);
4942 //chmod($file['name'],$file['stat'][2]);
4943 //chown($file['name'],$file['stat'][4]);
4944 //chgrp($file['name'],$file['stat'][5]);
4945 }
4946 else
4947 {
4948 $this->error[] = "Could not open {$file['name']} for writing.";
4949 }
4950 }
4951 unset($file);
4952 }
4953 }
4954 else
4955 {
4956 $this->error[] = "Could not open file {$this->options['name']}";
4957 }
4958
4959 chdir($Pwd);
4960 }
4961
4962 function open_archive()
4963 {
4964 return @fopen($this->options['name'],"rb");
4965 }
4966}
4967
4968class gzip_file extends tar_file
4969{
4970 function gzip_file($name)
4971 {
4972 $this->tar_file($name);
4973 $this->options['type'] = "gzip";
4974 }
4975
4976 function create_gzip()
4977 {
4978 if($this->options['inmemory'] == 0)
4979 {
4980 $Pwd = getcwd();
4981 chdir($this->options['basedir']);
4982 if($fp = gzopen($this->options['name'],"wb{$this->options['level']}"))
4983 {
4984 fseek($this->archive,0);
4985 while($temp = fread($this->archive,1048576))
4986 {
4987 gzwrite($fp,$temp);
4988 }
4989 gzclose($fp);
4990 chdir($Pwd);
4991 }
4992 else
4993 {
4994 $this->error[] = "Could not open {$this->options['name']} for writing.";
4995 chdir($Pwd);
4996 return 0;
4997 }
4998 }
4999 else
5000 {
5001 $this->archive = gzencode($this->archive,$this->options['level']);
5002 }
5003
5004 return 1;
5005 }
5006
5007 function open_archive()
5008 {
5009 return @gzopen($this->options['name'],"rb");
5010 }
5011}
5012
5013class bzip_file extends tar_file
5014{
5015 function bzip_file($name)
5016 {
5017 $this->tar_file($name);
5018 $this->options['type'] = "bzip";
5019 }
5020
5021 function create_bzip()
5022 {
5023 if($this->options['inmemory'] == 0)
5024 {
5025 $Pwd = getcwd();
5026 chdir($this->options['basedir']);
5027 if($fp = bzopen($this->options['name'],"wb"))
5028 {
5029 fseek($this->archive,0);
5030 while($temp = fread($this->archive,1048576))
5031 {
5032 bzwrite($fp,$temp);
5033 }
5034 bzclose($fp);
5035 chdir($Pwd);
5036 }
5037 else
5038 {
5039 $this->error[] = "Could not open {$this->options['name']} for writing.";
5040 chdir($Pwd);
5041 return 0;
5042 }
5043 }
5044 else
5045 {
5046 $this->archive = bzcompress($this->archive,$this->options['level']);
5047 }
5048
5049 return 1;
5050 }
5051
5052 function open_archive()
5053 {
5054 return @bzopen($this->options['name'],"rb");
5055 }
5056}
5057
5058class zip_file extends archive
5059{
5060 function zip_file($name)
5061 {
5062 $this->archive($name);
5063 $this->options['type'] = "zip";
5064 }
5065
5066 function create_zip()
5067 {
5068 $files = 0;
5069 $offset = 0;
5070 $central = "";
5071
5072 if(!empty($this->options['sfx']))
5073 {
5074 if($fp = @fopen($this->options['sfx'],"rb"))
5075 {
5076 $temp = fread($fp,filesize($this->options['sfx']));
5077 fclose($fp);
5078 $this->add_data($temp);
5079 $offset += strlen($temp);
5080 unset($temp);
5081 }
5082 else
5083 {
5084 $this->error[] = "Could not open sfx module from {$this->options['sfx']}.";
5085 }
5086 }
5087
5088 $Pwd = getcwd();
5089 chdir($this->options['basedir']);
5090
5091 foreach($this->files as $current)
5092 {
5093 if($current['name'] == $this->options['name'])
5094 {
5095 continue;
5096 }
5097 $translate = array('Ç'=>pack("C",128),'ü'=>pack("C",129),'é'=>pack("C",130),'â'=>pack("C",131),'ä'=>pack("C",132),
5098 'à '=>pack("C",133),'å'=>pack("C",134),'ç'=>pack("C",135),'ê'=>pack("C",136),'ë'=>pack("C",137),
5099 'è'=>pack("C",138),'ï'=>pack("C",139),'î'=>pack("C",140),'ì'=>pack("C",141),'Ä'=>pack("C",142),
5100 'Å'=>pack("C",143),'É'=>pack("C",144),'æ'=>pack("C",145),'Æ'=>pack("C",146),'ô'=>pack("C",147),
5101 'ö'=>pack("C",148),'ò'=>pack("C",149),'û'=>pack("C",150),'ù'=>pack("C",151),'_'=>pack("C",152),
5102 'Ö'=>pack("C",153),'Ü'=>pack("C",154),'£'=>pack("C",156),'¥'=>pack("C",157),'_'=>pack("C",158),
5103 'Æ’'=>pack("C",159),'á'=>pack("C",160),'Ã'=>pack("C",161),'ó'=>pack("C",162),'ú'=>pack("C",163),
5104 'ñ'=>pack("C",164),'Ñ'=>pack("C",165));
5105 $current['name2'] = strtr($current['name2'],$translate);
5106
5107 $timedate = explode(" ",date("Y n j G i s",$current['stat'][9]));
5108 $timedate = ($timedate[0] - 1980 << 25) | ($timedate[1] << 21) | ($timedate[2] << 16) |
5109 ($timedate[3] << 11) | ($timedate[4] << 5) | ($timedate[5]);
5110
5111 $block = pack("VvvvV",0x04034b50,0x000A,0x0000,(isset($current['method']) || $this->options['method'] == 0)? 0x0000 : 0x0008,$timedate);
5112
5113 if($current['stat'][7] == 0 && $current['type'] == 5)
5114 {
5115 $block .= pack("VVVvv",0x00000000,0x00000000,0x00000000,strlen($current['name2']) + 1,0x0000);
5116 $block .= $current['name2'] . "/";
5117 $this->add_data($block);
5118 $central .= pack("VvvvvVVVVvvvvvVV",0x02014b50,0x0014,$this->options['method'] == 0? 0x0000 : 0x000A,0x0000,
5119 (isset($current['method']) || $this->options['method'] == 0)? 0x0000 : 0x0008,$timedate,
5120 0x00000000,0x00000000,0x00000000,strlen($current['name2']) + 1,0x0000,0x0000,0x0000,0x0000,$current['type'] == 5? 0x00000010 : 0x00000000,$offset);
5121 $central .= $current['name2'] . "/";
5122 $files++;
5123 $offset += (31 + strlen($current['name2']));
5124 }
5125 else if($current['stat'][7] == 0)
5126 {
5127 $block .= pack("VVVvv",0x00000000,0x00000000,0x00000000,strlen($current['name2']),0x0000);
5128 $block .= $current['name2'];
5129 $this->add_data($block);
5130 $central .= pack("VvvvvVVVVvvvvvVV",0x02014b50,0x0014,$this->options['method'] == 0? 0x0000 : 0x000A,0x0000,
5131 (isset($current['method']) || $this->options['method'] == 0)? 0x0000 : 0x0008,$timedate,
5132 0x00000000,0x00000000,0x00000000,strlen($current['name2']),0x0000,0x0000,0x0000,0x0000,$current['type'] == 5? 0x00000010 : 0x00000000,$offset);
5133 $central .= $current['name2'];
5134 $files++;
5135 $offset += (30 + strlen($current['name2']));
5136 }
5137 else if($fp = @fopen($current['name'],"rb"))
5138 {
5139 $temp = fread($fp,$current['stat'][7]);
5140 fclose($fp);
5141 $crc32 = crc32($temp);
5142 if(!isset($current['method']) && $this->options['method'] == 1)
5143 {
5144 $temp = gzcompress($temp,$this->options['level']);
5145 $size = strlen($temp) - 6;
5146 $temp = substr($temp,2,$size);
5147 }
5148 else
5149 {
5150 $size = strlen($temp);
5151 }
5152 $block .= pack("VVVvv",$crc32,$size,$current['stat'][7],strlen($current['name2']),0x0000);
5153 $block .= $current['name2'];
5154 $this->add_data($block);
5155 $this->add_data($temp);
5156 unset($temp);
5157 $central .= pack("VvvvvVVVVvvvvvVV",0x02014b50,0x0014,$this->options['method'] == 0? 0x0000 : 0x000A,0x0000,
5158 (isset($current['method']) || $this->options['method'] == 0)? 0x0000 : 0x0008,$timedate,
5159 $crc32,$size,$current['stat'][7],strlen($current['name2']),0x0000,0x0000,0x0000,0x0000,0x00000000,$offset);
5160 $central .= $current['name2'];
5161 $files++;
5162 $offset += (30 + strlen($current['name2']) + $size);
5163 }
5164 else
5165 {
5166 $this->error[] = "Could not open file {$current['name']} for reading. It was not added.";
5167 }
5168 }
5169
5170 $this->add_data($central);
5171
5172 $this->add_data(pack("VvvvvVVv",0x06054b50,0x0000,0x0000,$files,$files,strlen($central),$offset,
5173 !empty($this->options['comment'])? strlen($this->options['comment']) : 0x0000));
5174
5175 if(!empty($this->options['comment']))
5176 {
5177 $this->add_data($this->options['comment']);
5178 }
5179
5180 chdir($Pwd);
5181
5182 return 1;
5183 }
5184}
5185// +--------------------------------------------------
5186// | THE END
5187// +--------------------------------------------------
5188
5189?>