proxy: avoid redundant assignment
[amule.git] / src / webserver / default / footer.php
blobf4930cba39e605ececddf0b8f81b841685462c01
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <title>aMule control panel</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <link href="style.css" rel="stylesheet" type="text/css"><style type="text/css">
8 <!--
9 caption {
10 font-family: Helvetica;
11 font-size: 18px;
12 font-weight: bold;
13 color: #003161;
15 th {
16 font-family: Helvetica;
17 font-size: 14px;
18 font-height: 22px;
19 font-weight: bold;
20 color: #003161;
22 a:link {
23 color: #003161;
24 text-decoration: none;
26 a:active {
27 color: #003161;
28 text-decoration: none;
30 a:visited {
31 color: #003161;
32 text-decoration: none;
34 a:hover {
35 color: #c0c0c0;
36 text-decoration: underline;
38 td {
39 font-family: Helvetica;
40 font-size: 12px;
41 font-weight: normal;
43 label {
44 font-family: Helvetica;
45 font-size: 14px;
46 font-weight: bold;
48 .texte {
49 font-family: Helvetica;
50 font-size: 12px;
51 font-weight: normal;
53 label {
54 font-family:"trebuchet ms",sans-serif;
55 font-size: 12px;
56 font-weight:bold
58 input {
59 border:1px solid #003161;
60 background-color: white;
61 font-family:"trebuchet ms",sans-serif;
62 font-size: 12px;
63 color: #003161;
65 select, option {
66 background-color: white;
67 font-size: 12px;
68 color: #003161;
70 textarea {
71 border:1px solid #003161;
72 background-color: #90B6DB;
73 font-family:"trebuchet ms",sans-serif;
74 font-size: 12px;
75 color: white;
77 -->
78 </style>
79 </head>
80 <script language="JavaScript" type="text/JavaScript">
82 function refreshFrames()
84 location = "amuleweb-main-dload.php"
85 location.reload();
88 </script>
90 <body>
92 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
93 <tr>
94 <td width="50%" align="center" valign="bottom">
95 <form name="formlink" method="post" action="footer.php">
96 <input name="ed2klink" type="text" id="ed2klink" size="50">
97 <select name="selectcat" id="selectcat">
98 <?php
99 $cats = amule_get_categories();
100 if ( $HTTP_GET_VARS["Submit"] != "" ) {
101 $link = $HTTP_GET_VARS["ed2klink"];
102 $target_cat = $HTTP_GET_VARS["selectcat"];
103 $target_cat_idx = 0;
105 foreach($cats as $i => $c) {
106 if ( $target_cat == $c) $target_cat_idx = $i;
109 if ( strlen($link) > 0 ) {
110 $links = split("ed2k://", $link);
111 foreach($links as $linkn) {
112 amule_do_ed2k_download_cmd("ed2k://" . $linkn, $target_cat_idx);
117 foreach($cats as $c) {
118 echo '<option>', $c, '</option>';
121 </select>
122 <input type="submit" name="Submit" value="Download link" onClick="refreshFrames()">
123 </form></td>
124 </table>
125 </body>
126 </html>