From 20ac2e2d7ff5f537e27ac2e807b4ebb0a72cc723 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Mon, 12 Aug 2013 15:21:25 +0200 Subject: [PATCH] [fix] damn test before push fucking noob --- index.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 85bd532..01b7ba5 100644 --- a/index.php +++ b/index.php @@ -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'], ""); @@ -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 = '') {
'; echo ' - ', basename($aBackTrace[0]['file']), ' ligne => ', $aBackTrace[0]['line'], ' + ', basename($aBackTrace[0]['file']), ' ligne => ', $aBackTrace[0]['line'], ' '; - echo '
',                 htmlentities(print_r($data, 1)), '
'; + echo '
',                  htmlentities(print_r($data, 1)), '
'; echo '

';