PHP Classes

File: kernel/coreConsts.php

Recommend this page to a friend!
  Classes of ASCOOS CMS   Ascoos Framework   kernel/coreConsts.php   Download  
File: kernel/coreConsts.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Ascoos Framework
Framework of general purposes classes
Author: By
Last change: 25.0.0.10829
Date: 1 month ago
Size: 2,191 bytes
 

Contents

Class file image Download
<?php
/**
 * __ _ ___ ___ ___ ___ ___ ____ _ __ ___ ___
 * / _` |/ / / __/ _ \ / _ \ / / / __/| '_ ` _ \ / /
 * | (_| |\ \| (_| (_) | (_) |\ \ | (__ | | | | | |\ \
 * \__,_|/__/ \___\___/ \___/ /__/ \___\|_| |_| |_|/__/
 *
 *
 ************************************************************************************
 * @ASCOOS-NAME : ASCOOS CMS 25' *
 * @ASCOOS-VERSION : 25.0.0 *
 * @ASCOOS-CATEGORY : Framework (Frontend and Administrator Side) *
 * @ASCOOS-CREATOR : Drogidis Christos *
 * @ASCOOS-SITE : www.ascoos.com *
 * @ASCOOS-LICENSE : [Commercial] http://docs.ascoos.com/lics/ascoos/AGL.html *
 * @ASCOOS-COPYRIGHT : Copyright (c) 2007 - 2025, AlexSoft Software. *
 ************************************************************************************
 *
 * @package : ASCOOS FRAMEWORK 25'
 * @subpackage : Main Core Constants Handles
 * @source : afw/kernel/coreConsts.php
 * @fileNo :
 * @version : 25.0.0
 * @build : 10829
 * @created : 2007-05-11 07:00:00 UTC+2
 * @updated : 2025-01-01 07:00:00 UTC+2
 * @author : Drogidis Christos
 * @authorSite : www.alexsoft.gr
 * @license : AGL-F
 *
 * @since PHP 8.2.0
 */
declare(strict_types=1);
namespace
ASCOOS\FRAMEWORK\Kernel\Constants;
defined ("ALEXSOFT_RUN_CMS") or die("Prohibition of Access.");
defined ("ASCOOS_FRAMEWORK_RUN") or die("Prohibition of Access.");

// New Line and Directotry separator
$os = mb_strtoupper(mb_substr(PHP_OS, 0, 3));

switch (
$os )
{
    case
'WIN':
       
define("SEP", "\\");
       
define("_LN", "\r\n");
        break;
    case
'MAC':
       
define("SEP", "/");
       
define("_LN", "\r");
        break;
    default:
       
define("SEP", "/");
       
define("_LN", "\n");
        break;
}


define('E_ASCOOS_NOTICE_INVALID_VERSION', 40000);

define('ASCOOS_PROPERTY_TYPE_ERROR', 40400);


?>