Blogging structure with SEO markup
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.
 
 
 
blog/lib/config.php

22 lines
609 B

<?php
namespace kuzik\meta; # namespace collision
/**
* Flex folder discovery:
*
* This script will discover it's path based on the files
*location relative to DOCUMENT_ROOT
*/
defined('__META__') || define('__META__',str_replace('/lib','',str_replace($_SERVER['DOCUMENT_ROOT'],'',__DIR__)));
if ( !file_exists(__DIR__.'/../config.ini') ) {
http_response_code(500);
die('Config File missing');
}
$config = parse_ini_file(__DIR__.'/../config.ini',true);
$config['INTRANET'] ??= false;
$config['ICON_PATH'] ??= 'icons';
defined('__ICO__') || define('__ICO__', __META__.'/'.$config['ICON_PATH']);