-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·27 lines (26 loc) · 968 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require_once('includes/common/config.include.php');
$isLoggedIn = $objInternalPortfolioManager->isUserAlreadyLoggedIn();
if(!$isLoggedIn) {
if($_SERVER['REQUEST_METHOD'] == 'GET') {
$paramReceived = $_GET['a'];
$arrParam = explode("/", $paramReceived);
$userId = base64_decode($arrParam[0]);
$message = base64_decode($arrParam[1]);
$authenticationHash = base64_decode($arrParam[2]);
if($authenticationHash == GAUTAMW3_PORTFOLIO_HASH) {
if($message == EMAIL_VERIFICATION_MESSAGE) {
$cookieData = $arrParam[0]."xxx".$arrParam[2];
$objInternalPortfolioManager->letUserLogin($userId, $cookieData, true);
} else if($message == PASSWORD_RESET_REQUEST_MESSAGE) {
header('Location:'.SITE_ROOT.'/password-reset.php');
exit(0);
}
}
}
}
$pageTitle = "Home";
require_once('includes/pagesDependencies/header.php');
include('pages/home.php');
require_once('includes/pagesDependencies/footer.php');
?>