source: admin-center-alpha/var/www/admin-center/info.php @ 7

Last change on this file since 7 was 7, checked in by mabarracus, 3 years ago

Ported code admin-center-alpha from trusty

File size: 3.6 KB
Line 
1<h1> Server Info </h1>
2
3
4<div class="col-lg-4 col-lg-offset-4">
5<div class="panel panel-primary ">
6  <div class="panel-heading">
7    <h3 class="panel-title">Server Info</h3>
8  </div>
9  <div class="panel-body">
10    <table>
11      <tr><td class="ServerInfo_Param">Server IP</td> <td id="serverInfo_SRV_IP"></td></tr>
12      <tr><td class="ServerInfo_Param">Hostname</td> <td id="serverInfo_HOSTNAME"></td></tr>
13      <tr><td class="ServerInfo_Param">Internal Domain</td> <td id="serverInfo_INTERNAL_DOMAIN"></td></tr>
14      <tr><td class="ServerInfo_Param">Internal Interface</td> <td id="serverInfo_INTERNAL_INTERFACE"></td></tr>
15      <tr><td class="ServerInfo_Param">External Interface</td> <td id="serverInfo_EXTERNAL_INTERFACE"></td></tr>
16      <tr><td class="ServerInfo_Param">Internal Mask</td> <td id="serverInfo_INTERNAL_MASK"></td></tr>
17      <tr><td class="ServerInfo_Param">Internal Network</td> <td id="serverInfo_INTERNAL_NETWORK"></td></tr>
18      <tr><td class="ServerInfo_Param">Primary DNS Server</td> <td id="serverInfo_DNS1"></td></tr>
19      <tr><td class="ServerInfo_Param">Secondary DNS Server</td> <td id="serverInfo_DNS2"></td></tr>
20    </table>
21  </div>
22</div>
23
24
25<div class="panel panel-primary ">
26  <div class="panel-heading">
27    <h3 class="panel-title">DHCP</h3>
28  </div>
29  <div class="panel-body">
30    <table>
31      <tr><td class="ServerInfo_Param">Estat del servei</td> <td id="serverInfo_DHCP_ENABLE"></td></tr>
32      <tr><td class="ServerInfo_Param">Rang d'adreces</td> <td id="serverInfo_IP_RANGE"></td></tr>
33      <tr><td class="ServerInfo_Param">Max. Hosts</td><td id="serverInfo_DHCP_HOST_MAX"></td></tr>
34    </table>
35  </div>
36</div>
37
38
39<div class="panel panel-primary ">
40  <div class="panel-heading">
41    <h3 class="panel-title">LliureX Mirror</h3>
42  </div>
43  <div class="panel-body">
44    <table>
45      <tr><td class="ServerInfo_Param">Data d'actualització</td> <td id="serverInfo_LAST_MIRROR_DATE"></td></tr>
46      <tr><td class="ServerInfo_Param">Pes del mirror</td> <td id="serverInfo_MIRROR_SIZE"></td></tr>
47    </table>
48  </div>
49</div>
50
51<div class="panel panel-primary ">
52  <div class="panel-heading">
53    <h3 class="panel-title">Proxt</h3>
54  </div>
55  <div class="panel-body">
56    <table>
57      <tr><td class="ServerInfo_Param">Estat del proxy</td> <td id="serverInfo_PROXY_ENABLED"></td></tr>
58      <tr><td class="ServerInfo_Param">Nom del proxy</td> <td id="serverInfo_PROXY_HOST"></td></tr>
59      <tr><td class="ServerInfo_Param">Port del proxy</td><td id="serverInfo_PROXY_HTTPORT"></td></tr>
60    </table>
61  </div>
62</div>
63
64
65
66</div>
67
68<!--console.log(ServerConfig["SRV_IP"]["value"]);
69
70console.log(ServerConfig["HOSTNAME"]["value"]);
71console.log(ServerConfig["SRV_IP"]["value"]);
72console.log(ServerConfig["INTERNAL_DOMAIN"]["value"]);
73console.log(ServerConfig["INTERNAL_INTERFACE"]["value"]);
74console.log(ServerConfig["EXTERNAL_INTERFACE"]["value"]);
75console.log(ServerConfig["INTERNAL_MASK"]["value"]);
76console.log(ServerConfig["INTERNAL_NETWORK"]["value"]);
77
78console.log(ServerConfig["DNS_EXTERNAL"]["value"][0]);
79console.log(ServerConfig["DNS_EXTERNAL"]["value"][1]);
80
81console.log(ServerConfig["DHCP_ENABLE"]["value"]);
82console.log(ServerConfig["DHCP_FIRST_IP"]["value"]);
83console.log(ServerConfig["DHCP_LAST_IP"]["value"]);
84console.log(ServerConfig["DHCP_HOST_MAX"]["value"]);
85
86console.log(ServerConfig["LLIUREXMIRROR"]["value"]["internal"]["last_mirror_date"]);
87console.log(ServerConfig["LLIUREXMIRROR"]["value"]["internal"]["mirror_size"]);
88
89console.log(ServerConfig["PROXY_ENABLED"]["value"]);
90console.log(ServerConfig["PROXY_HOST"]["value"]);
91console.log(ServerConfig["PROXY_HTTPORT"]["value"]);-->
Note: See TracBrowser for help on using the repository browser.