]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/transfer_functions.php
Refback and referal points hopefully fixed:
[mailer.git] / inc / libs / transfer_functions.php
index 2f2d61c82749fa9edc18275c84092eb35ad81acf..b3ddbd646bf8eccbdfb031e2886514538cb0f116 100644 (file)
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -82,5 +80,21 @@ function autoPurgeTransfers ($max, $age) {
        } // END - if
 }
 
+//-----------------------------------------------------------------------------
+//                              Wrapper functions
+//-----------------------------------------------------------------------------
+
+// Wrapper function for transfer_code
+function getTransferCode () {
+       // Is cache set?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Get config entry
+               $GLOBALS[__FUNCTION__] = getConfig('transfer_code');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>