04/11/2008, 14:18
|
| | Fecha de Ingreso: mayo-2008
Mensajes: 148
Antigüedad: 16 años, 6 meses Puntos: 1 | |
Respuesta: ayuda con hosting Cita:
Iniciado por kseso? En tu servidor web, Aliyuwey, no en localhost hola, en el servidor web no estaba activado el soporte para php, ya lo activaron, pero ahora no me muestra nada, al ir a la pagina, el index.php aparese blanco, que puede ser?
este es mi codigo: Cita: <?php require_once('Connections/estudio.php'); ?>
<?php
require_once('includes/common/KT_common.php');
require_once('includes/tng/tNG.inc.php');
$tNGs = new tNG_dispatcher("");
$conn_estudio = new KT_connection($base, $database_base);
$formValidation = new tNG_FormValidation();
$formValidation->addField("kt_login_user", true, "text", "", "", "", "");
$formValidation->addField("kt_login_password", true, "text", "", "", "", "");
$tNGs->prepareValidation($formValidation);
$loginTransaction = new tNG_login($conn_base);
$tNGs->addTransaction($loginTransaction);
$loginTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "kt_login1");
$loginTransaction->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$loginTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}");
$loginTransaction->addColumn("kt_login_user", "STRING_TYPE", "POST", "kt_login_user");
$loginTransaction->addColumn("kt_login_password", "STRING_TYPE", "POST", "kt_login_password");
$tNGs->executeTransactions();
$rscustom = $tNGs->getRecordset("custom");
$row_rscustom = mysql_fetch_assoc($rscustom);
$totalRows_rscustom = mysql_num_rows($rscustom);
?>
<!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=iso-8859-1" />
<title>abocar</title>
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="includes/common/js/base.js" type="text/javascript"></script>
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<script src="includes/skins/style.js" type="text/javascript"></script>
<?php echo $tNGs->displayValidationRules();?>
<style type="text/css">
<!--
.Estilo1 {color: #FFFFFF}
-->
</style>
</head>
<body>
<?php
echo $tNGs->getLoginMsg();
?>
<?php
echo $tNGs->getErrorMsg();
?>
<table width="357" height="85" border="1">
<tr>
<td><form method="post" id="form1" class="KT_tngformerror" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
<table align="center" cellpadding="2" cellspacing="0" class="KT_tngtable">
<tr>
<td class="KT_th"><span class="Estilo1">
<label for="kt_login_user">Username:</label>
</span></td>
<td><input type="text" name="kt_login_user" id="kt_login_user" value="<?php echo KT_escapeAttribute($row_rscustom['kt_login_user']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("kt_login_user");?> <?php echo $tNGs->displayFieldError("custom", "kt_login_user"); ?> </td>
</tr>
<tr>
<td class="KT_th"><span class="Estilo1">
<label for="kt_login_password">Password:</label>
</span></td>
<td><input type="password" name="kt_login_password" id="kt_login_password" value="" size="32" />
<?php echo $tNGs->displayFieldHint("kt_login_password");?> <?php echo $tNGs->displayFieldError("custom", "kt_login_password"); ?> </td>
</tr>
<tr class="KT_buttons">
<td colspan="2"><input type="submit" name="kt_login1" id="kt_login1" value="Login" />
</td>
</tr>
</table>
</form>
<p></p></td>
</tr>
</table>
</body>
</html>
Última edición por aliyuwey; 05/11/2008 a las 09:16 |