⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
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 :
~
/
usr
/
share
/
psa-horde
/
turba
/
lib
/
View
/
View File Name :
EditContact.php
* @package Turba */ class Turba_View_EditContact { /** * * @var Turba_Object */ public $contact; /** * @param Turba_Object $contact */ public function __construct(Turba_Object $contact) { $this->contact = $contact; } public function getTitle() { return $this->contact ? sprintf($this->contact->isGroup() ? _("Edit Contact List \"%s\"") : _("Edit \"%s\""), $this->contact->getValue('name')) : _("Not Found"); } public function html($active = true) { global $browser, $vars; if (!$this->contact) { echo '
' . _("The requested contact was not found.") . '
'; return; } if (!$this->contact->hasPermission(Horde_Perms::EDIT)) { if (!$this->contact->hasPermission(Horde_Perms::READ)) { echo '
' . _("You do not have permission to view this contact.") . '
'; return; } else { echo '
' . _("You only have permission to view this contact.") . '
'; return; } } echo '
'; $form = new Turba_Form_EditContact($vars, $this->contact); $form->renderActive($form->getRenderer(), $vars, Horde::url('edit.php'), 'post'); echo '
'; if ($active && $browser->hasFeature('dom')) { if ($this->contact->hasPermission(Horde_Perms::READ)) { $view = new Turba_View_Contact($this->contact); $view->html(false); } if ($this->contact->hasPermission(Horde_Perms::DELETE)) { $delete = new Turba_View_DeleteContact($this->contact); $delete->html(false); } } } }