forked from NagiosEnterprises/nagioscore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
64 lines (49 loc) · 1.57 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<title>Nagios Core</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/ico">
</head>
<?php
// allow specifying main window URL for permalinks, etc.
$corewindow="main.php";
if(isset($_GET['corewindow'])){
// default window url may have been overridden with a permalink...
$rawurl=$_GET['corewindow'];
// parse url and remove permalink option from base
$a=parse_url($rawurl);
// build base url
if(isset($a["host"]))
$windowurl=$a["scheme"]."://".$a["host"].$a["path"]."?";
else
$windowurl=$a["path"]."?";
$q="";
if(isset($a["query"]))
$q=$a["query"];
$pairs=explode("&",$q);
foreach($pairs as $pair){
$v=explode("=",$pair);
if(is_array($v))
$windowurl.="&".urlencode($v[0])."=".urlencode(isset($v[1])?$v[1]:"");
}
$corewindow=$windowurl;
}
?>
<frameset cols="180,*" style="border: 0px; framespacing: 0px">
<frame src="side.php" name="side" frameborder="0" style="">
<frame src="<?php echo $corewindow;?>" name="main" frameborder="0" style="">
<noframes>
<!-- This page requires a web browser which supports frames. -->
<h2>Nagios Core</h2>
<p align="center">
<a href="http://www.nagios.org/">www.nagios.org</a><br>
Copyright © 2010-<?php echo date("Y");?> Nagios Core Development Team and Community Contributors.
Copyright © 1999-2010 Ethan Galstad<br>
</p>
<p>
<i>Note: These pages require a browser which supports frames</i>
</p>
</noframes>
</frameset>
</html>