fogproject  1.5.9
About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn’t use any boot disks, or CDs; everything is done via TFTP and PXE.
  Fossies Dox: fogproject-1.5.9.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

kernelvers.php
Go to the documentation of this file.
1 <?php
22 require '../commons/base.inc.php';
23 session_write_close();
24 ignore_user_abort(true);
25 set_time_limit(0);
26 header('Content-Type: text/event-stream');
27 $url = filter_input(INPUT_POST, 'url');
28 if ($url) {
29  $res = $FOGURLRequests
30  ->process($url);
31  foreach ((array)$res as &$response) {
32  echo $response;
33  unset($response);
34  }
35  exit;
36 }
37 $kernelvers = function ($kernel) {
38  $currpath = sprintf(
39  '%s%sservice%sipxe%s%s',
40  BASEPATH,
41  DS,
42  DS,
43  DS,
44  $kernel
45  );
46  $basepath = escapeshellarg($currpath);
47  $findstr = sprintf(
48  'strings %s | grep -A1 "%s:" | tail -1 | awk \'{print $1}\'',
49  $basepath,
50  'Undefined video mode number'
51  );
52  return shell_exec($findstr);
53 };
54 printf(
55  "%s\n",
56  FOG_VERSION
57 );
58 printf(
59  "bzImage Version: %s\n",
60  $kernelvers('bzImage')
61 );
62 printf(
63  "bzImage32 Version: %s",
64  $kernelvers('bzImage32')
65 );
$kernelvers
if($url) $kernelvers
Definition: kernelvers.php:37
exit
exit
Definition: download.php:102
$response
$response
Definition: logtoview.php:185
$url
$url
Definition: kernelvers.php:27