1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

a notice and link to tinyboard.org wiki when filling out the config

This commit is contained in:
Savetheinternet 2011-06-16 03:45:59 +10:00
parent da86c76165
commit 12d6dc85e6

View File

@ -117,8 +117,9 @@
} }
function row($item, $result) { 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>'; $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> $page['body'] .= '</table>
<p style="text-align:center"> <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>'; </p>';
echo Element('page.html', $page); echo Element('page.html', $page);