[add] change instalation method

This commit is contained in:
Knah Tsaeb 2013-08-01 17:01:09 +02:00
parent 1fbeba5a0b
commit 4bad1d987b
3 changed files with 15 additions and 14 deletions

4
.gitignore vendored
View File

@ -2,6 +2,4 @@ data
tmp
videos
.project
bin/cronTask.sh
!videos/.htaccess
bin/cronTask.sh

View File

@ -94,6 +94,17 @@ $GLOBALS[\'loginName\'][\'loginName\'] = \''.$GLOBALS['loginName']['loginName'].
$GLOBALS[\'loginName\'][\'password\'] = \''.$GLOBALS['loginName']['password'].'\';
?>
';
$videoDirHtaccess = '
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm
<Files *.webm>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
XSendFile on
Options -Indexes';
file_put_contents($GLOBALS['config']['VIDEODIR'].'.htaccess', $videoDirHtaccess);
file_put_contents($GLOBALS['config']['CONFIG_FILE'], $data);
$page = 'content';
}
@ -165,9 +176,9 @@ function n_print($data, $name = '') {
<fieldset style="border: 1px solid orange; padding: 5px;color:#1E1915; background-color: #fff;">';
echo '
<legend style="border:1px solid orange;padding: 1px;background-color:#eee;color:orange;">
', basename($aBackTrace[0]['file']), ' ligne => ', $aBackTrace[0]['line'], '
', basename($aBackTrace[0]['file']), ' ligne => ', $aBackTrace[0]['line'], '
</legend>';
echo '<pre style="color:#1E1915;">', htmlentities(print_r($data, 1)), '</pre>';
echo '<pre style="color:#1E1915;">', htmlentities(print_r($data, 1)), '</pre>';
echo '
</fieldset>
<br />';
@ -400,7 +411,7 @@ function sendVideo($bc, $file) {
global $fullListFile;
$path = chunk_split($bc, 8, '/');
$fileName = html_entity_decode($fullListFile[$file]['title']).'.webm';
$fileNameTesrt = 'tttt.webm';
$fileNameTesrt = 'tttt.webm';
$fileSize = filesize($GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm');
$pathAndFile = $GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm';

View File

@ -1,8 +0,0 @@
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm
<Files *.webm>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
XSendFile on