new module - service_limits - print service class limits for logged in account. It is a debugging tool and not meant to be pretty.
This commit is contained in:
parent
d2ce5f3b80
commit
653ed27fc9
23
mod/service_limits.php
Normal file
23
mod/service_limits.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php /** @file */
|
||||
|
||||
|
||||
function service_limits_content(&$a) {
|
||||
|
||||
if(! local_user()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
$account = $a->get_account();
|
||||
if($account['account_service_class']) {
|
||||
$x = get_config('service_class',$account['account_service_class']);
|
||||
if($x) {
|
||||
$o = print_r($x,true);
|
||||
return $o;
|
||||
}
|
||||
}
|
||||
return t('No service class restrictions found.');
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user