Added function to check permissions
This commit is contained in:
parent
5689278908
commit
edca6c088a
@ -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) {
|
||||||
|
|
||||||
###
|
###
|
||||||
|
Loading…
Reference in New Issue
Block a user