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)  

mainversion.php File Reference

Go to the source code of this file.

Namespaces

 FOGProject
 

Variables

 $curversion = FOG_VERSION
 
 $urls
 
 $resp = $FOGURLRequests->process($urls)
 
 $tags = json_decode(array_shift($resp))
 
foreach($tags as $tag) $systemclass = array_shift($resp)
 
if(preg_match("/FOG_VERSION', '( $systemclass [0-9.RCalphbet-] *)'/", $systemclass, $fogver)) = array_shift($resp)
 
if(preg_match("/FOG_VERSION', '( $stablecheck [0-9.RCalphbet-] *)'/", $systemclass, $fogver)) = version_compare($curversion, $stableversion, '=')
 
 $devcheck = version_compare($curversion, $devversion, '=')
 
 $alphacheck = version_compare($curversion, $alphaversion, '=')
 
if(! $stablecheck &&! $devcheck &&! $alphacheck) else
 
 exit
 

Variable Documentation

◆ $alphacheck

$alphacheck = version_compare($curversion, $alphaversion, '=')

Definition at line 53 of file mainversion.php.

◆ $curversion

$curversion = FOG_VERSION

Definition at line 27 of file mainversion.php.

◆ $devcheck

$devcheck = version_compare($curversion, $devversion, '=')

Definition at line 52 of file mainversion.php.

◆ $resp

$resp = $FOGURLRequests->process($urls)

Definition at line 33 of file mainversion.php.

Referenced by FOGPage\loginInfo(), and FOGService\replicateItems().

◆ $stablecheck

if (preg_match("/FOG_VERSION', '( $stablecheck[0-9.RCalphbet-]*)'/", $systemclass, $fogver)) = version_compare($curversion, $stableversion, '=')

Definition at line 51 of file mainversion.php.

◆ $systemclass [1/2]

foreach ( $tags as $tag) $systemclass = array_shift($resp)

Definition at line 42 of file mainversion.php.

Referenced by FOGPage\loginInfo().

◆ $systemclass [2/2]

if (preg_match("/FOG_VERSION', '( $systemclass[0-9.RCalphbet-]*)'/", $systemclass, $fogver)) = array_shift($resp)

Definition at line 46 of file mainversion.php.

◆ $tags

$tags = json_decode(array_shift($resp))

Definition at line 35 of file mainversion.php.

Referenced by FOGPage\loginInfo().

◆ $urls

$urls
Initial value:
= array(
'https://api.github.com/repos/fogproject/fogproject/tags',
'https://raw.githubusercontent.com/FOGProject/fogproject/dev-branch/packages/web/lib/fog/system.class.php',
'https://raw.githubusercontent.com/FOGProject/fogproject/working-1.6/packages/web/lib/fog/system.class.php'
)

Definition at line 28 of file mainversion.php.

Referenced by DashboardPage\bandwidth(), FOGURLRequests\isAvailable(), FOGPage\loginInfo(), FOGURLRequests\process(), and FOGConfigurationPage\version().

◆ else

if ( $stablecheck) elseif ( $devcheck) else
Initial value:
{
$result = "<b>Your version of FOG is up to date.</b><br/>"

Definition at line 61 of file mainversion.php.

◆ exit

exit

Definition at line 74 of file mainversion.php.