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)  

download.php
Go to the documentation of this file.
1 <?php
25 if (isset($_REQUEST['legclient'])) {
26  $filename = 'FogService.zip';
27 }
31 if (isset($_REQUEST['newclient'])) {
32  $filename = 'FOGService.msi';
33 }
37 if (isset($_REQUEST['fogprep'])) {
38  $filename = 'FogPrep.zip';
39 }
43 if (isset($_REQUEST['fogcrypt'])) {
44  $filename = 'FOGCrypt.zip';
45 }
49 if (isset($_REQUEST['smartinstaller'])) {
50  $filename = 'SmartInstaller.exe';
51 }
55 if (!file_exists($filename)) {
56  exit;
57 }
61 $file = basename($filename);
65 header("X-Sendfile: $filename");
66 header('Content-Description: File Transfer');
67 header('Content-Type: application/octet-stream');
68 header("Content-Disposition: attachment; filename=$file");
69 header('Expires: 0');
70 header('Cache-Control: must-revalidate');
71 header('Pragma: public');
75 if (($fh = fopen($file, 'rb')) === false) {
76  exit;
77 }
82 while (feof($fh) === false) {
86  if (($line = fread($fh, 4092)) === false) {
87  break;
88  }
92  echo $line;
96  flush();
97 }
101 fclose($fh);
exit
exit
Definition: download.php:102
$file
if(isset($_REQUEST['legclient'])) if(isset($_REQUEST['newclient'])) if(isset($_REQUEST['fogprep'])) if(isset($_REQUEST['fogcrypt'])) if(isset($_REQUEST['smartinstaller'])) if(!file_exists($filename)) $file
Definition: download.php:61