
Originally Posted by
wtwolf6
The zencart scripts are either A reading the wrong permissions or B does not read permissions right on a windows server
This is a windows server.
Where is the code that checks permissions located so I can remove it.
All files are secure so I am no worring about this as it is a simple error in zens scripts.
Not my server permissions.
Permissions for web server and domain are set correctly
It must be a PHP thing on your server then.
This is what Zen Cart does:
PHP Code:
if ( (file_exists(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php'))
&& (is_writeable(dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
// give alert
}
Basically, that says:
- if the /includes/configure.php file EXISTS (file_exists())
AND
- if PHP sees the file as WRITABLE (is_writable())
THEN
- give the warning message
If you're convinced that the message is wrong, just add an extra file to your /includes/extra_configures folder:
- call it "bypass_config_warning.php"
-inside it, put this one line:
Code:
<?php define('WARN_CONFIG_WRITEABLE', 'false'); ?>
That'll tell Zen Cart to ignore the fact that PHP thinks it's writable and rely on you to ensure that it's safe.
The security is then ENTIRELY UP TO YOU ... be sure to double-check permissions after any and every edit. Zen Cart will no longer give you any warnings on the issue.
Bookmarks