Skip to content
Snippets Groups Projects
Commit 3f0b6e2d authored by junchh's avatar junchh
Browse files

start W04 forum project

parent 833104f7
Branches
No related merge requests found
<?php
/*
* Berisi constant dan informasi untuk login (hardcoded)
* Password tidak di hash untuk mempermudah readability saat pengecekan (bad practice untuk proyek sesungguhnya)
*
*/
define("HOST", 'localhost');
define("USER", 'root');
define('PASS', '123');
define('dbname', 'w04_forum');
$users =
?>
\ No newline at end of file
<?php
session_start();
if(!$_SESSION['user']){
header('Location: login.php');
}
?>
\ No newline at end of file
<?php
session_start();
if($_SESSION['user']){
header('Location: index.php');
}
?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment