feat: created config, header, loginform file; added dbcon to config; add/include sitename var;

This commit is contained in:
Ioannis20x
2025-07-03 08:42:07 +00:00
parent 40534c1d27
commit b9c8ea7d95
4 changed files with 23 additions and 6 deletions

4
config.php Normal file
View File

@@ -0,0 +1,4 @@
<?php
include "db.php";
$SITENAME="Alphacar Dashboard"

0
header.php Normal file
View File

View File

@@ -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
View File