$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('register'))) {
- addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'register'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('register'));
return;
}
// Add design when extension sql_patches is v0.2.7 or greater
// @TODO Rewrite these all to a single filter
$ADD1 = ''; $ADD2 = '';
- if (GET_EXT_VERSION('sql_patches') >= '0.2.7') {
+ if (GET_EXT_VERSION('theme') >= '0.0.8') {
// Okay, add design here
$ADD1 = ", `curr_theme`";
$ADD2 = ", '".getCurrentTheme()."'";
define('__FAMILY', SQL_ESCAPE(REQUEST_POST('family')));
define('__STREET', SQL_ESCAPE(REQUEST_POST('street_nr')));
define('__COUNTRY', SQL_ESCAPE(REQUEST_POST('cntry')));
- if (REQUEST_ISSET_POST('zip')) {
+ if ((REQUEST_ISSET_POST('zip')) && (REQUEST_POST('zip') != '')) {
define('__ZIP', bigintval(REQUEST_POST('zip')));
} else {
define('__ZIP', '');