error if (!is_writable(TEMPLATE_DIR . '/cache')) { $newerror = array(); $newerror['name'] = "templates/cache permissions"; $newerror['description'] = "templates/cache folder is not writable for uid {$apache_user['name']}"; $newerror['configvalue'] = "templates/cache folder"; $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#configuration-1"; $error[] = $newerror; $newerror = null; } if (!is_writable(TEMPLATE_DIR . '/compile')) { $newerror = array(); $newerror['name'] = "templates/compile permissions"; $newerror['description'] = "templates/compile folder is not writable for uid {$apache_user['name']}"; $newerror['configvalue'] = "templates/compile folder"; $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#configuration-1"; $error[] = $newerror; $newerror = null; } // check if we can write the config files, we should NOT be able to -> error if (is_writable(INCLUDE_DIR.'/config/global.inc.php') || is_writable(INCLUDE_DIR.'/config/global.inc.dist.php') || is_writable(INCLUDE_DIR.'/config/security.inc.php') || is_writable(INCLUDE_DIR.'/config/security.inc.dist.php')) { $newerror = array(); $newerror['name'] = "Config permissions"; $newerror['description'] = "Your config files SHOULD NOT be writable to this user!"; $newerror['configvalue'] = "global.inc.php and security.inc.php"; $newerror['helplink'] = "https://github.com/MPOS/php-mpos/wiki/Quick-Start-Guide#configuration-1"; $error[] = $newerror; $newerror = null; }