Magellan Linux

Diff of /alx-src/branches/alx-web-070/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7122 by niro, Fri Sep 11 15:24:49 2015 UTC revision 7995 by niro, Mon Dec 14 08:11:29 2015 UTC
# Line 9  $_SESSION['alx_sort_krit'] = $alx_sort_k Line 9  $_SESSION['alx_sort_krit'] = $alx_sort_k
9  $_SESSION['alx_sort_onfirst'] = $alx_sort_onfirst;  $_SESSION['alx_sort_onfirst'] = $alx_sort_onfirst;
10  $_SESSION['alx_sort_loc'] = $alx_sort_loc;  $_SESSION['alx_sort_loc'] = $alx_sort_loc;
11    
12  $locations = sqlarr('SELECT location FROM client_locations', '', 'location');  $locations = sqlarr('SELECT location FROM client_locations where enabled="1"', '', 'location');
13  $locations[] = '';  $locations[] = '';
14    
15  if($_SESSION['alx_sort_krit']==null)  if($_SESSION['alx_sort_krit']==null)
# Line 75  function checkif($b) Line 75  function checkif($b)
75    
76  $comps = sqlarr("select client_serials.serial, client_serials.location, client_serials.mac, cfg_network.hostname, state_connected.mtime from client_serials left join cfg_network on client_serials.serial=cfg_network.serial left join state_connected on client_serials.serial=state_connected.serial", "serial");  $comps = sqlarr("select client_serials.serial, client_serials.location, client_serials.mac, cfg_network.hostname, state_connected.mtime from client_serials left join cfg_network on client_serials.serial=cfg_network.serial left join state_connected on client_serials.serial=state_connected.serial", "serial");
77    
78  sqlforeach('SELECT serial, ip, hostname, mac FROM state_connected', 'check_online', null);  sqlforeach('SELECT state_connected.serial, state_connected.ip, cfg_network.hostname, state_connected.mac FROM state_connected left join cfg_network on cfg_network.serial=state_connected.serial', 'check_online', null);
79  usort($comps, 'sortcomp');  usort($comps, 'sortcomp');
80  echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
81      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
# Line 171  foreach($comps as $c) Line 171  foreach($comps as $c)
171   if($alxver == '') $alxver='unknown';   if($alxver == '') $alxver='unknown';
172   if($alxutils == '') $alxutils='unknown';   if($alxutils == '') $alxutils='unknown';
173    
174         echo '<td>'.$alxver.'</td>';   echo '<td>'.$alxver.'</td>';
175         echo '<td>'.$alxutils.'</td>';   echo '<td>'.$alxutils.'</td>';
176   }   }
177    
178   echo '<td>';   echo '<td>';
# Line 186  foreach($comps as $c) Line 186  foreach($comps as $c)
186   else echo '<input type=button style="width:100%" value="WOL" onclick="if(confirm(\'WAKE CLIENT #'.$c['serial'].' ?\')) window.open(\'wake_on_lan.php?mac='.$c['mac'].'\', \'WakeWin\', \'width=200,height=100\')">';   else echo '<input type=button style="width:100%" value="WOL" onclick="if(confirm(\'WAKE CLIENT #'.$c['serial'].' ?\')) window.open(\'wake_on_lan.php?mac='.$c['mac'].'\', \'WakeWin\', \'width=200,height=100\')">';
187   echo '</td>';   echo '</td>';
188    
189   echo '</tr>';   echo '</tr>';
190  }  }
191  echo '</tbody></table><br>';  echo '</tbody></table><br>';
192    

Legend:
Removed from v.7122  
changed lines
  Added in v.7995