Upstream tarball 10154
[amule.git] / src / webserver / default / amuleweb-main-kad.php
blob0630da5fb390209d3f94ac47db4c98a23cbd927b
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>aMule control panel</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <?php
7 if ( $_SESSION["auto_refresh"] > 0 ) {
8 echo "<meta http-equiv=\"refresh\" content=\"", $_SESSION["auto_refresh"], '">';
11 amule_load_vars("stats_graph");
13 <script language="JavaScript" type="text/JavaScript">
14 <!--
15 function MM_swapImgRestore() { //v3.0
16 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
19 function MM_preloadImages() { //v3.0
20 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
21 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
22 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
25 function MM_findObj(n, d) { //v4.01
26 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
27 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
28 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
29 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
30 if(!x && d.getElementById) x=d.getElementById(n); return x;
33 function MM_swapImage() { //v3.0
34 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
35 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
37 //-->
38 </script>
39 <link href="style.css" rel="stylesheet" type="text/css"><style type="text/css">
40 <!--
41 caption {
42 font-family: Helvetica;
43 font-size: 18px;
44 font-weight: bold;
45 color: #003161;
47 th {
48 font-family: Helvetica;
49 font-size: 14px;
50 font-height: 22px;
51 font-weight: bold;
52 color: #003161;
54 a:link {
55 color: #003161;
56 text-decoration: none;
58 a:active {
59 color: #003161;
60 text-decoration: none;
62 a:visited {
63 color: #003161;
64 text-decoration: none;
66 a:hover {
67 color: #c0c0c0;
68 text-decoration: underline;
70 td {
71 font-family: Helvetica;
72 font-size: 12px;
73 font-weight: normal;
75 label {
76 font-family: Helvetica;
77 font-size: 14px;
78 font-weight: bold;
80 .texte {
81 font-family: Helvetica;
82 font-size: 12px;
83 font-weight: normal;
85 label {
86 font-family:"trebuchet ms",sans-serif;
87 font-size: 12px;
88 font-weight:bold
90 input {
91 border:1px solid #003161;
92 background-color: white;
93 font-family:"trebuchet ms",sans-serif;
94 font-size: 12px;
95 color: #003161;
97 select, option {
98 background-color: white;
99 font-size: 12px;
100 color: #003161;
102 textarea {
103 border:1px solid #003161;
104 background-color: #90B6DB;
105 font-family:"trebuchet ms",sans-serif;
106 font-size: 12px;
107 color: white;
110 </style>
111 </head><script language="JavaScript" type="text/JavaScript">
112 function formCommandSubmit(command)
114 if ( command == "cancel" ) {
115 var res = confirm("Delete selected files ?")
116 if ( res == false ) {
117 return;
120 if ( command != "filter" ) {
121 <?php
122 if ($_SESSION["guest_login"] != 0) {
123 echo 'alert("You logged in as guest - commands are disabled");';
124 echo "return;";
128 var frm=document.forms.mainform
129 frm.command.value=command
130 frm.submit()
133 </script>
134 <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')">
135 <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
136 <tr valign="top">
137 <td width="143" height="64"><img src="images/logo.png" width="143" height="64"></td>
138 <td width="100%" height="64" align="right" background="images/fond_haut.png"> <table border="0" cellspacing="0" cellpadding="0">
139 <tr>
140 <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>
141 <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>
142 <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>
143 <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>
144 <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>
145 <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>
146 <td><img src="images/col.png"></td>
147 <td width="10"></td>
148 <td width="190" align="right" class="texteinv"><a href="login.php">exit</a><br>
149 <a href="amuleweb-main-log.php">log &bull;</a> <a href="amuleweb-main-prefs.php">configuration</a></td>
150 <td width="10"></td>
151 </tr>
152 </table></td>
153 </tr>
154 <tr align="center" valign="top">
155 <td colspan="2"><form name="mainform" action="amuleweb-main-kad.php" method="post">
156 <table width="100%" border="0" cellspacing="0" cellpadding="0">
157 <caption>
158 KADEMLIA
159 </caption>
160 <tr>
161 <td width="24"><img src="images/tab_top_left.png" width="24" height="24"></td>
162 <td background="images/tab_top.png">&nbsp;</td>
163 <td width="24"><img src="images/tab_top_right.png" width="24" height="24"></td>
164 </tr>
165 <tr>
166 <td width="24" background="images/tab_left.png">&nbsp;</td>
167 <td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
168 <!--DWLayoutTable-->
169 <tr valign="top">
170 <td height="200"><img src="amule_stats_kad.png" width="500" height="200" border="0" alt="" title="" /></td>
171 <td valign="top"> <table border="0" align="center" cellpadding="0" cellspacing="6" class="kadnewnode">
172 <tr>
173 <th colspan="2">Bootstrap from node</th>
174 </tr>
175 <tr>
176 <td align="right">IP :</td><td align="left"><input name="ip3" type="text" id="ip32" size="3" maxlength="3">
177 &nbsp; <input name="ip2" type="text" id="ip23" size="3" maxlength="3">
178 &nbsp; <input name="ip1" type="text" id="ip13" size="3" maxlength="3">
179 &nbsp; <input name="ip0" type="text" id="ip03" size="3" maxlength="3"></td>
180 </tr>
181 <tr>
182 <td align="right">Port :</td><td align="left"><input name="port" type="text" id="port3" size="4" maxlength="5">
183 &nbsp; <input type="submit" name="Submit" value="Connect"></td>
184 </tr>
185 </table></td>
186 </tr>
187 <tr valign="top">
188 <td height="20" width="500" align="center">Number of nodes</td>
189 <td></td>
190 </tr>
191 </table></td>
192 <td width="24" background="images/tab_right.png">&nbsp;</td>
193 </tr>
194 <tr>
195 <td width="24"><img src="images/tab_bottom_left.png" width="24" height="24"></td>
196 <td background="images/tab_bottom.png">&nbsp;</td>
197 <td width="24"><img src="images/tab_bottom_right.png" width="24" height="24"></td>
198 </tr>
199 </table>
200 </form></td>
201 </tr>
202 <tr valign="bottom">
203 <td height="25" colspan="2"> <table width="100%" height="40" border="0" cellpadding="0" cellspacing="0">
204 <tr align="center" valign="middle">
205 <td width="50%"> <iframe name="stats" src="footer.php" height="35" width="100%" scrolling="no" frameborder="0">edklink</iframe>
206 </td>
207 <td width="50%"> <iframe name="stats" src="stats.php" height="35" width="100%" scrolling="no" frameborder="0">connection</iframe>
208 </td>
209 </tr>
210 </table></td>
211 </tr>
212 </table>
213 </body>
214 </html>