mirror of
https://github.com/Clortox/SimpleFileRepository.git
synced 2025-01-09 10:28:00 +00:00
30 lines
874 B
PHP
30 lines
874 B
PHP
<?php
|
|
$clientip = $_SERVER['REMOTE_ADDR'];
|
|
$serverip = $_SERVER['SERVER_ADDR'];
|
|
?>
|
|
|
|
<header>
|
|
<div class="jumbotron bg-dark border-bottom border-secondary text-white">
|
|
<h1><?php echo $site_name ?></h1>
|
|
<?php
|
|
if($isConvo){
|
|
$saying = $convo[rand(0,count($convo)-1)];
|
|
echo '<p>' . $clientip . $saying . $serverip . '</p>';
|
|
}
|
|
|
|
if($isNav){
|
|
echo '<nav class="navbar navbar-expand-lg
|
|
navbar-dark border border-secondary">';
|
|
echo '<ul class="nav navbar-nav">';
|
|
foreach($nav_names as $index=>$name){
|
|
echo '<li class="navbar-brand"><a href="'
|
|
. $nav_links[$index] . '">'
|
|
. $name . '</a></li>';
|
|
}
|
|
echo '</ul>';
|
|
echo '</nav>';
|
|
}
|
|
?>
|
|
</div>
|
|
</header>
|