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)  

index.php
Go to the documentation of this file.
1 <?php
22 require '../commons/base.inc.php';
23 $FOGPageManager = FOGCore::getClass('FOGPageManager');
24 if (session_status() != PHP_SESSION_NONE) {
25  if (isset($_SESSION['delitems'])
26  && !in_array($sub, array('deletemulti', 'deleteconf'))
27  ) {
28  unset($_SESSION['delitems']);
29  }
30 }
31 FOGCore::getClass('ProcessLogin')->processMainLogin();
32 require '../commons/text.php';
34 $nodes = array(
35  'schema',
36  'client',
37  'ipxe'
38 );
39 if (!in_array($node, $nodes)
40  && ($node == 'logout' || !$currentUser->isValid())
41 ) {
42  $currentUser->logout();
43  $Page
44  ->setTitle($foglang['Login'])
45  ->setSecTitle($foglang['ManagementLogin'])
46  ->startBody();
47  FOGCore::getClass('ProcessLogin')
48  ->mainLoginForm();
49  $Page
50  ->endBody()
51  ->render();
52 } else {
53  if (FOGCore::$ajax) {
54  $FOGPageManager->render();
55  exit;
56  }
57  $Page->startBody();
58  $FOGPageManager->render();
59  //if ($FOGPageManager->getFOGPageName() !== $FOGPageManager->getFOGPageTitle()) {
60  $Page
61  ->setTitle($FOGPageManager->getFOGPageTitle());
62  //}
63  $Page->setSecTitle($FOGPageManager->getFOGPageName());
64  $Page
65  ->endBody()
66  ->render();
67 }
FOGBase\getClass
static getClass($class, $data='', $props=false)
Definition: fogbase.class.php:439
$FOGPageManager
$FOGPageManager
Definition: index.php:23
exit
exit
Definition: index.php:23
FOGBase\$ajax
static $ajax
Definition: fogbase.class.php:91
$nodes
$nodes
Definition: index.php:34
$Page
$Page
Definition: index.php:33
$foglang
$foglang['Display']
Definition: text.php:22