-
Notifications
You must be signed in to change notification settings - Fork 1
/
index1.php
911 lines (729 loc) · 22.6 KB
/
index1.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
<?php
// [PHP_UK] Directory browser script by Paul Macdonald, Chris James, Patrick Bierans
// Based on code by Paul Macdonald. Extended by Chris James. Assisted by Patrick Bierans.
// http://www.chrisjames.co.uk/php-stuff/
// release 12th April 2002.
// Note: you'll also need the files in the (hidden) picons.dir directory.
// Prevent caching.
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache");
include("beodl/beo-header.html");
?>
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<!-- Page Title -->
<td align="right" class="pageTitle1" colspan=2 nowrap valign="middle"><h1>browser </h1></td>
<td class="pageTitle2" valign="middle"><h1> archive</h1></td>
<!-- /Page Title -->
</tr>
<tr>
<td valign="top" align="right">
</td>
<td valign="top" class="content">
<tr>
<td colspan="4"><img src="http://lists.evolt.org/images/spacer.gif" width="1" height="5" alt=""></td>
</tr>
<tr>
<td> </td>
<?
$line = getenv("QUERY_STRING");
if ( $line == "" ) {
?>
<td valign="top" colspan="2">
<! -- Browser Archive About -->
<p>
<strong>Who archived all these?</strong><br />
One of the founding members of evolt.org,
<a href="http://roselli.org/adrian" target="_new" title="Adrian's Personal Gallery">Adrian Roselli</a>
(or <a href="http://evolt.org/user/aardvark/88/index.html" title="Link to Articles"><i>aardvark</i></a>
for those of you who visit the site or are on the mailing list), has provided
the archive as well as its support through his company,
<a href="http://algonquinstudios.com" target="_new" title="Visit Algonquin Studios - Opens New Window">Algonquin Studios</a>.
You can see more information at his <a href="http://evolt.org/article/evolt/21/352/index.html" title="Article on evolt.org">archive announcement</a>.
</p>
<p>
<!-- Submissions should be sent to <a href="mailto:[email protected]">Adrian</a> in the form of a URL so that he may download it when he is at his DSL line. -->
Browser submissions should be sent in the form of a URL using
<a href="http://evolt.org/contact/">our contact form</a>, so that evolt.org
staff can download the software into the master archive.
</p>
<p>
<strong>Recent Changes to the Archive ...</strong><br />
<?php passthru("head -3 CHANGELOG"); ?>
<font size="-2">Note that updates to the Archive may take ~ 24-48 hours to reach mirror sites.</font>
</p>
<! -- /Browser Archive About -->
</td>
</tr>
<tr>
<td colspan="4"><img src="http://lists.evolt.org/images/spacer.gif" width="1" height="5" alt=""></td>
</tr>
<!-- Browsers -->
<tr>
<!-- Page Title -->
<td align="right" class="pageTitle1" nowrap valign="middle"><h1> </h1></td>
<td class="pageTitle2" valign="middle" colspan="2"><h1> browsers</h1></td>
<!-- /Page Title -->
</tr>
<tr>
<td> </td>
<td valign="top" colspan="2">
<!-- Begin Two-Column Content Table(s) -->
<table>
<tr>
<td valign="top">
<!-- ## Start Column 1 -->
<p>
<a href="/?1x/"><strong class="title">1x</strong></a><br>
Science Traveller International
</p>
<p>
<a href="/?airmosaicdemo/"><strong class="title">Air Mosaic Demo</strong></a><br>
Sprynet
</p>
<p>
<a href="/?allworld/"><strong class="title">AllWorld Explorer</strong></a><br>
G.O. International Air Service
</p>
<p>
<a href="/?amaya/"><strong class="title">Amaya</strong></a><br>
W3C
</p>
<p>
<a href="/?arachne/"><strong class="title">Arachne</strong></a><br>
xChaos
</p>
<p>
<a href="/?arcweb/"><strong class="title">ArcWeb</strong></a><br>
Stewart Brodie
</p>
<p>
<a href="/?ariadna/"><strong class="title">Ariadna</strong></a><br>
Advanced Multimedia System Design
</p>
<p>
<a href="/?atomnet/"><strong class="title">AtomNet</strong></a><br>
Change 7
</p>
<p>
<a href="/?aweb/"><strong class="title">AWeb</strong></a><br>
AmiTrix
</p>
<p>
<a href="/?beonex/"><strong class="title">Beonex</strong></a><br>
Ben Bucksch
</p>
<p>
<a href="/?bobby/"><strong class="title">Bobby</strong></a><br>
Center for Applied Special Technology
</p>
<p>
<a href="/?bohemian/"><strong class="title">Bohemian Net Browser</strong></a><br>
BohemianNet
</p>
<p>
<a href="/?brownie/"><strong class="title">BrownIE</strong></a><br>
Compunet
</p>
<p>
<a href="/?browse2000/"><strong class="title">Browse2000</strong></a><br>
1st Choice Software
</p>
<p>
<a href="/?cab/"><strong class="title">CAB</strong></a><br>
Alexander Clauss
</p>
<p>
<a href="/?cello/"><strong class="title">Cello</strong></a><br>
Thomas Bruce
</p>
<p>
<a href="/?charlie/"><strong class="title">Charlie</strong></a><br>
Mundial Avenue
</p>
<p>
<a href="/?chibrow/"><strong class="title">ChiBrow</strong></a><br>
KCS & Associates
</p>
<p>
<a href="/?chimera/"><strong class="title">Chimera</strong></a><br>
University of Nevada Las Vegas
</p>
<p>
<a href="/?contiki/"><strong class="title">Contiki</strong></a><br>
Adam Dunkels
</p>
<p>
<a href="/?lion-custom/"><strong class="title">Custom Browser</strong></a><br>
LION
</p>
<p>
<a href="/?cyberdog/"><strong class="title">Cyberdog</strong></a><br>
Apple Computer, inc.
</p>
<p>
<a href="/?cybergate/"><strong class="title">CyberGate</strong></a><br>
BlackSun Interactive
</p>
<p>
<a href="/?cyberpassage/"><strong class="title">Cyber Passage</strong></a><br>
Sony
</p>
<p>
<a href="/?digicams/"><strong class="title">DigiCams</strong></a><br>
DigiBand
</p>
<p>
<a href="/?doslynx/"><strong class="title">DOSLynx</strong></a><br>
University of Kansas
</p>
<p>
<a href="/?dr-webspyder/"><strong class="title">DR-WebSpyder</strong></a><br>
Caldera
</p>
<p>
<a href="/?elinks/"><strong class="title">ELinks</strong></a><br>
Mikulas Patocka, the ELinks team
</p>
<p>
<a href="/?emacs-w3/"><strong class="title">Emacs-W3</strong></a><br>
William M. Perry
</p>
<p>
<a href="/?emissary/"><strong class="title">Emissary</strong></a><br>
Attachmate
</p>
<p>
<a href="/?flock/"><strong class="title">Flock</strong></a><br>
Flock
</p>
<p>
<a href="/?freewebbrowser/"><strong class="title">FreeWebBrowser</strong></a><br>
Yellow Tree Services
</p>
<p>
<a href="/?galahad/"><strong class="title">Galahad</strong></a><br>
Jean van Waterschoot
</p>
<p>
<a href="/?goanywhere/"><strong class="title">goAnywhere!</strong></a><br>
Mikey LeBeau
</p>
<p>
<a href="/?grail/"><strong class="title">Grail</strong></a><br>
Corporation for National Research Initiatives
</p>
<p>
<a href="/?grasshopper/"><strong class="title">GrassHopper MDI Explorer</strong></a><br>
Santrim Software
</p>
<p>
<a href="/?handweb/"><strong class="title">HandWeb</strong></a><br>
Smartcode Software
</p>
<p>
<a href="/?hexabitjunior/"><strong class="title">HexaBit Junior</strong></a><br>
HexaBit
</p>
<p>
<a href="/?homepagereader/"><strong class="title">Home Page Reader</strong></a><br>
IBM
</p>
<p>
<a href="/?hotjava/"><strong class="title">HotJava</strong></a><br>
Sun Microsystems
</p>
<p>
<a href="/?i-comm/"><strong class="title">I-comm</strong></a><br>
Talent Communications
</p>
<p>
<a href="/?i-o-d-4/"><strong class="title">I-O-D-4 - The Web Stalker</strong></a><br>
Escape
</p>
<p>
<a href="/?i-view/"><strong class="title">I-View</strong></a><br>
EnReach Technology
</p>
<p>
<a href="/?ibrowse/"><strong class="title">iBrowse</strong></a><br>
Omnipresence International
</p>
<p>
<a href="/?icab/"><strong class="title">iCab</strong></a><br>
Alexander Clauss & iCab Company
</p>
<p>
<a href="/?ie-sprynet/"><strong class="title">Internet Explorer</strong></a><br>
Sprynet
</p>
<p>
<a href="/?ie/"><strong class="title">Internet Explorer</strong></a><br>
Microsoft
</p>
<p>
<a href="/?internet-plus/"><strong class="title">Internet Plus</strong></a><br>
Dean Software Design
</p>
<p>
<a href="/?internet-workhorse/"><strong class="title">Internet WorkHorse</strong></a><br>
MarketNet
</p>
<p>
<a href="/?kidnet/"><strong class="title">KidNet Explorer</strong></a><br>
Resource Communications
</p>
<p>
<a href="/?kidssafe-explorer/"><strong class="title">KidSafe Explorer</strong></a><br>
Arlington Technology
</p>
<p>
<a href="/?lis/"><strong class="title">LIS Web Browser</strong></a><br>
Lahman Internet Services
</p>
<p>
<a href="/?links/"><strong class="title">Links</strong></a><br>
Mikulas Patocka
</p>
<p>
<a href="/?lynx/"><strong class="title">Lynx</strong></a><br>
Distributed Computing Group
</p>
<p>
<a href="/?maclynx/"><strong class="title">MacLynx</strong></a><br>
Olivier Gutknecht
</p>
<p>
<a href="/?macweb/"><strong class="title">MacWeb</strong></a><br>
TradeWave (EINet)
</p>
<p>
<a href="/?macwww/"><strong class="title">MacWWW (Samba)</strong></a><br>
CERN
</p>
<p>
<a href="/?mathbrowser/"><strong class="title">MathBrowser</strong></a><br>
MathSoft
</p>
<p>
<a href="/?microviet/"><strong class="title">Microviet First Explorer</strong></a><br>
Microviet
</p>
<p>
<a href="/?minuet/"><strong class="title">Minuet</strong></a><br>
University of Minnesota
</p>
<p>
<a href="/?mosaic-ncsa/"><strong class="title">Mosaic</strong></a><br>
National Center for Supercomputing Applications
</p>
<p>
<a href="/?mosaic-quarterdeck/"><strong class="title">Mosaic</strong></a><br>
QuarterDeck
</p>
<!-- ## End Column 1 -->
</td>
<td> </td>
<td valign="top">
<!-- ## Start Column 2 -->
<p>
<a href="/?mosaic-spry/"><strong class="title">Mosaic</strong></a><br>
SpryNet
</p>
<p>
<a href="/?mosaic-spyglass/"><strong class="title">Mosaic</strong></a><br>
Spyglass
</p>
<p>
<a href="/?mozilla/"><strong class="title">Mozilla</strong></a>, incl. Firefox<br>
The Mozilla Foundation
</p>
<p>
<a href="/?multilingualmosaic/"><strong class="title">Multilingual Mosaic</strong></a><br>
Accent Software
</p>
<p>
<a href="/?multiwebviewer/"><strong class="title">MultiWeb Viewer</strong></a><br>
MultiSource
</p>
<p>
<a href="/?mybrowser/"><strong class="title">MyBrowser</strong></a><br>
Softorange
</p>
<p>
<a href="/?navigator/"><strong class="title">Navigator</strong></a><br>
Netscape Communications Corporation
</p>
<p>
<a href="/?ncompass/"><strong class="title">NCompass</strong></a><br>
ExCITE
</p>
<p>
<a href="/?neoplanet/"><strong class="title">NeoPlanet</strong></a><br>
NeoPlanet
</p>
<p>
<a href="/?net-tamer/"><strong class="title">Net-Tamer</strong></a><br>
Net-Tamer
</p>
<p>
<a href="/?netcaptor/"><strong class="title">NetCaptor</strong></a><br>
Stilesoft
</p>
<p>
<a href="/?netcruiser/"><strong class="title">NetCruiser</strong></a><br>
Netcom
</p>
<p>
<a href="/?netforkids/"><strong class="title">NetForKids</strong></a><br>
WebData Communications
</p>
<p>
<a href="/?netmanager/"><strong class="title">Net M@anager</strong></a><br>
Virtual Innovations
</p>
<p>
<a href="/?netomat/"><strong class="title">Netomat</strong></a><br>
Maciej Wisniewski
</p>
<p>
<a href="/?netpositive/"><strong class="title">NetPositive</strong></a><br>
Be, Inc.
</p>
<p>
<a href="/?netsentry/"><strong class="title">NetSentry</strong></a><br>
Natdat
</p>
<p>
<a href="/?netshark/"><strong class="title">NetShark</strong></a><br>
InterCon
</p>
<p>
<a href="/?netshift/"><strong class="title">NetShift</strong></a><br>
NetShift Software
</p>
<p>
<a href="/?nothin-but-net/"><strong class="title">Nuthin' But Net</strong></a><br>
PAKSoft Productions
</p>
<p>
<a href="/?offbyone/"><strong class="title">Off By One</strong></a><br>
Home Page Software
</p>
<p>
<a href="/?omniweb/"><strong class="title">OmniWeb</strong></a><br>
OmniGroup
</p>
<p>
<a href="/?opera/"><strong class="title">Opera</strong></a><br>
Opera Software
</p>
<p>
<a href="/?powerbrowser/"><strong class="title">PowerBrowser</strong></a><br>
Oracle
</p>
<p>
<a href="/?prostream/"><strong class="title">ProStream Browser</strong></a><br>
PS Group
</p>
<p>
<a href="/?pwwebspeak/"><strong class="title">pwWebSpeak Plus</strong></a><br>
The Productivity Works
</p>
<p>
<a href="/?pythia/"><strong class="title">Pythia</strong></a><br>
Appian Interactive
</p>
<p>
<a href="/?quickscape/"><strong class="title">QuickScape</strong></a><br>
Quickscape
</p>
<p>
<a href="/?safari/"><strong class="title">Safari</strong></a><br>
Apple Computer, Inc.
</p>
<p>
<a href="/?santasbrowser/"><strong class="title">Santa's Browser</strong></a><br>
Branded Browser Technologies
</p>
<p>
<a href="/?simulbrowse/"><strong class="title">SimulBrowse</strong></a><br>
Seaglass Software
</p>
<p>
<a href="/?sitekiosk/"><strong class="title">SiteKiosk</strong></a><br>
ProVisio GmbH
</p>
<p>
<a href="/?slipknot/"><strong class="title">SlipKnot</strong></a><br>
MicroMind
</p>
<p>
<a href="/?softerm-plus/"><strong class="title">Softerm Plus</strong></a><br>
Softronics
</p>
<p>
<a href="/?superhighway/"><strong class="title">SuperHighway Browser</strong></a><br>
Frontier Technologies
</p>
<p>
<a href="/?surfin-annette/"><strong class="title">Surfin' Annette</strong></a><br>
SpyCatcher
</p>
<p>
<a href="/?surfmonkey/"><strong class="title">SurfMonkey</strong></a><br>
MediaLive
</p>
<p>
<a href="/?talking_browser/"><strong class="title">Talking Browser</strong></a><br>
WeMedia
</p>
<p>
<a href="/?talva/"><strong class="title">Talva Document Explorer</strong></a><br>
Talva
</p>
<p>
<a href="/?tango/"><strong class="title">Tango Multilingual</strong></a><br>
Alis Technologies
</p>
<p>
<a href="/?tobrowser-emailer/"><strong class="title">The Other Browser-Emailer</strong></a><br>
Pixelogic
</p>
<p>
<a href="/?udiwww/"><strong class="title">UdiWWW</strong></a><br>
Bernd Richter
</p>
<p>
<a href="/?videoonline/"><strong class="title">Video On Line Browser</strong></a><br>
Video On Line
</p>
<p>
<a href="/?voyager/"><strong class="title">Voyager</strong></a><br>
VaporWare
</p>
<p>
<a href="/?wannabe/"><strong class="title">WannaBe</strong></a><br>
David T. Pierson
</p>
<p>
<a href="/?web-o-matic/"><strong class="title">Web-O-Matic Digital Browser</strong></a><br>
Circle Group Internet, Inc.
</p>
<p>
<a href="/?web-surface/"><strong class="title">Web SurfACE</strong></a><br>
ToolPool
</p>
<p>
<a href="/?web-talkit/"><strong class="title">Web-Talkit</strong></a><br>
Grover Industries
</p>
<p>
<a href="/?webexplorer/"><strong class="title">WebExplorer</strong></a><br>
IBM
</p>
<p>
<a href="/?webprowler/"><strong class="title">WebProwler</strong></a><br>
MacroByte
</p>
<p>
<a href="/?webracer/"><strong class="title">WebRacer</strong></a><br>
Software Savvy
</p>
<p>
<a href="/?websurfer/"><strong class="title">Websurfer</strong></a><br>
NetManage
</p>
<p>
<a href="/?webtv/"><strong class="title">WebTV Viewer</strong></a><br>
WebTV Networks
</p>
<p>
<a href="/?webview/"><strong class="title">WebView</strong></a><br>
South Pacific Information Services
</p>
<p>
<a href="/?webwhacker/"><strong class="title">WebWhacker</strong></a><br>
Blue Squirrel
</p>
<p>
<a href="/?wildcat/"><strong class="title">Wildcat Navigator</strong></a><br>
Harmony International
</p>
<p>
<a href="/?winweb/"><strong class="title">WinWEB</strong></a><br>
TradeWave (EINet)
</p>
<p>
<a href="/?worldwideweb/"><strong class="title">WorldWideWeb (Nexus)</strong></a><br>
Tim Berners-Lee
</p>
<!-- ## End Column 2 -->
</td>
</tr>
</table>
<!-- End Two-Column Content Table(s) -->
<!-- ################################################ -->
<!-- ############################### -->
<!-- ############################### -->
</td>
</tr>
<tr>
<td colspan="4"><img src="http://lists.evolt.org/images/spacer.gif" width="1" height="5" alt=""></td>
</tr>
<tr>
<!-- Page Title -->
<td align="right" class="pageTitle1" colspan=2 nowrap valign="middle"><h1> untested</h1></td>
<td class="pageTitle2" valign="middle"><h1> browsers</h1></td>
<!-- /Page Title -->
</tr>
<tr>
<td colspan="4"><img src="http://lists.evolt.org/images/spacer.gif" width="1" height="5" alt=""></td>
</tr>
<tr>
<td> </td>
<td valign="top" colspan="2">
<p>
These browsers have not been tested, and are not documented. Don't even think of downloading or installing them. If you have information on them, however, please contact Adrian Roselli (aardvark).
</p>
<table>
<tr>
<td valign="top">
<!-- ## Start Column 1 -->
<p>
<a href="/?unchecked/proxiweb/"><strong class="title">Proxiweb</strong></a><br>
ProxiNet, Inc.<br>
<em>Need Archive</em>
</p>
<!-- ## End Column 1 -->
</td>
<td> </td>
<td valign="top">
<!-- ## Start Column 2 -->
<!-- ## End Column 2 -->
</td>
</tr>
</table>
<?
} else {
echo "<!-- ".getenv("QUERY_STRING")." -->";
$QUERY_STRING=getenv("QUERY_STRING");
?>
<td valign="top" colspan="2">
<?
// Set the page text
$headertext = "browsers.evolt.org:";
$footertext = "[PHP_UK] Directory browser script by Paul Macdonald, Chris James, Patrick Bierans";
// Set the URL to pass filenames to. Use this if you want to pass the filename to another php script.
$filepass = "";
// initialize arrays
$folders= array();
$files=array();
// Get and clean up the current path.
if (!$path && $QUERY_STRING!='') { $path=current(split("&",$QUERY_STRING)); } //allow use of ?path
$path=urldecode($path); //remove url encoding.
$path=str_replace("..","",$path); // disallow directory up.
$path=preg_replace("/\/+/", "/", $path); // remove duplicate slashes.
if($path == "/") { $path = ""; }
if($path[0]=="/"){ $path=substr($path,1,strlen($path)-1); } // Remove leading slash.
if(substr($path,strlen($path)-1,1) =="/"){ $path=substr($path,0,strlen($path)-1);} // Remove trailling slash.
// Set the Date format
$dateformat = "F j Y h:i:s A";
// Document Root should only be above current root. Current dir = "";
$root="/archive"; // No leading or trailling slashes
// If path is passed in get string then add it to docroot.
if ($root) { $root .= "/"; }
$docroot="./$root".$path."/"; // Actual Path
$sendroot="/";
// Open Directory - if the path is invalid then say so and exit.
if(!$handle=@opendir($docroot)) {
echo "Invalid Path";
exit();
}
// Loop around $file array.
while (false !== ($file = readdir($handle))) {
if ($file=="."){} // If the file is the current directory, then ignore
elseif ($file=="picons.dir"){} // If the file is the icons directory then ignore.
elseif ($file==basename($PHP_SELF)){} // ignore this file in directory.
elseif($file=="..") { // allow directory traversal only on dirs above root.
if (($path)&&($path != ".")&&($path != "./")) {
$updir=explode("/", $path); // explode the array.
$updir[count($updir)-1] = ""; // set the last path to nothing
$updir=implode("/",$updir); // implode the array
if(substr($updir,strlen($updir)-1,1) =="/"){ $updir=substr($updir,0,strlen($updir)-1);} // Remove trailling slash.
$folders[]="<tr><td><a href='?".$updir."'><img src='/icons/back.gif' border='0'></a></td><td><a href ='?".$updir."'>..</a></td><td></td></tr>\n";
}
}
elseif (is_dir($docroot.$file)) // check if the file is directory
{
// If it's a directory create a clickable link.
if ($path) { $sep = "/"; }
$folders[]="<tr><td><a href ='?".$path.$sep.$file."'><img src='/icons/dir.gif' border=0></a></td><td><a href ='?".$path.$sep.$file."'>".$file."</a><td><td>". date($dateformat,filemtime($docroot))."</td></tr>\n";
}
else {
if ($path) { $sep = "/"; }
// Else file is just a normal file - so create a link with stats.
$filesize= size4humans(filesize($docroot.$file));
$files[]="<tr><td><a href='download.php?".$filepass.$sendroot.$path.$sep.$file."'><img src='/icons/generic.gif' border=0></a></td><td><a href='download.php?".$filepass.$sendroot.$path.$sep.$file."'>".$file."</a></td><td>$filesize</td><td>". date($dateformat, filemtime($docroot.$file))."</td></tr>\n";
}
}
?>
<h1 class="pageTitle2"><?php echo $headertext ?>
<?php // Clickable directory links in the top path (breadcrumb style) as suggested by Patrick Bierans
$updir=explode("/", $path); // explode the array.
foreach($updir as $subpath)
{
if ($subpath) {
$buildpath = $buildpath."/".$subpath;
if (!$loop) {
echo "<A HREF=\"?\" class=\"pageTitle2\">/</A> ";
echo "<A HREF=\"?$subpath\" class=\"pageTitle2\">$subpath</A> ";
} else {
echo "<A HREF=\"?$buildpath\" class=\"pageTitle2\">/ $subpath</A> ";
}
$loop++;
}
} ?>
</h1>
<hr>
<table>
<tr><td></td>
<td width="200"><strong>Name</strong></td>
<td><strong>Size</strong></td>
<td><strong>Last Modified</strong></td></tr>
<?php
foreach ($folders as $eachfolder)
{ echo $eachfolder;}
foreach ($files as $eachfile)
{ echo $eachfile;}
?>
</table>
<hr>
</td>
</td>
<?
}
?>
<?
include("beodl/beo-footer.adsense.html");
// include("beodl/beo-footer.html");
?>
<?php
// Convert file size (bytes) to something that us humans can make sense of!
// courtesy of Patrick Bierans - [email protected]
function size4humans($size=0,$aftercomma=2)
{
$aftercomma=pow(10,$aftercomma);
$power=1024; // or do you prefer 1000
$ext=array('b','Kb','Mb','Gb','Tb');
$j=0;
while ($size >= pow($power,$j))
$j++;
if ($j==0) $j=1;
$size=round($size/pow($power,$j-1)*$aftercomma)/$aftercomma." ".$ext[$j-1];
return $size;
}
?>