]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-payments.php
Even more double->single converted
[mailer.git] / inc / modules / admin / what-payments.php
index b62197a5f635dd5ca81431148b476d3755de9e4b..027a00e2343b1a5f5aa7195a6af4e70fe3cef9e3 100644 (file)
@@ -48,7 +48,7 @@ if (((!isPostRequestElementSet('t_wait')) || (!isPostRequestElementSet('payment'
 } // END - if
 
 // Init SQL array
-nitSqls();
+initSqls();
 
 if (isFormSent()) {
        switch (getRequestElement('do')) {
@@ -121,7 +121,7 @@ LIMIT 1");
        // Delete entries here
        $OUT = '';
        foreach (postRequestElement('sel') as $id => $value) {
-               $result = SQL_QUERY_ESC("SELECT
+               $result = sqlQueryEscaped("SELECT
        `id`,
        `time`,
        `payment`,
@@ -133,10 +133,10 @@ WHERE
        `id`=%s
 LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
-               $content = SQL_FETCHARRAY($result);
+               $content = sqlFetchArray($result);
 
                // Free result
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_delete_payments_row', TRUE, $content);
@@ -148,7 +148,7 @@ LIMIT 1",
        // Edit entries
        $OUT = '';
        foreach (postRequestElement('sel') as $id => $value) {
-               $result = SQL_QUERY_ESC("SELECT
+               $result = sqlQueryEscaped("SELECT
        `id`,
        `time`,
        `payment`,
@@ -160,10 +160,10 @@ WHERE
        `id`=%s
 LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
-               $content = SQL_FETCHARRAY($result);
+               $content = sqlFetchArray($result);
 
                // Free result
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_edit_payments_row', TRUE, $content);
@@ -173,7 +173,7 @@ LIMIT 1",
        loadTemplate('admin_edit_payments', FALSE, $OUT);
 } else {
        // Referral levels
-       $result = SQL_QUERY("SELECT
+       $result = sqlQuery("SELECT
        `id`,
        `time`,
        `payment`,
@@ -183,18 +183,18 @@ FROM
        `{?_MYSQL_PREFIX?}_payments`
 ORDER BY
        `time` ASC", __FILE__, __LINE__);
-       if (!SQL_HASZERONUMS($result)) {
+       if (!ifSqlHasZeroNums($result)) {
                // Make referral levels editable and deletable
                $OUT = '';
 
                // List already existing categories for editing
-               while ($content = SQL_FETCHARRAY($result)) {
+               while ($content = sqlFetchArray($result)) {
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_list_payments_row', TRUE, $content);
                } // END - switch
 
                // Free memory
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
 
                // Load main template
                loadTemplate('admin_list_payments', FALSE, $OUT);