1 <!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
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">
10 font
-family
: Helvetica
;
16 font
-family
: Helvetica
;
24 text
-decoration
: none
;
28 text
-decoration
: none
;
32 text
-decoration
: none
;
36 text
-decoration
: underline
;
39 font
-family
: Helvetica
;
44 font
-family
: Helvetica
;
49 font
-family
: Helvetica
;
54 font
-family
:"trebuchet ms",sans
-serif
;
59 border
:1px solid
#003161;
60 background
-color
: white
;
61 font
-family
:"trebuchet ms",sans
-serif
;
66 background
-color
: white
;
71 border
:1px solid
#003161;
72 background
-color
: #90B6DB;
73 font
-family
:"trebuchet ms",sans
-serif
;
80 <script language
="JavaScript" type
="text/JavaScript">
82 function refreshFrames()
84 location
= "amuleweb-main-dload.php"
92 <table width
="100%" border
="0" align
="center" cellpadding
="0" cellspacing
="0">
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">
99 $cats = amule_get_categories();
100 if ( $HTTP_GET_VARS["Submit"] != "" ) {
101 $link = $HTTP_GET_VARS["ed2klink"];
102 $target_cat = $HTTP_GET_VARS["selectcat"];
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>';
122 <input type
="submit" name
="Submit" value
="Download link" onClick
="refreshFrames()">