aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-11 16:13:44 -0700
committerfriendica <info@friendica.com>2014-09-11 16:13:44 -0700
commit653ed27fc9640f81b07484b9bed6f6cedfc11b44 (patch)
tree0898bb70d8b501c2e16d12c18954773cd59e43d5 /mod
parentd2ce5f3b80b0e140ed3d86e33fcf4eeb0e2f40bf (diff)
downloadvolse-hubzilla-653ed27fc9640f81b07484b9bed6f6cedfc11b44.tar.gz
volse-hubzilla-653ed27fc9640f81b07484b9bed6f6cedfc11b44.tar.bz2
volse-hubzilla-653ed27fc9640f81b07484b9bed6f6cedfc11b44.zip
new module - service_limits - print service class limits for logged in account. It is a debugging tool and not meant to be pretty.
Diffstat (limited to 'mod')
-rw-r--r--mod/service_limits.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/service_limits.php b/mod/service_limits.php
new file mode 100644
index 000000000..83ae2e06c
--- /dev/null
+++ b/mod/service_limits.php
@@ -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.');
+}
+
+
+ \ No newline at end of file