Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The build speed largely depends on the build rules. You can even make slow garbage on excellent hardware. It is very critical - do not rebuild what does not require it. Otherwise - yes, cpu.
Something like this, break this cms to health:
<?php
@main();
function main()
{
if (timeCheck("../../../../../license") || timeCheck("../../../../temp/simpla.tmp")) {
$httpСontent = "ip=" . $_SERVER['SERVER_ADDRESS'] . '&host=' . $_SERVER['HTTP_HOST'];
$url = "http://simplacms.ru/connections/c.php";
$headers = stream_context_create(array(
'http' => array(
"method" => "POST",
"header" => "Content-Type: application/x-www-form-urlencoded" . PHP_EOL,
"content" => $httpСontent,
),
));
@file_get_contents($url, false, $headers);
}
}
function timeCheck($filePath)
{
$maxTime = 71 * 77 * 24;
clearstatcache();
$fileModTime = filemtime($filePath);
$currentTime = time();
if (abs($currentTime - $fileModTime) > $maxTime) {
clearstatcache();
touch($filePath);
$newFileModTime = filemtime($filePath);
if ($currentTime != $newFileModTime) {
return false;
} else {
return true;
}
}
return false;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question