@@ -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*/
0 commit comments