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.
102 lines
3.0 KiB
102 lines
3.0 KiB
<?php
|
|
|
|
session_start();
|
|
|
|
@include 'cgi-bin/conn.conn';
|
|
@include 'cgi-bin/functions.inc';
|
|
@include 'cgi-bin/params.inc';
|
|
|
|
$GLOBALS['getQ'][0]="home";
|
|
$GLOBALS['isHome'] = true;
|
|
$GLOBALS['conn'];
|
|
|
|
$conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR");
|
|
|
|
if(@$_GET['q']){
|
|
$GLOBALS['getQ']=explode("/",$_GET['q']);
|
|
}
|
|
|
|
if($getQ[0]!="home"){ $isHome = false; }
|
|
|
|
|
|
$description = " ";
|
|
|
|
if($_POST['usr'] && $_POST['pwd']){
|
|
$q=mysqli_query($conn, "SELECT * FROM board WHERE usr='".$_POST['usr']."' AND pwd='".md5($_POST['pwd'])."'");
|
|
if(mysqli_num_rows($q)){
|
|
$_SESSION['AUTH']=mysqli_fetch_array($q);
|
|
}
|
|
}
|
|
|
|
if($getQ[0]=="logout"){
|
|
unset($_SESSION['AUTH']);
|
|
session_destroy();
|
|
header('Location: '.$BASE_URL);
|
|
}
|
|
/*
|
|
$q=mysqli_query($conn,"SELECT * FROM board");
|
|
while($r=mysqli_fetch_array($q)){
|
|
if($r['pwd']!="-" && $r['pwd']!=""){
|
|
mysqli_query($conn,"UPDATE board SET pwd='".md5($r['pwd'])."' WHERE id='".$r['id']."'");
|
|
}
|
|
}*/
|
|
|
|
?>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title><?php echo conv_url($r['title']);?> | Ordine dei Farmacisti della Provincia di Salerno</title>
|
|
|
|
<meta name="description" content="<?php echo $description;?> | Ordine dei Farmacisti della Provincia di Salerno">
|
|
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
|
|
|
|
|
<meta property="og:url" content="<?php echo $BASE_URL;?>" />
|
|
<meta property="og:description" content="<?php echo $description;?> | Ordine dei Farmacisti della Provincia di Salerno" />
|
|
<meta property="og:image" content="<?php echo $BASE_URL."/images/logo.png";?>">
|
|
<meta property="og:title" content="<?php echo $description;?> | Ordine dei Farmacisti della Provincia di Salerno" />
|
|
|
|
|
|
<base href="<?php echo $BASE_URL;?>/">
|
|
|
|
<link href="<?php echo $BASE_URL;?>/css/styles.css" rel="stylesheet" type="text/css"/>
|
|
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
|
|
<link rel="shortcut icon" type="image/png" href="<?php echo $BASE_URL;?>/images/favicon.png"/>
|
|
|
|
</head>
|
|
<body itemscope itemtype="http://schema.org/WebPage" class="<?php if($isHome){echo "is-home";}?>">
|
|
|
|
<?php
|
|
@include 'header.php';
|
|
?>
|
|
<section>
|
|
<div id="MainContent" class="container">
|
|
<div class="row">
|
|
<?php
|
|
|
|
@include 'menu-left.php';
|
|
@include 'content.php';
|
|
@include 'menu-right.php';
|
|
|
|
// @include $getQ[0].'.php';
|
|
?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
|
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/node_modules/jquery/dist/jquery.min.js"></script>
|
|
<script type="text/javascript" src="<?php echo $BASE_URL;?>/js/scripts.js"></script>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|
|
<?php
|
|
mysqli_close($conn);
|
|
?>
|