⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
psa-horde
/
admin
/
perms
/
View File Name :
addchild.php
* @author Jan Schneider
* @category Horde * @license http://www.horde.org/licenses/lgpl LGPL-2 * @package Horde */ require_once __DIR__ . '/../../lib/Application.php'; Horde_Registry::appInit('horde', array( 'permission' => array('horde:administration:perms') )); /* Set up the form variables. */ $vars = $injector->getInstance('Horde_Variables'); $perms = $injector->getInstance('Horde_Perms'); $corePerms = $injector->getInstance('Horde_Core_Perms'); $perm_id = $vars->get('perm_id'); try { $permission = $perms->getPermissionById($perm_id); } catch (Exception $e) { $notification->push(_("Invalid parent permission."), 'horde.error'); Horde::url('admin/perms/index.php', true)->redirect(); } /* Set up form. */ $ui = new Horde_Core_Perms_Ui($perms, $corePerms); $ui->setVars($vars); $ui->setupAddForm($permission); if ($ui->validateAddForm($info)) { try { if ($info['perm_id'] == Horde_Perms::ROOT) { $child = $corePerms->newPermission($info['child']); $result = $perms->addPermission($child); } else { $pOb = $perms->getPermissionById($info['perm_id']); $name = $pOb->getName() . ':' . str_replace(':', '.', $info['child']); $child = $corePerms->newPermission($name); $result = $perms->addPermission($child); } $notification->push(sprintf(_("\"%s\" was added to the permissions system."), $corePerms->getTitle($child->getName())), 'horde.success'); Horde::url('admin/perms/edit.php', true)->add('perm_id', $child->getId())->redirect(); } catch (Exception $e) { Horde::log($e, 'ERR'); $notification->push(sprintf(_("\"%s\" was not created: %s."), $corePerms->getTitle($child->getName()), $e->getMessage()), 'horde.error'); } } $page_output->header(array( 'title' => _("Permissions Administration") )); require HORDE_TEMPLATES . '/admin/menu.inc'; /* Render the form and tree. */ $ui->renderForm('addchild.php'); echo '
'; $ui->renderTree($perm_id); $page_output->footer();