diff --git a/core/upgrade/index.php b/core/upgrade/index.php index dbddbcf339..85c07b5ca9 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2018 + Portions created by the Initial Developer are Copyright (C) 2008-2020 the Initial Developer. All Rights Reserved. Contributor(s): @@ -28,7 +28,7 @@ set_time_limit(15*60); //15 minutes //includes - include "root.php"; + require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; @@ -122,20 +122,26 @@ header("Location: ".PROJECT_PATH."/core/upgrade/index.php"); exit; - } // end if + } //include the header and set the title - require_once "resources/header.php"; $document['title'] = $text['title-upgrade']; + require_once "resources/header.php"; //show the content - echo "".$text['header-upgrade'].""; - echo "

"; + echo "
\n"; + + echo "
\n"; + echo "
".$text['header-upgrade']."
\n"; + echo "
\n"; + echo button::create(['type'=>'submit','label'=>$text['button-upgrade_execute'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>'never']); + echo "
\n"; + echo "
\n"; + echo "
\n"; + echo $text['description-upgrade']; echo "

"; - echo "\n"; - if (permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx") && is_writeable($_SERVER["PROJECT_ROOT"]."/.git")) { echo "\n"; echo "\n"; @@ -198,7 +204,7 @@ echo " ".$text['label-upgrade_apps']; echo " \n"; echo " \n"; echo "\n"; echo "
\n"; - echo " \n"; + echo "  ".$text['description-upgrade_apps']."\n"; echo "
\n"; @@ -242,8 +248,6 @@ echo "\n"; } - echo "
"; - echo "
"; echo "
\n"; echo "

"; @@ -267,4 +271,4 @@ //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file diff --git a/core/upgrade/upgrade.php b/core/upgrade/upgrade.php index c02987027f..3876a28aa9 100644 --- a/core/upgrade/upgrade.php +++ b/core/upgrade/upgrade.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2014 + Portions created by the Initial Developer are Copyright (C) 2008-2020 the Initial Developer. All Rights Reserved. Contributor(s): @@ -35,7 +35,7 @@ $display_type = 'text'; //html, text } else { - include "root.php"; + require_once "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('upgrade_schema') || permission_exists('upgrade_source') || if_group("superadmin")) {