ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-18 15:12:25
Editing: Redirect.php
Cancel
Save Changes
<?php /** * Redirect user to continue payment * @package Am_Paysystem */ class Am_Paysystem_Action_Redirect implements Am_Paysystem_Action { /** @var string */ protected $_url; /** @var array */ protected $_params = array(); function __construct($url) { $this->setUrl($url); } function __set($k, $v) { return $this->addParam($k, $v); } function __get($k) { return array_key_exists($k, $this->_params) ? $this->_params[$k] : null; } function filterEmpty() { foreach ($this->_params as $k => $v) if (!strlen($v)) unset($this->_params[$k]); return $this; } function getUrl() { $url = $this->_url; if ($this->_params) { $url = rtrim($url, '?&'); $url .= strpos($url, '?')===false ? '?' : '&'; foreach ($this->_params as $k => $v) $url .= urlencode($k) . '=' . urlencode($v) . '&'; $url = rtrim($url, '&') ; } return $url; } function setUrl($url) { $this->_url = $url; } function addParam($k,$v) { $this->_params[$k] = $v; return $this; } public function process(Am_Controller $controller = null) { if ($controller === null) Am_Controller::redirectLocation ($this->getUrl()); else $controller->redirectLocation($this->getUrl()); } public function toXml(XMLWriter $x) { $x->writeElement('url', $this->_url); $x->startElement('params'); foreach ($this->_params as $k => $v) { $x->startElement('param'); $x->writeAttribute('name', $k); $x->text($v); $x->endElement(); } $x->endElement(); } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete