FILES_DIR constant added
This commit is contained in:
parent
7c05634f15
commit
f5f886eb58
7 changed files with 10 additions and 10 deletions
|
@ -169,7 +169,7 @@
|
|||
|
||||
exit();
|
||||
$str = "/".date("Y")."/".date("m")."/".date("d")."/";
|
||||
$orig_file1 = BASEDIR.'/files/videos'.$str.$tmp_file.'-sd.'.$ext;
|
||||
$orig_file1 = FILES_DIR.'/videos'.$str.$tmp_file.'-sd.'.$ext;
|
||||
|
||||
if($orig_file1)
|
||||
{
|
||||
|
|
|
@ -77,7 +77,7 @@ if(isset($_POST['mass_upload_video']))
|
|||
$results=$Upload->add_conversion_queue($file_name);
|
||||
$str = "/".date("Y")."/".date("m")."/".date("d")."/";
|
||||
$str1 = date("Y")."/".date("m")."/".date("d");
|
||||
mkdir(BASEDIR.'/files/videos'.$str);
|
||||
mkdir(FILES_DIR.'/videos'.$str);
|
||||
$tbl=tbl("video");
|
||||
$fields['file_directory']=$str1;
|
||||
$fname=explode('.', $file_name);
|
||||
|
@ -89,7 +89,7 @@ if(isset($_POST['mass_upload_video']))
|
|||
unlink(CON_DIR.'/'.$file_name);
|
||||
foreach ($vtitle as &$title)
|
||||
{
|
||||
$resul1=glob(BASEDIR.'/files/videos/'.$title.".*");
|
||||
$resul1=glob(FILES_DIR.'/videos/'.$title.".*");
|
||||
unlink($resul1[0]);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
if(file_exists(BASEDIR.'/files/temp/install.me'))
|
||||
unlink(BASEDIR.'/files/temp/install.me');
|
||||
if(file_exists(FILES_DIR.'/temp/install.me'))
|
||||
unlink(FILES_DIR.'/temp/install.me');
|
||||
?>
|
||||
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ $db->update(tbl("config"),array("value"),array(now())," name='date_updated' ");
|
|||
|
||||
?>
|
||||
<?php
|
||||
if(file_exists(BASEDIR.'/files/temp/install.me'))
|
||||
unlink(BASEDIR.'/files/temp/install.me');
|
||||
if(file_exists(FILES_DIR.'/temp/install.me'))
|
||||
unlink(FILES_DIR.'/temp/install.me');
|
||||
?>
|
||||
|
||||
|
||||
|
|
|
@ -2097,7 +2097,7 @@ class FFMpeg{
|
|||
|
||||
public function isConversionSuccessful(){
|
||||
$str = "/".date("Y")."/".date("m")."/".date("d")."/";
|
||||
$orig_file1 = BASEDIR.'/files/videos'.$str.$tmp_file.'-sd.'.$ext;
|
||||
$orig_file1 = FILES_DIR.'/videos'.$str.$tmp_file.'-sd.'.$ext;
|
||||
if ($size12 = "0") {
|
||||
|
||||
return true;
|
||||
|
|
|
@ -423,7 +423,7 @@ class Upload{
|
|||
if(!empty($file) && $ext =='jpg'){
|
||||
$image = new ResizeImage();
|
||||
if($image->ValidateImage($file,$ext)){
|
||||
$thumb = BASEDIR.'/files/thumbs/'.GetThumb($flv,$thumbid);
|
||||
$thumb = FILES_DIR.'/thumbs/'.GetThumb($flv,$thumbid);
|
||||
move_uploaded_file($file,$thumb);
|
||||
$image->CreateThumb($thumb,$thumb,THUMB_WIDTH,$ext,THUMB_HEIGHT,false);
|
||||
return true;
|
||||
|
|
|
@ -1853,7 +1853,7 @@
|
|||
$File_dir = $input['file_dir'];
|
||||
$data = $input['data'];
|
||||
|
||||
$PlogFilePath = BASEDIR. "/files/logs/".$File_dir."/".$File_name.".plog";
|
||||
$PlogFilePath = FILES_DIR."/logs/".$File_dir."/".$File_name.".plog";
|
||||
|
||||
|
||||
if(file_exists($PlogFilePath)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue