Cheetah
get_mobile.php
Go to the documentation of this file.
1 <?php
2 
8 $bResult = false;
9 $sId = (int)$_GET["id"];
10 $sFile = "files/" . $sId . ".m4v";
11 
12 require_once("../../../inc/header.inc.php");
13 
14 if(!empty($sId) && file_exists($sFile)) {
15  require_once($sIncPath . "constants.inc.php");
16  require_once($sIncPath . "xml.inc.php");
17  require_once($sIncPath . "functions.inc.php");
18  require_once($sIncPath . "apiFunctions.inc.php");
19  //$bResult = getSettingValue("video", "saveMobile") == TRUE_VAL;
20  $bResult = 'on' == getParam('saveMobile') ? true : false;
21 }
22 
23 if($bResult) {
24  require_once($sIncPath . "functions.inc.php");
25  smartReadFile($sFile, $sFile, "video/mp4");
26 } else
27  readfile($sFileErrorPath);
true
if(!defined("TRUE_VAL")) define("TRUE_VAL" true
Definition: constants.inc.php:8
$sId
$sId
Definition: get_mobile.php:9
$sIncPath
$sIncPath
Definition: header.inc.php:64
php
$bResult
$bResult
Definition: get_mobile.php:8
$_GET
$_GET['debug']
Definition: index.php:67
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
$sFileErrorPath
$sFileErrorPath
Definition: header.inc.php:46
$sFile
$sFile
Definition: get_mobile.php:10
smartReadFile
smartReadFile($sPath, $sFilename='', $sMimeType='application/octet-stream', $iCacheAge=0, $sCachePrivacy='public')
Definition: functions.inc.php:301
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7