forked from H3Gi/tatar-wars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment1.php
56 lines (39 loc) · 1.39 KB
/
payment1.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
require( '.' . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'boot.php' );
class GPage extends PopupPage {
var $requestPaymentProvider = FALSE;
var $providerType = '';
var $package = null;
var $payment = null;
var $secureId = null;
var $Domain = null;
function GPage() {
parent::popuppage();
$this->viewFile = 'payment.phtml';
}
function load() {
parent::load();
$this->Domain = webhelper::getbaseurl();
if (( isset( $_GET['p'] ) && isset( $_GET['pg'] ) )) {
$this->providerType = trim( $_GET['p'] );
$this->packageIndex = trim( $_GET['pg'] );
if (( isset( $this->appConfig['plus']['payments'][$this->providerType] ) && isset( $this->appConfig['plus']['packages'][$this->packageIndex] ) )) {
$this->title = sprintf( payment_loading . ' %s ...', $this->appConfig['plus']['payments'][$this->providerType]['name'] );
$this->package = $this->appConfig['plus']['packages'][$this->packageIndex];
$this->payment = $this->appConfig['plus']['payments'][$this->providerType];
$this->requestPaymentProvider = isset( $_GET['c'] );
if ($this->requestPaymentProvider) {
$this->layoutViewFile = NULL;
$this->secureId = base64_encode( $this->player->playerId );
return null;
}
}
else {
echo '<script type="text/javascript">self.close();</script>';
}
}
}
}
$p = new GPage();
$p->run();
?>