More globals rewritten, see ticket #100
[mailer.git] / inc / libs / yoomedia_functions.php
index 41ea321a7f24ec44204e5069f09c985257954e14..69d4b301f79e44fe70cec8ae52be93d5311a140f 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Spezielle Funktion fuer Yoo!Media-Erweiterung    *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $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 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -82,14 +87,14 @@ function YOOMEDIA_QUERY_API ($script, $countQuery = true) {
                // Prepare the low-level request
                $requestString = sprintf("http://www.yoomedia.de/interface_2.0/%s?id=%s&sid=%s&pw=%s&reload=%s&ma=%s&uebrig=%s&verguetung=%s&erotik=%s",
                        $script,
-                       bigintval(getConfig('yoomedia_id')),
-                       bigintval(getConfig('yoomedia_sid')),
+                       getConfig(('yoomedia_id')),
+                       getConfig(('yoomedia_sid')),
                        getConfig('yoomedia_passwd'),
-                       bigintval(getConfig('yoomedia_tm_max_reload')),
-                       bigintval(getConfig('yoomedia_tm_min_wait')),
-                       bigintval(getConfig('yoomedia_tm_clicks_remain')),
-                       bigintval(getConfig('yoomedia_tm_min_pay')),
-                       bigintval(getConfig('yoomedia_erotic_allowed'))
+                       getConfig(('yoomedia_tm_max_reload')),
+                       getConfig(('yoomedia_tm_min_wait')),
+                       getConfig(('yoomedia_tm_clicks_remain')),
+                       getConfig(('yoomedia_tm_min_pay')),
+                       getConfig(('yoomedia_erotic_allowed'))
                );
 
                // Run the query
@@ -257,15 +262,13 @@ function YOOMEDIA_UNLIST_MAIL ($data, $mode) {
 
 // "Translates" the index number into an assosiative value
 function YOOMEDIA_TRANSLATE_INDEX ($type, $index) {
-       global $yoomediaTranslationTable;
-
        // Default is the index
        $return = $index;
 
        // Is the element there?
-       if (isset($yoomediaTranslationTable[$type][$index])) {
+       if (isset($GLOBALS['translation_tables']['yoomedia'][$type][$index])) {
                // Use this element
-               $return = $yoomediaTranslationTable[$type][$index];
+               $return = $GLOBALS['translation_tables']['yoomedia'][$type][$index];
        } else {
                // Not found!
                DEBUG_LOG(__FUNCTION__, __LINE__, " type={$type},index={$index} not found.");
@@ -277,15 +280,13 @@ function YOOMEDIA_TRANSLATE_INDEX ($type, $index) {
 
 // "Translate" error code
 function YOOMEDIA_TRANSLATE_ERROR ($errorCode) {
-       global $yoomediaTranslationTable;
-
        // Default is "failed"
        $return = "failed";
 
        // Is the entry there?
-       if (isset($yoomediaTranslationTable['error_codes'][$errorCode])) {
+       if (isset($GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode])) {
                // Entry found!
-               $return = $yoomediaTranslationTable['error_codes'][$errorCode];
+               $return = $GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode];
        } else {
                // Log missing entries
                DEBUG_LOG(__FUNCTION__, __LINE__, " errorCode={$errorCode}");