| | |
| | | if ($templ != 'iframe') { |
| | | // prevent from endless loops |
| | | if ($exit != 'recur' && $this->app->plugins->is_processing('render_page')) { |
| | | raise_error(array('code' => 505, 'type' => 'php', 'message' => 'Recursion alert: ignoring output->send()'), true, false); |
| | | raise_error(array('code' => 505, 'type' => 'php', |
| | | 'file' => __FILE__, 'line' => __LINE__, |
| | | 'message' => 'Recursion alert: ignoring output->send()'), true, false); |
| | | return; |
| | | } |
| | | $this->parse($templ, false); |
| | |
| | | * Parses expression and replaces variables |
| | | * |
| | | * @param string Expression statement |
| | | * @return string Expression statement |
| | | * @return string Expression value |
| | | */ |
| | | private function parse_expression($expression) |
| | | { |
| | |
| | | array( |
| | | '/session:([a-z0-9_]+)/i', |
| | | '/config:([a-z0-9_]+)(:([a-z0-9_]+))?/i', |
| | | '/env:([a-z0-9_]+)/i', |
| | | '/request:([a-z0-9_]+)/i', |
| | | '/cookie:([a-z0-9_]+)/i', |
| | | '/env:([a-z0-9_-]+)/i', |
| | | '/request:([a-z0-9_-]+)/i', |
| | | '/cookie:([a-z0-9_-]+)/i', |
| | | '/browser:([a-z0-9_]+)/i' |
| | | ), |
| | | array( |
| | |
| | | return $username; |
| | | } |
| | | |
| | | // get e-mail address form default identity |
| | | // get e-mail address from default identity |
| | | if ($sql_arr = $this->app->user->get_identity()) { |
| | | $username = $sql_arr['email']; |
| | | } |