{
$mapa = '<map name="intranet">
<area shape="rect" coords="14,0,209,54" href="#" alt="Intranet" title="Intranet" >
- <area shape="rect" coords="605,17,629,41" alt="Logout" title="Logout" href="'.PATH_RAIZ.'logout.php">
- <area shape="rect" coords="645,17,669,41" href="#" alt="Cambio de Clave" title="Cambio de Clave" >
- <area shape="rect" coords="685,17,709,41" href="#" alt="Ayuda" title="Ayuda" >
- <area shape="rect" coords="726,17,750,41" href="#" alt="E-mail" title="E-mail" >
+ <area shape="rect" coords="605,17,629,41" alt="E-mail" title="E-mail" href="mailto:intranet2@mecon.gov.ar">
+ <area shape="rect" coords="645,17,669,41" href="https://ldapmaster.mecon.ar/bbng/servlet/ServletDispatcher?hans=gui.FormPassUsr" alt="Cambio de Clave" title="Cambio de Clave" >
+ <area shape="rect" coords="685,17,709,41" href="#" alt="Ayuda" title="Ayuda">
+ <area shape="rect" coords="726,17,750,41" alt="Logout" title="Logout" href="'.PATH_RAIZ.'logout.php">
<area shape="poly" coords="473,19,473,43,475,45,561,45,563,43,563,19,561,17,475,17,473,19,473,19" href="'.PATH_RAIZ.'sistemas.php" alt="Sistemas" title="Sistemas" >
<area shape="poly" coords="366,19,366,43,368,45,454,45,456,43,456,19,454,17,368,17,366,19,366,19" href="'.PATH_RAIZ.'servicios.php" alt="Servicios" title="Servicios" >
<area shape="poly" coords="258,20,258,44,260,46,346,46,348,44,348,20,346,18,260,18,258,20,258,20" href="'.PATH_RAIZ.'noticias.php" alt="Noticias" title="Noticias" >
require_once '../local_lib/HTML_DietMarco.php';
require_once '../local_lib/HTML_Login.php';
require_once 'DB.php';
+ require_once 'MECON/Usuario.php'; //Agregado MANAZAR
if(isset($_POST['usuario']))
{
{
$_SESSION['usuario'] = $_POST['usuario'];
$_SESSION['documento'] = $info[0]['uidnumber'][0];
+
+ // Agregado MANAZAR
+ $MECON_DNI= $info[0]['uidnumber'][0];
+ $MECON_NOMBRE= $info[0]['sn'][0]." ".$info[0]['givenname'][0];
+ $MECON_LOGIN= $_POST['usuario'];
+ $usuario=& new MECON_USUARIO();
+ $usuario->Insertar_Usuario($MECON_DNI,$MECON_LOGIN,$MECON_NOMBRE);
+ // Fin Agregado MANAZAR
+
}
}else{
if(!isset($_SESSION['usuario']))
{
- $m = new HTML_DietMarco('servicios');
- $m->addTitle('Servicios');
+ if((isset($_GET['redirect']) && $_GET['redirect'] == 'sistemas') ||
+ (isset($_POST['redirect']) && $_POST['redirect'] == 'sistemas'))
+ {
+ $m = new HTML_DietMarco('sistemas');
+ $m->addTitle('Sistemas');
+ }
+ else
+ {
+ $m = new HTML_DietMarco('servicios');
+ $m->addTitle('Servicios');
+ }
$login = new HTML_Login();
$t = new HTML_Table(array('width' => 760,
}
}
- if(isset($_SESSION['usuario']) && (isset($_POST['redirect']) || isset($_GET['redirect'])))
+ if(isset($_SESSION['usuario']) &&
+ (isset($_POST['redirect']) || isset($_GET['redirect'])))
{
- $db = DB::Connect('mysql://intranet:intranet@bal747f/intranet');
- $query = "SELECT link
- FROM servicio
- WHERE servicio = ";
- if(isset($_POST['redirect']))
- $query .= $_POST['redirect'];
+ if((isset($_GET['redirect']) && $_GET['redirect'] == 'sistemas') ||
+ (isset($_POST['redirect']) && $_POST['redirect'] == 'sistemas'))
+ {
+ header('location: sistemas.php');
+ exit;
+ }
else
- $query .= $_GET['redirect'];
- $link = $db->getOne($query);
- header('location: '.$link);
- }
-
+ {
+ $db = DB::Connect('mysql://intranet:intranet@bal747f/intranet');
+ $query = "SELECT link
+ FROM servicio
+ WHERE servicio = ";
+ if(isset($_POST['redirect'])) $query .= $_POST['redirect'];
+ else $query .= $_GET['redirect'];
+ $link = $db->getOne($query);
+ header('location: '.$link);
+ }
+ }
?>