Current File : /home/inlingua/www/icentex/admin/resetaction.php |
<?php
session_start();
ob_start();
// Include the database connection details
require('dbConnection.php');
// Include common functions
require('commonFunc.php');
// Include common functions
require('globalVars.php');
// Include the table handler class
require('dbHandler.class.php');
// Setup table name, configuration and data entry form
$tableName = "timesheet_user";
$tableConf = $tableName . ".conf.php";
$dataForm = $tableName . ".form.php";
$viewForm = $tableName . ".view.php";
// Init and connect to database
$dbObject = new dbHandler();
$dbObject->setTableName($tableName);
$dbObject->setDbFieldList($dbFieldList);
$dbObject->setKeyFieldName("recNo");
$dbObject->connect();
// Retrieve parameters from request
$dbObject->getDbFieldsFromRequest();
// Records selection sql
$dbObject->setDbField("password",'welcome');
if ($dbObject->Update("recNo",$_REQUEST['kV']))
{
$_SESSION['repass']="Password Reset successfully";
header("Location: reset.php");
}
// Print navigation bar
?>