-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorder.php
More file actions
84 lines (71 loc) · 2.02 KB
/
Copy pathorder.php
File metadata and controls
84 lines (71 loc) · 2.02 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/************************************************************************
*
* TO CUSTOMIZE THE SIGNUP DON'T MODIFY THIS FILE,
* MODIFY INSTEAD THE FOLLOWING FILE:
*
* /modules/admin/controllers/SignuppublicController.php
*
*
*************************************************************************/
// We will need this to determine certain validation routines for server plugins' validateCredentials() method.
define('NE_SIGNUP', true);
if (!isset($_REQUEST['step'])) {
$_REQUEST['step'] = 0;
}
if (!isset($_REQUEST['pass'])) {
$pass = 0;
} else {
$pass = $_REQUEST['pass'];
}
// paypal doesn't seem to decide on how to return to the merchant
// so this check is added in the event paypal returns back to order
// page with a completed transaction
if ( isset($_SERVER['REQUEST_URI'])
&& ( strpos($_SERVER['REQUEST_URI'], 'Access+Your+Subscription') !== false
|| strpos($_SERVER['REQUEST_URI'], 'Return+To+Merchant') !== false
|| strpos($_SERVER['REQUEST_URI'], 'merchant_return_link') !== false))
{
$_REQUEST['step'] = "complete";
$pass = 1;
}
//let's filter step
switch ($_REQUEST['step'])
{
case "0":
$view = "cart0";
break;
case "1":
$view = "cart1";
break;
case "2":
if ( !isset($_REQUEST['product']) || ($_REQUEST['product'] == 0) ) {
$_REQUEST['step'] = 0;
$view = "cart0";
} else {
$view = "cart2";
}
break;
case "3":
$view = "cart3";
break;
case "phone-verification":
$view = "phoneverification";
break;
case "complete":
if ($pass == 1) {
$view = 'success';
} else {
$view = 'cart3';
}
break;
default:
$view = "cart1";
break;
}
$_GET['view'] = $view;
// need both _GET and _REQUEST for lang() calls to work
$_GET['fuse'] = $_REQUEST['fuse'] = 'admin';
$_GET['controller'] = 'signup';
chdir(dirname(__FILE__));
require_once 'library/front.php';