[add] change instalation method
This commit is contained in:
parent
1fbeba5a0b
commit
4bad1d987b
|
@ -2,6 +2,4 @@ data
|
|||
tmp
|
||||
videos
|
||||
.project
|
||||
bin/cronTask.sh
|
||||
!videos/.htaccess
|
||||
|
||||
bin/cronTask.sh
|
17
index.php
17
index.php
|
@ -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';
|
||||
|
||||
|
|
|
@ -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 New Issue