Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (Users::isLogged()){
- UserApi::addOutputData('PHPSESSID', session_id());
- $options = isset($_GET['options']) && is_array($_GET['options']) ? $_GET['options'] : array();
- UserApi::addOutputData('header', UserApi::getHeaderHtml($terminal, $options));
- } else {
- $smarty = UserApi::getSmarty();
- $smarty->assign('inline', isset($_GET['inline']) ? $_GET['inline'] : 'false');
- $smarty->assign('terminal', $terminal);
- $textsIndexes = array(
- 'sign_in_with', 'no_registration_needed', 'remember_me', 'or', 'sign_in', 'register', 'password',
- 'forgot_password_link', 'requires_activation', 'name', 'e_mail', 'username', 'tooltip_username', 'tooltip_username_podsnack', 'tooltip_username_photosnack', 'password', 'receive_newsletter',
- 'forgot_pass_info', 'recover_password_button', 'access_to_all_apps', 'sign_in_register_to_continue',
- 'title_facebook', 'title_google', 'title_twitter', 'title_yahoo', 'title_myspace',
- 'sign_in_with_snacktools', 'edit_future_stuff', 'or_use_google_yahoo', 'just_keep_up', 'sign_in_more', 'sign_in_with_google', 'sign_in_with_twitter',
- 'keep_me_logged_in', 'sign_in_with_facebook', 'sign_in_with_email', 'no_registration', 'easy_sign_in',
- 'sign_in_new_user', 'sign_in_existing_user', 'sign_in_using_social_account', 'title_forgot_password', 'back_to_sign_in',
- 'create_account_txt','get_product_nl_and_offers', 'get_articles_on_banner_adv','or_quickly_connect_using', 'new_to_bannersnack', 'already_have_an_account'
- );
- $textsIndexes1 = array(
- 'account_created_verify_email',
- 'account_created_important',
- 'account_created_time_left',
- 'continue_button',
- 'access_to_all_apps',
- 'thank_you_for_registering',
- 'account_created_verify_email_flipsnack'
- );
- $bsTextsIndexes = array(
- 'almost_there',
- 'best_experience',
- 'what_describes',
- 'business_owner',
- 'marketer',
- 'designer',
- 'developer',
- 'none_of_the_above',
- 'account_created_email_sent',
- 'bs_account_created_please_confirm'
- );
- $textsIndexes = array_merge($textsIndexes, $textsIndexes1, $bsTextsIndexes);
- $texts = Lang::getTexts($textsIndexes);
- $smarty->assign('texts', $texts);
- $outTexts = array('sign_in' => $texts['sign_in'], 'register' => $texts['register'], 'sign_in_register_to_continue' => $texts['sign_in_register_to_continue']);
- UserApi::addOutputData('texts', $outTexts);
- $ip = isset($_GET['ip']) ? $_GET['ip'] : null;
- $requireCaptcha = UsersHistory::requireCaptcha($ip);
- $smarty->assign('config', $config);
- $smarty->assign('lang', Lang::getLang());
- if ($requireCaptcha){
- $smarty->assign('captchaId', CaptchaGenerator::getNewDBId());
- }
- UserApi::htmlContent($smarty->fetch('bannersnack/account-created/almost.tpl'));
- //UserApi::htmlContent($smarty->fetch('login-signup-compact.tpl'));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement