foreach($resolutions as $resolution) {
$thumb_sub_path = substr($file_md5, 0, 2);
- $thumb_path = $this->cfg->base_path ."/thumbs/". $thumb_sub_path ."/". $resolution ."_". $file_md5;
+ $thumb_path = $this->cfg->thumb_path ."/". $thumb_sub_path ."/". $resolution ."_". $file_md5;
if(!file_exists(dirname($thumb_path))) {
mkdir(dirname($thumb_path), 0755);
public function get_thumb_path($width, $photo)
{
$sub_path = substr($this->getMD5($photo), 0, 2);
- return $this->cfg->base_path
- . "/thumbs/"
+ return $this->cfg->thumb_path
+ . "/"
. $sub_path
. "/"
. $width
var $web_path = "/phpfspot";
+ /* path to the directory to store the generated thumbnails.
+ this path needs not do be directly reachable via the webserver
+ Default it points to a subdirectory of $base_path.
+ */
+ var $thumb_path = "/var/www/htdocs/thumbs";
+
var $theme_name = "default";
/* database access via "native" sqlite3 support or via "pdo" */