feat: created config, header, loginform file; added dbcon to config; add/include sitename var;
This commit is contained in:
4
config.php
Normal file
4
config.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
include "db.php";
|
||||
|
||||
$SITENAME="Alphacar Dashboard"
|
||||
0
header.php
Normal file
0
header.php
Normal file
25
index.php
25
index.php
@@ -1,11 +1,24 @@
|
||||
<?php
|
||||
$i = 1;
|
||||
if($i == 1){
|
||||
include "db.php";
|
||||
include "config.php"
|
||||
|
||||
session_start();
|
||||
|
||||
if($_SESSION["loggedin"]){
|
||||
include "header.php"
|
||||
}
|
||||
else{
|
||||
print("nanoildasl");
|
||||
include "loginform.php"
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php$SITENAME?></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
0
loginform.php
Normal file
0
loginform.php
Normal file
Reference in New Issue
Block a user