Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Webtools Releng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
webtools
Releng
Webtools Releng
Commits
aebeb77a
Commit
aebeb77a
authored
16 years ago
by
david_williams
Browse files
Options
Downloads
Patches
Plain Diff
archive download files
parent
d38f4c5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
downloadsites/webtools/archive/index.php
+44
-88
44 additions, 88 deletions
downloadsites/webtools/archive/index.php
with
44 additions
and
88 deletions
downloadsites/webtools/archive/index.php
+
44
−
88
View file @
aebeb77a
...
@@ -155,12 +155,6 @@ include 'drops/report.php';
...
@@ -155,12 +155,6 @@ include 'drops/report.php';
$latestTimeStamp
=
array
();
$latestTimeStamp
=
array
();
$latestFile
=
array
();
$latestFile
=
array
();
echo
"<table border=0 cellpadding=2 width=
\"
100%
\"
><tr>"
;
echo
"<td colspan=
\"
2
\"
bgcolor=
\"
#0080C0
\"
><b><font color=
\"
#FFFFFF
\"
face=
\"
Arial,Helvetica
\"
>Latest Downloads</td></font></b>"
;
echo
"</td></tr></table>"
;
foreach
(
$buildBranches
as
$buildBranch
)
{
foreach
(
$buildBranches
as
$buildBranch
)
{
$dirfilename
=
"drops/"
.
$buildBranch
;
$dirfilename
=
"drops/"
.
$buildBranch
;
...
@@ -250,54 +244,16 @@ foreach ($buildBranches as $buildBranch ) {
...
@@ -250,54 +244,16 @@ foreach ($buildBranches as $buildBranch ) {
}
}
}
}
?>
<TABLE
width=
"100%"
cellpadding=
2
>
<tr>
<td
width=
\"30%\"
><b>
Build Type
</b></td>
<td><b>
Build Stream
</b></td>
<td><b>
Build Name
</b></td>
<td><b>
Build Date
</b></td>
</tr>
<?php
foreach
(
$dropType
as
$value
)
{
$prefix
=
$typeToPrefix
[
$value
];
foreach
(
$buildBranches
as
$bValue
)
{
if
(
array_key_exists
(
$bValue
,
$latestFile
)
&&
array_key_exists
(
$prefix
,
$latestFile
[
$bValue
]))
{
$fileName
=
$latestFile
[
$bValue
][
$prefix
];
echo
"<tr>
<td width=
\"
30%
\"
>
$value
</td> <td>
$bValue
</td>"
;
$parts
=
explode
(
"-"
,
$fileName
);
foreach
(
$dropType
as
$value
)
{
$prefix
=
$typeToPrefix
[
$value
];
if
(
sizeof
(
$parts
)
>
1
)
{
// Uncomment the line below if we need click through licenses.
// echo "<td><a href=license.php?license=drops/$bValue/$fileName>$parts[1]</a></td>";
// Comment the line below if we need click through licenses.
echo
"
echo
"<td><a href=
\"
drops/
$bValue
/
$fileName
/
\"
>
$parts[1]
</a></td>"
;
<table width=
\"
100%
\"
cellpadding=2>
<tr bgcolor=
\"
#999999
\"
>
echo
"<td>
$timeStamps[$fileName]
</td>"
;
<td align=left width=
\"
30%
\"
><b><a name=
\"
$value
\"
><font color=
\"
#FFFFFF
\"
face=
\"
Arial,Helvetica
\"
>
$value
"
;
echo
"</tr>"
;
echo
"</font></a></b></td>
}
}
}
}
?>
</TABLE>
<?php
foreach
(
$dropType
as
$value
)
{
$prefix
=
$typeToPrefix
[
$value
];
echo
"
<table width=
\"
100%
\"
cellpadding=2>
<tr bgcolor=
\"
#999999
\"
>
<td align=left width=
\"
30%
\"
><b><a name=
\"
$value
\"
><font color=
\"
#FFFFFF
\"
face=
\"
Arial,Helvetica
\"
>
$value
"
;
echo
"</font></a></b></td>
</TR>
</TR>
<TR>
<TR>
<td align=left>
<td align=left>
...
@@ -307,48 +263,48 @@ foreach ($buildBranches as $buildBranch ) {
...
@@ -307,48 +263,48 @@ foreach ($buildBranches as $buildBranch ) {
<td><b>Build Date</b></td>
<td><b>Build Date</b></td>
</tr>"
;
</tr>"
;
foreach
(
$buildBranches
as
$bValue
)
{
foreach
(
$buildBranches
as
$bValue
)
{
if
(
array_key_exists
(
$bValue
,
$buckets
)
&&
array_key_exists
(
$prefix
,
$buckets
[
$bValue
]))
{
if
(
array_key_exists
(
$bValue
,
$buckets
)
&&
array_key_exists
(
$prefix
,
$buckets
[
$bValue
]))
{
echo
"<tr><td colspan=
\"
7
\"
/><hr/></tr>"
;
echo
"<tr><td colspan=
\"
7
\"
/><hr/></tr>"
;
$aBucket
=
$buckets
[
$bValue
][
$prefix
];
$aBucket
=
$buckets
[
$bValue
][
$prefix
];
if
(
isset
(
$aBucket
))
{
if
(
isset
(
$aBucket
))
{
rsort
(
$aBucket
);
rsort
(
$aBucket
);
$i
=
0
;
$i
=
0
;
$ts
=
array
();
$ts
=
array
();
$ts2iv
=
array
();
$ts2iv
=
array
();
foreach
(
$aBucket
as
$iv
)
{
foreach
(
$aBucket
as
$iv
)
{
$parts
=
explode
(
"-"
,
$iv
);
$parts
=
explode
(
"-"
,
$iv
);
$ts
[
$i
]
=
$parts
[
2
];
$ts
[
$i
]
=
$parts
[
2
];
$ts2iv
[
$ts
[
$i
]]
=
$iv
;
$ts2iv
[
$ts
[
$i
]]
=
$iv
;
$i
++
;
$i
++
;
}
}
rsort
(
$ts
);
rsort
(
$ts
);
$i
=
0
;
$i
=
0
;
$aBucket
=
array
();
$aBucket
=
array
();
foreach
(
$ts
as
$tsvalue
)
{
foreach
(
$ts
as
$tsvalue
)
{
$aBucket
[
$i
]
=
$ts2iv
[
$tsvalue
];
$aBucket
[
$i
]
=
$ts2iv
[
$tsvalue
];
$i
++
;
$i
++
;
}
}
foreach
(
$aBucket
as
$innerValue
)
{
foreach
(
$aBucket
as
$innerValue
)
{
$parts
=
explode
(
"-"
,
$innerValue
);
$parts
=
explode
(
"-"
,
$innerValue
);
echo
"<tr>"
;
echo
"<tr>"
;
// Uncomment the line below if we need click through licenses.
// Uncomment the line below if we need click through licenses.
// echo "<td><a href=\"license.php?license=drops/$bValue/$innerValue\">$parts[1]</a></td>";
// echo "<td><a href=\"license.php?license=drops/$bValue/$innerValue\">$parts[1]</a></td>";
// Comment the line below if we need click through licenses.
// Comment the line below if we need click through licenses.
echo
"<td><a href=
\"
drops/
$bValue
/
$innerValue
/
\"
>
$parts[1]
</a></td>"
;
echo
"<td><a href=
\"
drops/
$bValue
/
$innerValue
/
\"
>
$parts[1]
</a></td>"
;
echo
"<td>
$bValue
</td>"
;
echo
"<td>
$bValue
</td>"
;
echo
"<td>
$timeStamps[$innerValue]
</td>"
;
echo
"<td>
$timeStamps[$innerValue]
</td>"
;
}
}
}}}
}}}
echo
"</table></table>"
;
echo
"</table></table>"
;
}
}
?>
?>
<table
<table
border=
"0"
border=
"0"
width=
"100%"
width=
"100%"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment