************************************************************************/
// Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!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;
// 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
-ORDER BY id", __FILE__, __LINE__);
+FROM `{!_MYSQL_PREFIX!}_bank_packages`
+ORDER BY `id`", __FILE__, __LINE__);
// Is there at lease one package?
if (SQL_NUMROWS($result) > 0) {
LOAD_TEMPLATE("admin_list_bank_package");
} else {
// No packages found!
- LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_BANK_NO_PACKAGES_FOUND);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_BANK_NO_PACKAGES_FOUND'));
}
// Free the result