Zaktualizuj 'index.php'

This commit is contained in:
Kamil Paprota 2018-12-17 20:23:51 +00:00
parent 2ed833e4eb
commit 313dcd55a7

View File

@ -1,3 +1,5 @@
<?php if( !isset( $_SESSION ) ) session_start();
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="pl"> <html lang="pl">
<head> <head>
@ -26,7 +28,9 @@ include "settings/db_connect.php";?>
</div> </div>
<div class="row elementsOnHeader"> <div class="row elementsOnHeader">
<div class="col-md-2 login"> <div class="col-md-2 login">
<a href="admin-zone/login.php" class="button" role="button">Zarządzaj blogiem</a> <?php if(empty($_SESSION['user'])){ ?> <a href="admin-zone/login.php" class="button" role="button">Zarządzaj blogiem</a><?php }
else { $user=$_SESSION['user']; ?>
<a href="admin-zone/index.php" class="button" role="button">Zarządzaj blogiem</a> <?php } ?>
</div> </div>
<div class="col-md-4 register"r> <div class="col-md-4 register"r>
<h1>Centrum Blogów</h1> <h1>Centrum Blogów</h1>