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)  

av.php
Go to the documentation of this file.
1 <?php
22 require '../commons/base.inc.php';
23 try {
24  if (trim($_REQUEST['mode']) != array('q', 's')) {
25  throw new Exception(_('Invalid operational mode'));
26  }
27  $string = explode(':', base64_decode($_REQUEST['string']));
28  $vInfo = explode(' ', trim($string[1]));
30  ->set('name', $vInfo[0])
31  ->set('mac', strtolower($_REQUEST['mac']))
32  ->set('file', $string[0])
33  ->set('date', FOGCore::formatTime('now', 'Y-m-d H:i:s'))
34  ->set('mode', $_REQUEST['mode']);
35  if (!$Virus->save()) {
36  throw new Exception(_('Failed'));
37  }
38  throw new Exception(_('Accepted'));
39 } catch (Exception $e) {
40  echo $e->getMessage();
41 }
FOGBase\getClass
static getClass($class, $data='', $props=false)
Definition: fogbase.class.php:439
$Virus
$Virus
Definition: av.php:29
FOGBase\formatTime
static formatTime($time, $format=false, $utc=false)
Definition: fogbase.class.php:1124
$vInfo
$vInfo
Definition: av.php:28