remove button onclick hrefs

This commit is contained in:
alexveebee 2025-04-24 17:13:15 +00:00
parent 58c275472f
commit 3b45f4a897

View File

@ -1055,13 +1055,13 @@ if ($step == 0) {
'<p><strong>Username:</strong> admin</p>' . '<p><strong>Username:</strong> admin</p>' .
'<p><strong>Password:</strong> password</p>' . '<p><strong>Password:</strong> password</p>' .
'<p><strong>Important:</strong> For security, please change the administrator password immediately after logging in.</p>' . '<p><strong>Important:</strong> For security, please change the administrator password immediately after logging in.</p>' .
'<p style="text-align:center"><button onclick="window.location.href=\'/mod.php\'">Go to Admin Panel</button></p></div>'; '<p style="text-align:center"><a href="/mod.php"><button>Go to Admin Panel</button></a></p></div>';
if (!empty($sql_errors)) { if (!empty($sql_errors)) {
$page['body'] .= '<div class="ban"><h2>SQL errors</h2><p>SQL errors were encountered when trying to install the database. This may be the result of using a database which is already occupied with a vichan installation; if so, you can probably ignore this.</p><p>The errors encountered were:</p><ul>' . $sql_errors . '</ul>' . $page['body'] .= '<div class="ban"><h2>SQL errors</h2><p>SQL errors were encountered when trying to install the database. This may be the result of using a database which is already occupied with a vichan installation; if so, you can probably ignore this.</p><p>The errors encountered were:</p><ul>' . $sql_errors . '</ul>' .
'<p style="text-align:center;color:#d00"><strong>Warning:</strong> Ignoring errors is not recommended and may cause installation issues.</p>' . '<p style="text-align:center;color:#d00"><strong>Warning:</strong> Ignoring errors is not recommended and may cause installation issues.</p>' .
'<p style="text-align:center"><button onclick="window.location.href=\'?step=5\'">Next</button></p></div>'; '<p style="text-align:center"><a href="?step=5"><button>Next</button></a></p></div>';
} else { } else {
$boards = listBoards(); $boards = listBoards();
foreach ($boards as &$_board) { foreach ($boards as &$_board) {
@ -1087,7 +1087,7 @@ if ($step == 0) {
'<p><strong>Username:</strong> admin</p>' . '<p><strong>Username:</strong> admin</p>' .
'<p><strong>Password:</strong> password</p>' . '<p><strong>Password:</strong> password</p>' .
'<p><strong>Important:</strong> For security, please change the administrator password immediately after logging in.</p>' . '<p><strong>Important:</strong> For security, please change the administrator password immediately after logging in.</p>' .
'<p style="text-align:center"><button onclick="window.location.href=\'/mod.php\'">Go to Admin Panel</button></p></div>'; '<p style="text-align:center"><a href="/mod.php"><button>Go to Admin Panel</button></a></p></div>';
$boards = listBoards(); $boards = listBoards();
foreach ($boards as &$_board) { foreach ($boards as &$_board) {