jueves, 8 de mayo de 2014

<?php
session_start();
$pass="pass";
if($_POST){
$_SESSION['user']=$_POST['user'];
$pass=$_POST['pass'];
$_SESSION['log']="no" ;
if(isset($_SESSION['user'])){
if( $_SESSION['user'] == "ventas" ){
if($pass=="compras"){
$_SESSION['log']="siv";
}
else {
header('location: pass.php');//header('location: pass.php');
}
}
else{
if( $_SESSION['user'] == "humanos" ){
if($pass=="recursos"){
$_SESSION['log']="sih";
}
else {
header('location: pass.php');
}
}
else{
$_SESSION['log']="si";
}}
}
if($_SESSION['log']=="si" || $_SESSION['log']=="siv" || $_SESSION['log']=="siv"  )
{
echo $_SESSION['user'];
echo "<br>".$_SESSION['log'];
}
}
?>


<html>

<head>

<meta name="description" content="Micropsia paginaweb">

<meta name="keywords" content="antropologia,musica,literatura, boliviana">

<meta name="author" content="vic" >

<title>MICROPSIA</title>

<style type="text/css">

div{padding=6px;}

div.titulo{

font-family:"Georgia";

font-size: 25px; color: #333366;

background-color:#E0E0E0 ;

}

div.texto{

font-family:"Times New Roman";

font-size: 18px; color: #000000;

background-color:#E0E0E0;

}

div.bar{

font-family:"Comic Sans MS";

font-size:18px;color: #400000;

border: 3px solid #FF6347;

background-color: #FF6347;

}

div.btext{

border-top: 6px dotted #FFAA70;

border-bottom: 6px dotted #FFAA70;

}

.navlist li

{

display: inline;

padding-right: 170px;

}

</style>

</head>

<body bgcolor= #E0E0E0>

<center>

<table border="0" style="width:720px">

<tr>

<td style="width:50px; padding:6px" height="20"> <a href="inicio.php"> 

<td align="right"> <a href="registro.php"><img src="regis.jpg" height="155"> </a> </td>

</tr>

</table>

<br>

<br>

<div class=bar> <ul class="navlist">

<li ><a href="musica.php">       M  U  S  I  C  A  </a></li>

<li ><a href="literatura.php"> L  I  T  E  R  A  T  U  R  A </a></li>

<li ><a href="antro.php"> A  N  T  R  O  P  O  L  O  G  I  A  </a></li>

</ul>

</div>

<br>

<br>

<hr>

<div class=titulo>  </div>

<hr>

<div class=btext>

<div class=texto> <blockquote> 


</div>

</div>

</center>

</body>

</html>

No hay comentarios:

Publicar un comentario