ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
payment.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
13 define('ILIAS_MODULE','payment');
14 
15 require_once "include/inc.header.php";
16 
17 switch ($_GET["view"])
18 {/* not in use
19  case "payment_admin" : require_once "./Services/Payment/classes/class.ilPaymentAdminGUI.php";
20 
21  $ilCtrl->setTargetScript("payment.php");
22  $ilCtrl->setParameterByClass("ilpaymentadmingui", "view", "payment_admin");
23  $ilCtrl->getCallStructure("ilpaymentadmingui");
24 
25  $pa =& new ilPaymentAdminGUI($ilias->account);
26  $ilCtrl->forwardCommand($pa);
27  break;
28  case "start_purchase" : require_once "./Services/Payment/classes/class.ilPaymentPurchaseGUI.php";
29 
30  $ilCtrl->setTargetScript("payment.php");
31  $ilCtrl->setParameterByClass("ilpaymentpurchasegui", "view", "start_purchase");
32  $ilCtrl->getCallStructure("ilpaymentpurchasegui");
33 
34  $pa =& new ilPaymentPurchaseGUI((int) $_GET['ref_id']);
35  $ilCtrl->forwardCommand($pa);
36  break;
37  */
38  case "start_bmf" : require_once "./Services/Payment/classes/class.ilPurchaseBMFGUI.php";
39 
40  $ilCtrl->setTargetScript("payment.php");
41  $ilCtrl->setParameterByClass("ilpurchasebmfgui", "view", "start_bmf");
42  $ilCtrl->getCallStructure("ilpurchasebmfgui");
43 
44  $pa =& new ilPurchaseBMFGUI($ilias->account);
45  $ilCtrl->forwardCommand($pa);
46  break;
47  case "conditions" : require_once "./Services/Payment/classes/class.ilTermsCondition.php";
48 
49  $pa =& new ilTermsCondition($ilias->account);
50  $pa->show();
51  break;
52  default : require_once "./Services/Payment/classes/class.ilPaymentGUI.php";
53 
54  $ilCtrl->setTargetScript("payment.php");
55  $ilCtrl->setParameterByClass("ilpaymentgui", "view", "payment");
56  $ilCtrl->getCallStructure("ilpaymentgui");
57 
58  $pa =& new ilPaymentGUI($ilias->account);
59  $ilCtrl->forwardCommand($pa);
60  break;
61 
62 }
63 
64 $tpl->show();
65 ?>