]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bank_package.php
All database names are now 'back-ticked' and constant _MYSQL_PREFIX is wrapped. Partl...
[mailer.git] / inc / modules / admin / what-list_bank_package.php
index 8fc083f7924c9e0afa5a64669451514e7be27343..1ca2d5a9746aba93ad01e6468d4c49b54b21587f 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((!defined('__SECURITY')) || (!is_admin())) {
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 } // END - if
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 // Check if there is enougth selected
 $show = true;
@@ -75,7 +75,7 @@ if (!$show) return;
 
 // Load all banking packages from DB
 $result = SQL_QUERY("SELECT id, title, description, account_fee AS 'fee', package_active AS 'active', interest_plus AS 'plus', interest_minus AS 'minus'
-FROM "._MYSQL_PREFIX."_bank_packages
+FROM `{!MYSQL_PREFIX!}_bank_packages`
 ORDER BY id", __FILE__, __LINE__);
 
 // Is there at lease one package?