Файл: concrete5.7.5.6/concrete/controllers/backend/get_remote_help.php
Строк: 27
<?php
namespace ConcreteControllerBackend;
class GetRemoteHelp extends UserInterface
{
protected function canAccess()
{
return true;
}
public function view()
{
session_write_close();
$r = json_encode(array());
if ($_REQUEST['q']) {
$url = Config::get('concrete.urls.concrete5') . Config::get('concrete.urls.paths.menu_help_service');
$r = Core::make("helper/file")->getContents($url . '?q=' . $_REQUEST['q']);
if (!$r) {
$r = json_encode(array());
}
}
echo $r;
Core::shutdown(array('jobs' => true));
}
}