@@ -120,10 +120,10 @@ $config_loaded = 0;
if ($file_config == 1)
{
print "
Depends on: presence config.inc.php - OK\n";
- require_once('config.inc.php');
+ require_once($incpath.'/config.inc.php');
$config_loaded = 1;
- require('config.inc.php');
+ require($incpath.'/config.inc.php');
if(isset($CONF['configured'])) {
if($CONF['configured'] == TRUE) {
print "
Checking \$CONF['configured'] - OK\n";
@@ -298,7 +298,7 @@ if ($error != 0)
else
{
print "Everything seems fine... attempting to create/update database structure
\n";
- require_once('upgrade.php');
+ require_once($incpath.'/upgrade.php');
$pAdminCreate_admin_username_text = $PALANG['pAdminCreate_admin_username_text'];
$pAdminCreate_admin_password_text = "";
diff --git a/templates/list-virtual.php b/templates/list-virtual.php
index bc5b24c7..0c6d5f77 100644
--- a/templates/list-virtual.php
+++ b/templates/list-virtual.php
@@ -95,7 +95,9 @@ if ((sizeof ($tAliasDomains) > 0) || (is_array ($tTargetDomain) ))
print " " . $tAliasDomains[$i]['modified'] . " | \n";
$active = ($tAliasDomains[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO'];
print " " . $active . " | \n";
- print " " . $PALANG['del'] . " | \n";
+ print " " . $PALANG['del'] . " | \n";
print " \n";
}
}
diff --git a/upgrade.php b/upgrade.php
index e13d4b97..757cf40d 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -106,7 +106,8 @@ _do_upgrade($version);
function _do_upgrade($current_version) {
global $CONF;
- $target_version = preg_replace('/[^0-9]/', '', '$Revision$');
+ # $target_version = preg_replace('/[^0-9]/', '', '$Revision$');
+ $target_version = 739; # hardcoded target version for 2.3 branch - increase (by one) if database changes in the branch are necessary
if ($current_version >= $target_version) {
# already up to date
@@ -336,7 +337,7 @@ function upgrade_1_mysql() {
active tinyint(4) NOT NULL default '1',
PRIMARY KEY (email),
KEY email (email)
- ) {INNODB} DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Vacation' ;";
+ ) {INNODB} DEFAULT CHARSET=latin1 COMMENT='Postfix Admin - Virtual Vacation' ;";
foreach($sql as $query) {
db_query_parsed($query);
@@ -863,7 +864,7 @@ function upgrade_344_mysql() {
extra_options text,
returned_text text,
mda varchar(255) not null default '',
- date timestamp(14),
+ date timestamp,
primary key(id)
);
");