Example #1
0
require_once "lib/classes/Package.php";
$userObj = new User();
$packageObj = new Package();
$commonObj->cleanInput();
$userObj->validateUserLogin();
if ($_SESSION['UID']) {
    //$id = 'SM100'.;
    $result = $userObj->getUser($_SESSION['UID']);
    $myWallet = $userObj->getUserWallet($_SESSION['UID']);
    $PositionLevel = $userObj->getTreePosition($result->user_pin);
    $packageDetails = $userObj->getUserPackage($result->user_pin);
    $folderPath = "script/" . $_SESSION['UID'] . "/";
    if (!file_exists($folderPath)) {
        mkdir($folderPath, 0777);
    }
    $userObj->CreateBTreePosition('SM100' . $_SESSION['UID']);
}
?>
	

<!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" />