File: /home/asjudine/public_html/entradavideoconferencia.php
<?php
include ("header.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<style type="text/css">
<!--
.Estilo1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #990000;
}
.Estilo2 {color: #FFFFFF}
.Estilo3 {
font-size: 16px;
font-weight: bold;
}
-->
</style>
<head>
<title>INGRESO A VIDEOCONFERENCIA - SERVIASJUDINET</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p> </p>
<p> </p>
<table width="516" align="center">
<tr>
<td width="508" bgcolor="#FFFFFF"><div align="center"><img src="ELEMENTOS/video_conferencia.gif" width="277" height="30"></div></td>
</tr>
<tr>
<td><div align="justify" class="Estilo1">Servicio exclusivo para clientes de SERVIASJUDINET. <br>
<br>
Para conectarse con nuestro servicio de Videconferencia, por favor digite los siguientes datos, teniendo en cuenta que en el espacio "Código" debe anotar su número de C.C., NIT o código militar, según el caso: </div></td>
</tr>
<tr>
<td> <table width="100%" align="center">
<form name="formulario" action="<?php echo $editFormAction; ?>" method="post">
<tr bgcolor="#990000">
<td width="56%" align="right" class="Estilo2 texto"><div align="right"><span class="Estilo3">Cédula del Afiliado:</span></div></td>
<td width="44%">
<input name="cedula" type="password" id="cedula" size="15" maxlength="11">
</td>
</tr>
<tr align="right" bgcolor="#990000">
<td colspan="2" class="texto"> <div align="center"><br>
<input type="submit" name="Submit" value="Entrar" style="font-family: Verdana; font-size: 8 pt; color: #FF0000; background-color: #FFFFCC; border-style: solid">
<input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; color: #FF0000; background-color: #FFFFCC; border-style: solid" onclick="window.location.href='index.php'" value="IR PAGINA PRINCIPAL">
<input type="reset" name="Reset" value="Borrar" style="font-family: Verdana; font-size: 8 pt; color: #FF0000; background-color: #FFFFCC; border-style: solid">
</div>
</td>
</tr>
<input type="hidden" name="MM_insert" value="formulario">
</form>
</table>
</td>
</tr>
</table>
</body>
</html>
<?php
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING']))
{
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "formulario"))
{
require_once("mainfile.php");
include ("config.php");
global $dbi;
function Conectarse()
{
if (!($link=@mysql_connect("localhost","asjudine","as2006")))
{
echo "Error conectando con el servidor.";
exit();
}
$dbname = "asjudinet";
if (!@mysql_select_db($dbname,$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
Conectarse();
// $sql = "select * from asjudinet_cartera where cedula='$cedula' ";
$consulta = mysql_query("select * from asjudinet_cartera where cedula='$cedula'");
if (mysql_num_rows($consulta)!=0)
{
$nombre = mysql_result($consulta,0,"nombre");
echo "<SCRIPT LANGUAGE='javascript'>window.location.href='/videoconferencia.php?user=$nombre'</SCRIPT>";
/*echo "<script>alert('CHAT No Disponible, Temporalmente, hasta nueva orden');</script>";*/
}
else
{
echo "<script>alert('La información suministrada no existe en la base de datos, por lo cual no podrá entrar al CHAT');</script>";
}
}
?>