forked from kivitendo/kivitendo-crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
showsess.php
37 lines (37 loc) · 1.08 KB
/
showsess.php
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
33
34
35
36
37
<?php
include("inc/stdLib.php");
$menu = $_SESSION['menu'];
?>
<html>
<head><title></title>
<link type="text/css" REL="stylesheet" HREF="<?php echo $_SESSION['baseurl'].'css/'.$_SESSION["stylesheet"]; ?>/main.css"></link>
<?php echo $menu['stylesheets']; ?>
<?php echo $menu['javascripts']; ?>
</head>
<body>
<?php
echo $menu['pre_content'];
echo $menu['start_content'];
if ( isset($_GET['ok']) && $_GET["ok"]) {
$x = $_SESSION['menu'];
$y = preg_replace( "^>^",">",$x);
$y = preg_replace( "^<^","<",$y);
$y = preg_replace( "^\n^","<br>",$y);
$_SESSION['menu'] = $y;
echo "<pre>";
print_r($_SESSION);
print_r($_COOKIE);
echo "</pre>";
echo "<form name='x' action='showsess.php' method='post'>";
echo "<input type='submit' name='del' value='Session löschen'>";
echo "</form>";
$_SESSION['menu'] = $x;
} else {
while( list($key,$val) = each($_SESSION) ) {
unset($_SESSION[$key]);
}
echo '<script type="text/javascript">window.location.href="status.php";</script>';
}
echo $menu['end_content'];
?>
</body>