Cosmetic changes, some PHP8.x warning fixes

This commit is contained in:
JRGTH
2022-08-28 06:22:37 -04:00
parent b519448846
commit a3829b1d3f
5 changed files with 5 additions and 2 deletions

View File

@@ -80,6 +80,7 @@ function htmlButton($name, $text, $value="", $title="", $confirm="", $buttonImag
}
function parseConfigFile($configFile) {
global $section;
$fileArray = file($configFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); // load config file content to array
$configArray = array();
foreach($fileArray as $line) { // create array from config

View File

@@ -224,6 +224,7 @@ $document->render();
?>
<form action="bastille_manager_gui.php" method="post" name="iform" id="iform"><table id="area_data"><tbody><tr><td id="area_data_frame">
<?php
global $sphere_notifier;
if(!empty($errormsg)):
print_error_box($errormsg);
endif;

View File

@@ -345,7 +345,7 @@ $(document).ready(function(){
</tr>
<?php
if(!initial_install_banner()):
html_checkbox2('zfs_activate',gtext('ZFS support activation'),'' ? true : false,gtext('Check this to activate ZFS support or leave unchecked to dismiss (requires ZFS support to be available), this is a one time option and this row will disappear after clicking Save button.'),'',false);
html_checkbox2('zfs_activate',gtext('ZFS support activation'),'' ? true : false,gtext('Check this to activate ZFS support or leave unchecked to dismiss (requires ZFS support to be available/enabled), this is a one time option and this row will disappear after clicking Save button or page refresh.'),'',false);
endif;
?>
<?php html_filechooser("backup_path", gtext("Backup directory"), $backup_path, gtext("Directory to store containers backup archives, use as file chooser for restoring from file, importable formats: .GZ/TGZ/TXZ/XZ or RAW(no extension on the file name)."), $backup_path, true, 60);?>