]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/wernis_functions.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / libs / wernis_functions.php
index 568aac9c940049926b1ab2f9c4bab7ab4ac24fc2..5c76e50c24936abad4c286f5fbb3351f94f9cdf2 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Alle Ihrer gesammelten Punkte                    *
  * -------------------------------------------------------------------- *
- * $Revision:: 856                                                    $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009)             $ *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: stelzi                                                   $ *
+ * $Author::                                                          $ *
  * Needs to be in all Files and every File needs "svn propset           *
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
@@ -213,7 +213,7 @@ function WERNIS_TEST_API () {
 function WERNIS_EXECUTE_WITHDRAW ($wdsId, $userMd5, $amount) {
        // Is the sponsor extension installed?
        if (getConfig('wernis_withdraw_active') != "Y") {
-               if (!EXT_IS_ACTIVE("sponsor")) {
+               if (!EXT_IS_ACTIVE('sponsor')) {
                        // No, abort here
                        return false;
                } elseif (!IS_SPONSOR()) {
@@ -326,7 +326,7 @@ function WERNIS_TRANSFER_STATUS ($status) {
 // Log the transfer
 function WERNIS_LOG_TRANSFER ($wdsId, $amount, $type = 'FAILED', $message = "", $status = "") {
        // Register this wernis movement
-       SQL_QUERY_ESC("INSERT INTO `{!_MYSQL_PREFIX!}_user_wernis` (`userid`, `wernis_account`, `wernis_amount`, `wernis_timestamp`, `wernis_type`, `wernis_api_message`, `wernis_api_status`) VALUES (%d, %d, %d, UNIX_TIMESTAMP(), '%s', '%s', '%s')",
+       SQL_QUERY_ESC("INSERT INTO `{!_MYSQL_PREFIX!}_user_wernis` (`userid`,`wernis_account`,`wernis_amount`,`wernis_timestamp`,`wernis_type`,`wernis_api_message`,`wernis_api_status`) VALUES (%d, %d, %d, UNIX_TIMESTAMP(), '%s', '%s', '%s')",
                array(getUserId(), bigintval($wdsId), bigintval($amount), $type, $message, $status), __FUNCTION__, __LINE__);
 }
 
@@ -350,7 +350,7 @@ function WERNIS_TAKE_FEE ($points, $mode) {
        }
 
        // Divide/multiply the factor
-       if ($mode == "payout") {
+       if ($mode == 'payout') {
                // Divide for payout
                $points = $points / getConfig('wernis_payout_factor');
        } else {