Welcome to the Ramble Photo Gallery
I will check your installation now:
if(file_exists($album_directory) && is_dir($album_directory)) {
echo "- OK: $album_directory exists
";
$fn = "$album_directory/".uniqid("TFTtest-");
$fp = @fopen("$fn","w");
if($fp != false) {
echo "- OK: $album_directory writable
";
fclose($fp);
unlink($fn);
$checkalbdir = true;
} else {
echo "- --- $album_directory not writable (please check the file permissions)
";
$checkalbdir = false;
}
} else {
echo "- --- $album_directory does not exist (please use the configuration tool)
";
$checkalbdir = false;
}
if(file_exists($data_directory) && is_dir($data_directory)) {
echo "- OK: $data_directory exists
";
$fn = "$data_directory/".uniqid("TFTtest-");
$fp = @fopen("$fn","w");
if($fp != false) {
echo "- OK: $data_directory writable
";
fclose($fp);
unlink($fn);
$checkdatdir = true;
} else {
echo "- --- $data_directory not writable (please check the file permissions)
";
$checkdatdir = false;
}
} else {
echo "- --- $data_directory does not exist (please use the configuration tool)
";
$checkdatdir = false;
}
switch($gd_available) {
case 0: echo "- OK: no thumbnail creation in use
";
$imagecreate = true;
break;
case 1: if(function_exists('imagecreate')) {
echo "- OK: GD 1.x available for thumbnail creation
";
$imagecreate = true;
} else {
echo "- --- GD 1.x not available!
";
$imagecreate = false;
}
break;
case 2: if(function_exists('imagecreatetruecolor')) {
echo "- OK: GD 2.x available for thumbnail creation
";
$imagecreate = true;
} else {
echo "- --- GD 2.x not available!
";
$imagecreate = false;
}
break;
case 10: if(isset($im_path) && ($im_path!="")) {
echo "- OK: the ImageMagick tool
$im_path is used for thumbnail creation ";
$imagecreate = true;
} else {
echo "- --- no ImageMagick tool specified!
";
$imagecreate = false;
}
break;
}
echo "
";
if(($checkalbdir) && ($checkdatdir) && ($imagecreate)) {
echo "The TFT gallery installation is correct.
";
$fp = @fopen("$data_directory/.isinstalled","w");
if($fp) {
fclose($fp);
echo "This installer was removed now, you can reload this page to display the gallery.
";
} else {
echo "This installer could not be removed. Please remove the file install.php, then the gallery will be displayed.
";
}
} else {
echo "There were errors detected. Please use the configuration tool to change the local_config.inc.
";
}
?>