<commit_before><?php
/**
 * Cetera CMS 3 
 * 
 * Определение констант  
 *
 * @package CeteraCMS
 * @version $Id$
 * @copyright 2000-2010 Cetera labs (http://www.cetera.ru) 
 * @author <NAME> <<EMAIL>> 
 **/

/** Версия */
define('VERSION', '3.59.8-fastsite');

/** Название продукта */
define('APP_NAME', 'Cetera CMS');

/** Cайт производителя */
define('APP_WWW', 'www.cetera.ru');

define('PHP_VER', '7.0.0');
define('MYSQL_VER', '5.0.3');
define('LIBRARY_VERSION_REQ', 11);

define("DISTRIB_HOST", 'https://cms.cetera.ru/');
define("DISTRIB_INFO", DISTRIB_HOST.'info.json'); 
define("PLUGINS_INFO", DISTRIB_HOST.'plugins/plugins.php'); 
define("THEMES_INFO",  DISTRIB_HOST.'themes/themes.php'); 
define("PING_URL",     DISTRIB_HOST.'net/ping.php'); 
define("DISTRIB_FILE", 'cms.zip'); 
define("LIBRARY_FILE", 'library.zip'); 

define("TRANSLATIONS", 'lang'); 

define("UPGRADE_FILE",   'upgrade.zip');
define("UPGRADE_SCRIPT", 'upgrade.php');
define("INSTALL_SCRIPT", 'install.php');

if (isset($_SERVER['HTTP_USER_AGENT'])) {
	$agt = strtolower($_SERVER['HTTP_USER_AGENT']);
	define('IS_IE', strpos($agt, 'msie') !== false && !(strpos($agt, 'opera') !== false));
}

// ----------- файлы и каталоги -----------------

/** Каталог установки CMS */
if (!defined('CMS_DIR')) {
    define('CMS_DIR', 'cms' );
}
	
/** Абсолютный путь DOCUMENT ROOT */
if (!defined('DOCROOT')) {
	$dr = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/'.CMS_DIR.'/', 1 )).'/';
	define('DOCROOT', $dr );
}
define('WWWROOT', DOCROOT );

define('LIBRARY_PATH', 'library');

if (file_exists(__DIR__.'/../../../vendor/cetera-labs/cetera-cms')) {
	define('COMPOSER_INSTALL', true);
	define('VENDOR_PATH', DOCROOT.'../vendor');
    define('CMSROOT', DOCROOT.'../vendor/cetera-labs/cetera-cms/cms/' );
}
else {
	define('COMPOSER_INSTALL', false);
	define('VENDOR_PATH', DOCROOT.'/'.LIBRARY_PATH.'/vendor');
	
	if (file_exists(DOCROOT.LIBRARY_PATH.'/library.php')) {
		include_once(DOCROOT.LIBRARY_PATH.'/library.php');
	} else {
		define('LIBRARY_VERSION', 1);
	}	
    define('CMSROOT', str_replace('include','',__DIR__) );
}

define('PREFS_FILE',       DOCROOT.'.prefs');
define('PREFS_FILE_LOCAL', DOCROOT.'.prefs.local');

define ('DB_SCHEMA', CMSROOT.'.dbschema/core.xml');
define ('DB_DATA', CMSROOT.'.dbschema/core.sql');
define ('DEFAULT_THEME', CMSROOT.'.dbschema/.templates.zip');<commit_msg>path fix<commit_after><?php
/**
 * Cetera CMS 3 
 * 
 * Определение констант  
 *
 * @package CeteraCMS
 * @version $Id$
 * @copyright 2000-2010 Cetera labs (http://www.cetera.ru) 
 * @author <NAME> <<EMAIL>> 
 **/

/** Версия */
define('VERSION', '3.59.8-fastsite');

/** Название продукта */
define('APP_NAME', 'Cetera CMS');

/** Cайт производителя */
define('APP_WWW', 'www.cetera.ru');

define('PHP_VER', '7.0.0');
define('MYSQL_VER', '5.0.3');
define('LIBRARY_VERSION_REQ', 11);

define("DISTRIB_HOST", 'https://cms.cetera.ru/');
define("DISTRIB_INFO", DISTRIB_HOST.'info.json'); 
define("PLUGINS_INFO", DISTRIB_HOST.'plugins/plugins.php'); 
define("THEMES_INFO",  DISTRIB_HOST.'themes/themes.php'); 
define("PING_URL",     DISTRIB_HOST.'net/ping.php'); 
define("DISTRIB_FILE", 'cms.zip'); 
define("LIBRARY_FILE", 'library.zip'); 

define("TRANSLATIONS", 'lang'); 

define("UPGRADE_FILE",   'upgrade.zip');
define("UPGRADE_SCRIPT", 'upgrade.php');
define("INSTALL_SCRIPT", 'install.php');

if (isset($_SERVER['HTTP_USER_AGENT'])) {
	$agt = strtolower($_SERVER['HTTP_USER_AGENT']);
	define('IS_IE', strpos($agt, 'msie') !== false && !(strpos($agt, 'opera') !== false));
}

// ----------- файлы и каталоги -----------------

/** Каталог установки CMS */
if (!defined('CMS_DIR')) {
    define('CMS_DIR', 'cms' );
}
	
/** Абсолютный путь DOCUMENT ROOT */
if (!defined('DOCROOT')) {
	$dr = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/'.CMS_DIR.'/', 1 )).'/';
	define('DOCROOT', $dr );
}
define('WWWROOT', DOCROOT );

define('LIBRARY_PATH', 'library');

if (file_exists(__DIR__.'/../../../vendor/cetera-labs/cetera-cms')) {
	define('COMPOSER_INSTALL', true);
	define('VENDOR_PATH', __DIR__.'/../../../vendor');
    define('CMSROOT', __DIR__.'/../../../vendor/cetera-labs/cetera-cms/cms/' );
}
else {
	define('COMPOSER_INSTALL', false);
	define('VENDOR_PATH', DOCROOT.'/'.LIBRARY_PATH.'/vendor');
	
	if (file_exists(DOCROOT.LIBRARY_PATH.'/library.php')) {
		include_once(DOCROOT.LIBRARY_PATH.'/library.php');
	} else {
		define('LIBRARY_VERSION', 1);
	}	
    define('CMSROOT', str_replace('include','',__DIR__) );
}

define('PREFS_FILE',       DOCROOT.'.prefs');
define('PREFS_FILE_LOCAL', DOCROOT.'.prefs.local');

define ('DB_SCHEMA', CMSROOT.'.dbschema/core.xml');
define ('DB_DATA', CMSROOT.'.dbschema/core.sql');
define ('DEFAULT_THEME', CMSROOT.'.dbschema/.templates.zip');
{'fraction_non_alphanumeric': 0.24049844236760123, 'fraction_numerical': 0.009968847352024923, 'mean_word_length': 4.873170731707317, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7525012', 'n_tokens_mistral': 1984, 'n_tokens_neox': 1879, 'n_words': 262}