wip from ATB

This commit is contained in:
Joey Kimsey
2025-01-04 17:21:14 -05:00
parent 87e4f90bab
commit 32a9711ade
60 changed files with 556 additions and 342 deletions

View File

@ -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' );