Your IP : 172.70.127.67


Current Path : /var/www/element/data/element_backup.2025.12.07/vsl-gates.ru/assets/js/
Upload File :
Current File : /var/www/element/data/element_backup.2025.12.07/vsl-gates.ru/assets/js/htcmime.php

<?php 
// Credit: http://www.hoeben.net/node/83
//
// Usage >> instead of the following in your stylesheet: 
// body { behavior: url(assets/js/csshover.htc) } 
//
// Use the following in the head of your document (shown in
// an IE Conditional Comment...adjust paths as needed):
//
// <!--[if lt IE 7]>
//   body { behavior: url(assets/js/htcmime.php?file=csshover.htc) }
//   img { behavior: url(assets/js/htcmime.php?file=pngbehavior.htc); }
// <![endif]-->
//
// NOTE: the img behavior is an alternate to using sleight.js

// Get component file name 
$fname = (array_key_exists("file", $_GET)) ? $_GET["file"] : ""; 

// basename() also strips \x00, we don't need to worry about ? and # in path:
// Must be real files anyway, fopen() does not support wildcards
$ext = array_pop(explode('.', basename($fname)));
if (strcasecmp($ext, "htc") != 0 || !file_exists($fname))
  exit ("No file specified, file not found or illegal file.");

$flen = filesize($fname);

header("Content-type: text/x-component");
header("Content-Length: ".$flen);
header("Content-Disposition: inline; filename=$fname");

$fp = fopen($fname, "r");

echo fread($fp, $flen);

fclose($fp);
?>