';
}
if (!is_writeable(DIR_FS_CATALOG . 'includes/configure.org.php')) {
$error_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'includes/configure.org.php ';
}
if (!is_writeable(DIR_FS_CATALOG . 'admin/includes/configure.php')) {
$error_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'admin/includes/configure.php ';
}
if (!is_writeable(DIR_FS_CATALOG . 'admin/includes/configure.org.php')) {
$error_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'admin/includes/configure.org.php ';
}
$status='OK';
if ($error_flag==true) $status='ERROR';
$ok_message.='FILE Permissions .............................. '.$status.' ';
// smarty folders
$folder_flag==false;
if (!is_writeable(DIR_FS_CATALOG . 'templates_c/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'templates_c/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'cache/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'cache/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'admin/rss/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'admin/rss/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'admin/backups/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'admin/backups/ ';
}
// image folders
if (!is_writeable(DIR_FS_CATALOG . 'images/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/categories/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/categories/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/banner/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/banner/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/news_categories/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/news_categories/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/news_product/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/news_product/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/manufacturers/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/manufacturers/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/product_images/info_images/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/product_images/info_images/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/product_images/original_images/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/product_images/original_images/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/product_images/popup_images/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/product_images/popup_images/ ';
}
if (!is_writeable(DIR_FS_CATALOG . 'images/product_images/thumbnail_images/')) {
$error_flag=true;
$folder_flag=true;
$message .= 'WRONG PERMISSION on '.DIR_FS_CATALOG . 'images/product_images/thumbnail_images/ ';
}
$status='OK';
if ($folder_flag==true) $status='ERROR';
$ok_message.='FOLDER Permissions .............................. '.$status.' ';
// check PHP-Version
$php_flag==false;
if (twe_check_version()!=1) {
$error_flag=true;
$php_flag=true;
$message .='ATTENTION!, your PHP Version is to old, TWE-Commerce requires atleast PHP 4.1.3.
Your php Version:
TWE-Commerce wont work on this server, update PHP or change Server.';
}
$status='OK';
if ($php_flag==true) $status='ERROR';
$ok_message.='PHP VERSION .............................. '.$status.' ';
$gd=gd_info();
if ($gd['GD Version']=='') $gd['GD Version']='ERROR NO GDLIB FOUND!';
//$status=$gd['GD Version'].' if GDlib Version < 2+ , klick here for further instructions';
// display GDlibversion
$ok_message.='GDlib VERSION .............................. '.$status.' ';
if ($gd['GIF Read Support']==1 or $gd['GIF Support']==1) {
$status='OK';
} else {
$status='ERROR You don\'t have GIF support within your GDlib, you won\'t be able to use GIF images, and GIF overlayfunctions in TWE-Commerce!';
}
$ok_message.='GDlib GIF-Support .............................. '.$status.' ';
if ($error_flag==true) {
?>