ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
payment.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2001 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
24 
33 define('ILIAS_MODULE','payment');
34 
35 require_once "include/inc.header.php";
36 
37 switch ($_GET["view"])
38 {
39  case "payment_admin" : require_once "./payment/classes/class.ilPaymentAdminGUI.php";
40 
41  $ilCtrl->setTargetScript("payment.php");
42  $ilCtrl->setParameterByClass("ilpaymentadmingui", "view", "payment_admin");
43  $ilCtrl->getCallStructure("ilpaymentadmingui");
44 
45  $pa =& new ilPaymentAdminGUI($ilias->account);
46  $ilCtrl->forwardCommand($pa);
47  break;
48  case "start_purchase" : require_once "./payment/classes/class.ilPaymentPurchaseGUI.php";
49 
50  $ilCtrl->setTargetScript("payment.php");
51  $ilCtrl->setParameterByClass("ilpaymentpurchasegui", "view", "start_purchase");
52  $ilCtrl->getCallStructure("ilpaymentpurchasegui");
53 
54  $pa =& new ilPaymentPurchaseGUI((int) $_GET['ref_id']);
55  $ilCtrl->forwardCommand($pa);
56  break;
57  case "start_bmf" : require_once "./payment/classes/class.ilPurchaseBMFGUI.php";
58 
59  $ilCtrl->setTargetScript("payment.php");
60  $ilCtrl->setParameterByClass("ilpurchasebmfgui", "view", "start_bmf");
61  $ilCtrl->getCallStructure("ilpurchasebmfgui");
62 
63  $pa =& new ilPurchaseBMFGUI($ilias->account);
64  $ilCtrl->forwardCommand($pa);
65  break;
66  case "conditions" : require_once "./payment/classes/class.ilTermsCondition.php";
67 
68  $pa =& new ilTermsCondition($ilias->account);
69  $pa->show();
70  break;
71  default : require_once "./payment/classes/class.ilPaymentGUI.php";
72 
73  $ilCtrl->setTargetScript("payment.php");
74  $ilCtrl->setParameterByClass("ilpaymentgui", "view", "payment");
75  $ilCtrl->getCallStructure("ilpaymentgui");
76 
77  $pa =& new ilPaymentGUI($ilias->account);
78  $ilCtrl->forwardCommand($pa);
79  break;
80 
81 }
82 
83 $tpl->show();
84 ?>