function redirect($mess = null) { $param = array(); if ($mess) { $param['mess'] = $mess; } header('Location: ' . ap::getUrl($param)); die; }
function setAdditionalParams($arParams) { $ar = array(); if (is_array($arParams)) { foreach ($arParams as $name => $value) { $ar[] = urlencode($name) . '=' . urlencode($value); } $this->getRootElement()->setAttribute('additionalParams', implode('&', $ar)); $this->setFormAction(ap::getUrl($arParams)); } }
function redirect($action, $id = null) { $param = array(); switch ($action) { case 'remove': if ($id) { $param['id'] = $id; } break; } if ($action) { $param['mess'] = $action; } header('Location: ' . ap::getUrl($param)); die; }
function redirect($action, $id = null) { $param = array(); if (trim($action)) { $param['mess'] = $action; } switch ($action) { case 'apply': if ($id) { $param['id'] = '_s_' . $id; } break; } header('Location: ' . ap::getUrl($param)); die; }
function redirect($mess = null) { $param = array(); if (($action = $this->getAction()) && ($row = $this->getRow())) { switch ($action) { case 'apply_update': case 'apply_add': $param['action'] = 'edit'; $param['row'] = $row; } } if ($page = param('page')) { $param['page'] = $page; } $this->setMessage($mess); header('Location: ' . ap::getUrl($param)); die; }
function redirect($mess = null) { $param = array(); if ($action = param('action')) { switch ($action) { case 'apply_update': $param['action'] = 'edit'; $param['row'] = param('login'); break; case 'apply_add': $param['action'] = 'edit'; $param['row'] = $this->getRow(); break; } } if ($mess) { $param['mess'] = $mess; } header('Location: ' . ap::getUrl($param)); die; }
function redirect($mess = null) { $params = array('row' => $this->getRow()); $this->setMessage($mess); header('Location: ' . ap::getUrl($params)); die; }
function redirect($action, $id = null) { $param = array(); switch ($action) { case 'edit': return; case 'add': break; case 'apply_add': case 'apply_update': if ($id) { $param['action'] = 'edit'; $param['row'] = $id; } break; } header('Location: ' . ap::getUrl($param)); die; }
function run() { global $_struct; header('Location: ' . ap::getUrl(array('id' => $_struct->getDefaultSectionId()))); die; }
function redirect($mess = null) { header('Location: ' . ap::getUrl($mess ? array('mess' => $mess) : null)); die; }
function redirect($mess = null, $param = array()) { $this->setMessage($mess); header('Location: ' . ap::getUrl($param)); die; }