config.php
Código PHP:
Ver original<?php
/*
*/
/* Main Options */
//----------------
/* Which page user goes to after logoss */
$logoutPage = 'index.php';
/* Secure page to redirect to after login */
$loginPage = 'login.php';
/* Secure page to redirect to after register */
$registerPage = 'registrado.php';
/* Start session? Set this to false, if
you are already starting the session elsewhere
*/
$startSession = TRUE;
/* Use Cookies with sessions*/
$useCookies = TRUE;
/* Stay loged in for? -> cookies */
/* in seconds:
3600 -> 1 hr, 86400 -> 1 day
604800 -> 1 week, 2419200 -> 1 month
29030400 -> 1 year
*/
$logedInFor = 86400;
/* Domain name -> cookies */
$domainName = 'localhost';
/*
Notes: Please note that using sessions,
will store a cookie with the ID on userside.
To make this work for users without cookies,
propagate the ID through the URLS
in this manner:
nextpage.php?<?php echo htmlspecialchars(SID); ?>
*/
/* Connect to database? Set to false, if you
are already conneted */
$connectDatabase = TRUE;
/* Database Info */
$databaseUserName = 'root';
$databaseUserPassword = 'dahiana';
$databaseHostName = 'localhost';
$databaseName = 'diarias';
/* Table Info */
$tableName = 'userlist';
$userNameField = 'userName';
$userPasswordField = 'UserPassword';
/** SEC 334 **/
?>
SIGUE--->>