diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-10-05 14:30:43 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-10-05 14:30:43 +0200 |
commit | afe436b25dd935aa2ae3a327027ea04b3c82e5ac (patch) | |
tree | 7c94a2503a78fb7c42bc7e76d5794d6fb344bcad /session_doctor.php | |
parent | 1141e8e9fe480b0407d4d7e247efadb4e12c7db6 (diff) | |
download | ratatoeskr-cms-afe436b25dd935aa2ae3a327027ea04b3c82e5ac.tar.gz ratatoeskr-cms-afe436b25dd935aa2ae3a327027ea04b3c82e5ac.tar.bz2 ratatoeskr-cms-afe436b25dd935aa2ae3a327027ea04b3c82e5ac.zip |
More functions for utils.php and some testing tools.
* Added ste:loremipsum for Layout tests.
* Added session_doctor.php to inspect the current user session.
Diffstat (limited to 'session_doctor.php')
-rw-r--r-- | session_doctor.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/session_doctor.php b/session_doctor.php new file mode 100644 index 0000000..25ac7aa --- /dev/null +++ b/session_doctor.php @@ -0,0 +1,19 @@ +<?php +session_start(); +if(isset($_POST['session'])) + $_SESSION = json_decode($_POST['session']); +$s_json = json_encode($_SESSION); +?> +<html> +<head> + <title>session_doctor.php</title> + <style type="text/css">* { font-family: monospace; }</style> +</head> +<body> + <h1>session_doctor</h1> + <form action="session_doctor.php" method="post"> + <textarea name="session" style="width: 80em; height: 24em;"><?=$s_json?></textarea> + <input type="submit" /> + </post> +</body> +</html> |