Skip to content

Commit

Permalink
vaya luis
Browse files Browse the repository at this point in the history
  • Loading branch information
xblacklotus committed Sep 24, 2014
1 parent c7b5238 commit b8cce4d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
17 changes: 14 additions & 3 deletions pags/AV_principal.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<?php include ("../includes/header_aula.php");
<?php
session_start();
//Validar si se está ingresando con sesión correctamente
if (!isset($_SESSION['user'])){
echo '<script language = javascript>
alert("Sesion invalida");
self.location = "loginAdmin.php";
</script>';
}
else
{
include ("../includes/header_aula.php");
include("../includes/inheader.php");
$id_alumno=1;
$id_alumno=$_SESSION['user'];
$peticion="select id_seccion, nombres, apellidos,grado from alumno where id=".$id_alumno."" ;
$resultado=mysqli_query($conexion,$peticion);
$fila=mysqli_fetch_array($resultado);
Expand Down Expand Up @@ -124,5 +135,5 @@
</aside>

<?php include("../includes/footer2.php");
//hola
}
?>
16 changes: 14 additions & 2 deletions pags/av_contenido.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php include ("../includes/header_aula.php");
<?php
session_start();
//Validar si se está ingresando con sesión correctamente
if (!isset($_SESSION['user'])){
echo '<script language = javascript>
alert("Sesion invalida");
self.location = "loginAdmin.php";
</script>';
}
else
{
include ("../includes/header_aula.php");
include("../includes/inheader.php");?>


Expand All @@ -9,7 +20,7 @@
<?php

if (isset($_POST)) {
$idd= $_POST['id'];
$idd= $_SESSION['user'];

$abc = "SELECT nombre FROM materias where id='".$idd."'";
$resultao10=mysqli_query($conexion,$abc);
Expand Down Expand Up @@ -171,5 +182,6 @@


}
}
?>

0 comments on commit b8cce4d

Please sign in to comment.