<?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.
*
*  Mkotsovoulou:
*  Config file modified to allow project creation in www
*/

//////////////////////////////////////////////////////////////////
// CONFIG
//////////////////////////////////////////////////////////////////


//PATH TO EDITOR
define("BASE_PATH", __DIR__);

//define("BASE_URL", $_SERVER["HTTP_HOST"] . "/editor");
define("BASE_URL", $_SERVER["HTTP_HOST"]);

// THEME : default, modern or clear (look at /themes)
define("THEME", "atheos");

// ABSOLUTE PATH
define("WHITEPATHS", BASE_PATH . "");

// SESSIONS (e.g. 7200)
$cookie_lifetime = "0";

// TIMEZONE
date_default_timezone_set("Europe/Athens");



//////////////////////////////////////////////////////////////////
// ** DO NOT EDIT CONFIG BELOW **
//////////////////////////////////////////////////////////////////

// PATHS
define("COMPONENTS", BASE_PATH . "/components");
define("PLUGINS", BASE_PATH . "/plugins");
define("THEMES", BASE_PATH . "/themes");
define("DATA", BASE_PATH . "/data");
//MK define("WORKSPACE", BASE_PATH . "/workspace");
define("WORKSPACE", $_SERVER['DOCUMENT_ROOT'] . "/");
// URLS
//MKdefine("WSURL", BASE_URL . "/workspace");
define("WSURL", $_SERVER["HTTP_HOST"]);

// Marketplace
define("MARKETURL", "https://atheos.io/market/json");

// Update Check
define("UPDATEURL", "https://atheos.io/update?v={VER}&o={OS}&p={PHP}&w={WEB}&a={ACT}");
//define("ARCHIVEURL", "https://github.com/HLSiira/Atheos/archive/master.zip");
//define("COMMITURL", "https://api.github.com/repos/HLSiira/Atheos/commits");