Upgrade: Button updates.

This commit is contained in:
Nate
2020-02-10 21:54:04 -07:00
parent 436cd69b5b
commit 5e845d3c31
2 changed files with 18 additions and 14 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
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 "<b>".$text['header-upgrade']."</b>";
echo "<br /><br />";
echo "<form name='frm' method='post'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-upgrade']."</b></div>\n";
echo " <div class='actions'>\n";
echo button::create(['type'=>'submit','label'=>$text['button-upgrade_execute'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>'never']);
echo " </div>\n";
echo " <div style='clear: both;'></div>\n";
echo "</div>\n";
echo $text['description-upgrade'];
echo "<br /><br />";
echo "<form name='frm' method='post' action=''>\n";
if (permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx") && is_writeable($_SERVER["PROJECT_ROOT"]."/.git")) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@@ -198,7 +204,7 @@
echo " ".$text['label-upgrade_apps'];
echo " </td>\n";
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
echo " <label for='do_apps'><input type='checkbox' name='do[apps]' id='do_apps' value='1'> &nbsp;".$text['description-upgrade_apps']."</label>\n";
echo " <input type='checkbox' name='do[apps]' id='do_apps' value='1'> &nbsp;".$text['description-upgrade_apps']."\n";
echo " </td>\n";
echo "</tr>\n";
echo "</table>\n";
@@ -242,8 +248,6 @@
echo "</table>\n";
}
echo "<br />";
echo "<div style='text-align: right;'><input type='submit' class='btn' value='".$text['button-upgrade_execute']."'></div>";
echo "</form>\n";
echo "<br /><br />";
@@ -267,4 +271,4 @@
//include the footer
require_once "resources/footer.php";
?>
?>

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
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")) {