-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfooter.php
More file actions
24 lines (23 loc) · 764 Bytes
/
Copy pathfooter.php
File metadata and controls
24 lines (23 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
$ini = parse_ini_file('wink.ini');
$publisher = $ini["publisher"];
$subdir = $ini["subdir"];
// absolute href paths
$index_href = "$subdir/index.php";
$logout_href = "$subdir/auth/logout.php";
$admin_href = "$subdir/auth/admin.php";
$about_href = "$subdir/about.php";
?>
<footer class="footer">
<div class="container">
<p class="text-muted">
<a href=<?php echo $index_href; ?>>Directory</a>
| <a href=<?php echo $about_href; ?>><?php echo $publisher;?></a>
| <a href=<?php echo $admin_href; ?>>
<span class="glyphicon glyphicon-cloud-upload" aria-hidden="true">
</span></a>
| <a href=<?php echo $logout_href; ?> >Logout</a>
</p>
</div>
</footer>