1
difenduandada
2024-10-15 7fd2948ee35c8e147ed35ce6d8502f94a98ddd22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
 
if(!file_exists( __DIR__."/connect.php") ){
    if(file_exists("install.php")){
        header('Location: install.php');
    } elseif(file_exists("../install.php")) {
        header('Location: ../install.php');
    }
    exit('CloudArcade not installed yet.');
}
 
require("connect.php");
require("includes/version.php");
 
function handleException( $exception ) {
    echo($exception);
    error_log( $exception->getMessage() );
}
 
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 
set_exception_handler( 'handleException' );
 
?>