/** * @todo redirect to $location * @param string $location url to redirect * @param string $message notification message for get in TLanguage class * @param int $notification_icon notification icon id * @param mixed $params params for Prints_f */ function RedirectNotification($location, $message, $notification_icon = 1, $params = array()) { $msg_id = TLanguage::GetIndex($message); // check passed array . count($params) == 0 ? $args = (APACHE_SVR ? '?' : '&') . "msg_id=" . $msg_id . '&ni=' . $notification_icon : ($args = (APACHE_SVR ? '?' : '&') . "msg_id=" . $msg_id . '&ni=' . $notification_icon . '&args=' . implode(',', $params)); // redirect header("location:" . $location . $args); }