-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavigation.inc.php
executable file
·59 lines (59 loc) · 1.47 KB
/
navigation.inc.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
<?php
/**
* Navigation of OIS2.
* @package OIS2
* @author Sascha 'SieGeL' Pfalz <php@saschapfalz.de>
* @version 2.03 (31-Jan-2015)
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
if(!defined('NAV_OVERRIDE_FILE') || NAV_OVERRIDE_FILE == '')
{
$script = basename($_SERVER['SCRIPT_FILENAME']);
}
else
{
$script = NAV_OVERRIDE_FILE;
}
if($script == 'mainindex.php')
{
$homeselect = ' class="nav_on"';
}
else
{
$homeselect = '';
}
?>
<div id="page_navigation">
<fieldset><legend>Navigation</legend>
<ul>
<li>» <a href="<?php echo(OIS_INSTALL_URL);?>/mainindex.php"<?php echo($homeselect);?>>Home</a></li>
<?php
foreach($GLOBALS['OIS_EXTENSIONS'] AS $extname => $metadata)
{
if($script == basename($metadata['SCRIPTNAME']))
{
$class = ' class="nav_on"';
}
else
{
$class = '';
}
printf("<li>» <a href=\"%s/%s\"%s>%s</a></li>\n",OIS_INSTALL_URL,$metadata['SCRIPTNAME'],$class,$metadata['MENUNAME']);
}
?>
<li>» <a href="<?php echo(OIS_INSTALL_URL);?>/logout.php">Logout</a></li>
</ul>
</fieldset>
<br>
<div style="margin-left: 20px">
Refresh:<br>
<form method="GET" id="form_refresh" action="<?php echo($_SERVER['SCRIPT_NAME']);?>">
<select name="REFRESH" id="refresh" size="1">
<option value="0" >No refresh</option>
<option value="10" >10 Seconds</option>
<option value="30" >30 Seconds</option>
<option value="60" >60 Seconds</option>
</select>
</form>
</div>
</div>