function getFolderPermissions() { global $CONFIG; $mfile = $message = ""; $directories = array(PATH_UPLOADS, PATH_IMAGES, PATH_BANNER, PATH_CONFIG, PATH_USERS, PATH_GROUPS, PATH_LOG, PATH_STATS, PATH_STATS . "day/", PATH_STATS . "month/", PATH_STATS . "year/"); foreach ($directories as $key => $dir) { $result = testDirectory($dir); if (!$result) { $message .= "Insufficient Write Access" . " (" . $dir . ")<br>"; } } if (!empty($message)) { $message = "<span class=\"lz_index_error_cat\">Write Access:<br></span> <span class=\"lz_index_red\">" . $message . "</span><a href=\"" . CONFIG_LIVEZILLA_FAQ . "en/#changepermissions\" class=\"lz_index_helplink\" target=\"_blank\">Learn how to fix this problem ..</a>"; } if (!file_exists(PATH_GROUPS . "groups.inc.php")) { $mfile .= "System file missing: " . PATH_GROUPS . "groups.inc.php<br>"; } if (!file_exists(PATH_USERS . "internal.inc.php")) { $mfile .= "System file missing: " . PATH_USERS . "internal.inc.php<br>"; } if (!empty($mfile)) { $message = "<span class=\"lz_index_error_cat\">Incomplete installation:<br></span> <span class=\"lz_index_red\">" . $mfile . "</span>"; } return $message; }
function getFolderPermissions() { $message = ""; $directories = array(PATH_UPLOADS, PATH_CONFIG, PATH_LOG, PATH_STATS, PATH_STATS . "day/", PATH_STATS . "month/", PATH_STATS . "year/"); foreach ($directories as $dir) { $result = testDirectory($dir); if (!$result) { $message .= "Insufficient write access" . " (" . $dir . ")<br>"; } } if (!empty($message)) { $message = "<span class=\"lz_index_error_cat\">Write Access:<br></span> <span class=\"lz_index_red\">" . $message . "</span><a href=\"" . CONFIG_LIVEZILLA_FAQ . "en/?fid=changepermissions#changepermissions\" class=\"lz_index_helplink\" target=\"_blank\">Learn how to fix this problem</a>"; } return $message; }
function getFolderPermissions() { global $LZLANG, $CONFIG; $message = null; $directories = array(PATH_UPLOADS, PATH_INTERN_IMAGES, PATH_IMAGES, PATH_BANNER, PATH_VISITCARDS, PATH_CONFIG, PATH_USERS, PATH_GROUPS, PATH_LOG); foreach ($directories as $key => $dir) { $result = testDirectory($dir); if (!$result) { $message .= $LZLANG["index_no_write_access"] . " (" . $dir . ")<br>"; } } if (!isnull($message)) { $message = "<span class=\"lz_index_error_cat\">" . $LZLANG["index_write_access"] . ":<br></span> <span class=\"lz_index_red\">" . $message . "</span><a href=\"" . CONFIG_LIVEZILLA_FAQ . "?lang=en&id=17#17\" class=\"lz_index_helplink\" target=\"_blank\">" . $LZLANG["index_solve"] . "</a>"; } return str_replace($CONFIG["gl_lzid"], "*****", $message); }
function getFolderPermissions($message = null) { $directories = array(PATH_UPLOADS, PATH_BANNER, PATH_CONFIG, PATH_USERS, PATH_GROUPS); foreach ($directories as $key => $dir) { $result = testDirectory($dir); if (!$result) { return 0; } } return 1; }
function getFolderPermissions() { $directories = array(PATH_UPLOADS, PATH_CONFIG); foreach ($directories as $dir) { $result = testDirectory($dir); if (!$result) { return 0; } } return 1; }