/include/inc_module/mod_user_group/inc_lib/load_permissions.php
folgendes einbinden:
Diesen Teil
Code: Select all
//from F6A(hex) => 3946(dec) => 1111 0110 1010(bin) => create an array(12) from that
$temp = str_split(str_pad(decbin(hexdec($result[0]['usr_permissions'])), count($permissions)-1, "0", STR_PAD_LEFT));
Code: Select all
// +kh 09.03.09 if you are using php4
if(!function_exists('str_split')) {
function str_split($string, $split_length = 1) {
$array = explode("\r\n", chunk_split($string, $split_length));
array_pop($array);
return $array;
}
}
//from F6A(hex) => 3946(dec) => 1111 0110 1010(bin) => create an array(12) from that
$temp = str_split(str_pad(decbin(hexdec($result[0]['usr_permissions'])), count($permissions)-1, "0", STR_PAD_LEFT));