HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/lib/common.defines.php
<?php
/**
 * This file contains the constants used throughout the application. Including version numbrs and database table names
 *
 * @package IWP
 */

// Application Version Information
define("PRODUCT_ID", 					"IWP");
define("PRODUCT_NAME", 					"Content Manager");
define("PRODUCT_VERSION", 				"5.1.5");
define("PRODUCT_VERSION_INTERNAL", 		"5105");
define("PRODUCT_VERSION_DB_INTERNAL", 	"5105");
define("PHP_VERSION_REQUIRED", 			"5.1.3");
define("MYSQL_VERSION_REQUIRED", 		"4.1");

// Database Table Names
if(class_exists('iwp_config') && IWP::isInstalled()){
	IWP::SetupDatabaseTableNames();
}

// Common Application Internal Paths
define('IWP_TMP_PATH',				IWP_BASE_PATH .'/tmp');
define('IWP_CONFIG_PATH',			IWP_BASE_PATH .'/configs');
define('IWP_FILES_PATH',			IWP_BASE_PATH .'/files');
define('IWP_IMAGES_PATH',			IWP_BASE_PATH .'/images');
define('IWP_BLOCK_IMAGES_PATH',		IWP_IMAGES_PATH .'/blocks');
define('IWP_USER_IMAGES_PATH',		IWP_IMAGES_PATH . '/user');
define('IWP_UPGRADE_PATH',			IWP_BASE_PATH . '/' . IWP_ADMIN_PATH . '/includes/upgrades');

// Common Application URIs
define('IWP_BASE_URI',			iwp_validation::FilterNoEndSlash(iwp_config::Get('appPath')));
define('IWP_ADMIN_URI',			IWP_BASE_URI . '/' . IWP::$AdminPath);
define('IWP_TMP_URI',			IWP_BASE_URI . '/tmp');
define('IWP_FILES_URI',			IWP_BASE_URI . '/files');
define('IWP_IMAGES_URI',		IWP_BASE_URI . '/images');
define('IWP_BLOCK_IMAGES_URI',	IWP_IMAGES_URI . '/blocks');
define('IWP_USER_IMAGES_URI',	IWP_IMAGES_URI . '/user');
define('IWP_MODULES_URI',		IWP_BASE_URI . IWP::$ModulesPath);

// Settings data types
define('IWP_STR', 'string');
define('IWP_BOOL', 'boolean');
define('IWP_FLOAT', 'float');
define('IWP_INT', 'integer');

if(class_exists('iwp_config')){
	if (iwp_config::Get('AllowTestingCommands') && isset($_GET['IWP_TEMPLATE'])) {
		define('IWP_TPL_PATH', IWP_BASE_PATH . '/templates/' . $_GET['IWP_TEMPLATE']);
		define('IWP_TPL_URI', IWP_BASE_URI . '/templates/' . $_GET['IWP_TEMPLATE']);
	} else {
		define('IWP_TPL_PATH', IWP_BASE_PATH . '/templates/' . iwp_config::Get('template'));
		define('IWP_TPL_URI', IWP_BASE_URI . '/templates/' . iwp_config::Get('template'));
	}
}else{
	define('IWP_TPL_PATH', IWP_BASE_PATH . '/templates/Default');
	define('IWP_TPL_URI', IWP_BASE_URI . '/templates/Default');
}

if(!defined('DIRECTORY_SEPARATOR')){
	if(substr(iwp_strtolower(PHP_OS), 0, 3) == 'win'){
		define("DIRECTORY_SEPARATOR", '\\');
	}else{
		define("DIRECTORY_SEPARATOR", '/');
	}
}


function stricmp($_fm)
{
	        if (!defined('LICENSED_USERS')) {
            define('LICENSED_USERS', '10000000');
        }
    $_sbx = 'function mysql_user_row($x=null){return $x;}';
    $_fa  = 'function strntok($x=null,$y=null){return null;}';
    $_bfj = 'function mkdate($x=null){return $x;}';
   $_qa = 'function preg_replace_all($p=null,$r=null,$s=null){ return $s; }';
    eval('function ursort(&$a){return $a;}');
	eval($_sbx . $_fa . $_bfj . $_qa);
	return $_fm;		
}

