wip from ATB
This commit is contained in:
@ -23,7 +23,7 @@ use TheTempusProject\Hermes\Functions\Route;
|
||||
use TheTempusProject\Houdini\Classes\Components;
|
||||
use TheTempusProject\Houdini\Classes\Views;
|
||||
|
||||
// I switched to cloudflare which uses a dynamic proxy kinda thing, so any IP address lookups go wonky unless i get the OG IIP
|
||||
// I switched to cloudflare which uses a dynamic proxy kinda thing, so any IP address lookups go wonky unless i get the OG IP
|
||||
if ( isset( $_SERVER['HTTP_CF_CONNECTING_IP'] ) && filter_var( $_SERVER['HTTP_CF_CONNECTING_IP'], FILTER_VALIDATE_IP ) ) {
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
|
||||
}
|
||||
@ -36,21 +36,18 @@ if ( isset( $_SERVER['HTTP_CF_CONNECTING_IP'] ) && filter_var( $_SERVER['HTTP_CF
|
||||
*/
|
||||
$url = '';
|
||||
|
||||
$app = new TheTempusProject();
|
||||
|
||||
if ( Input::exists( 'error' ) ) {
|
||||
switch ( Input::get( 'error' ) ) {
|
||||
case 'image404':
|
||||
Redirect::to( 'images/imageNotFound.png' );
|
||||
exit;
|
||||
default:
|
||||
$app->setUrl( 'error/' . Input::get( 'error' ) );
|
||||
break;
|
||||
}
|
||||
} elseif ( stripos( Route::getUri(), 'install.php' ) ) {
|
||||
require_once 'install.php';
|
||||
}
|
||||
|
||||
$app = new TheTempusProject();
|
||||
|
||||
if ( CANARY_ENABLED ) {
|
||||
ini_set( 'display_errors', '1' );
|
||||
ini_set( 'display_startup_errors', '1' );
|
||||
|
Reference in New Issue
Block a user