mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 01:34:31 +01:00
"Are you sure you want to continue" message when pre-installation test failed
This commit is contained in:
parent
7d0f4fcd43
commit
dfc6068341
11
install.php
11
install.php
@ -117,8 +117,9 @@
|
||||
}
|
||||
|
||||
function row($item, $result) {
|
||||
global $page, $config;
|
||||
|
||||
global $page, $config, $__is_error;
|
||||
if(!$result)
|
||||
$__is_error = true;
|
||||
$page['body'] .= '<tr><th>' . $item . '</th><td><img style="width:16px;height:16px" src="' . $config['dir']['static'] . ($result ? 'ok.png' : 'error.png') . '" /></td></tr>';
|
||||
}
|
||||
|
||||
@ -149,7 +150,9 @@
|
||||
|
||||
$page['body'] .= '</table>
|
||||
<p style="text-align:center">
|
||||
<a href="?step=2">Continue.</a>
|
||||
<a href="?step=2"' .
|
||||
(isset($__is_error) ? ' onclick="return confirm(\'Are you sure you want to continue when errors exist?\')"' : '') .
|
||||
'>Continue' . (isset($__is_error) ? ' anyway' : '') . '.</a>
|
||||
</p>';
|
||||
|
||||
echo Element('page.html', $page);
|
||||
@ -428,4 +431,4 @@
|
||||
|
||||
echo Element('page.html', $page);
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user