? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html_bk/test3/plugins/system/CssJsCompress/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/test3/plugins/system/CssJsCompress/css.php

<?php
header('Content-type: text/css; charset=UTF-8');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 1728000) . ' GMT');
$cssFileName=$_REQUEST["css"];

if(!preg_match("/^[a-z0-9]+\.css(?:\.gz)?$/", $cssFileName)){
  exit("Access denied.");
}

if(strpos($cssFileName,"css.gz")){
   header("Content-Encoding: gzip");
}
define('DS', DIRECTORY_SEPARATOR);
define('PATH_ROOT', dirname(__FILE__) . DS);
$file=PATH_ROOT.'..'.DS.'..'.DS.'..'.DS.'cache'.DS.'css'.DS.$cssFileName;
if(file_exists($file)){   
   header('Last-Modified: '.gmdate('D, d M Y H:i:s',filemtime($file)).' GMT');
   $content=file_get_contents($file);
   echo($content);

}
?>

T1KUS90T
  root-grov@210.1.60.28:~$