-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathframe.php
49 lines (43 loc) · 1.17 KB
/
frame.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
38
39
40
41
42
43
44
45
46
47
48
49
<?php
require_once("inc/stdLib.php");
$parameter = array();
$error = false;
if ( isset($_GET) ) while ( list($key,$val) = each ($_GET) ) {
if ( $key == 'action' ) {
if ( $val != 'section_menu' ) $link = $val;
} else if ( $key == 'level' ) {
continue;
} else if ( $key == 'dir' ) {
$dir = 'crm/'.$val.'/';
} else {
$parameter[] = $key.'='.$val;
};
} else {
exit(1);
}
if ( $dir == '' ) $dir = 'peppershop';
if ( $link == '' ) $error = true;
$parameter = join("&",$parameter);
if ( substr($link,-5) != '.html' ) $link .= '.php';
$menu = $_SESSION['menu'];
$head = mkHeader();
echo '<html>
<head><title></title>';
echo $menu['stylesheets'];
echo $head['CRMCSS'];
echo $head['JQUERY'];
echo $head['JQUERYUI'];
echo $menu['javascripts'];
echo $head['THEME'];
echo $head['JQTABLE'];
echo '</head>
<body>';
echo $menu['pre_content'];
echo $menu['start_content'];
if ( $error ) { echo "Ungültige Parameter !$dir!$link!"; }
else {
?>
<iframe id="shop" name="shop" src="<?php echo $_SESSION['baseurl'].$dir.$link.'?'.$parameter ?>" frameborder="0" width="100%" height="100%"></iframe>
<?php }; echo $menu['end_content']; ?>
</body>
</html>