Added function to check permissions

This commit is contained in:
Tobias Reich 2014-05-16 23:23:49 +02:00
parent 5689278908
commit edca6c088a

View File

@ -108,6 +108,13 @@ function get_hashed_password($password) {
} }
function hasPermissions($path, $permissions = '0777') {
if (substr(sprintf('%o', @fileperms($path)), -4)!=$permissions) return false;
else return true;
}
function fastimagecopyresampled(&$dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h, $quality = 4) { function fastimagecopyresampled(&$dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h, $quality = 4) {
### ###