function get_perm_data($filename, &$username, &$groupname, &$perms_asc, &$perms_oct) { $username = get_ownership_username($filename); $groupname = get_ownership_groupname($filename); $perms_asc = get_perms_ascii($filename); $perms_oct = get_perms_octal($filename); }
echo '</body></html>'; die; } ?> </p> <p> permission check: <?php //include "functions.inc.php"; require 'functions.inc.php'; //include "usecases,inc.php"; require 'usecases.inc.php'; $filename = 'index.php'; $username = get_ownership_username($filename); $groupname = get_ownership_groupname($filename); $perms_oct = get_perms_octal($filename); $perms_asc = get_perms_ascii($filename); echo "\n\tthis file " . '<strong>' . $filename . '</strong>' . ' owned by '; echo "\n\tuser " . '<strong>' . $username . '</strong>' . ' and group ' . '<strong>' . $groupname . '</strong>' . ' has got access permissions '; echo "\n\t<strong>" . $perms_asc . '</strong>' . ' which is ' . '<strong>' . $perms_oct . '</strong>' . ' octal.'; echo $html_and_ascii_linebreak; ?> </p> <p class="block"> Please ensure correct permission settings of this permission test suite. You may modify permissions either by SSH access or by FTP access. The first column (italic) shows assumed permissions (what they should be to run this test), next is user (owner), group (owner), actual permissions ascii and octal) and the subdirectory or filename which was checked.<br /> <br /> Permissions where "is" equals "should" are green, deviations are red. If permission setting is correctly enabled but "is" shows 999 your webserver won't work with that