File tree 1 file changed +6
-6
lines changed
Eclipse update site/WebContent
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,27 +32,28 @@ function ListFileNames( $prefix)
32
32
{
33
33
if (($ file != ". " ) and ($ file != ".. " ) and ($ file != "index.php " ))
34
34
{
35
- $ files [] = $ file ; // put in array.
35
+ $ files [] = $ location . " / " . $ file ; // put in array.
36
36
}
37
37
}
38
38
closedir ($ dir );
39
+
39
40
$ location ="../download/product " ;
40
41
$ dir = opendir ($ location );
41
42
while (false != ($ file = readdir ($ dir )))
42
43
{
43
44
if (($ file != ". " ) and ($ file != ".. " ) and ($ file != "index.php " ))
44
45
{
45
- $ files [] = $ file ; // put in array.
46
+ $ files [] = $ location . " / " . $ file ; // put in array.
46
47
}
47
48
}
48
49
closedir ($ dir );
49
50
rsort ($ files ); // sort.
50
51
51
52
foreach ($ files as $ file )
52
53
{
53
- $ fullpath = $ location . " / " . $ file ;
54
- if (substr ($ file ,0 ,strlen ($ prefix ))==$ prefix )
55
- echo "<a href= \"$ fullpath \" target= \"_blank \"> $ file </a> \n<br> " ;
54
+ $ refname = basename ( $ file) ;
55
+ if (substr ($ refname ,0 ,strlen ($ prefix ))==$ prefix )
56
+ echo "<a href= \"$ file \" target= \"_blank \"> $ refname </a> \n<br> " ;
56
57
}
57
58
}
58
59
?>
@@ -87,4 +88,3 @@ function ListFileNames( $prefix)
87
88
<br>
88
89
</body>
89
90
</html>
90
-
You can’t perform that action at this time.
0 commit comments