Magellan Linux

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

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

revision 8524 by niro, Mon Feb 8 09:58:38 2016 UTC revision 11133 by niro, Thu Nov 23 10:21:44 2017 UTC
# Line 6  include('include/common-functions.php'); Line 6  include('include/common-functions.php');
6  // INCLUDE CURRENT-PROBLEMS  // INCLUDE CURRENT-PROBLEMS
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_citrix', 'cfg_sessions_storefront', 'cfg_sessions_rdesktop', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver', 'client_version');  $tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_fluxbox_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions_citrix', 'cfg_sessions_storefront', 'cfg_sessions_rdesktop', 'cfg_modules', 'cfg_fluxbox_menuitem', 'cfg_screensaver', 'client_version');
10  $multi= array( 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0);  $multi= array( 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0);
11  $data = array();  $data = array();
12    
# Line 14  $data = array(); Line 14  $data = array();
14  $alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$id);  $alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$id);
15  $alxos = $alxinfo[os];  $alxos = $alxinfo[os];
16  $alxutils = $alxinfo[utils];  $alxutils = $alxinfo[utils];
17    $alxarch = $alxinfo[arch];
18    
19  // get gfxdriver  // get gfxdriver
20  $gfxinfo = sqlfirst('SELECT * FROM cfg_graphic WHERE serial='.$id);  $gfxinfo = sqlfirst('SELECT * FROM cfg_graphic WHERE serial='.$id);
# Line 36  if($kill==1) Line 37  if($kill==1)
37  // FELD-DEFINITIONEN  (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID)  // FELD-DEFINITIONEN  (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID)
38  $drop = array();  $drop = array();
39  $drop['cfg_graphic_module'] = sqlarr('SELECT value FROM values_graphic_module where enabled=1', '', 'value');  $drop['cfg_graphic_module'] = sqlarr('SELECT value FROM values_graphic_module where enabled=1', '', 'value');
40  if($gfxinfo[module] == 'intel')  if($gfxinfo['module'] == 'intel')
41  {  {
42   $drop['cfg_graphic_hdmi'] = array('disable', 'enable');   $drop['cfg_graphic_hdmi'] = array('disable', 'enable');
43  }  }
# Line 62  $drop['monitorid'] = 'ignore'; Line 63  $drop['monitorid'] = 'ignore';
63  $drop['refresh_rate'] = sqlarr('SELECT value FROM values_graphic_refresh_rate where enabled=1', '', 'value');  $drop['refresh_rate'] = sqlarr('SELECT value FROM values_graphic_refresh_rate where enabled=1', '', 'value');
64  $drop['hostname'] = 'bold';  $drop['hostname'] = 'bold';
65  $drop['session'] = 'bold';  $drop['session'] = 'bold';
 $drop['cfg_autostart_session'] = sqlarr('SELECT filename FROM cfg_sessions_citrix where serial='.$id, '', 'filename');  
 array_unshift($drop['cfg_autostart_session'], "");  
66  $drop['mtime'] = 'showtime';  $drop['mtime'] = 'showtime';
67  $drop['mac'] = 'show';  $drop['mac'] = 'show';
68    $drop['arch'] = 'show';
69  $drop['client_serials_serial'] = 'show';  $drop['client_serials_serial'] = 'show';
70  $drop['password'] = 'password';  $drop['password'] = 'password';
71  //$drop['shell'] = 'password';  //$drop['shell'] = 'password';
# Line 119  if(isset($_POST['do_add'])) Line 119  if(isset($_POST['do_add']))
119   else if($what=='SESSION-CITRIX') sqladd('cfg_sessions_citrix', array('domain'=>$citrix_domain_name, 'serverlist'=>$citrix_serverlist, 'serial'=>$id));   else if($what=='SESSION-CITRIX') sqladd('cfg_sessions_citrix', array('domain'=>$citrix_domain_name, 'serverlist'=>$citrix_serverlist, 'serial'=>$id));
120   else if($what=='SESSION-STOREFRONT') sqladd('cfg_sessions_storefront', array('domain'=>$storefront_domain_name, 'store'=>$storefront_store, 'serial'=>$id));   else if($what=='SESSION-STOREFRONT') sqladd('cfg_sessions_storefront', array('domain'=>$storefront_domain_name, 'store'=>$storefront_store, 'serial'=>$id));
121   else if($what=='SESSION-RDP') sqladd('cfg_sessions_rdesktop', array('domain'=>$rdesktop_domain_name, 'server'=>$rdesktop_server, 'serial'=>$id));   else if($what=='SESSION-RDP') sqladd('cfg_sessions_rdesktop', array('domain'=>$rdesktop_domain_name, 'server'=>$rdesktop_server, 'serial'=>$id));
122   else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id));   else if($what=='MENUITEM') sqladd('cfg_fluxbox_menuitem', array('serial'=>$id));
123   else if($what=='AUTOSTART') sqladd('cfg_autostart', array('serial'=>$id));   else if($what=='AUTOSTART') sqladd('cfg_fluxbox_autostart', array('serial'=>$id));
124  }  }
125    
126    
# Line 402  echo '</td><td valign=top>'; Line 402  echo '</td><td valign=top>';
402   echo '<br>';   echo '<br>';
403   echo '<u>OS:</u> '.$alxos.'<br>';   echo '<u>OS:</u> '.$alxos.'<br>';
404   echo '<u>Utils:</u> '.$alxutils.'<br>';   echo '<u>Utils:</u> '.$alxutils.'<br>';
405     echo '<u>Arch:</u> '.$alxarch.'<br>';
406   }   }
407    
408   echo '</b></div>';   echo '</b></div>';
# Line 419  echo '</td><td valign=top>'; Line 420  echo '</td><td valign=top>';
420   else   else
421   echo '<input class="but" type=button value="WAKE ON LAN" style="width:150px" onclick="if(confirm(\'WAKE CLIENT #'.$id.' ?\')) window.open(\'wake_on_lan.php?mac='.$data['client_serials']['mac'].'\', \'WakeWin\', \'width=200,height=100\')"><br>';   echo '<input class="but" type=button value="WAKE ON LAN" style="width:150px" onclick="if(confirm(\'WAKE CLIENT #'.$id.' ?\')) window.open(\'wake_on_lan.php?mac='.$data['client_serials']['mac'].'\', \'WakeWin\', \'width=200,height=100\')"><br>';
422    
423     // print version info
424     $version = file_get_contents('./VERSION', FILE_USE_INCLUDE_PATH);
425     echo '<br><br><font size="1">v'.$version.'</font>';
426    
427  echo '</td></tr></table>';  echo '</td></tr></table>';
428  echo '</form>';  echo '</form>';
429  ?>  ?>

Legend:
Removed from v.8524  
changed lines
  Added in v.11133