1 <!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <title
>aMule control panel
</title
>
5 <meta http
-equiv
="Content-Type" content
="text/html; charset=iso-8859-1">
7 <script language
="JavaScript" type
="text/JavaScript">
9 function MM_swapImgRestore() { //v3.0
10 var i
,x
,a
=document
.MM_sr
; for(i
=0;a
&&i
<a
.length
&&(x
=a
[i
])&&x
.oSrc
;i++
) x
.src
=x
.oSrc
;
13 function MM_preloadImages() { //v3.0
14 var d
=document
; if(d
.images
){ if(!d
.MM_p
) d
.MM_p
=new Array();
15 var i
,j
=d
.MM_p
.length
,a
=MM_preloadImages
.arguments
; for(i
=0; i
<a
.length
; i++
)
16 if (a
[i
].indexOf("#")!=0){ d
.MM_p
[j
]=new Image
; d
.MM_p
[j++
].src
=a
[i
];}}
19 function MM_findObj(n
, d
) { //v4.01
20 var p
,i
,x
; if(!d
) d
=document
; if((p
=n
.indexOf("?"))>0&&parent
.frames
.length
) {
21 d
=parent
.frames
[n
.substring(p+
1)].document
; n
=n
.substring(0,p
);}
22 if(!(x
=d
[n
])&&d
.all
) x
=d
.all
[n
]; for (i
=0;!x
&&i
<d
.forms
.length
;i++
) x
=d
.forms
[i
][n
];
23 for(i
=0;!x
&&d
.layers
&&i
<d
.layers
.length
;i++
) x
=MM_findObj(n
,d
.layers
[i
].document
);
24 if(!x
&& d
.getElementById
) x
=d
.getElementById(n
); return x
;
27 function MM_swapImage() { //v3.0
28 var i
,j
=0,x
,a
=MM_swapImage
.arguments
; document
.MM_sr
=new Array; for(i
=0;i
<(a
.length
-2);i+
=3)
29 if ((x
=MM_findObj(a
[i
]))!=null){document
.MM_sr
[j++
]=x
; if(!x
.oSrc
) x
.oSrc
=x
.src
; x
.src
=a
[i+
2];}
33 <link href
="style.css" rel
="stylesheet" type
="text/css"><style type
="text/css">
36 font
-family
: Helvetica
;
42 font
-family
: Helvetica
;
50 text
-decoration
: none
;
54 text
-decoration
: none
;
58 text
-decoration
: none
;
62 text
-decoration
: underline
;
65 font
-family
: Helvetica
;
70 font
-family
: Helvetica
;
75 font
-family
: Helvetica
;
80 font
-family
:"trebuchet ms",sans
-serif
;
85 border
:1px solid
#003161;
86 background
-color
: white
;
87 font
-family
:"trebuchet ms",sans
-serif
;
92 background
-color
: white
;
97 border
:1px solid
#003161;
98 background
-color
: #90B6DB;
99 font
-family
:"trebuchet ms",sans
-serif
;
105 </head
><script language
="JavaScript" type
="text/JavaScript">
106 function formCommandSubmit(command
)
108 var frm
=document
.forms
.mainform
109 frm
.command
.value
=command
113 var initvals
= new Object;
116 // apply new options before proceeding
117 //var_dump($HTTP_GET_VARS);
118 if ( ($HTTP_GET_VARS["Submit"] == "Apply") && ($_SESSION["guest_login"] == 0) ) {
119 $file_opts = array("check_free_space", "extract_metadata",
120 "ich_en","aich_trust", "preview_prio","save_sources", "resume_same_cat",
121 "min_free_space", "new_files_paused", "alloc_full", "alloc_full_chunks",
122 "new_files_auto_dl_prio", "new_files_auto_ul_prio"
124 $conn_opts = array("max_line_up_cap","max_up_limit",
125 "max_line_down_cap","max_down_limit", "slot_alloc",
126 "tcp_port","udp_dis","max_file_src","max_conn_total","autoconn_en");
127 $webserver_opts = array("use_gzip", "autorefresh_time");
130 foreach ($conn_opts as $i) {
131 $curr_value = $HTTP_GET_VARS[$i];
132 if ( $curr_value == "on") $curr_value = 1;
133 if ( $curr_value == "") $curr_value = 0;
135 $all_opts["connection"][$i] = $curr_value;
137 foreach ($file_opts as $i) {
138 $curr_value = $HTTP_GET_VARS[$i];
139 if ( $curr_value == "on") $curr_value = 1;
140 if ( $curr_value == "") $curr_value = 0;
142 $all_opts["files"][$i] = $curr_value;
144 foreach ($webserver_opts as $i) {
145 $curr_value = $HTTP_GET_VARS[$i];
146 if ( $curr_value == "on") $curr_value = 1;
147 if ( $curr_value == "") $curr_value = 0;
149 $all_opts["webserver"][$i] = $curr_value;
151 //var_dump($all_opts);
152 amule_set_options($all_opts);
154 $opts = amule_get_options();
156 $opt_groups = array("connection", "files", "webserver");
157 //var_dump($opt_groups);
158 foreach ($opt_groups as $group) {
159 $curr_opts = $opts[$group];
160 //var_dump($curr_opts);
161 foreach ($curr_opts as $opt_name => $opt_val) {
162 echo 'initvals["', $opt_name, '"] = "', $opt_val, '";';
167 <!-- Assign php generated data to controls
-->
170 var frm
= document
.forms
.mainform
172 var str_param_names
= new Array(
173 "max_line_down_cap", "max_line_up_cap",
174 "max_up_limit", "max_down_limit", "max_file_src",
175 "slot_alloc", "max_conn_total",
176 "tcp_port", "udp_port",
180 for(i
= 0; i
< str_param_names
.length
; i++
) {
181 frm
[str_param_names
[i
]].value
= initvals
[str_param_names
[i
]];
183 var check_param_names
= new Array(
184 "autoconn_en", "reconn_en", "udp_dis", "new_files_paused",
185 "aich_trust", "alloc_full", "alloc_full_chunks",
186 "check_free_space", "extract_metadata", "ich_en",
187 "new_files_auto_dl_prio", "new_files_auto_ul_prio",
190 for(i
= 0; i
< check_param_names
.length
; i++
) {
191 frm
[check_param_names
[i
]].checked
= initvals
[check_param_names
[i
]] == "1" ?
true : false;
196 <body background
="images/fond.gif" leftmargin
="0" topmargin
="0" marginwidth
="0" marginheight
="0" onLoad
="MM_preloadImages('images/transf_1.png','images/shared_1.png','images/search_1.png','images/edkserv_1.png','images/sheserv_1.png','images/stats_1.png');init_data();">
197 <table width
="100%" height
="100%" border
="0" cellpadding
="0" cellspacing
="0">
199 <td width
="143" height
="64"><img src
="images/logo.png" width
="143" height
="64"></td
>
200 <td width
="100%" height
="64" align
="right" background
="images/fond_haut.png"> <table border
="0" cellspacing
="0" cellpadding
="0">
202 <td
><a href
="amuleweb-main-dload.php" onMouseOut
="MM_swapImgRestore()" onMouseOver
="MM_swapImage('transfert','','images/transf_1.png',1)"><img src
="images/transf_0.png" alt
="transfert" name
="transfert" width
="52" height
="50" border
="0"></a
></td
>
203 <td
><a href
="amuleweb-main-shared.php" onMouseOut
="MM_swapImgRestore()" onMouseOver
="MM_swapImage('shared','','images/shared_1.png',1)"><img src
="images/shared_0.png" alt
="shared" name
="shared" width
="52" height
="50" border
="0"></a
></td
>
204 <td
><a href
="amuleweb-main-search.php" onMouseOut
="MM_swapImgRestore()" onMouseOver
="MM_swapImage('search','','images/search_1.png',1)"><img src
="images/search_0.png" alt
="search" name
="search" width
="52" height
="50" border
="0"></a
></td
>
205 <td
><a href
="amuleweb-main-servers.php" onMouseOut
="MM_swapImgRestore()" onMouseOver
="MM_swapImage('edkserver','','images/edkserv_1.png',1)"><img src
="images/edkserv_0.png" alt
="edkserver" name
="edkserver" width
="52" height
="50" border
="0"></a
></td
>
206 <td
><a href
="amuleweb-main-kad.php" onMouseOut
="MM_swapImgRestore()" onMouseOver
="MM_swapImage('sheserv','','images/sheserv_1.png',1)"><img src
="images/sheserv_0.png" alt
="sheserv" name
="sheserv" width
="52" height
="50" border
="0"></a
></td
>
207 <td
><a href
="amuleweb-main-stats.php" onMouseOut
="MM_swapImgRestore()" onMouseOver
="MM_swapImage('statistiques','','images/stats_1.png',1)"><img src
="images/stats_0.png" alt
="statistiques" name
="statistiques" width
="52" height
="50" border
="0"></a
></td
>
208 <td
><img src
="images/col.png"></td
>
210 <td width
="190" align
="right" class="texteinv"><a href
="login.php">exit</a
><br
>
211 <a href
="amuleweb-main-log.php">log
&bull
;</a
> <a href
="amuleweb-main-prefs.php">configuration
</a
></td
>
216 <tr align
="center" valign
="top">
218 <table width
="100%" border
="0" cellspacing
="0" cellpadding
="0">
219 <caption
>PREFERENCES
</caption
>
221 <td width
="24"><img src
="images/tab_top_left.png" width
="24" height
="24"></td
>
222 <td background
="images/tab_top.png"> 
;</td
>
223 <td width
="24"><img src
="images/tab_top_right.png" width
="24" height
="24"></td
>
226 <td width
="24" background
="images/tab_left.png"> 
;</td
>
228 <td bgcolor
="#FFFFFF"><form name
="mainform" action
="amuleweb-main-prefs.php" method
="post">
229 <table border
="0" align
="center" cellpadding
="0" cellspacing
="6">
231 <tr align
="center" valign
="top">
233 <table width
="350" border
="0" align
="center" cellpadding
="0" cellspacing
="0" >
235 <td width
="22"> 
;</td
>
237 <td width
="63"> 
;</td
>
239 <td width
="22" height
="25"> 
;</td
>
240 <td height
="25">Page refresh interval
</td
>
241 <td width
="63" height
="25">
242 <input name
="autorefresh_time" type
="text" id
="autorefresh_time7" size
="4"></td
>
245 <td width
="22" height
="25">
246 <input name
="use_gzip" type
="checkbox" id
="use_gzip5"></td
>
247 <td height
="25"> Use gzip compression
</td
>
248 <td width
="63" height
="25"> 
;</td
>
252 <table width
="350" border
="0" align
="center" cellpadding
="0" cellspacing
="0" >
254 <td width
="22"> 
;</td
>
255 <th
>Line
capacity (for statistics only
)</th
>
256 <td width
="63"> 
;</td
>
259 <td width
="22" height
="25"> 
;</td
>
260 <td height
="25">Max download rate
</td
>
261 <td width
="63" height
="25">
262 <input name
="max_line_down_cap" type
="text" id
="max_line_down_cap6" size
="4"></td
>
265 <td width
="22" height
="25"> 
;</td
>
266 <td height
="25">Max upload rate
</td
>
267 <td width
="63" height
="25">
268 <input name
="max_line_up_cap" type
="text" id
="max_line_up_cap7" size
="4"></td
>
272 <tr align
="center" valign
="top">
274 <table width
="350" border
="0" align
="center" cellpadding
="0" cellspacing
="0" >
276 <td width
="22" height
="19"> 
;</td
>
277 <th
>Bandwidth limits
</th
>
278 <td width
="63"> 
;</td
>
281 <td width
="22" height
="25"> 
;</td
>
282 <td height
="25">Max download rate
</td
>
283 <td width
="63" height
="25">
284 <input name
="max_down_limit" type
="text" id
="max_down_limit6" size
="4"></td
>
287 <td width
="22" height
="25"> 
;</td
>
288 <td height
="25">Max upload rate
</td
>
289 <td width
="63" height
="25">
290 <input name
="max_up_limit" type
="text" id
="max_up_limit6" size
="4"></td
>
293 <td width
="22" height
="25"> 
;</td
>
294 <td height
="25">Slot allocation
</td
>
295 <td width
="63" height
="25">
296 <input name
="slot_alloc" type
="text" id
="slot_alloc6" size
="4"></td
>
299 <td width
="50%" rowspan
="3">
300 <table width
="350" border
="0" align
="center" cellpadding
="0" cellspacing
="0" >
302 <td width
="22"> 
;</td
>
303 <th
> File settings
</th
>
304 <td width
="63"> 
;</td
>
307 <td width
="22" height
="25"> 
;</td
>
308 <td height
="25"> 
; </td
>
309 <td width
="63" height
="25"></td
>
312 <td width
="22" height
="25">
313 <input name
="check_free_space" type
="checkbox" id
="check_free_space5"></td
>
314 <td height
="25"> Check free space
=>
; Minimum free
space (Mb
) </td
>
315 <td width
="63" height
="25">
316 <input name
="min_free_space" type
="text" id
="min_free_space4" size
="4"></td
>
319 <td width
="22" height
="25">
320 <input name
="new_files_auto_dl_prio" type
="checkbox" id
="new_files_auto_dl_prio4"></td
>
321 <td height
="25"> Added download files have auto priority
</td
>
322 <td width
="63" height
="25"></td
>
325 <td width
="22" height
="25">
326 <input name
="new_files_auto_ul_prio" type
="checkbox" id
="new_files_auto_ul_prio4"></td
>
327 <td height
="25"> New shared files have auto priority
</td
>
328 <td width
="63" height
="25"></td
>
331 <td width
="22" height
="25">
332 <input name
="ich_en" type
="checkbox" id
="ich_en5"></td
>
333 <td height
="25"> I
.C
.H
. active
</td
>
334 <td width
="63" height
="25"></td
>
337 <td width
="22" height
="25">
338 <input name
="aich_trust" type
="checkbox" id
="aich_trust4"></td
>
339 <td height
="25"> AICH trusts every
hash (not recommended
)</td
>
340 <td width
="63" height
="25"></td
>
343 <td width
="22" height
="25">
344 <input name
="alloc_full_chunks" type
="checkbox" id
="alloc_full_chunks4"></td
>
345 <td height
="25"> Alloc full chunks of
.part files
</td
>
346 <td width
="63" height
="25"></td
>
349 <td width
="22" height
="25">
350 <input name
="alloc_full" type
="checkbox" id
="alloc_full4"></td
>
351 <td height
="25"> Alloc full disk space
for .part files
</td
>
352 <td width
="63" height
="25"></td
>
355 <td width
="22" height
="25">
356 <input name
="new_files_paused" type
="checkbox" id
="new_files_paused4"></td
>
357 <td height
="25"> Add files to download queue in pause mode
</td
>
358 <td width
="63" height
="25"></td
>
361 <td width
="22" height
="25">
362 <input name
="extract_metadata" type
="checkbox" id
="extract_metadata4"></td
>
363 <td height
="25"> Extract metadata tags
</td
>
364 <td width
="63" height
="25"></td
>
368 <tr align
="center" valign
="top">
370 <table width
="350" border
="0" align
="center" cellpadding
="0" cellspacing
="0" >
372 <td width
="22"> 
;</td
>
373 <th
>Connection settings
</th
>
374 <td width
="63"> 
;</td
>
377 <td width
="22" height
="25"> 
;</td
>
378 <td height
="25">Max total
connections (total
) </td
>
379 <td width
="63" height
="25">
380 <input name
="max_conn_total" type
="text" id
="max_conn_total8" size
="4"></td
>
383 <td width
="22" height
="25"> 
;</td
>
384 <td height
="25">Max sources per file
</td
>
385 <td width
="63" height
="25">
386 <input name
="max_file_src" type
="text" id
="max_file_src7" size
="4"></td
>
389 <td width
="22" height
="25">
390 <input name
="autoconn_en" type
="checkbox" id
="autoconn_en6"></td
>
391 <td height
="25"> Autoconnect at startup
</td
>
392 <td width
="63" height
="25"> 
;</td
>
395 <td width
="22" height
="25">
396 <input name
="reconn_en" type
="checkbox" id
="reconn_en6"></td
>
397 <td height
="25"> Reconnect when connection lost
</td
>
398 <td width
="63" height
="25"> 
;</td
>
402 <tr align
="center" valign
="top">
404 <table width
="350" border
="0" align
="center" cellpadding
="0" cellspacing
="0" >
406 <td width
="22"> 
;</td
>
407 <th
>Network settings
</th
>
408 <td width
="63"> 
;</td
>
411 <td width
="22" height
="25"> 
;</td
>
412 <td height
="25">TCP port
</td
>
413 <td width
="63" height
="25">
414 <input name
="tcp_port" type
="text" id
="tcp_port6" size
="4"></td
>
417 <td width
="22" height
="25"> 
;</td
>
418 <td height
="25">UDP port
</td
>
419 <td width
="63" height
="25">
420 <input name
="udp_port" type
="text" id
="udp_port6" size
="4"></td
>
423 <td width
="22" height
="25">
424 <input name
="udp_dis" type
="checkbox" id
="udp_dis5"></td
>
425 <td height
="25"> Disable UDP connections
</td
>
426 <td width
="63" height
="25"> 
;</td
>
433 if ($_SESSION["guest_login"] == 0) {
434 echo '<input type="submit" name="Submit" value="Apply">';
436 echo "<b> You can not change options - logged in as guest</b>";
439 <input name
="command" type
="hidden" id
="command"> </td
>
443 <td width
="24" background
="images/tab_right.png"> 
;</td
>
446 <td width
="24"><img src
="images/tab_bottom_left.png" width
="24" height
="24"></td
>
447 <td background
="images/tab_bottom.png"> 
;</td
>
448 <td width
="24"><img src
="images/tab_bottom_right.png" width
="24" height
="24"></td
>
453 <td height
="25" colspan
="2"> <table width
="100%" height
="40" border
="0" cellpadding
="0" cellspacing
="0">
454 <tr align
="center" valign
="middle">
455 <td width
="50%"> <iframe name
="stats" src
="footer.php" height
="35" width
="100%" scrolling
="no" frameborder
="0">edklink
</iframe
>
457 <td width
="50%"> <iframe name
="stats" src
="stats.php" height
="35" width
="100%" scrolling
="no" frameborder
="0">connection
</iframe
>