<?
- require_once '../local_lib/HTML_DietMarco.php';
- require_once '../local_lib/HTML_Login.php';
- require_once 'DB.php';
+ require_once 'HTML_DietMarco.php';
+ require_once 'HTML_Login.php';
require_once 'MECON/Usuario.php'; //Agregado MANAZAR
if(isset($_POST['usuario']))
{
$userid = $_POST['usuario'];
- $ds = @ldap_connect( "ldapdist.mecon.ar" )
- or $ds = @ldap_connect( "ldapmaster.mecon.ar" );
+ $ds = @ldap_connect( 'ldapdist.mecon.ar' )
+ or $ds = @ldap_connect( 'ldapmaster.mecon.ar' );
if (! $ds) {
//error connecting - return false
(isset($_POST['redirect']) || isset($_GET['redirect'])))
{
@ $redirect = $_GET['redirect'].$_POST['redirect'];
- $db = DB::Connect('mysql://intranet:intranet@bal747f/intranet');
$query = "SELECT link
FROM servicio
WHERE servicio = $redirect";
- $link = $db->getOne($query);
+ $link = $DB->getOne($query);
if(PEAR::isError($link))
header('location: '.$redirect);
else