2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 07/19/2011 *
4 * =================== Last change: 07/19/2011 *
6 * -------------------------------------------------------------------- *
7 * File : funcoins_functions.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Functions for ext-funcoins *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Funktionen fuer ext-funcoins *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
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 *
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. *
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. *
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, *
36 ************************************************************************/
38 // Some security stuff...
39 if (!defined('__SECURITY')) {
43 //-----------------------------------------------------------------------------
44 // Wrapper functions for configuration entries
45 //-----------------------------------------------------------------------------
47 // Getter for 'funcoins_api_id' config entry
48 function getFuncoinsApiId () {
50 if (!isset($GLOBALS[__FUNCTION__])) {
52 $GLOBALS[__FUNCTION__] = getConfig('funcoins_api_id');
56 return $GLOBALS[__FUNCTION__];
59 // Getter for 'funcoins_api_password' config entry
60 function getFuncoinsApiPassword () {
62 if (!isset($GLOBALS[__FUNCTION__])) {
64 $GLOBALS[__FUNCTION__] = getConfig('funcoins_api_password');
68 return $GLOBALS[__FUNCTION__];
71 // Getter for 'funcoins_min_payout' config entry
72 function getFuncoinsMinPayout () {
74 if (!isset($GLOBALS[__FUNCTION__])) {
76 $GLOBALS[__FUNCTION__] = getConfig('funcoins_min_payout');
80 return $GLOBALS[__FUNCTION__];
83 // Getter for 'funcoins_min_withdraw' config entry
84 function getFuncoinsMinWithdraw () {
86 if (!isset($GLOBALS[__FUNCTION__])) {
88 $GLOBALS[__FUNCTION__] = getConfig('funcoins_min_withdraw');
92 return $GLOBALS[__FUNCTION__];
95 // Getter for 'funcoins_payout_active' config entry
96 function getFuncoinsPayoutActive () {
98 if (!isset($GLOBALS[__FUNCTION__])) {
100 $GLOBALS[__FUNCTION__] = getConfig('funcoins_payout_active');
104 return $GLOBALS[__FUNCTION__];
107 // Getter for 'funcoins_payout_factor' config entry
108 function getFuncoinsPayoutFactor () {
110 if (!isset($GLOBALS[__FUNCTION__])) {
112 $GLOBALS[__FUNCTION__] = getConfig('funcoins_payout_factor');
116 return $GLOBALS[__FUNCTION__];
119 // Getter for 'funcoins_payout_fee_fix' config entry
120 function getFuncoinsPayoutFeeFix () {
122 if (!isset($GLOBALS[__FUNCTION__])) {
124 $GLOBALS[__FUNCTION__] = getConfig('funcoins_payout_fee_fix');
128 return $GLOBALS[__FUNCTION__];
131 // Getter for 'funcoins_payout_fee_percent' config entry
132 function getFuncoinsPayoutFeePercent () {
134 if (!isset($GLOBALS[__FUNCTION__])) {
136 $GLOBALS[__FUNCTION__] = getConfig('funcoins_payout_fee_percent');
140 return $GLOBALS[__FUNCTION__];
143 // Getter for 'funcoins_refid' config entry
144 function getFuncoinsRefid () {
146 if (!isset($GLOBALS[__FUNCTION__])) {
148 $GLOBALS[__FUNCTION__] = getConfig('funcoins_refid');
152 return $GLOBALS[__FUNCTION__];
155 // Getter for 'funcoins_withdraw_active' config entry
156 function getFuncoinsWithdrawActive () {
158 if (!isset($GLOBALS[__FUNCTION__])) {
160 $GLOBALS[__FUNCTION__] = getConfig('funcoins_withdraw_active');
164 return $GLOBALS[__FUNCTION__];
167 // Getter for 'funcoins_withdraw_fee_factor' config entry
168 function getFuncoinsWithdrawFeeFactor () {
170 if (!isset($GLOBALS[__FUNCTION__])) {
172 $GLOBALS[__FUNCTION__] = getConfig('funcoins_withdraw_fee_factor');
176 return $GLOBALS[__FUNCTION__];
179 // Getter for 'funcoins_withdraw_fee_fix' config entry
180 function getFuncoinsWithdrawFeeFix () {
182 if (!isset($GLOBALS[__FUNCTION__])) {
184 $GLOBALS[__FUNCTION__] = getConfig('funcoins_withdraw_fee_fix');
188 return $GLOBALS[__FUNCTION__];
191 // Getter for 'funcoins_withdraw_fee_percent' config entry
192 function getFuncoinsWithdrawFeePercent () {
194 if (!isset($GLOBALS[__FUNCTION__])) {
196 $GLOBALS[__FUNCTION__] = getConfig('funcoins_withdraw_fee_percent');
200 return $GLOBALS[__FUNCTION__];