-
Notifications
You must be signed in to change notification settings - Fork 0
/
oldindex.php
3075 lines (2795 loc) · 101 KB
/
oldindex.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/***************************************************************************
*
* Encode Explorer
*
* Author / Autor : Marek Rei (marek ät siineiolekala dot net)
*
* Version / Versioon : 6.3
*
* Last change / Viimati muudetud: 23.09.2011
*
* Homepage / Koduleht: encode-explorer.siineiolekala.net
*
*
* NB!: Comments are in english.
* Comments needed for configuring are in both estonian and english.
* If you change anything, save with UTF-8! Otherwise you may
* encounter problems, especially when displaying images.
*
* NB!: Kommentaarid on inglise keeles.
* Seadistamiseks vajalikud kommentaarid on eesti ja inglise keeles.
* Kui midagi muudate, salvestage UTF-8 formaati! Vastasel juhul
* võivad probleemid tekkida, eriti piltide kuvamisega.
*
***************************************************************************/
/***************************************************************************
*
* This is free software and it's distributed under GPL Licence.
*
* Encode Explorer is written in the hopes that it can be useful to people.
* It has NO WARRANTY and when you use it, the author is not responsible
* for how it works (or doesn't).
*
* The icon images are designed by Mark James (http://www.famfamfam.com)
* and distributed under the Creative Commons Attribution 3.0 License.
*
***************************************************************************/
/***************************************************************************/
/* SIIN ON SEADED */
/* */
/* HERE ARE THE SETTINGS FOR CONFIGURATION */
/***************************************************************************/
//
// Algväärtustame muutujad. Ära muuda.
//
// Initialising variables. Don't change these.
//
$_CONFIG = array();
$_ERROR = "";
$_START_TIME = microtime(TRUE);
/*
* GENERAL SETTINGS
*/
//
// Vali sobiv keel. Allpool on näha võimalikud valikud. Vaikimisi: en
//
// Choose a language. See below in the language section for options.
// Default: $_CONFIG['lang'] = "en";
//
$_CONFIG['lang'] = "en";
//
// Kuva pildifailidele eelvaated. Vaikimisi: true
// Levinumad pildifailide tüübid on toetatud (jpeg, png, gif).
// Pdf failid on samuti toetatud kuid ImageMagick peab olema paigaldatud.
//
// Display thumbnails when hovering over image entries in the list.
// Common image types are supported (jpeg, png, gif).
// Pdf files are also supported but require ImageMagick to be installed.
// Default: $_CONFIG['thumbnails'] = true;
//
$_CONFIG['thumbnails'] = true;
//
// Eelvaadete maksimumsuurused pikslites. Vaikimisi: 200, 200
//
// Maximum sizes of the thumbnails.
// Default: $_CONFIG['thumbnails_width'] = 200;
// Default: $_CONFIG['thumbnails_height'] = 200;
//
$_CONFIG['thumbnails_width'] = 300;
$_CONFIG['thumbnails_height'] = 300;
//
// Mobillidele mõeldud kasutajaliides. true/false
// Vaikimisi: true
//
// Mobile interface enabled. true/false
// Default: $_CONFIG['mobile_enabled'] = true;
//
$_CONFIG['mobile_enabled'] = true;
//
// Mobiilidele mõeldud kasutajaliides avaneb automaatselt. true/false
// Vaikimisi: false
//
// Mobile interface as the default setting. true/false
// Default: $_CONFIG['mobile_default'] = false;
//
$_CONFIG['mobile_default'] = false;
/*
* USER INTERFACE
*/
//
// Kas failid avatakse uues aknas? true/false
//
// Will the files be opened in a new window? true/false
// Default: $_CONFIG['open_in_new_window'] = false;
//
$_CONFIG['open_in_new_window'] = false;
//
// Kui sügavalt alamkataloogidest suurust näitav script faile otsib?
// Määra see nullist suuremaks, kui soovid kogu kasutatud ruumi suurust kuvada.
// Vaikimisi: 0
//
// How deep in subfolders will the script search for files?
// Set it larger than 0 to display the total used space.
// Default: $_CONFIG['calculate_space_level'] = 0;
//
$_CONFIG['calculate_space_level'] = 0;
//
// Kas kuvatakse lehe päis? true/false
// Vaikimisi: true;
//
// Will the page header be displayed? 0=no, 1=yes.
// Default: $_CONFIG['show_top'] = true;
//
$_CONFIG['show_top'] = true;
//
// Veebilehe pealkiri
//
// The title for the page
// Default: $_CONFIG['main_title'] = "Encode Explorer";
//
$_CONFIG['main_title'] = "Library Scan File Store";
//
// Pealkirjad, mida kuvatakse lehe päises, suvalises järjekorras.
//
// The secondary page titles, randomly selected and displayed under the main header.
// For example: $_CONFIG['secondary_titles'] = array("Secondary title", "“Secondary title with quotes”");
// Default: $_CONFIG['secondary_titles'] = array();
//
$_CONFIG['secondary_titles'] = array();
//
// Kuva asukoht kataloogipuus. true/false
// Vaikimisi: true
//
// Display breadcrumbs (relative path of the location).
// Default: $_CONFIG['show_path'] = true;
//
$_CONFIG['show_path'] = true;
//
// Kuva lehe laadimise aega. true/false
// Vaikimisi: false
//
// Display the time it took to load the page.
// Default: $_CONFIG['show_load_time'] = true;
//
$_CONFIG['show_load_time'] = true;
//
// Formaat faili muutmise aja kuvamiseks.
//
// The time format for the "last changed" column.
// Default: $_CONFIG['time_format'] = "d.m.y H:i:s";
//
$_CONFIG['time_format'] = "d.m.y H:i:s";
//
// Kodeering, mida lehel kasutatakse.
// Tuleb panna sobivaks, kui täpitähtedega tekib probleeme. Vaikimisi: UTF-8
//
// Charset. Use the one that suits for you.
// Default: $_CONFIG['charset'] = "UTF-8";
//
$_CONFIG['charset'] = "UTF-8";
/*
* PERMISSIONS
*/
//
// Kaustade varjamine. Kaustade nimed mida lehel ei kuvata.
// Näiteks: CONFIG['hidden_dirs'] = array("ikoonid", "kaustanimi", "teinekaust");
//
// The array of folder names that will be hidden from the list.
// Default: $_CONFIG['hidden_dirs'] = array();
//
$_CONFIG['hidden_dirs'] = array();
//
// Failide varjamine. Failide nimed mida lehel ei kuvata.
// NB! Märgitud nimega failid ja kaustad varjatakse kõigis alamkaustades.
//
// Filenames that will be hidden from the list.
// Default: $_CONFIG['hidden_files'] = array(".ftpquota", "index.php", "index.php~", ".htaccess", ".htpasswd");
//
$_CONFIG['hidden_files'] = array(".ftpquota", "index.php", "index.php~", ".htaccess", ".htpasswd");
//
// Määra kas lehe nägemiseks peab sisse logima.
// 'false' tähendab, et leht on avalik
// 'true' tähendab, et kasutaja peab sisestama parooli (vaata allpool).
//
// Whether authentication is required to see the contents of the page.
// If set to false, the page is public.
// If set to true, you should specify some users as well (see below).
// Important: This only prevents people from seeing the list.
// They will still be able to access the files with a direct link.
// Default: $_CONFIG['require_login'] = false;
//
$_CONFIG['require_login'] = false;
//
// Kasutajanimed ja paroolid, lehele ligipääsu piiramiseks.
// Näiteks: $_CONFIG['users'] = array(array("user1", "pass1"), array("user2", "pass2"));
// Võimalik lehte kaitsta ka ainult üldise parooliga.
// Näiteks: $_CONFIG['users'] = array(array(null, "pass"));
// Kui ühtegi kasutajat märgitud ei ole, siis parooli ei küsita.
//
// Usernames and passwords for restricting access to the page.
// The format is: array(username, password, status)
// Status can be either "user" or "admin". User can read the page, admin can upload and delete.
// For example: $_CONFIG['users'] = array(array("username1", "password1", "user"), array("username2", "password2", "admin"));
// You can also keep require_login=false and specify an admin.
// That way everyone can see the page but username and password are needed for uploading.
// For example: $_CONFIG['users'] = array(array("username", "password", "admin"));
// Default: $_CONFIG['users'] = array();
//
$_CONFIG['users'] = array();
//
// Seaded uploadimiseks, uute kaustade loomiseks ja kustutamiseks.
// Valikud kehtivad ainult andmin kontode jaoks, tavakasutajatel pole need kunagi lubatud.
//
// Permissions for uploading, creating new directories and deleting.
// They only apply to admin accounts, regular users can never perform these operations.
// Default:
// $_CONFIG['upload_enable'] = true;
// $_CONFIG['newdir_enable'] = true;
// $_CONFIG['delete_enable'] = false;
//
$_CONFIG['upload_enable'] = true;
$_CONFIG['newdir_enable'] = true;
$_CONFIG['delete_enable'] = false;
/*
* UPLOADING
*/
//
// Nimekiri kaustadest kuhu on lubatud uploadida ja uusi kaustu luua.
// Näiteks: $_CONFIG['upload_dirs'] = array("./myuploaddir1/", "./mydir/upload2/");
// Kausta asukoht peab olema määratud põhikausta suhtes, algama "./" ja lõppema "/" märgiga.
// Kõik kaustad märgitute all on automaatselt kaasa arvatud.
// Kui nimekiri on tühi (vaikimisi), siis on kõikidesse kaustadesse failide lisamine lubatud.
//
// List of directories where users are allowed to upload.
// For example: $_CONFIG['upload_dirs'] = array("./myuploaddir1/", "./mydir/upload2/");
// The path should be relative to the main directory, start with "./" and end with "/".
// All the directories below the marked ones are automatically included as well.
// If the list is empty (default), all directories are open for uploads, given that the password has been set.
// Default: $_CONFIG['upload_dirs'] = array();
//
$_CONFIG['upload_dirs'] = array();
//
// MIME failitüübid mis on uploadimiseks lubatud.
// Näiteks: $_CONFIG['upload_allow_type'] = array("image/png", "image/gif", "image/jpeg");
//
// MIME type that are allowed to be uploaded.
// For example, to only allow uploading of common image types, you could use:
// $_CONFIG['upload_allow_type'] = array("image/png", "image/gif", "image/jpeg");
// Default: $_CONFIG['upload_allow_type'] = array();
//
$_CONFIG['upload_allow_type'] = array();
//
// Uploadimiseks keelatud faililaiendid
//
// File extensions that are not allowed for uploading.
// For example: $_CONFIG['upload_reject_extension'] = array("php", "html", "htm");
// Default: $_CONFIG['upload_reject_extension'] = array();
//
$_CONFIG['upload_reject_extension'] = array("php");
/*
* LOGGING
*/
//
// Failide lisamisest teatamise e-maili aadress.
// Kui määratud, siis saadetakse sellele aadressile e-mail iga kord kui keegi lisab uue faili või kausta.
//
// Upload notification e-mail.
// If set, an e-mail will be sent every time someone uploads a file or creates a new dirctory.
// Default: $_CONFIG['upload_email'] = "";
//
$_CONFIG['upload_email'] = "";
//
// Logifail. Kui määratud, siis kirjutatakse kaustade ja failide avamise kohta logi faili.
// Näiteks: $_CONFIG['log_file'] = ".log.txt";
//
// Logfile name. If set, a log line will be written there whenever a directory or file is accessed.
// For example: $_CONFIG['log_file'] = ".log.txt";
// Default: $_CONFIG['log_file'] = "";
//
$_CONFIG['log_file'] = "";
/*
* SYSTEM
*/
//
// Algkataloogi suhteline aadress. Reeglina ei ole vaja muuta.
// Kasutage ainult suhtelisi alamkatalooge!
// Vaikimisi: .
//
// The starting directory. Normally no need to change this.
// Use only relative subdirectories!
// For example: $_CONFIG['starting_dir'] = "./mysubdir/";
// Default: $_CONFIG['starting_dir'] = ".";
//
$_CONFIG['starting_dir'] = ".";
//
// Asukoht serveris. Tavaliselt ei ole vaja siia midagi panna kuna script leiab ise õige asukoha.
// Mõnes serveris tuleb piirangute tõttu see aadress ise teistsuguseks määrata.
// See fail peaks asuma serveris aadressil [AADRESS]/index.php
// Aadress võib olla näiteks "/www/data/www.minudomeen.ee/minunimi"
//
// Location in the server. Usually this does not have to be set manually.
// Default: $_CONFIG['basedir'] = "";
//
$_CONFIG['basedir'] = "";
//
// Suured failid. Kui sul on failiruumis väga suured failid (>4GB), siis on see vajalik
// faili suuruse õigeks määramiseks. Vaikimisi: false
//
// Big files. If you have some very big files (>4GB), enable this for correct
// file size calculation.
// Default: $_CONFIG['large_files'] = false;
//
$_CONFIG['large_files'] = false;
//
// Küpsise/sessiooni nimi.
// Anna sellele originaalne väärtus kui soovid samas ruumis kasutada mitut koopiat
// ning ei taha, et toimuks andmete jagamist nende vahel.
// Väärtus tohib sisaldada ainult tähti ja numbreid. Näiteks: MYSESSION1
//
// The session name, which is used as a cookie name.
// Change this to something original if you have multiple copies in the same space
// and wish to keep their authentication separate.
// The value can contain only letters and numbers. For example: MYSESSION1
// More info at: http://www.php.net/manual/en/function.session-name.php
// Default: $_CONFIG['session_name'] = "";
//
$_CONFIG['session_name'] = "";
/***************************************************************************/
/* TÕLKED */
/* */
/* TRANSLATIONS. */
/***************************************************************************/
$_TRANSLATIONS = array();
// Albanian
$_TRANSLATIONS["al"] = array(
"file_name" => "Emri Skedarit",
"size" => "Madhësia",
"last_changed" => "Ndryshuar",
"total_used_space" => "Memorija e përdorur total",
"free_space" => "Memorija e lirë",
"password" => "Fjalëkalimi",
"upload" => "Ngarko skedarë",
"failed_upload" => "Ngarkimi i skedarit dështoi!",
"failed_move" => "Lëvizja e skedarit në udhëzuesin e saktë deshtoi!",
"wrong_password" => "Fjalëkalimi i Gabuar!!",
"make_directory" => "New dir",
"new_dir_failed" => "Failed to create directory",
"chmod_dir_failed" => "Failed to change directory rights",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Location",
"root" => "Root"
);
// Dutch
$_TRANSLATIONS["nl"] = array(
"file_name" => "Bestandsnaam",
"size" => "Omvang",
"last_changed" => "Laatst gewijzigd",
"total_used_space" => "Totaal gebruikte ruimte",
"free_space" => "Beschikbaar",
"password" => "Wachtwoord",
"upload" => "Upload",
"failed_upload" => "Fout bij uploaden van bestand!",
"failed_move" => "Fout bij het verplaatsen van tijdelijk uploadbestand!",
"wrong_password" => "Fout wachtwoord!",
"make_directory" => "Nieuwe folder",
"new_dir_failed" => "Fout bij aanmaken folder!",
"chmod_dir_failed" => "Rechten konden niet gewijzigd worden!",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Location",
"root" => "Root"
);
// English
$_TRANSLATIONS["en"] = array(
"file_name" => "File name",
"size" => "Size",
"last_changed" => "Last changed",
"total_used_space" => "Total used space",
"free_space" => "Free space",
"password" => "Password",
"upload" => "Upload",
"failed_upload" => "Failed to upload the file!",
"failed_move" => "Failed to move the file into the right directory!",
"wrong_password" => "Wrong password",
"make_directory" => "New dir",
"new_dir_failed" => "Failed to create directory",
"chmod_dir_failed" => "Failed to change directory rights",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Location",
"root" => "Root",
"log_file_permission_error" => "The script does not have permissions to write the log file.",
"upload_not_allowed" => "The script configuration does not allow uploading in this directory.",
"upload_dir_not_writable" => "This directory does not have write permissions.",
"mobile_version" => "Mobile view",
"standard_version" => "Standard view",
"page_load_time" => "Page loaded in %.2f ms",
"wrong_pass" => "Wrong username or password",
"username" => "Username",
"log_in" => "Log in",
"upload_type_not_allowed" => "This file type is not allowed for uploading.",
"del" => "Del", // short for Delete
"log_out" => "Log out"
);
// Estonian
$_TRANSLATIONS["et"] = array(
"file_name" => "Faili nimi",
"size" => "Suurus",
"last_changed" => "Viimati muudetud",
"total_used_space" => "Kokku kasutatud",
"free_space" => "Vaba ruumi",
"password" => "Parool",
"upload" => "Uploadi",
"failed_upload" => "Faili ei õnnestunud serverisse laadida!",
"failed_move" => "Faili ei õnnestunud õigesse kausta liigutada!",
"wrong_password" => "Vale parool",
"make_directory" => "Uus kaust",
"new_dir_failed" => "Kausta loomine ebaõnnestus",
"chmod_dir_failed" => "Kausta õiguste muutmine ebaõnnestus",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Asukoht",
"root" => "Peakaust"
);
// Finnish
$_TRANSLATIONS["fi"] = array(
"file_name" => "Tiedoston nimi",
"size" => "Koko",
"last_changed" => "Muokattu",
"total_used_space" => "Yhteenlaskettu koko",
"free_space" => "Vapaa tila",
"password" => "Salasana",
"upload" => "Lisää tiedosto",
"failed_upload" => "Tiedoston lisäys epäonnistui!",
"failed_move" => "Tiedoston siirto kansioon epäonnistui!",
"wrong_password" => "Väärä salasana",
"make_directory" => "Uusi kansio",
"new_dir_failed" => "Uuden kansion luonti epäonnistui!",
"chmod_dir_failed" => "Kansion käyttäjäoikeuksien muuttaminen epäonnistui!",
"unable_to_read_dir" => "Kansion sisältöä ei voi lukea.",
"location" => "Paikka",
"root" => "Juurihakemisto",
"log_file_permission_error" => "Ohjelman ei ole sallittu kirjoittaa lokiin.",
"upload_not_allowed" => "Ohjelman asetukset eivät salli tiedoston lisäämistä tähän kansioon.",
"upload_dir_not_writable" => "Kansioon tallentaminen epäonnistui.",
"mobile_version" => "Mobiilinäkymä",
"standard_version" => "Tavallinen näkymä",
"page_load_time" => "Sivu ladattu %.2f ms:ssa",
"wrong_pass" => "Väärä käyttäjätunnus tai salasana",
"username" => "Käyttäjätunnus",
"log_in" => "Kirjaudu sisään",
"log_out" => "Kirjaudu ulos",
"upload_type_not_allowed" => "Tämän tiedostotyypin lisääminen on estetty.",
"del" => "Poista"
);
// French
$_TRANSLATIONS["fr"] = array(
"file_name" => "Nom de fichier",
"size" => "Taille",
"last_changed" => "Ajouté",
"total_used_space" => "Espace total utilisé",
"free_space" => "Espace libre",
"password" => "Mot de passe",
"upload" => "Envoyer un fichier",
"failed_upload" => "Erreur lors de l'envoi",
"failed_move" => "Erreur lors du changement de dossier",
"wrong_password" => "Mauvais mot de passe",
"make_directory" => "Nouveau dossier",
"new_dir_failed" => "Erreur lors de la création du dossier",
"chmod_dir_failed" => "Impossible de changer les permissions du dossier",
"unable_to_read_dir" => "Impossible de lire le dossier",
"location" => "Localisation",
"root" => "Racine"
);
// German
$_TRANSLATIONS["de"] = array(
"file_name" => "Dateiname",
"size" => "Größe",
"last_changed" => "Letzte Änderung",
"total_used_space" => "Benutzter Speicher",
"free_space" => "Freier Speicher",
"password" => "Passwort",
"upload" => "Upload",
"failed_upload" => "Upload ist fehlgeschlagen!",
"failed_move" => "Verschieben der Datei ist fehlgeschlagen!",
"wrong_password" => "Falsches Passwort",
"make_directory" => "Neuer Ordner",
"new_dir_failed" => "Erstellen des Ordners fehlgeschlagen",
"chmod_dir_failed" => "Veränderung der Zugriffsrechte des Ordners fehlgeschlagen",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Location",
"root" => "Root"
);
// Greek
$_TRANSLATIONS["el"] = array(
"file_name" => "Όνομα αρχείου",
"size" => "Μέγεθος",
"last_changed" => "Τροποποιημένο",
"total_used_space" => "Χρησιμοποιημένος χώρος",
"free_space" => "Ελεύθερος χώρος",
"password" => "Εισάγεται κωδικό",
"upload" => "Φόρτωση",
"failed_upload" => "Αποτυχία φόρτωσης αρχείου!",
"failed_move" => "Αποτυχία μεταφοράς αρχείου στον κατάλληλο φάκελο!",
"wrong_password" => "Λάθος κωδικός",
"make_directory" => "Δημιουργία νέου φακέλου",
"new_dir_failed" => "Αποτυχία δημιουργίας νέου φακέλου",
"chmod_dir_failed" => "Αποτυχία τροποποίησης δικαιωμάτων φακέλου",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Location",
"root" => "Root"
);
// Hungarian
$_TRANSLATIONS["hu"] = array(
"file_name" => "Fájl név",
"size" => "Méret",
"last_changed" => "Utolsó módosítás",
"total_used_space" => "Összes elfoglalt terület",
"free_space" => "Szabad terület",
"password" => "Jelszó",
"upload" => "Feltöltés",
"failed_upload" => "A fájl feltöltése nem sikerült!",
"failed_move" => "A fájl mozgatása nem sikerült!",
"wrong_password" => "Hibás jelszó",
"make_directory" => "Új mappa",
"new_dir_failed" => "A mappa létrehozása nem sikerült",
"chmod_dir_failed" => "A mappa jogainak megváltoztatása nem sikerült",
"unable_to_read_dir" => "A mappa nem olvasható",
"location" => "Hely",
"root" => "Gyökér",
"log_file_permission_error" => "A log fájl írása jogosultsági okok miatt nem sikerült.",
"upload_not_allowed" => "Ebbe a mappába a feltöltés nem engedélyezett.",
"upload_dir_not_writable" => "A mappa nem írható.",
"mobile_version" => "Mobil nézet",
"standard_version" => "Web nézet",
"page_load_time" => "Letöltési id? %.2f ms",
"wrong_pass" => "Rossz felhasználónév vagy jelszó",
"username" => "Felhasználónév",
"log_in" => "Belépés",
"upload_type_not_allowed" => "A fájltípus feltöltése tiltott."
);
// Italian
$_TRANSLATIONS["it"] = array(
"file_name" => "Nome file",
"size" => "Dimensione",
"last_changed" => "Ultima modifica",
"total_used_space" => "Totale spazio usato",
"free_space" => "Spazio disponibile",
"password" => "Parola chiave",
"upload" => "Caricamento file",
"failed_upload" => "Caricamento del file fallito!",
"failed_move" => "Spostamento del file nella cartella fallito!",
"wrong_password" => "Password sbagliata",
"make_directory" => "Nuova cartella",
"new_dir_failed" => "Creazione cartella fallita!",
"chmod_dir_failed" => "Modifica dei permessi della cartella fallita!",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Location",
"root" => "Root"
);
// Norwegian
$_TRANSLATIONS["no"] = array(
"file_name" => "Navn",
"size" => "Størrelse",
"last_changed" => "Endret",
"total_used_space" => "Brukt plass",
"free_space" => "Resterende plass",
"password" => "Passord",
"upload" => "Last opp",
"failed_upload" => "Opplasting gikk galt",
"failed_move" => "Kunne ikke flytte objektet",
"wrong_password" => "Feil passord",
"make_directory" => "Ny mappe",
"new_dir_failed" => "Kunne ikke lage ny mappe",
"chmod_dir_failed" => "Kunne ikke endre rettigheter",
"unable_to_read_dir" => "Kunne ikke lese mappen",
"location" => "Område",
"root" => "Rot"
);
//Polish
$_TRANSLATIONS["pl"] = array(
"file_name" => "Nazwa Pliku",
"size" => "Rozmiar",
"last_changed" => "Data Zmiany",
"total_used_space" => "Total used space",
"free_space" => "Wolnego obszaru",
"password" => "Haslo",
"upload" => "Przeslij",
"failed_upload" => "Przeslanie pliku nie powiodlo sie",
"failed_move" => "Przenosienie pliku nie powidlo sie!",
"wrong_password" => "Niepoprawne haslo",
"make_directory" => "Nowy folder",
"new_dir_failed" => "Blad podczas tworzenia nowego foldera",
"chmod_dir_failed" => "Blad podczas zmiany uprawnienia foldera",
"unable_to_read_dir" => "Odczytanie foldera nie powiodlo sie",
"location" => "Miejsce",
"root" => "Root",
"log_file_permission_error" => "Brak uprawnien aby utowrzyc dziennik dzialan.",
"upload_not_allowed" => "Konfiguracja zabrania przeslanie pliku do tego foldera.",
"upload_dir_not_writable" => "Nie mozna zapisac pliku do tego foldera.",
"mobile_version" => "Wersja Mobile",
"standard_version" => "Widok standardowy",
"page_load_time" => "Zaladowano w %.2f ms",
"wrong_pass" => "Nie poprawna nazwa uzytkownika lub hasla",
"username" => "Uzytkownik",
"log_in" => "Zaloguj sie",
"upload_type_not_allowed" => "Ten rodazaj pliku jest zabrioniony."
);
// Portuguese (Brazil)
$_TRANSLATIONS["pt_BR"] = array(
"file_name" => "Nome do arquivo",
"size" => "Tamanho",
"last_changed" => "Modificado em",
"total_used_space" => "Total de espaço utilizado",
"free_space" => "Espaço livre",
"password" => "Senha",
"upload" => "Enviar",
"failed_upload" => "Falha ao enviar o arquivo!",
"failed_move" => "Falha ao mover o arquivo para o diretório correto!",
"wrong_password" => "Senha errada",
"make_directory" => "Nova pasta",
"new_dir_failed" => "Falha ao criar diretório",
"chmod_dir_failed" => "Falha ao mudar os privilégios do diretório",
"unable_to_read_dir" => "Não foi possível ler o diretório",
"location" => "Localização",
"root" => "Raíz",
"log_file_permission_error" => "O script não tem permissão para escrever o arquivo de log.",
"upload_not_allowed" => "A configuração do script não permite envios neste diretório.",
"upload_dir_not_writable" => "Não há permissão para escrita neste diretório.",
"mobile_version" => "Versão Móvel",
"standard_version" => "Versão Padrão",
"page_load_time" => "Página carregada em %.2f ms",
"wrong_pass" => "Nome de usuário ou senha errados",
"username" => "Nome de Usuário",
"log_in" => "Log in",
"upload_type_not_allowed" => "Não é permitido envio de arquivos deste tipo."
);
// Romanian
$_TRANSLATIONS["ro"] = array(
"file_name" => "Nume fisier",
"size" => "Marime",
"last_changed" => "Ultima modificare",
"total_used_space" => "Spatiu total utilizat",
"free_space" => "Spatiu disponibil",
"password" => "Parola",
"upload" => "Incarcare fisier",
"failed_upload" => "Incarcarea fisierului a esuat!",
"failed_move" => "Mutarea fisierului in alt director a esuat!",
"wrong_password" => "Parol gresita!",
"make_directory" => "Director nou",
"new_dir_failed" => "Eroare la crearea directorului",
"chmod_dir_failed" => "Eroare la modificarea drepturilor pe director",
"unable_to_read_dir" => "Nu s-a putut citi directorul",
"location" => "Locatie",
"root" => "Root"
);
// Russian
$_TRANSLATIONS["ru"] = array(
"file_name" => "Имя файла",
"size" => "Размер",
"last_changed" => "Последнее изменение",
"total_used_space" => "Всего использовано",
"free_space" => "Свободно",
"password" => "Пароль",
"upload" => "Загрузка",
"failed_upload" => "Не удалось загрузить файл!",
"failed_move" => "Не удалось переместить файл в нужную папку!",
"wrong_password" => "Неверный пароль",
"make_directory" => "Новая папка",
"new_dir_failed" => "Не удалось создать папку",
"chmod_dir_failed" => "Не удалось изменить права доступа к папке",
"unable_to_read_dir" => "Не возможно прочитать папку",
"location" => "Расположение",
"root" => "Корневая папка",
"log_file_permission_error" => "Скрипт не имеет прав для записи лога файла.",
"upload_not_allowed" => "Загрузка в эту папку запрещена в настройках скрипта",
"upload_dir_not_writable" => "В эту папку запрещена запись",
"mobile_version" => "Мобильный вид",
"standard_version" => "Обычный вид",
"page_load_time" => "Страница загружена за %.2f мс.",
"wrong_pass" => "Неверное имя пользователя или пароль",
"username" => "Имя пользователя",
"log_in" => "Войти",
"upload_type_not_allowed" => "Этот тип файла запрещено загружать"
);
// Slovensky
$_TRANSLATIONS["sk"] = array(
"file_name" => "Meno súboru",
"size" => "Ve?kos?",
"last_changed" => "Posledná zmena",
"total_used_space" => "Použité miesto celkom",
"free_space" => "Vo?né miesto",
"password" => "Heslo",
"upload" => "Nahranie súborov",
"failed_upload" => "Chyba nahrávania súboru!",
"failed_move" => "Nepodarilo sa presunú? súbor do vybraného adresára!",
"wrong_password" => "Neplatné heslo!",
"make_directory" => "Nový prie?inok",
"new_dir_failed" => "Nepodarilo sa vytvori? adresár!",
"chmod_dir_failed" => "Nepodarilo sa zmeni? práva adresára!",
"unable_to_read_dir" => "Nemôžem ?íta? adresár",
"location" => "Umiestnenie",
"root" => "Domov"
);
// Spanish
$_TRANSLATIONS["es"] = array(
"file_name" => "Nombre de archivo",
"size" => "Medida",
"last_changed" => "Ultima modificación",
"total_used_space" => "Total espacio usado",
"free_space" => "Espacio libre",
"password" => "Contraseña",
"upload" => "Subir el archivo",
"failed_upload" => "Error al subir el archivo!",
"failed_move" => "Error al mover el archivo al directorio seleccionado!",
"wrong_password" => "Contraseña incorrecta",
"make_directory" => "New dir",
"new_dir_failed" => "Failed to create directory",
"chmod_dir_failed" => "Failed to change directory rights",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Location",
"root" => "Root"
);
// Swedish
$_TRANSLATIONS["sv"] = array(
"file_name" => "Filnamn",
"size" => "Storlek",
"last_changed" => "Senast andrad",
"total_used_space" => "Totalt upptaget utrymme",
"free_space" => "Ledigt utrymme",
"password" => "Losenord",
"upload" => "Ladda upp",
"failed_upload" => "Fel vid uppladdning av fil!",
"failed_move" => "Fel vid flytt av fil till mapp!",
"wrong_password" => "Fel losenord",
"make_directory" => "Ny mapp",
"new_dir_failed" => "Fel vid skapande av mapp",
"chmod_dir_failed" => "Fel vid andring av mappens egenskaper",
"unable_to_read_dir" => "Kan inte lasa den filen",
"location" => "Plats",
"root" => "Hem"
);
// Turkish
$_TRANSLATIONS["tr"] = array(
"file_name" => "Dosya ismi",
"size" => "Boyut",
"last_changed" => "gecmis",
"total_used_space" => "Toplam dosya boyutu",
"free_space" => "Bos alan",
"password" => "Sifre",
"upload" => "Yükleyen",
"failed_upload" => "Hatali dosya yüklemesi!",
"failed_move" => "Hatali dosya tasimasi!",
"wrong_password" => "Yeniden sifre",
"make_directory" => "Yeni dosya",
"new_dir_failed" => "Dosya olusturalamadi",
"chmod_dir_failed" => "Dosya ayari deqistirelemedi",
"unable_to_read_dir" => "Unable to read directory",
"location" => "Location",
"root" => "Root"
);
/***************************************************************************/
/* CSS KUJUNDUSE MUUTMISEKS */
/* */
/* CSS FOR TWEAKING THE DESIGN */
/***************************************************************************/
function css()
{
?>
<style type="text/css">
/* General styles */
BODY {
background-color:#FFFFFF;
font-family:Verdana;
font-size:small;
}
A {
color: #000000;
text-decoration: none;
}
A:hover {
text-decoration: underline;
}
#top {
width:100%;
padding-bottom: 20px;
}
#top a span, #top a:hover, #top a span:hover{
color:#68a9d2;
font-weight:bold;
text-align:center;
font-size:large;
}
#top a {
display:block;
padding:20px 0 0 0;
}
#top span {
display:block;
}
div.subtitle{
width:80%;
margin: 0 auto;
color:#68a9d2;
text-align:center;
}
#frame {
border: 1px solid #CDD2D6;
text-align:left;
position: relative;
margin: 0 auto;
max-width:680px;
overflow:hidden;
}
#error {
max-width:450px;
background-color:#FFE4E1;
color:#000000;
padding:7pt;
position: relative;
margin: 10pt auto;
text-align:center;
border: 1px dotted #CDD2D6;
}
input {
border: 1px solid #CDD2D6;
}
.bar{
width:100%;
clear:both;
height:1px;
}
/* File list */
table.table {
width:100%;
border-collapse: collapse;
}
table.table td{
padding:3px;
}
table.table tr.row.two {
background-color:#fcfdfe;
}
table.table tr.row.one {
background-color:#f8f9fa;
}
table.table tr.row td.icon {
width:25px;
padding-top:3px;
padding-bottom:1px;
}
table.table td.del {
width:25px;
}
table.table tr.row td.size {
width: 100px;
text-align: right;
}
table.table tr.row td.changed {
width: 150px;
text-align: center;
}
table.table tr.header img {
vertical-align:bottom;
}
table img{
border:0;
}
/* Info area */
#info {
color:#000000;
font-family:Verdana;
max-width:680px;
position: relative;
margin: 0 auto;
text-align:center;
}
/* Thumbnail area */
#thumb {
position:absolute;
border: 1px solid #CDD2D6;
background:#f8f9fa;
display:none;
padding:3px;
}
#thumb img {
display:block;
}
/* Login bar (at the bottom of the page) */
#login_bar {
margin: 0 auto;
margin-top:2px;
max-width:680px;
}
#login_bar input.submit{
float:right;
}
/* Upload area */