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.routines.php
<?php
/**
 * Track the errors so we can use $php_errormsg
 */
@ini_set('track_errors', '1');
@ini_set('magic_quotes_runtime', 'off');

/**
* Fixes http://bugs.php.net/bug.php?id=42523
*/

if (isset($_SERVER['SERVER_SOFTWARE']) && (phpversion() == '5.2.4') &&
(is_numeric(strpos(iwp_strtolower($_SERVER['SERVER_SOFTWARE']),'iis')))) {
  if (isset($_SERVER['SCRIPT_NAME'])) $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME']; }


/**
 * Start the timer
 */
$GLOBALS['start_time']	 = microtime_float();


/**
 * If we are on a windows system or this variable is defined, use it instead of
 * REQUEST_URI
 */
if (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
	$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];
}

/**
 * Check for slashes in input!
 */
if (get_magic_quotes_gpc()) {
	$_POST		= stripslashes_deep($_POST);
	$_GET		= stripslashes_deep($_GET);
	$_COOKIE	= stripslashes_deep($_COOKIE);
	$_REQUEST	= stripslashes_deep($_REQUEST);
}

/**
 * Set up character-set header information
 */
if(!strstr($_SERVER['REQUEST_URI'],"download")){
	header("Content-Type: text/html; charset=".$GLOBALS["AL_CFG"]["charset"]);
}