[add] change instalation method
This commit is contained in:
parent
1fbeba5a0b
commit
4bad1d987b
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -2,6 +2,4 @@ data
|
||||||
tmp
|
tmp
|
||||||
videos
|
videos
|
||||||
.project
|
.project
|
||||||
bin/cronTask.sh
|
bin/cronTask.sh
|
||||||
!videos/.htaccess
|
|
||||||
|
|
17
index.php
17
index.php
|
@ -94,6 +94,17 @@ $GLOBALS[\'loginName\'][\'loginName\'] = \''.$GLOBALS['loginName']['loginName'].
|
||||||
$GLOBALS[\'loginName\'][\'password\'] = \''.$GLOBALS['loginName']['password'].'\';
|
$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);
|
file_put_contents($GLOBALS['config']['CONFIG_FILE'], $data);
|
||||||
$page = 'content';
|
$page = 'content';
|
||||||
}
|
}
|
||||||
|
@ -165,9 +176,9 @@ function n_print($data, $name = '') {
|
||||||
<fieldset style="border: 1px solid orange; padding: 5px;color:#1E1915; background-color: #fff;">';
|
<fieldset style="border: 1px solid orange; padding: 5px;color:#1E1915; background-color: #fff;">';
|
||||||
echo '
|
echo '
|
||||||
<legend style="border:1px solid orange;padding: 1px;background-color:#eee;color:orange;">
|
<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>';
|
</legend>';
|
||||||
echo '<pre style="color:#1E1915;">', htmlentities(print_r($data, 1)), '</pre>';
|
echo '<pre style="color:#1E1915;">', htmlentities(print_r($data, 1)), '</pre>';
|
||||||
echo '
|
echo '
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<br />';
|
<br />';
|
||||||
|
@ -400,7 +411,7 @@ function sendVideo($bc, $file) {
|
||||||
global $fullListFile;
|
global $fullListFile;
|
||||||
$path = chunk_split($bc, 8, '/');
|
$path = chunk_split($bc, 8, '/');
|
||||||
$fileName = html_entity_decode($fullListFile[$file]['title']).'.webm';
|
$fileName = html_entity_decode($fullListFile[$file]['title']).'.webm';
|
||||||
$fileNameTesrt = 'tttt.webm';
|
$fileNameTesrt = 'tttt.webm';
|
||||||
$fileSize = filesize($GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm');
|
$fileSize = filesize($GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm');
|
||||||
$pathAndFile = $GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm';
|
$pathAndFile = $GLOBALS['config']['VIDEODIR'].'/'.$path.$file.'.webm';
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue