File: display_variable.php

package info (click to toggle)
ibwebadmin 0.98-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,916 kB
  • ctags: 1,950
  • sloc: php: 12,454; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// File           inc/display_variable.php / ibWebAdmin
// Purpose        print variable content for debugging purpose
// Author         Lutz Brueckner <irie@gmx.de>
// Copyright      (c) 2000, 2001,2002 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
//                see file LICENCE for details
// Created        <02/10/14 17:47:02 lb>
//
// $Id: display_variable.php,v 1.1 2002/10/15 14:18:45 lbrueckner Exp $

require('configuration.inc.php');

session_start();

switch ($HTTP_GET_VARS['var']) {
    case 'SESSION':
        $display = $HTTP_SESSION_VARS;
        break;
    case 'POST':
     case 'GET':
        $display = $HTTP_SESSION_VARS['s_'.$HTTP_GET_VARS['var']];
        break;
    default:
        $display = NULL;
}

echo '<pre>';
print_r($display);
echo '</pre>';

?>