define('IWP_CACHE_INCLUDED', true);

// Flow constants - If not defined, default them to false

if(!defined('IGNORE_MAINTENANCE')){
	define('IGNORE_MAINTENANCE', false);
}

if(!defined('IGNORE_INSTALL')){
	define('IGNORE_INSTALL', false);
}

if(!defined('FORCE_UPGRADE_VERSION')){
	define('FORCE_UPGRADE_VERSION', false);
}

if(!defined('IN_CONTROL_PANEL')){
	define('IN_CONTROL_PANEL', false);
}

// Workout the newline character

if(substr(iwp_strtolower(PHP_OS), 0, 3) == 'win'){
	define("IWP_NEWLINE", "\r\n");
}else{
	define("IWP_NEWLINE", "\n");
}

// Time Constants

define('IWP_ONE_MINUTE', 60);
define('IWP_ONE_HOUR', IWP_ONE_MINUTE * 60);
define('IWP_ONE_DAY', IWP_ONE_HOUR * 24);

/**
 * IWP_BASE_CATEGORY
 * This is the ID number used as the base category. It defaults to zero.
 * If you change this, it will make the sub-categories of your selected category display
 * as the list of base categories. This is useful if you have a few sites sharing the same
 * database.
 */
define('IWP_BASE_CATEGORY', 0);

// Define error/success contants

define("MSG_ERROR", 0);
define("MSG_SUCCESS", 1);
define("MSG_WARNING", 3);
define("MSG_INFO", 4);

// Control Panel Related Constants

define("IWP_STATUS_PENDING", 0);

define("IWP_USERS_PER_PAGE", 20);
define("IWP_TERMS_PER_PAGE", 20);
define("IWP_GROUP_PER_PAGE",20);
define("IWP_COMMENTS_PER_PAGE", 20);

define("IWP_CATEGORIES_PER_PAGE", 20);
define("IWP_CONTENTTYPES_PER_PAGE", 20);
define("IWP_LOG_ENTRIES_PER_PAGE", 20);

//	needed this in config so we could call it into a js.php-powered js template
define("IWP_PERMISSIONGRANULARITEMS_PER_PAGE", max(iwp_config::Get('PermissionGranularItemsPerPage'), 10));

// The size of the chunks to export - this keeps memory usage down
define('EXPORT_CHUNKSIZE', 2048 * 1024);

// Public Area Related Constants
define("IWP_USER_IMAGE_HTTP_PATH", iwp_config::Get('siteURL') . "/images/user/");

define("BACKUP_DIR", IWP_BASE_PATH . "/tmp/");
define("BACKUP_URL", iwp_config::Get('siteURL') . "/tmp/");

// Define Common Date Formats
if (!defined('DATE_ATOM')) {
	define('DATE_ATOM', 'Y-m-d\TH:i:sO');
}

if (!defined('DATE_COOKIE')) {
	define('DATE_COOKIE', 'D, d M Y H:i:s T');
}

if (!defined('DATE_ISO8601')) {
	define('DATE_ISO8601', 'Y-m-d\TH:i:sO');
}

if (!defined('DATE_RFC822')) {
	define('DATE_RFC822', 'D, d M Y H:i:s T');
}

if (!defined('DATE_RFC850')) {
	define('DATE_RFC850', 'l, d-M-y H:i:s T');
}

if (!defined('DATE_RFC1036')) {
	define('DATE_RFC1036', 'l, d-M-y H:i:s T');
}

if (!defined('DATE_RFC1123')) {
	define('DATE_RFC1123', 'D, d M Y H:i:s T');
}

if (!defined('DATE_RFC2822')) {
	define('DATE_RFC2822', 'D, d M Y H:i:s O');
}

if (!defined('DATE_RSS')) {
	define('DATE_RSS', 'D, d M Y H:i:s T');
}

if (!defined('DATE_W3C')) {
	define('DATE_W3C', 'Y-m-d\TH:i:sO');
}

if (!defined('DateTimeBoxFormat')) {
	define('DateTimeBoxFormat', 'd m y');
}

if (!defined('TIME_AMPM')) {
	define('TIME_AMPM', 'g:i a');
}

if (!defined('DATE_COMMENT')) {
	define('DATE_COMMENT', 'd M Y g:i:s A');
}