Magellan Linux

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

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

revision 7121 by niro, Fri Sep 11 15:21:11 2015 UTC revision 7125 by niro, Mon Sep 14 07:23:07 2015 UTC
# Line 7  include('include/common-functions.php'); Line 7  include('include/common-functions.php');
7  include('include/current-problems.php');  include('include/current-problems.php');
8    
9  $tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver', 'client_version');  $tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver', 'client_version');
10  $multi= array( 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0);  $multi= array( 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0);
11  $data = array();  $data = array();
12    
13  // get alx version info for  // get alx version info for
# Line 354  echo '</td><td valign=top>'; Line 354  echo '</td><td valign=top>';
354   $state = 'Off';   $state = 'Off';
355   if(count($conn)>0)   if(count($conn)>0)
356   {   {
357   if($retval==0) $state = 'On';   if($retval==0)
358     {
359     // first try mcore, then get ssh
360     $ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout);
361     if($ping_retval==1) $ping_retval = ping_host($dat['ip'],$ssh_port,$ping_timeout);
362     if($ping_retval==0)
363     {
364     $state = 'On';
365     }
366     }
367   }   }
368    
369   echo '<img src="pics/logo2.jpg"><br><br>';   echo '<img src="pics/logo2.jpg"><br><br>';
# Line 366  echo '</td><td valign=top>'; Line 375  echo '</td><td valign=top>';
375   echo '<input class="but" type=submit name="do_add" value="SAVE+ADD SESSION" style="width:150px"><br>';   echo '<input class="but" type=submit name="do_add" value="SAVE+ADD SESSION" style="width:150px"><br>';
376   echo '<input class="but" type=submit name="do_add" value="SAVE+ADD MODULE" style="width:150px"><br>';   echo '<input class="but" type=submit name="do_add" value="SAVE+ADD MODULE" style="width:150px"><br>';
377   echo '<input class="but" type=submit name="do_add" value="SAVE+ADD MENUITEM" style="width:150px"><br>';   echo '<input class="but" type=submit name="do_add" value="SAVE+ADD MENUITEM" style="width:150px"><br>';
378     echo '<input class="but" type=submit name="do_add" value="SAVE+ADD AUTOSTART" style="width:150px"><br>';
379   echo '<br>';   echo '<br>';
380    
381   if($id>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE';   if($id>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE';

Legend:
Removed from v.7121  
changed lines
  Added in v.7125