2016-04-19 03:38:38 +00:00
|
|
|
<?php
|
2021-12-03 03:01:39 +00:00
|
|
|
|
2022-02-16 04:08:28 +00:00
|
|
|
namespace Code\Module;
|
2021-12-03 03:01:39 +00:00
|
|
|
|
|
|
|
use App;
|
2022-02-16 04:08:28 +00:00
|
|
|
use Code\Web\Controller;
|
2016-04-19 03:38:38 +00:00
|
|
|
|
2021-12-02 22:33:36 +00:00
|
|
|
/** @file */
|
2021-12-02 23:02:31 +00:00
|
|
|
class Service_limits extends Controller
|
|
|
|
{
|
2016-04-19 03:38:38 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
public function get()
|
|
|
|
{
|
2016-04-19 03:38:38 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
if (!local_channel()) {
|
|
|
|
notice(t('Permission denied.') . EOL);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
$account = App::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.');
|
|
|
|
}
|
2016-04-19 03:38:38 +00:00
|
|
|
}
|