forked from MakaRax/HabboPHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaiement.php
37 lines (27 loc) · 1.33 KB
/
paiement.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
<?php
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
#| #|
#| HABBOPHP - http://habbophp.com #|
#| Copyright © 2012 Valentin & Robin. All rights reserved. #|
#| #|
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
require'init.php';
if(!isset($_GET['amoutMethod'])) redirection($config->url_site.'/shop.php?errorPaiement');
$amoutMethod = array('starpass','paypal','allopass');
if(!in_array($_GET['amoutMethod'],$amoutMethod)) redirection($config->url_site.'/shop.php?errorPaiement'); //La méthode de paiement n'exsite pas
$am = $_GET['amoutMethod'];
switch($am){
case "paypal":
$tpl->assign('MethodPrice',array('amout'=>$config->paypalamount , 'price' => $config->paypalprice , 'type' => $am));
break ;
case "starpass":
$tpl->assign('MethodPrice',array('amout'=>$config->starpassamount , 'price' => '1 Code' , 'type' => $am));
break ;
case "allopass" :
$tpl->assign('MethodPrice',array('amout'=>$config->allopassamount , 'price' => '1 Code' , 'type' => $am));
$allopassData = explode("/",$config->allopassauth);
$tpl->assign('allopass',$allopassData);
break ;
}
$tpl->display('paiement.tpl');
?>