uawdijnntqw1x1x1
IP : 216.73.216.103
Hostname : dsru51-17647.fornex.org
Kernel : Linux dsru51-17647.fornex.org 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
rustam
/
data
/
www
/
new.tedocolor.ru
/
wa-system
/
api
/
waAPIRightsMethod.class.php
/
/
<?php abstract class waAPIRightsMethod extends waAPIMethod { protected $app = null; // override public function execute() { if (!$this->app || !wa()->appExists($this->app)) { throw new waAPIException('server_error', 500); } $this->response = self::getAppRights($this->app); } public static function getAppRights($app_id, waContact $contact = null) { $contact = ifset($contact, wa()->getUser()); /** * @var waUser $contact */ $rights = $contact->getRights($app_id); if (ifset($rights['backend'], 0) <= 0) { return array(); } $class_name = wa($app_id)->getConfig()->getPrefix().'RightConfig'; if (class_exists($class_name)) { $right_config = new $class_name(); /** * @var waRightConfig $right_config */ $rights += $right_config->getRights($contact->getId()); $default_value = $rights['backend'] >= 2 ? $rights['backend'] : 0; foreach ($right_config->getItems() as $it) { if (isset($it['params']['items'])) { foreach ($it['params']['items'] as $subid => $subname) { if (empty($rights[$it['name'].'.'.$subid])) { $rights[$it['name'].'.'.$subid] = $default_value; } } } else { if (empty($rights[$it['name']])) { $rights[$it['name']] = $default_value; } } } } return $rights; } }
/var/www/rustam/data/www/new.tedocolor.ru/wa-system/api/waAPIRightsMethod.class.php