Calendario Alfa

[insert_php] session_start();
$_SESSION[‘login’]=»»;
$_SESSION[‘password1’]=»»;

session_start();
$login = $_SESSION[«login»];
$password1 = $_SESSION[«password»];

include ‘conecta.php’;

$conecta = pg_connect(«host=$host user=$user password=$password dbname=$dbname»);
if (!$conecta)
{
echo «

No se pudo conectar a la Base de Datos

«;
die();
}

else
{
$query=»select user, pass from users where users='».$login.»‘ and pass='».$password1.»‘»;

$result=pg_query($query);

$row1 = pg_fetch_array($result, NULL, PGSQL_ASSOC);
list($log,$pas,$area) = explode(«,»,$row1[excep22]);

if ($result && pg_num_rows($result)!=1){
echo «

Verifique: Error en usuario o contraseña»;
echo «

Ir a la Página Principal

«;
}
else {

ini_set(«session.gc_maxlifetime»,»180″);

$_SESSION[«login»] = $login;
$_SESSION[«password»] = $password1;

echo ««;

}

}

[/insert_php]
error: Content is protected !!