⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.82
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
/
Form
/
View File Name :
EditContactGroup.php
addHidden('', 'objectkeys', 'text', false); $this->addHidden('', 'original_source', 'text', false); $action = $this->addHidden('', 'actionID', 'text', false); $action->setDefault('groupedit'); parent::__construct($vars, $contact); $vars->set('actionID', 'groupedit'); $objectkeys = $vars->get('objectkeys'); $source = $vars->get('source'); $key = $vars->get('key'); if (count($objectkeys) == 1) { /* Only one contact. */ $this->setButtons(_("Finish")); } elseif ($source . ':' . $key == $objectkeys[0]) { /* First contact */ $this->setButtons(_("Next")); $this->appendButtons(_("Finish")); } elseif ($source . ':' . $key == $objectkeys[count($objectkeys) - 1]) { /* Last contact */ $this->setButtons(array(array('value' => _("Previous"), 'class' => 'horde-button'))); $this->appendButtons(array(array('value' => _("Finish"), 'class' => 'horde-default'))); } else { /* In between */ $this->setButtons(array(array('value' => _("Previous"), 'class' => 'horde-button'))); $this->appendButtons(array(array('value' => _("Next"), 'class' => 'horde-default'))); $this->appendButtons(_("Finish")); } } public function renderActive($renderer, $vars, $action, $method) { parent::renderActive($renderer, $vars, $action, $method); $results = new Turba_List($vars->get('objectkeys')); /* Don't show listview if only 1 entry. */ if (count($results) > 1) { /* Read the columns to display from the preferences. */ $source = $vars->get('source'); $sources = Turba::getColumns(); $listView = new Turba_View_List( $results, array( 'Group' => true ), isset($sources[$source]) ? $sources[$source] : array() ); $numDisplayed = 0; echo '
' . $listView->getPage($numDisplayed); } } public function execute() { parent::execute(); $this->getInfo($this->_vars, $info); $next_page = Horde::url('edit.php', true)->add(array( 'source' => $info['source'], 'original_source' => $info['original_source'], 'objectkeys' => $info['objectkeys'], 'url' => Horde::signUrl($info['url']), 'actionID' => 'groupedit' )); $objectkey = array_search($info['source'] . ':' . $info['key'], $info['objectkeys']); $submitbutton = $this->_vars->get('submitbutton'); if ($submitbutton == _("Finish")) { $next_page = Horde::url('browse.php', true); if ($info['original_source'] == '**search') { $next_page->add('key', $info['original_source']); } else { $next_page->add('source', $info['original_source']); } } elseif ($submitbutton == _("Previous") && $info['source'] . ':' . $info['key'] != $info['objectkeys'][0]) { /* Previous contact */ list(, $previous_key) = explode(':', $info['objectkeys'][$objectkey - 1]); $next_page->add('key', $previous_key); if ($this->getOpenSection()) { $next_page->add('__formOpenSection', $this->getOpenSection()); } } elseif ($submitbutton == _("Next") && $info['source'] . ':' . $info['key'] != $info['objectkeys'][count($info['objectkeys']) - 1]) { /* Next contact */ list(, $next_key) = explode(':', $info['objectkeys'][$objectkey + 1]); $next_page->add('key', $next_key); if ($this->getOpenSection()) { $next_page->add('__formOpenSection', $this->getOpenSection()); } } $next_page->redirect(); } }