function manual_redirect_page($url)
{
    $capture_redirects = config('capture_redirects');
    $post_exported = var_export($_POST, true);
    $session_exported = var_export($_SESSION, true);
    $backtrace = var_export(debug_backtrace(), true);
    return template_fill('manual_redirect', compact('url', 'capture_redirects', 'post_exported', 'session_exported', 'backtrace'));
}
Esempio n. 2
0
 public function print_page($content, $action = '')
 {
     if (is_array($content)) {
         if (array_key_exists('encode', $content)) {
             switch ($content['encode']) {
                 case 'json':
                     $content = json_encode($content);
                     break;
             }
         }
     }
     if (is_array($content)) {
         $content = template_fill($action, $content);
     }
     print $content;
 }