• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/www/www.WL-520GU/

Lines Matching refs:clients

4 	var clients = new Array();
7 // get wired clients
9 clients[i] = new Array(5);
10 //clients[i][0] = "<#CTL_unknown#>"; // hostname
11 clients[i][0] = ""; // hostname
12 clients[i][1] = ""; // ip
13 clients[i][2] = arls[i][0].toUpperCase(); // MAC
14 clients[i][3] = parseInt(arls[i][1]); // where port the wired client is.
15 clients[i][4] = null;
16 clients[i][5] = null;
17 clients[i][6] = "0";
18 clients[i][7] = "0";
19 clients[i][8] = "0";
22 // get wireless clients
26 clients[i] = new Array(5);
27 //clients[i][0] = "<#CTL_unknown#>"; // hostname
28 clients[i][0] = ""; // hostname
29 clients[i][1] = ""; // ip
30 clients[i][2] = wireless[wireless_order][0]; // MAC
31 clients[i][3] = 10; // 10 is meant the client is wireless.
33 clients[i][4] = new Array(2);
34 clients[i][4][0] = wireless[wireless_order][1];
35 clients[i][4][1] = wireless[wireless_order][2];
37 if(clients[i][4][0] == "Yes")
38 clients[i][4][0] = "Associated";
40 clients[i][4][0] = "Disassociated";
42 clients[i][5] = null;
43 clients[i][6] = "0";
44 clients[i][7] = "0";
45 clients[i][8] = "0";
48 // get the hostnames and IPs of the clients
49 for(var i = 0; i < clients.length; ++i){
55 if(clients[i][2] == leases[j][1]){
58 clients[i][0] = leases[j][0];
62 clients[i][1] = leases[j][2];
70 if(clients[i][2] == arps[j][3]){
73 clients[i][1] = arps[j][0];
80 if(clients[i][1] == login_ip_str()
81 && clients[i][2] == login_mac_str()){
82 if(clients[i][0] == null || clients[i][0].length <= 0)
83 clients[i][0] = "<#CTL_localdevice#>";
85 clients[i][0] += "(<#CTL_localdevice#>)";
89 clients[i][2] = simplyMAC(clients[i][2]);
92 return clients;
96 var clients = new Array();
99 clients[i] = new Array(9);
101 clients[i][0] = ipmonitor[i][2]; // Device name
109 clients[i][0] = leases[j][0];
112 clients[i][0] = ipmonitor[i][2];
116 clients[i][1] = ipmonitor[i][0]; // IP
117 clients[i][2] = ipmonitor[i][1]; // MAC
118 clients[i][3] = null; // if this is a wireless client.
119 clients[i][4] = null; // wireless information.
120 clients[i][5] = ipmonitor[i][3]; // TYPE
121 clients[i][6] = ipmonitor[i][4]; // if there's the HTTP service.
122 clients[i][7] = ipmonitor[i][5]; // if there's the Printer service.
123 clients[i][8] = ipmonitor[i][6]; // if there's the iTune service.
126 if(clients[i][2] == arls[j][0].toUpperCase()){
127 clients[i][3] = parseInt(arls[j][1]); // where port the wired client is.
134 if(clients[i][2] == wireless[j][0]){
135 clients[i][3] = 10; // 10 is meant the client is wireless.
137 clients[i][4] = new Array(2);
138 clients[i][4][0] = wireless[j][1];
139 clients[i][4][1] = wireless[j][2];
141 if(clients[i][4][0] == "Yes")
142 clients[i][4][0] = "Associated";
144 clients[i][4][0] = "Disassociated";
151 if(clients[i][1] == login_ip_str()
152 && clients[i][2] == login_mac_str()){
153 if(clients[i][0] == null || clients[i][0].length <= 0)
154 clients[i][0] = "<#CTL_localdevice#>";
156 clients[i][0] += "(<#CTL_localdevice#>)";
160 clients[i][2] = simplyMAC(clients[i][2]);
163 return clients;
196 function test_all_clients(clients){
201 str += clients.length+"\n";
204 for(var i = 0; i < clients.length; ++i){
217 str += clients[i][j];