1 <!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4 <meta http
-equiv
="content-type" content
="text/html; charset=UTF-8">
5 <META HTTP
-EQUIV
="PRAGMAS" CONTENT
="NO-CACHE">
7 aMule CVS
- Web Control Panel
10 <style type
="text/css">
15 a
, a
:link
, a
:visited
{
17 text
-decoration
: none
;
22 text
-decoration
: none
;
25 .down
-header
, .down
-header
-left
, .down
-header
-right
,
26 .down
-line
, .down
-line
-good
, .down
-line
-left
, .down
-line
-good
-left
,
27 .down
-line
-right
, .down
-line
-good
-right
,
28 .up
-header
, .up
-header
-left
, .up
-line
, .up
-line
-left
,
29 .server
-header
, .server
-header
-left
, .server
-line
, .server
-line
-left
,
30 .shared
-header
, .shared
-header
-left
, .shared
-line
, .shared
-line
-changed
,
31 .shared
-line
-left
, .shared
-line
-left
-changed
,
32 .header
, .smallheader
, .commontext
,
33 .upqueue
-header
, .upqueue
-line
, .upqueue
-line
-left
,
34 .websearch
-header
, .websearch
-line
, .addserver
-header
, .addserver
-line
{
43 background
-color
: #1F76A5;
49 background
-color
: #0075B3;
60 background
-color
: #21719B;
66 background
-color
: #1D6083;
69 .down
-header
, .down
-line
, .down
-line
-good
, .up
-header
, .up
-line
,
70 .server
-header
, .server
-line
, .shared
-header
, .shared
-line
, .shared
-line
-changed
,
71 .upqueue
-header
, .upqueue
-line
,
72 .websearch
-header
, .websearch
-line
, .addserver
-header
, .addserver
-line
{
77 .down
-header
-left
, .down
-line
-left
, .down
-line
-good
-left
,
78 .server
-header
-left
, .server
-line
-left
, .shared
-header
-left
,
79 .up
-header
-left
, .up
-line
-left
, .shared
-line
-left
, .shared
-line
-left
-changed
, .upqueue
-line
-left
{
84 .down
-line
-right
, .down
-line
-good
-right
, .down
-header
-right
{
88 .down
-header
, .down
-header
-left
, .down
-header
-right
,
89 .up
-header
, .up
-header
-left
, .server
-header
, .server
-header
-left
,
90 .shared
-header
, .shared
-header
-left
, .upqueue
-header
,
91 .websearch
-header
, .addserver
-header
{
93 background
-color
: #1D6083;
97 background
-color
: #0046AC;
101 background
-color
: #003399;
106 background
-color
: #FFFFFF;
112 font
-family
: Tahoma
;
116 .down
-line
, .down
-line
-good
, .down
-line
-left
, .down
-line
-good
-left
,
117 .down
-line
-right
, .down
-line
-good
-right
,
118 .up
-line
, .up
-line
-left
, .server
-line
, .server
-line
-left
,
119 .shared
-line
, .shared
-line
-changed
, .shared
-line
-left
, .shared
-line
-left
-changed
,
120 .upqueue
-line
, .upqueue
-line
-left
,
121 .websearch
-line
, .addserver
-line
{
123 background
-color
: #1F76A5;
126 .down
-line
-good
, .down
-line
-good
-left
, .down
-line
-good
-right
,
127 .shared
-line
-changed
, .shared
-line
-left
-changed
{
133 border
:0px solid
#000000;
134 border
-collapse
: collapse
;
138 font
-family
: Tahoma
;
142 background
-color
: #1D6083;
152 <body background
="main_bg.gif" text
=white link
="#1F76A5" vlink
="#1F76A5" alink
="#1F76A5" marginwidth
=0 marginheight
=0 topmargin
=0 leftmargin
=0 style
="margin:0px">
153 <table border
="0" width
="100%" align
="center" cellpadding
="0" cellspacing
="0">
155 <td
class="tabs_three" background
="main_top_bg.gif" align
="left" colspan
="4">
157 <table border
="0" cellpadding
="4" cellspacing
="0" width
="100%">
159 <td
class="tabs_three" align
="center" width
="100">
162 <font face
="Tahoma" style
="font-size:13pt;" color
="#000000"><a href
="http://www.amule.org" target
="_blank">
163 <img src
="emule.gif" alt
="aMule | Web Control Panel">
166 <td
class="tabs_three" align
="center" width
="30">
169 <td align
="center" class="tabs_three" width
="95">
171 <a href
="servers.php">
172 <img src
="cp_servers.gif"><br
/>
176 <td align
="center" class="tabs_three" width
="96">
177 <a href
="downloads.php">
178 <img src
="cp_download.gif"><br
/>
183 <td align
="center" class="tabs_three" width
="96">
184 <a href
="search.php">
185 <img src
="cp_search.gif"><br
/>
189 <td align
="center" class="tabs_three" width
="96">
190 <a href
="shared.php">
192 <img src
="cp_shared.gif"><br
/>
195 <td align
="center" class="tabs_three" width
="110">
196 <a href
="stat_tree.php">
197 <img src
="cp_stats.gif"><br
/>
200 <font color
="#000000">|
</font
>
202 <a href
="stat_graphs.php">
206 <td align
="center" class="tabs_three" width
="95">
207 <a href
="preferences.php">
208 <img src
="cp_settings.gif"><br
/>
213 <td
class="tabs_three" align
="center">
216 <td align
="left" class="tabs_three" width
="95">
217 <img src
="log.gif" align
="absmiddle"> <a href
="index.php?serverinfo=1">Serverinfo
</a
><br
/>
218 <img src
="log.gif" align
="absmiddle"> <a href
="index.php?log=1">Log
</a
>
227 <td background
="main_topbar.gif" height
="49" class="tabs_four">
228  
; 
;<b
>Connection
:</b
>
230 function CastToXBytes($size)
232 if ( $size < 1024 ) {
233 $result = $size . " bytes";
234 } elseif ( $size < 1048576 ) {
235 $result = ($size / 1024.0) . "KB";
236 } elseif ( $size < 1073741824 ) {
237 $result = ($size / 1048576.0) . "MB";
239 $result = ($size / 1073741824.0) . "GB";
244 $stats = amule_get_stats();
245 if ( $stats["id"] == 0 ) {
246 echo "Not connected";
247 } elseif ( $stats["id"] == 0xffffffff ) {
248 echo "Connecting ...";
250 echo "Connected with ", (($stats["id"] < 16777216) ?
"low" : "high"), " ID to ",
251 $stats["serv_name"], " ", $stats["serv_addr"];
253 echo '<br> <b>Speed:</b> Up: ', CastToXBytes($stats["speed_up"]), 'ps',
254 ' | Down: ', CastToXBytes($stats["speed_down"]), 'ps',
255 '<small> (Limits: ', CastToXBytes($stats["speed_limit_up"]), 'ps/',
256 CastToXBytes($stats["speed_limit_down"]), 'ps)</small> ';
258 <font color
="#FFE471">
259 <script language
="javascript">
261 s
= "[ " + d
.getDate() +
"/" +
(d
.getMonth() +
1) +
"/" + d
.getFullYear() +
" " + d
.getHours() +
":" +
(d
.getMinutes() < 10 ?
"0" : "") + d
.getMinutes() +
":" +
(d
.getSeconds() < 10 ?
"0" : "") + d
.getSeconds() +
" ]";
266 <td background
="main_topbar.gif" align
="center" valign
="middle" class="tabs_four">
268 <a href
="index.php?links=1">
269 <img src
="arrow_right.gif" align
="absmiddle">
270  
; ed2k
:// ED2K Link(s)
273 <td background
="main_topbar.gif" align
="right">
275 <table border
="0" cellpadding
="0" cellspacing
="0" width
="8" height
="100%">
277 <td height
="49" background
="main_topbarseperator.gif">
285 <td background
="main_topbardarker.gif" align
="center" valign
="middle" class="tabs_five">
287 <img src
="arrow_down_logout.gif" align
="absmiddle">
297 function cat2idx($cat)
299 $cats = amule_get_categories();
301 foreach($cats as $i => $c) {
302 if ( $cat == $c) $result = $i;
307 if (($HTTP_GET_VARS['cmd'] == 'download' ) && ($_SESSION["guest_login"] == 0)) {
308 $link = $HTTP_GET_VARS['ed2klink'];
309 $target_cat_idx = cat2idx($HTTP_GET_VARS['cat']);
310 if ( strlen($link) > 0 ) {
311 amule_do_ed2k_download_cmd($link, $target_cat_idx);
315 if ( $HTTP_GET_VARS['links'] == 1) {
317 <table align=center border=0 cellpadding=4 cellspacing=0 width="80%">
319 <td align=center class="shared-header">
320 <p><font face=Tahoma style="font-size:10pt;"><b>Download Selected</b></font></p>
324 <td align=center valign=top class=tabs>
325 <form action="/" method="GET">
326 <input type="hidden" name="cmd" value="download">
327 <font face=Tahoma style="font-size:10pt;"> <br>ED2K Link(s)<br><br>
328 <textarea name="ed2klink" cols="94" rows="7" class=dinput></textarea>
330 <input type=submit value="Start"></font><img src="arrow_right.gif" align="absmiddle">
331 <select name="cat" size="1">';
333 $cats = amule_get_categories();
334 foreach($cats as $c) {
335 echo "<option>", $c, "</option>";
344 } elseif ( $HTTP_GET_VARS['serverinfo'] == 1 ) {
345 $strinfo = amule_get_serverinfo($HTTP_GET_VARS['rst']);
346 echo '<table border=0 align=center cellpadding=4 cellspacing=0 width="80%">
347 <tr><td align=left valign=middle class="commontext">
348 <font color="#000000" face="Lucida Console"><pre>';
350 echo '</pre></font></td></tr><tr><td align=left valign=middle>
351 <form action="index.php" method="GET">
352 <input type="hidden" name=rst value=1>
353 <input type="hidden" name=serverinfo value=1>
354 <input type=submit value="Reset"></form>
356 } elseif ( $HTTP_GET_VARS['log'] == 1) {
357 $strinfo = amule_get_log($HTTP_GET_VARS['rst']);
358 echo '<table border=0 align=center cellpadding=4 cellspacing=0 width="80%">
359 <tr><td align=left valign=middle class="commontext">
360 <font color="#000000" face="Lucida Console"><pre>';
362 echo '</pre></font></td></tr><tr><td align=left valign=middle>
363 <form action="index.php" method="GET">
364 <input type="hidden" name=rst value=1>
365 <input type="hidden" name=log value=1>
366 <input type=submit value="Reset"></form>