]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_network_request_params.php
Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / modules / admin / what-list_network_request_params.php
index b353947a26d2563482d4247f2bb3335a446cf49e..8c5e5d7bc66b4daec688c0ff88e0e4522cf44a40 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -74,7 +74,7 @@ if (isGetRequestElementSet('network_id')) {
        $ADD = '';
        if ((isPostRequestElementSet('network_type_id')) && (!is_array(postRequestElement('network_type_id')))) {
                // Only show from current type handler
-               $ADD = sprintf(" AND `p`.`network_type_id`=%s", bigintval(postRequestElement('network_type_id')));
+               $ADD = sprintf(' AND `p`.`network_type_id`=%s', bigintval(postRequestElement('network_type_id')));
 
                // Overwrite type id
                $networkData['network_type_id'] = bigintval(postRequestElement('network_type_id'));
@@ -84,7 +84,7 @@ if (isGetRequestElementSet('network_id')) {
        } // END - if
 
        // Load all advert types for given network
-       $result = SQL_QUERY_ESC("SELECT
+       $result = sqlQueryEscaped("SELECT
        `p`.`network_request_param_id`,
        `t`.`network_type_id`,
        `t`.`network_type_handler`,
@@ -105,10 +105,10 @@ ORDER BY
                array(bigintval(getRequestElement('network_id'))), __FILE__, __LINE__);
 
        // Are there entries?
-       if (!SQL_HASZERONUMS($result)) {
+       if (!ifSqlHasZeroNums($result)) {
                // List all entries
                $OUT = '';
-               while ($row = SQL_FETCHARRAY($result)) {
+               while ($row = sqlFetchArray($result)) {
                        // Add it to network if the type matches selected
                        if ($row['network_type_id'] == postRequestElement('network_type_id')) {
                                // Matches, then add it for disabling this entry
@@ -133,7 +133,7 @@ ORDER BY
        }
 
        // Free result
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
 
        // Add form for adding new params
        loadTemplate('admin_add_network_request_param', FALSE, $networkData);