-
Notifications
You must be signed in to change notification settings - Fork 204
/
login.php
38 lines (27 loc) · 1.13 KB
/
login.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
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
$Id$
CE Phoenix, E-Commerce made Easy
https://phoenixcart.org
Copyright (c) 2021 Phoenix Cart
Released under the GNU General Public License
*/
require 'includes/application_top.php';
// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started)
if (!$session_started) {
if ( !isset($_GET['cookie_test']) ) {
$all_get = tep_get_all_get_params();
tep_redirect(tep_href_link('login.php', (empty($all_get) ? '' : "$all_get&") . 'cookie_test=1'));
}
tep_redirect(tep_href_link('cookie_usage.php'));
}
// login content module must return $login_customer_id as an integer after successful customer authentication
$login_customer_id = false;
$page_content = $oscTemplate->getContent('login');
if ( is_int($login_customer_id) && ($login_customer_id > 0) ) {
$OSCOM_Hooks->call('siteWide', 'postLogin');
tep_redirect($_SESSION['navigation']->pop_snapshot_as_link());
}
require language::map_to_translation('login.php');
require $oscTemplate->map_to_template(__FILE__, 'page');
require 'includes/application_bottom.php';