Skip to content

Commit eb3ab43

Browse files
author
Marius Cramer
committed
Changed version to 3.0.5.4dev
1 parent 7ffd14a commit eb3ab43

File tree

6 files changed

+6
-43
lines changed

6 files changed

+6
-43
lines changed

install/lib/install.lib.php

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -692,43 +692,6 @@ function is_installed($appname) {
692692
}
693693
}
694694

695-
/*
696-
* Compare ISPConfig version number.
697-
* return values:
698-
* -1 $current version is newer then $new version (downgrade)
699-
* 0 $current version = $new version
700-
* 1 $current version is older then new version (update)
701-
702-
*/
703-
function compare_ispconfig_version($current, $new) {
704-
if( $current == $new) {
705-
return 0;
706-
}
707-
708-
$p = explode('.', $current);
709-
$tmp = '';
710-
$tmp .= str_pad(intval($p[0]), 3, '0', STR_PAD_LEFT);
711-
$tmp .= (isset($p[1]))?str_pad(intval($p[1]), 3, '0', STR_PAD_LEFT):'000';
712-
$tmp .= (isset($p[2]))?str_pad(intval($p[2]), 3, '0', STR_PAD_LEFT):'000';
713-
$tmp .= (isset($p[3]))?str_pad(intval($p[3]), 3, '0', STR_PAD_LEFT):'000';
714-
$current = $tmp;
715-
716-
$p = explode('.', $new);
717-
$tmp = '';
718-
$tmp .= str_pad(intval($p[0]), 3, '0', STR_PAD_LEFT);
719-
$tmp .= (isset($p[1]))?str_pad(intval($p[1]), 3, '0', STR_PAD_LEFT):'000';
720-
$tmp .= (isset($p[2]))?str_pad(intval($p[2]), 3, '0', STR_PAD_LEFT):'000';
721-
$tmp .= (isset($p[3]))?str_pad(intval($p[3]), 3, '0', STR_PAD_LEFT):'000';
722-
$new = $tmp;
723-
724-
if($new > $current) {
725-
return 1;
726-
} else {
727-
return -1;
728-
}
729-
730-
}
731-
732695
/*
733696
* Get the port number of the ISPConfig controlpanel vhost
734697
*/

install/lib/update.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ function updateDbAndIni() {
153153
$conf['nginx']['installed'] = false;
154154
}
155155

156-
//* Do incremental DB updates only on installed ISPConfig versions > 3.0.3
157-
if(compare_ispconfig_version('3.0.3', ISPC_APP_VERSION) >= 0) {
156+
//* Do incremental DB updates only on installed ISPConfig versions >= 3.0.3
157+
if(version_compare('3.0.3', ISPC_APP_VERSION, '<=')) {
158158

159159
swriteln($inst->lng('Starting incremental database update.'));
160160

install/sql/ispconfig3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,7 +2280,7 @@ INSERT INTO `sys_user` (`userid`, `sys_userid`, `sys_groupid`, `sys_perm_user`,
22802280
-- Dumping data for table `sys_config`
22812281
--
22822282

2283-
INSERT INTO sys_config VALUES ('db','db_version','3.0.5.3');
2283+
INSERT INTO sys_config VALUES ('db','db_version','3.0.5.4dev');
22842284
INSERT INTO sys_config VALUES ('interface','session_timeout','0');
22852285

22862286
SET FOREIGN_KEY_CHECKS = 1;

install/tpl/config.inc.php.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $revision = str_replace(array('Revision:','$',' '), '', $svn_revision);
5656

5757
//** Application
5858
define('ISPC_APP_TITLE', 'ISPConfig');
59-
define('ISPC_APP_VERSION', '3.0.5.3');
59+
define('ISPC_APP_VERSION', '3.0.5.4dev');
6060
define('DEVSYSTEM', 0);
6161

6262

interface/lib/config.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
//** Application
4646
define('ISPC_APP_TITLE', 'ISPConfig');
47-
define('ISPC_APP_VERSION', '3.0.5.3');
47+
define('ISPC_APP_VERSION', '3.0.5.4dev');
4848
define('DEVSYSTEM', 0);
4949

5050

server/scripts/ispconfig_update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function simple_query($query, $answers, $default)
9393
if($method == 'stable') {
9494
$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt') or die('Unable to retrieve version file.');
9595
$new_version = trim($new_version);
96-
if($new_version != ISPC_APP_VERSION) {
96+
if(version_compare($new_version, ISPC_APP_VERSION, '>') {
9797
passthru('/usr/local/ispconfig/server/scripts/update_from_tgz.sh');
9898
exit;
9999
} else {

0 commit comments

Comments
 (0)