Re: problema php <?php virtual('/Connections/bd.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['nombre'])) {
$loginUsername=$_POST['nombre'];
$password=$_POST['contraseña'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "/admin2.php";
$MM_redirectLoginFailed = "/error.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_bd, $bd);
$LoginRS__query=sprintf("SELECT Nombre, Contraseña FROM administrador WHERE Nombre=%s AND Contraseña=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $bd) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>naruto kage</title>
<style type="text/css">
<!--
.Estilo1 {
font-family: "Ninja Naruto";
border-top-style: outset;
border-right-style: outset;
border-bottom-style: outset;
border-left-style: outset;
color: #000000;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
border-left-color: #000000;
background-color: #FF6600;
}
.ESTILO2 {
font-family: "Ninja Naruto";
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #FF0000;
text-decoration: none;
background-color: #000000;
border: 1px outset #000000;
}
.Estilo3 {font-size: 9px}
body {
background-image: url();
background-color: #999999;
}
.Estilo4 {
font-family: "Ninja Naruto";
font-size: 36px;
color: #990000;
background-color: #000000;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="758" height="147" border="0" cellpadding="3">
<tr>
<td width="748" height="132"><p><img src="/portada01copiaeu9.jpg" width="748" height="150" /></p>
<hr />
<p> </p>
<p align="center"><span class="Estilo4">naruto kage</span></p></td>
</tr>
</table>
<table width="759" height="295" border="0" cellpadding="3" class="Estilo1">
<tr>
<td width="566" rowspan="5"><div align="center">
<p>:: inauguracion de la pagina</p>
</div>
<p>HOY DIA 29 de febrero EMPIEZA A FUNCIONAR LA PAGINA NARUTO KAGE</p>
<p align="center">servidor de prueba</p>
<p align="center"> </p>
<p align="center">por edueduppp</p>
<p align="center">hay problemas con la conexion de la base de datos, por ahora nadie podra iniciar sesion</p></td>
<td width="175" height="37" class="Estilo1"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','105','height ','23','src','button3','quality','high','pluginspa ge','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgco lor','','movie','button3' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="105" height="23">
<param name="BGCOLOR" value="" />
<param name="movie" value="button3.swf" />
<param name="quality" value="high" />
<embed src="button3.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105" height="23" ></embed>
</object>
</noscript></td>
</tr>
<tr>
<td class="Estilo1"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','105','height ','23','src','button4','quality','high','pluginspa ge','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgco lor','#000000','movie','button4' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="105" height="23">
<param name="movie" value="button4.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="button4.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105" height="23" bgcolor="#000000"></embed>
</object>
</noscript></td>
</tr>
<tr>
<td class="Estilo1"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','105','height ','23','src','button2','quality','high','pluginspa ge','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgco lor','','movie','button2' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="105" height="23">
<param name="BGCOLOR" value="" />
<param name="movie" value="button2.swf" />
<param name="quality" value="high" />
<embed src="button2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105" height="23" ></embed>
</object>
</noscript></td>
</tr>
<tr>
<td height="44" class="Estilo1"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','105','height ','23','src','button1','quality','high','pluginspa ge','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgco lor','#000000','movie','button1' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="105" height="23">
<param name="movie" value="button1.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="button1.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105" height="23" bgcolor="#000000"></embed>
</object>
</noscript></td>
</tr>
<tr>
<td class="Estilo1"><form action="<?php echo $loginFormAction; ?>" id="form1" name="form1" method="POST">
<label>
<input type="text" name="nombre" id="nombre" />
</label>
<p>
<label>
<input type="password" name="contraseña" id="contraseña" />
</label>
</p>
<p>
<label>
<input type="submit" name="login" id="login" value="Enviar" />
</label>
<span class="Estilo3">REGISTRARSE</span> </p>
</form></td>
</tr>
</table>
</body>
</html>
ese es el codigo |