Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ssl committed Sep 2, 2020
1 parent 4b9bb43 commit ae656e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h1>Error</h1>
<p>If you see this page your mod_rewrite is not setup correctly. Visit the <a href="https://github.com/ssl/ezXSS">wiki</a> for more information.</p>
<p>Your mod_rewrite is not setup correctly. Visit the <a href="https://github.com/ssl/ezXSS/wiki">wiki</a> for more information.</p>
6 changes: 3 additions & 3 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
|
*/

define('version', '3.6');
define('version', '3.7');
define('debug', false);

if (debug) {
Expand Down Expand Up @@ -46,7 +46,7 @@
require_once __DIR__ . '/src/Autoload.php';

if(!file_exists('.env')) {
error('You did not setup your config file. Rename .env.example to .env and fill in your database information.', true);
error('You did not setup your config file yet.', true);
}

$config = parse_ini_file('.env');
Expand Down Expand Up @@ -105,7 +105,7 @@
*/

function error($message, $wiki = false) {
$message .= ($wiki === true ? ' Visit the <a href="https://github.com/ssl/ezXSS">wiki</a> for more information.' : '');
$message .= ($wiki === true ? ' Visit the <a href="https://github.com/ssl/ezXSS/wiki">wiki</a> for more information.' : '');
echo "<h1>Error</h1><p>$message</p>";
exit();
}

0 comments on commit ae656e6

Please sign in to comment.