You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
24 lines
1.1 KiB
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
define("BaseDir", dirname(__DIR__)); // Project DIR
|
|
define("PROJECT_ASSETS_DIR", BaseDir . DIRECTORY_SEPARATOR . "public" . DIRECTORY_SEPARATOR . "assets" . DIRECTORY_SEPARATOR);
|
|
|
|
$server_port = $_SERVER['SERVER_PORT'] ?? 80;
|
|
$secure_port_on = $_SERVER['HTTPS'] ?? "off";
|
|
$use_secure = ($server_port == "443" || $secure_port_on == "on");
|
|
$protocol = ($use_secure) ? "https://" : "http://";
|
|
$domain_name = $_SERVER['HTTP_HOST'] ?? "";
|
|
|
|
define("HTTP_PROT", $protocol);
|
|
define("PROJECT_ASSETS_BASE_REF", $protocol . $domain_name ."/assets");
|
|
define("ASSETS_DIR", PROJECT_ASSETS_DIR);
|
|
define('ASSETS_BASE_REF', $protocol . $domain_name . "/assets");
|
|
|
|
const IO_CORNERSTONE_PROJECT = BaseDir . DIRECTORY_SEPARATOR . "protected". DIRECTORY_SEPARATOR. "src" . DIRECTORY_SEPARATOR;
|
|
|
|
const IO_CORNERSTONE_FRAMEWORK = BaseDir . DIRECTORY_SEPARATOR . "protected" . DIRECTORY_SEPARATOR . "src" . DIRECTORY_SEPARATOR . "IOcornerstone" . DIRECTORY_SEPARATOR;
|
|
|
|
const CountFiles = true; // Should files be added to an array for count?
|
|
require_once IO_CORNERSTONE_FRAMEWORK . "Bootstrap.php";
|
|
|