Skip to content
Snippets Groups Projects
Commit 0777f491 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Improve DiscoJuice Feed debug view

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2900 44740490-163a-0410-bde0-09ae8108e29a
parent 04b5af6d
No related branches found
No related tags found
No related merge requests found
<?php <?php
#sleep(2); #sleep(2);
$feed = new sspmod_discojuice_Feed(); $feed = new sspmod_discojuice_Feed();
...@@ -15,16 +14,18 @@ if (!empty($_REQUEST['refresh'])) { ...@@ -15,16 +14,18 @@ if (!empty($_REQUEST['refresh'])) {
if (!empty($_REQUEST['debug'])) { if (!empty($_REQUEST['debug'])) {
header('Content-Type: text/plain; charset=utf-8'); header('Content-Type: text/plain; charset=utf-8');
print_r($data); print_r(json_decode($data, 'utf-8'));
exit;
} }
header('Content-Type: application/json; charset=utf-8'); header('Content-Type: application/json; charset=utf-8');
if(isset($_REQUEST['callback'])) { if(isset($_REQUEST['callback'])) {
echo $_REQUEST['callback'] . '(' . $data . ');'; echo $_REQUEST['callback'] . '(' . $data . ');';
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment