PageRenderTime 3ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/src/webserver/default/amuleweb-main-kad.php

https://bitbucket.org/gzf/umule
PHP | 214 lines | 214 code | 0 blank | 0 comment | 1 complexity | 8b283a6c3e127ff8d488e982b9a4619d MD5 | raw file
  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=UTF-8">
  6<?php
  7	if ( $_SESSION["auto_refresh"] > 0 ) {
  8		echo "<meta http-equiv=\"refresh\" content=\"", $_SESSION["auto_refresh"], '">';
  9	}
 10
 11	amule_load_vars("stats_graph");
 12?>
 13<script language="JavaScript" type="text/JavaScript">
 14<!--
 15function 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;
 17}
 18
 19function 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];}}
 23}
 24
 25function 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;
 31}
 32
 33function 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];}
 36}
 37//-->
 38</script>
 39<link href="style.css" rel="stylesheet" type="text/css"><style type="text/css">
 40<!--
 41caption {
 42	font-family: Helvetica;
 43	font-size: 18px;
 44	font-weight: bold;
 45	color: #003161;
 46}
 47th {
 48	font-family: Helvetica;
 49	font-size: 14px;
 50	font-height: 22px;
 51	font-weight: bold;
 52	color: #003161;
 53}
 54a:link {
 55	color: #003161;
 56	text-decoration: none;
 57}
 58a:active {
 59	color: #003161;
 60	text-decoration: none;
 61}
 62a:visited {
 63	color: #003161;
 64	text-decoration: none;
 65}
 66a:hover {
 67	color: #c0c0c0;
 68	text-decoration: underline;
 69}
 70td {
 71	font-family: Helvetica;
 72	font-size: 12px;
 73	font-weight: normal;
 74}
 75label {
 76	font-family: Helvetica;
 77	font-size: 14px;
 78	font-weight: bold;
 79}
 80.texte {
 81	font-family: Helvetica;
 82	font-size: 12px;
 83	font-weight: normal;
 84}
 85label {
 86font-family:"trebuchet ms",sans-serif;
 87font-size: 12px;
 88font-weight:bold
 89}
 90input {
 91border:1px solid #003161;
 92background-color:  white;
 93font-family:"trebuchet ms",sans-serif;
 94font-size: 12px;
 95color: #003161;
 96}
 97select, option {
 98background-color:  white;
 99font-size: 12px;
100color: #003161;
101}
102textarea {
103border:1px solid #003161;
104background-color: #90B6DB;
105font-family:"trebuchet ms",sans-serif;
106font-size: 12px;
107color: white;
108}
109-->
110</style>
111</head><script language="JavaScript" type="text/JavaScript">
112function formCommandSubmit(command)
113{
114	if ( command == "cancel" ) {
115		var res = confirm("Delete selected files ?")
116		if ( res == false ) {
117			return;
118		}
119	}
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;";
125			}
126		?>
127	}
128	var frm=document.forms.mainform
129	frm.command.value=command
130	frm.submit()
131}
132
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>