1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
Oinktube/view/theme.css.php
2021-03-10 13:47:44 -03:00

18 lines
No EOL
487 B
PHP

<?php
if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php';
}
header("Content-type: text/css; charset: UTF-8");
$theme = getCurrentTheme();
_mysql_close();
session_write_close();
echo "/* theme = {$theme} */".PHP_EOL;
echo file_get_contents("{$global['systemRootPath']}view/css/custom/{$theme}.css");
exit;
/*
$filename = "{$global['systemRootPath']}videos/cache/custom.css";
if(file_exists($filename)){
echo file_get_contents($filename);
}
*
*/