Files
Testing/html5-chat/index.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

31 lines
714 B
PHP

<?php
session_start();
require_once 'Config.php';
//$langue = isset($_SESSION['langue'])?$_SESSION['langue']:LANGUE;
$host = explode('.', $_SERVER['HTTP_HOST']);
$lang = 'en';
$_SESSION['langue'] = $langue;
$fileJson = file_get_contents("lang/$langue.json");
$traductions = (json_decode($fileJson, true));
if (DEBUG) {
ini_set('display_errors', 1);
error_reporting(E_ALL);
}
if (!count($_GET)) {
$args = DEFAULT_VIEW;
} else {
$args = $_GET['args'];
}
$args = (explode('/', $args));
$page = array_shift($args).'.php';
if (!file_exists($page)) {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
include("404.php");exit;
}
//print_r($args);exit($page);
include($page);