You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.3 KiB

7 years ago
<?php
7 years ago
session_start();
@include 'cgi-bin/conn.conn';
@include 'cgi-bin/functions.inc';
@include 'cgi-bin/params.inc';
$GLOBALS['getQ'][0]="home";
$GLOBALS['conn'];
$conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR");
mysqli_set_charset($conn, "utf8");
if(@$_GET['q']){
$GLOBALS['getQ']=explode("/",$_GET['q']);
}
if($getQ[0]!="home"){ $isHome = false; }
if($getQ[0]=="logout"){
unset($_SESSION['AUTH']);
session_destroy();
header('Location: '.$BASE_URL);
}
?>
<!DOCTYPE html>
<html>
<head>
<title>COZe</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="COZe">
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<base href="<?php echo $BASE_URL;?>/">
<?php
@include 'cssvendors.php';
?>
</head>
<body>
<?php
@include 'header.php';
?>
<section class="pt-5">
<div id="MainContent" class="container">
<?php
@include $getQ[0].'.php';
?>
</div>
</section>
<?php
@include 'jsvendors.php';
@include 'scripts/'.$getQ[0].'.php';
?>
</body>
</html>
<?php
mysqli_close($conn);
7 years ago
?>