<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------*
| Filename: includes/core_constants_include.php
| Author: PHP-Fusion Development Team
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

// Path definitions
if (!defined('BASEDIR')) define("BASEDIR", strpos(fusion_get_relative_path_to_config(), '/') === FALSE ? '' : dirname(fusion_get_relative_path_to_config()).'/');
define("ADMIN", BASEDIR."administration/");
define("CLASSES", BASEDIR."includes/classes/");
define("INFUSIONS", BASEDIR."infusions/");
define("IMAGES", BASEDIR."images/");
define("IMAGES_A", INFUSIONS."articles/images/");
define("IMAGES_N", INFUSIONS."news/images/");
define("IMAGES_N_T", INFUSIONS."news/images/thumbs/");
define("IMAGES_NC", INFUSIONS."news/news_cats/");
define("IMAGES_B", INFUSIONS."blog/images/");
define("IMAGES_B_T", INFUSIONS."blog/images/thumbs/");
define("IMAGES_BC", INFUSIONS."blog/blog_cats/");
define("IMAGES_D", INFUSIONS."downloads/images/");
define("FORUM", INFUSIONS."forum/");
define("RANKS", FORUM."ranks/");
define("INCLUDES", BASEDIR."includes/");
define("LOCALE", BASEDIR."locale/");
define("DOWNLOADS", INFUSIONS."downloads/");
define("IMAGES_G", INFUSIONS."gallery/photos/");
define("IMAGES_G_T", INFUSIONS."gallery/photos/thumbs/");
define("SHOP", INFUSIONS."eshop/");
define("THEMES", BASEDIR."themes/");
define("DB_HANDLERS", BASEDIR."includes/db_handlers/");
define("FUSION_IP", $_SERVER['REMOTE_ADDR']);
define("QUOTES_GPC", (ini_get('magic_quotes_gpc') ? TRUE : FALSE));
define("USER_IP", $_SERVER['REMOTE_ADDR']);

// Define script start time
define("START_TIME", microtime(TRUE));
define("FUSION_ROOT_DIR", dirname(__DIR__).'/');

// Define user levels
const USER_LEVEL_SUPER_ADMIN = -103;
const USER_LEVEL_ADMIN = -102;
const USER_LEVEL_MEMBER = -101;
const USER_LEVEL_PUBLIC = 0;
