[fix] damn test before push fucking noob

This commit is contained in:
Knah Tsaeb 2013-08-12 15:21:25 +02:00
parent e631d164c2
commit 20ac2e2d7f
1 changed files with 4 additions and 5 deletions

View File

@ -221,9 +221,9 @@ function importDir($bc, $fullListDir, $fullListFile) {
return;
}
$file = json_decode(file_get_contents($tmpName), true);
$path = chunk_split($bc, 8, '/');
if (!empty($file['hash'])) {
mkdir($file['hash']);
mkdir($_SERVER['DOCUMENT_ROOT'].'/'.$GLOBALS['config']['VIDEODIR'].'/'.$path.$file['hash']);
}
$fullListDir[$file['hash']] = $file['name'];
file_put_contents($GLOBALS['config']['LISTDIR'], "<?php\n\$fullListDir=".var_export($fullListDir, true).";\n?>");
@ -239,7 +239,6 @@ function importDir($bc, $fullListDir, $fullListFile) {
);
$url = escapeshellcmd($value['url']);
$path = chunk_split($ci['bc'], 8, '/');
$data = $key.' '.$url.' '.$path."\n";
file_put_contents($GLOBALS['config']['TMPDIR'].'/'.$key.'.hash', $data);
}
@ -286,9 +285,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 />';