forked from ECSC/analogi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
executable file
·49 lines (44 loc) · 1.97 KB
/
header.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
<div class="fleft top10header" style='margin-top:10px;margin-bottom:10px;'>
<div style='font-weight: bold'>
<span style='color:rgb(0,84,130)'>Ana</span><span style='color:rgb(237,28,36); font-style:italic'>Log</span><span style='color:rgb(0,84,130)'>i</span>
</div>
<div class='tiny'>
<span class="tiny">a·nal·o·gi [uh-nal-uh-jee] noun. a similarity between like features of two things, on which a comparison may be based</span>
</div>
</div>
<div class="fright" style='margin-top:10px;margin-bottom:10px;' >
<?php
//fixed: undefined var: $glb_ossecdb
include './config.php';
if(count($glb_ossecdb)>1){
echo "
<form action='./index.php'>
<select name='glb_ossecdb' onchange='document.cookie=\"ossecdbjs=\"+glb_ossecdb.options[selectedIndex].value ; location.reload(true)'>";
foreach ($glb_ossecdb as $name => $file){
if($_COOKIE['ossecdbjs'] == $name){
$glb_ossecdb_selected=" SELECTED ";
}else{
$glb_ossecdb_selected="";
}
$glb_ossecdb_option.="<option value='".$name."' ".$glb_ossecdb_selected." >".$name." (".DB_NAME_O.", ".DB_HOST_O.")</option>";
}
echo $glb_ossecdb_option;
echo "</select>
</form>";
}
?>
</div>
<div class="fright" style='margin-top:15px;margin-bottom:10px;margin-right:30px;' >
<a class='tiny tinyblack' href='./index.php?'>Index</a>
<a class='tiny tinyblack' href='./newsfeed.php?'>NewsFeed</a>
<a class='tiny tinyblack' href='./massmonitoring.php?'>Mass Monitoring</a>
<a class='tiny tinyblack' href='./detail.php?from=<?php echo date("Hi dmy", (time()-(3600*24*30))) ?>'>Detail</a>
<a class='tiny tinyblack' href='./ip_info.php?'>IP Info</a>
<a class='tiny tinyblack' onclick='alert("Warning : Due to the complexity of the code, this page may take a few minute to load."); window.location="./management.php"' href='#' >Management</a>
<a class='tiny tinyblack' href='./about.php'>About</a>
<br>
<?php
if(isset($wallboard_url)) //fixed: [by if] undefined var $wallboard_url
echo $wallboard_url;
?>
</div>