/** * This function is used to Show account dashboard after login * * @return string */ function showDashBoard() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('DASHBOARD'); $this->checkLogin(); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CUserDashboard.php'; include 'classes/Core/CHome.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['cartcount'] = Core_CAddCart::countCart(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CUserDashboard::showDashboard(); Bin_Template::createTemplate('userIndex.html', $output); }
/** * This function is used to validate the login page * * @return string */ function showValidateLoginPage() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('DASHBOARD'); include 'classes/Lib/CheckInputs.php'; $obj = new Lib_CheckInputs('validatelogin'); if (isset($_SESSION['RequestUrl'])) { $url = $_SESSION['RequestUrl']; header("Location:" . $url); } include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CWishList.php'; include 'classes/Display/DWishList.php'; include_once 'classes/Core/CFeaturedItems.php'; include_once 'classes/Display/DFeaturedItems.php'; include_once 'classes/Core/CNewProducts.php'; include_once 'classes/Display/DNewProducts.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include 'classes/Core/CUserDashboard.php'; include_once 'classes/Core/CCurrencySettings.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['signup'] = Display_DUserRegistration::signUp(); $output['cartSnapShot'] = Core_CAddCart::cartSnapShot(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['skinname'] = Core_CHome::skinName(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['banner'] = Core_CHome::getBanner(); $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode(); $output['googlead'] = Core_CHome::getGoogleAd(); $output['footer'] = Core_CHome::footer(); $output['footerconnect'] = Core_CHome::getfooterconnect(); $output['sociallink'] = Core_CHome::showSocialLinks(); include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); $default = new Core_CFeaturedItems(); $output['maincatimage'] = $default->showMainCategory(); $output['allfeaturedproducts'] = $default->featuredProducts(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } $default = new Core_CNewProducts(); $output['newproducts'] = $default->newProducts(); $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['cartcount'] = Core_CAddCart::countCart(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CUserDashboard::showDashboard(); Bin_Template::createTemplate('userIndex.html', $output); }