HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/jhtaxatie.creativefellows.nl/public/index.php
<?php

	error_reporting(E_ERROR);
	ini_set('display_errors', '1');

	require __DIR__ . '/../vendor/autoload.php';

	session_start();

	// Instantiate the app
	$settings = require __DIR__ . '/../src/settings.php';
	
	// custom classes
	spl_autoload_register(function ($classname){
		$cm_classes = [
			"CS_REST_BaseSerialiser",
			"CS_REST_DoNothingSerialiser",
			"CS_REST_NativeJsonSerialiser",
			"CS_REST_ServicesJsonSerialiser",
			"CS_REST_BaseTransport",
			"CS_REST_CurlTransport",
			"CS_REST_SocketWrapper"
		];
		
		//echo substr($classname, 0,7);
		
		if( substr($classname, 0,7) != "CS_REST" && file_exists('../classes/' . $classname . '.php')){ 
			require ("../classes/" . $classname . ".php");
		}
	});
	
	
	$app 	= new \Slim\App($settings);

	// Set up dependencies
	require __DIR__ . '/../src/dependencies.php';

	// Register middleware
	require __DIR__ . '/../src/middleware.php';

	// Register routes
	require __DIR__ . '/../src/routes.php';

	// Run app
	$app->run();