mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-03 07:54:00 +01:00
40 lines
1.2 KiB
PHP
Executable File
40 lines
1.2 KiB
PHP
Executable File
<?php
|
|
|
|
/*
|
|
* Copyright (c) Codiad & Kent Safranski (codiad.com), distributed
|
|
* as-is and without warranty under the MIT License. See
|
|
* [root]/license.txt for more. This information must remain intact.
|
|
*/
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// PATH
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
$rel = "";
|
|
define("BASE_PATH",$_SERVER["DOCUMENT_ROOT"] . $rel);
|
|
define("COMPONENTS",BASE_PATH . "/components");
|
|
define("DATA",BASE_PATH . "/data");
|
|
define("WORKSPACE",BASE_PATH . "/workspace");
|
|
define("WSURL",$_SERVER["HTTP_HOST"] . $rel . "/workspace");
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// TIMEZONE
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
date_default_timezone_set("America/Chicago");
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// SESSIONS
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
ini_set("session.cookie_lifetime","0");
|
|
session_start();
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// COMMON
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
require_once("common.php");
|
|
|
|
?>
|