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)  

logtoview.php File Reference

Go to the source code of this file.

Namespaces

 FOGProject
 

Functions

 vals ($reverse, $HookManager, $lines, $file)
 

Variables

if(!(isset($_POST['ip']) &&is_string($_POST['ip']))) if(!(isset($_POST['file']) &&is_string($_POST['file']))) $file = ''
 
 $lines = ''
 
if(!(isset($_POST['ip']) &&is_string($_POST['ip']))) if(!(isset($_POST['file']) &&is_string($_POST['file']))) if(!(isset($_POST['lines']) &&is_numeric($_POST['lines']))) if(!(isset($_POST['reverse']) &&is_numeric($_POST['reverse']))) $ip = $_POST['ip']
 
 $reverse = $_POST['reverse']
 
if(filter_var($ip, FILTER_VALIDATE_IP)===false) if(false !==strpos(filter_input(INPUT_SERVER, 'HTTP_HOST'), $ip)) $url
 
 $process
 
 $response
 

Function Documentation

◆ vals()

vals (   $reverse,
  $HookManager,
  $lines,
  $file 
)

Returns vals.

Parameters
int$reverseLog reverse or forward.
HookManager$HookManagerHook manager item.
int$linesLines to show.
string$fileFile to return.
Returns
string

Definition at line 52 of file logtoview.php.

References $file, $folder, $lines, $output, $path, and $reverse.

Variable Documentation

◆ $file

$file = ''

Definition at line 40 of file logtoview.php.

Referenced by vals().

◆ $ip

◆ $lines

$lines = ''

Definition at line 41 of file logtoview.php.

Referenced by ServerInfo\index(), FOGFTP\listrecursive(), and vals().

◆ $process

$process
Initial value:
= array(
'ip' => base64_encode($ip),
'file' => $file,
'lines' => $lines,
'reverse' => $reverse
)

Definition at line 179 of file logtoview.php.

Referenced by Initiator\sanitizeItems().

◆ $response

$response

◆ $reverse

$reverse = $_POST['reverse']

Definition at line 157 of file logtoview.php.

Referenced by vals().

◆ $url

if (filter_var( $ip, FILTER_VALIDATE_IP)===false) if (false !==strpos(filter_input(INPUT_SERVER, 'HTTP_HOST'), $ip)) $url
Initial value:
= sprintf(
'%s://%s/fog/status/logtoview.php',
)

Definition at line 174 of file logtoview.php.

$url
if(filter_var($ip, FILTER_VALIDATE_IP)===false) if(false !==strpos(filter_input(INPUT_SERVER, 'HTTP_HOST'), $ip)) $url
Definition: logtoview.php:174
$reverse
$reverse
Definition: logtoview.php:157
FOGBase\$httpproto
static $httpproto
Definition: fogbase.class.php:298
$file
if(!(isset($_POST['ip']) &&is_string($_POST['ip']))) if(!(isset($_POST['file']) &&is_string($_POST['file']))) $file
Definition: logtoview.php:40
$ip
if(!(isset($_POST['ip']) &&is_string($_POST['ip']))) if(!(isset($_POST['file']) &&is_string($_POST['file']))) if(!(isset($_POST['lines']) &&is_numeric($_POST['lines']))) if(!(isset($_POST['reverse']) &&is_numeric($_POST['reverse']))) $ip
Definition: logtoview.php:149
$process
$process
Definition: logtoview.php:179
$lines
$lines
Definition: logtoview.php:41