<?php if(!isset($_SESSION)){session_start();} ////// EMPIEZA CODIGO PARA VERIFICAR LOGEO
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
  // For security, start by assuming the visitor is NOT authorized. 
  $isValid = False;
  // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
  // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
  if (!empty($UserName)) { 
    // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
    // Parse the strings into arrays. 
    $arrUsers = Explode(",", $strUsers); 
    $arrGroups = Explode(",", $strGroups); 
    if (in_array($UserName, $arrUsers)) { $isValid = true; } 
    // Or, you may restrict access to only certain users based on their username. 
    if (in_array($UserGroup, $arrGroups)) { $isValid = true; } 
    if (($strUsers == "") && true) { $isValid = true;  }  } 
  return $isValid; }
$MM_restrictGoTo = "index.php?banned";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
  $MM_qsChar = "?";
  $MM_referrer = $_SERVER['PHP_SELF'];
  if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
  if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
  $MM_referrer .= "?" . $QUERY_STRING;
  $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
  header("Location: ". $MM_restrictGoTo); 
  exit;} ////// TERMINA CODIGO PARA VERIFICAR LOGEO

	require_once('../../Connections/odonto_connection.php');	
	
	$user=$_SESSION['MM_Username'];
	
$query_rs_todos = "SELECT * FROM `ingreso` WHERE `user` like '$user'";
$rs_ingreso = mysqli_query($odonto_connection,$query_rs_todos) or die(mysql_error());
$row_rs_ingreso = mysqli_fetch_assoc($rs_ingreso);
$clinica=$row_rs_ingreso['clinica'];
$doc=$row_rs_ingreso['user'];
$id_user=$row_rs_ingreso['id_user'];
	?>

<!DOCTYPE html>
<html lang="es">
<head>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/baseotros.dwt" codeOutsideHTMLIsLocked="false" -->

<head>
<title>PonderCom</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	
    <!-- Bootstrap CSS File  -->
<link rel="stylesheet" type="text/css" href="./css/bootstrap.css"/>

</head>
<body style="background-color:rgba(206,216,246,1)">
<style>
.arriba_maxi{
	background-color:#103166;
	height:90px;
	color:#f7f8f9;
	text-align:center;
	font-
}
.central_maxi{
	background-color:#dce1f2;
}
.central_maxi2{
	background-color:#dce1f2;
	height:20px;
}

.btn{
	width:270px;
}

</style>
<!-- Content Section -->
<div class="container-fluid">
		<div class="row arriba_maxi align-items-center">
			<div class="col-1">
			<a href="#" class="navbar-brand"><img src="../../imagenes/logos/logo1_png.png" style="position:relative;left:0px;top:0px;height:60px;z-index:1"></a>
			</div>
			<div class="col-11 hidden-sm-down">
			<h4><font style="border:1px solid #f7f8f9">&nbsp;<?php echo $row_rs_ingreso['nom_clinica'];?>&nbsp;</font></h4>
<?php require('logos.php');?>
			</div>
		</div>
</div>
<?php require_once("menu.php");?>
<p>
<?php require("menu_central.php");?>


<!-- /Content Section -->

<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>

</body>
</html>