Commit 29c06bc2 authored by Antoine Tenart's avatar Antoine Tenart

kwain

parent 5e54e03d
......@@ -46,7 +46,7 @@ $asso_folder = new asso($site->db);
//session_write_close(); // on n'a plus besoin de la session, liberons le semaphore...
if(!is_dir("/var/www/ae/www/ae2/var/files"))
if(!is_dir("/var/www/ae2/data/files"))
$site->fatal_partial("fichiers");
$section="fichiers";
......
......@@ -552,7 +552,7 @@ class dfile extends fs
function get_real_filename()
{
global $topdir;
return $topdir."var/files/".$this->id.".".$this->id_rev_file;
return $topdir."data/files/".$this->id.".".$this->id_rev_file;
}
/**
......@@ -563,9 +563,9 @@ class dfile extends fs
{
global $topdir;
if( $this->mime_type=="image/png" )
return $topdir."var/files/thumb/".$this->id.".png";
return $topdir."data/files/thumb/".$this->id.".png";
else
return $topdir."var/files/thumb/".$this->id.".jpg";
return $topdir."data/files/thumb/".$this->id.".jpg";
}
/**
......@@ -601,9 +601,9 @@ class dfile extends fs
{
global $topdir;
if( $this->mime_type=="image/png" )
return $topdir."var/files/preview/".$this->id.".png";
return $topdir."data/files/preview/".$this->id.".png";
else
return $topdir."var/files/preview/".$this->id.".jpg";
return $topdir."data/files/preview/".$this->id.".jpg";
}
/**
......
......@@ -96,9 +96,9 @@ function checkup_dir(&$lst,&$excepted,$folder)
}
checkup_dir($lst,$excepted,$topdir."var/files/");
checkup_dir($lst,$excepted_thumb,$topdir."var/files/thumb/");
checkup_dir($lst,$excepted_preview,$topdir."var/files/preview/");
checkup_dir($lst,$excepted,$topdir."data/files/");
checkup_dir($lst,$excepted_thumb,$topdir."data/files/thumb/");
checkup_dir($lst,$excepted_preview,$topdir."data/files/preview/");
......
......@@ -541,7 +541,7 @@ class newdfile extends fs
function get_real_filename()
{
global $topdir;
return $topdir."var/files/".$this->id.".".$this->id_rev_file;
return $topdir."data/files/".$this->id.".".$this->id_rev_file;
}
/**
......@@ -552,9 +552,9 @@ class newdfile extends fs
{
global $topdir;
if( $this->mime_type=="image/png" )
return $topdir."var/files/thumb/".$this->id.".png";
return $topdir."data/files/thumb/".$this->id.".png";
else
return $topdir."var/files/thumb/".$this->id.".jpg";
return $topdir."data/files/thumb/".$this->id.".jpg";
}
/**
......@@ -565,9 +565,9 @@ class newdfile extends fs
{
global $topdir;
if( $this->mime_type=="image/png" )
return $topdir."var/files/preview/".$this->id.".png";
return $topdir."data/files/preview/".$this->id.".png";
else
return $topdir."var/files/preview/".$this->id.".jpg";
return $topdir."data/files/preview/".$this->id.".jpg";
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment