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
|
<?php
|
||||||
$i = 1;
|
include "config.php"
|
||||||
if($i == 1){
|
|
||||||
include "db.php";
|
session_start();
|
||||||
|
|
||||||
|
if($_SESSION["loggedin"]){
|
||||||
|
include "header.php"
|
||||||
}
|
}
|
||||||
else{
|
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