]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/payout_functions.php
More misc fixes and rewrites (sorry, lame description)
[mailer.git] / inc / libs / payout_functions.php
index df8b39e84078580fd3e799dca4370db51e518a49..84357a9f77d19751c07683abd07a9a1cf30504bc 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Alle Ihrer gesammelten Punkte                    *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $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                  *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
 //
 function PAYOUT_OUTPUT_PAYOUT_LIST ($points) {
        // Replace german decimal comma with CPU's decimal dot
-       $points = REVERT_COMMA($points);
+       $points = convertCommaToDot($points);
 
        // Enougth points?
        if ($points > 0) {
@@ -69,14 +74,14 @@ ORDER BY type", array($points), __FUNCTION__, __LINE__);
                        OUTPUT_HTML("</ul></div>");
                } else {
                        // No payout types setup so far
-                       LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"guest_failed\">{--PAYOUT_NO_PAYOUT_TYPES--}</div");
+                       LOAD_TEMPLATE('admin_settings_saved', false, "<div class=\"guest_failed\">{--PAYOUT_NO_PAYOUT_TYPES--}</div");
                }
 
                // Free memory
                SQL_FREERESULT($result);
        } else {
                // Points is empty
-               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"guest_failed\">{--PAYOUT_NO_POINTS_ENTERED--}</div");
+               LOAD_TEMPLATE('admin_settings_saved', false, "<div class=\"guest_failed\">{--PAYOUT_NO_POINTS_ENTERED--}</div");
        }
 }