Bad things are now 'classified' as bad (CSS class 'bad' is being used instead of...
[mailer.git] / inc / libs / funcoins_functions.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 07/19/2011 *
4  * ===================                          Last change: 07/19/2011 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : funcoins_functions.php                           *
8  * -------------------------------------------------------------------- *
9  * Short description : Functions for ext-funcoins                       *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Funktionen fuer ext-funcoins                     *
12  * -------------------------------------------------------------------- *
13  * $Revision::                                                        $ *
14  * $Date::                                                            $ *
15  * $Tag:: 0.2.1-FINAL                                                 $ *
16  * $Author::                                                          $ *
17  * -------------------------------------------------------------------- *
18  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
19  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
20  * For more information visit: http://mxchange.org                      *
21  *                                                                      *
22  * This program is free software; you can redistribute it and/or modify *
23  * it under the terms of the GNU General Public License as published by *
24  * the Free Software Foundation; either version 2 of the License, or    *
25  * (at your option) any later version.                                  *
26  *                                                                      *
27  * This program is distributed in the hope that it will be useful,      *
28  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
30  * GNU General Public License for more details.                         *
31  *                                                                      *
32  * You should have received a copy of the GNU General Public License    *
33  * along with this program; if not, write to the Free Software          *
34  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
35  * MA  02110-1301  USA                                                  *
36  ************************************************************************/
37
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
40         die();
41 } // END - if
42
43 //-----------------------------------------------------------------------------
44 //                Wrapper functions for configuration entries
45 //-----------------------------------------------------------------------------
46
47 // Getter for 'funcoins_api_id' config entry
48 function getFuncoinsApiId () {
49         // Do we have cache?
50         if (!isset($GLOBALS[__FUNCTION__])) {
51                 // Determine it
52                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_api_id');
53         } // END - if
54
55         // Return cache
56         return $GLOBALS[__FUNCTION__];
57 }
58
59 // Getter for 'funcoins_api_password' config entry
60 function getFuncoinsApiPassword () {
61         // Do we have cache?
62         if (!isset($GLOBALS[__FUNCTION__])) {
63                 // Determine it
64                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_api_password');
65         } // END - if
66
67         // Return cache
68         return $GLOBALS[__FUNCTION__];
69 }
70
71 // Getter for 'funcoins_min_payout' config entry
72 function getFuncoinsMinPayout () {
73         // Do we have cache?
74         if (!isset($GLOBALS[__FUNCTION__])) {
75                 // Determine it
76                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_min_payout');
77         } // END - if
78
79         // Return cache
80         return $GLOBALS[__FUNCTION__];
81 }
82
83 // Getter for 'funcoins_min_withdraw' config entry
84 function getFuncoinsMinWithdraw () {
85         // Do we have cache?
86         if (!isset($GLOBALS[__FUNCTION__])) {
87                 // Determine it
88                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_min_withdraw');
89         } // END - if
90
91         // Return cache
92         return $GLOBALS[__FUNCTION__];
93 }
94
95 // Getter for 'funcoins_payout_active' config entry
96 function getFuncoinsPayoutActive () {
97         // Do we have cache?
98         if (!isset($GLOBALS[__FUNCTION__])) {
99                 // Determine it
100                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_payout_active');
101         } // END - if
102
103         // Return cache
104         return $GLOBALS[__FUNCTION__];
105 }
106
107 // Getter for 'funcoins_payout_factor' config entry
108 function getFuncoinsPayoutFactor () {
109         // Do we have cache?
110         if (!isset($GLOBALS[__FUNCTION__])) {
111                 // Determine it
112                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_payout_factor');
113         } // END - if
114
115         // Return cache
116         return $GLOBALS[__FUNCTION__];
117 }
118
119 // Getter for 'funcoins_payout_fee_fix' config entry
120 function getFuncoinsPayoutFeeFix () {
121         // Do we have cache?
122         if (!isset($GLOBALS[__FUNCTION__])) {
123                 // Determine it
124                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_payout_fee_fix');
125         } // END - if
126
127         // Return cache
128         return $GLOBALS[__FUNCTION__];
129 }
130
131 // Getter for 'funcoins_payout_fee_percent' config entry
132 function getFuncoinsPayoutFeePercent () {
133         // Do we have cache?
134         if (!isset($GLOBALS[__FUNCTION__])) {
135                 // Determine it
136                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_payout_fee_percent');
137         } // END - if
138
139         // Return cache
140         return $GLOBALS[__FUNCTION__];
141 }
142
143 // Getter for 'funcoins_refid' config entry
144 function getFuncoinsRefid () {
145         // Do we have cache?
146         if (!isset($GLOBALS[__FUNCTION__])) {
147                 // Determine it
148                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_refid');
149         } // END - if
150
151         // Return cache
152         return $GLOBALS[__FUNCTION__];
153 }
154
155 // Getter for 'funcoins_withdraw_active' config entry
156 function getFuncoinsWithdrawActive () {
157         // Do we have cache?
158         if (!isset($GLOBALS[__FUNCTION__])) {
159                 // Determine it
160                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_withdraw_active');
161         } // END - if
162
163         // Return cache
164         return $GLOBALS[__FUNCTION__];
165 }
166
167 // Getter for 'funcoins_withdraw_fee_factor' config entry
168 function getFuncoinsWithdrawFeeFactor () {
169         // Do we have cache?
170         if (!isset($GLOBALS[__FUNCTION__])) {
171                 // Determine it
172                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_withdraw_fee_factor');
173         } // END - if
174
175         // Return cache
176         return $GLOBALS[__FUNCTION__];
177 }
178
179 // Getter for 'funcoins_withdraw_fee_fix' config entry
180 function getFuncoinsWithdrawFeeFix () {
181         // Do we have cache?
182         if (!isset($GLOBALS[__FUNCTION__])) {
183                 // Determine it
184                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_withdraw_fee_fix');
185         } // END - if
186
187         // Return cache
188         return $GLOBALS[__FUNCTION__];
189 }
190
191 // Getter for 'funcoins_withdraw_fee_percent' config entry
192 function getFuncoinsWithdrawFeePercent () {
193         // Do we have cache?
194         if (!isset($GLOBALS[__FUNCTION__])) {
195                 // Determine it
196                 $GLOBALS[__FUNCTION__] = getConfig('funcoins_withdraw_fee_percent');
197         } // END - if
198
199         // Return cache
200         return $GLOBALS[__FUNCTION__];
201 }
202
203 // [EOF]
204 ?>