HEX
Server: Apache
System: Linux darrell.nocdirect.com 4.18.0-513.18.2.el8_9.x86_64 #1 SMP Sat Mar 30 06:10:41 EDT 2024 x86_64
User: joderbya (1358)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/joderbya/wlsa.quick-step-ei.com2/ie8css.php
<?php
require_once("include/phpfunctions.php");
header("Content-Type: text/css");

$file = getQueryString();
$ext = substr($file, strrpos($file, '.') + 1);
if( $ext != "css" || strpos($file,'..') !== false )
	exit();
$css = myfile_get_contents(getabspath($file), "r");
$css = preg_replace(array(
		"/ :not\(.*?\)/",
		"/ :first-child/",
		"/ :last-child/",
		"/ :nth-last-child\(.*?\)/"),
	" *",$css);
	
$css = preg_replace(array(
		"/:not\(.*?\)/",
		"/:first-child/",
		"/:last-child/",
		"/:nth-last-child\(.*?\)/"),
	"",$css);
echo $css;
?>