Example #1
0
require_once "lib/config.inc.php";
require_once "lib/classes/User.php";
require_once "lib/classes/Package.php";
$userObj = new User();
$commonObj->cleanInput();
$userObj->validateUserLogin();
if (isset($_GET['pid'])) {
    $PackageObj = new Package();
    $packageList = $PackageObj->getPackage(intval($_GET['pid']));
}
if ($_SESSION['UID']) {
    //$id = 'SM100'.;
    $result = $userObj->getUser($_SESSION['UID']);
}
if (isset($_POST['submitForm']) && $_POST['submitForm'] == 'Yes') {
    $userObj->ChangeUserPin($_POST);
    //echo '<pre>';
    //print_r($_POST);
}
?>
<!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>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"><link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"><link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo ucfirst(SITE_TITLE);
?>
</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />