示例#1
0
 /**
  * This function is used to validate registeration  page
  *
  * @return string
  */
 function showValidateRegPage()
 {
     //language
     include_once 'classes/Core/CLanguage.php';
     Core_CLanguage::setLanguage('REGISTER');
     include 'classes/Lib/CheckInputs.php';
     $obj = new Lib_CheckInputs('register');
     include 'classes/Core/CUserRegistration.php';
     include_once 'classes/Display/DUserRegistration.php';
     include 'classes/Core/CKeywordSearch.php';
     include 'classes/Display/DKeywordSearch.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['categories'] = Display_DUserRegistration::showMainCat();
     $output['signup'] = Display_DUserRegistration::signUp();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $output['timezone'] = Core_CHome::setTimeZone();
     $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['sitelogo'] = Core_CHome::getLogo();
     $output['pagetitle'] = Core_CHome::pageTitle();
     $output['skinname'] = Core_CHome::skinName();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $output['account'] = Core_CUserRegistration::addAccount();
     $output['val'] = Core_CUserRegistration::getCountry($Err->values);
     $output['loginStatus'] = Core_CUserRegistration::loginStatus();
     $output['cartcount'] = Core_CAddCart::countCart();
     Bin_Template::createTemplate('signup.html', $output);
 }