Skip to content

Commit

Permalink
Redirect should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
Titstewan authored Mar 26, 2017
1 parent 06dd02d commit a6b03bc
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions res/index.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
<?php
// This file is here solely to protect this directory.
define('TLB', 1);
// Look for index.php....
// This file is here solely to protect your Themes directory.
// Look for settings.php....
if (file_exists(dirname(dirname(__FILE__)) . '/settings.php'))
{
// Found it!
require_once(dirname(dirname(__FILE__)) . '/settings.php');
echo '<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Kehe</title>
<meta charset="UTF-8">
</head>
<main>
<div>
Kehe.
</div>
<a href="', $weblink, '">Home</a>
</main>
</html>';
require(dirname(dirname(__FILE__)) . '/settings.php');
header('Location: ' . $weblink);
}
// Can't find it... just forget it.
else
Expand Down

0 comments on commit a6b03bc

Please sign in to comment.