Files
2025-06-24 14:14:35 +02:00

59 lines
1.6 KiB
PHP

<?php
if (!defined('_PS_VERSION_')) {exit;}
class FrontController extends FrontControllerCore
{
/*
* module: pagecache
* date: 2024-03-10 16:57:05
* version: 8.8.59
*/
protected function displayAjax()
{
if (!Tools::getIsset('page_cache_dynamics_mods')) {
if (is_callable('parent::displayAjax')) {
return parent::displayAjax();
}
else {
return;
}
}
$this->initHeader();
$this->assignGeneralPurposeVariables();
require_once _PS_MODULE_DIR_ . 'pagecache/pagecache.php';
$result = PageCache::execDynamicHooks($this);
if (Tools::version_compare(_PS_VERSION_,'1.6','>')) {
$this->context->smarty->assign(array(
'js_def' => PageCache::getJsDef($this),
));
$result['js'] = $this->context->smarty->fetch(_PS_ALL_THEMES_DIR_.'javascript.tpl');
}
$this->context->cookie->write();
header('Content-Type: text/html');
header('Cache-Control: no-cache');
header('X-Robots-Tag: noindex');
die(json_encode($result));
}
/*
* module: pagecache
* date: 2024-03-10 16:57:05
* version: 8.8.59
*/
public function isRestrictedCountry()
{
return $this->restrictedCountry;
}
/*
* module: pagecache
* date: 2024-03-10 16:57:05
* version: 8.8.59
*/
public function geolocationManagementPublic($default_country)
{
$ret = $this->geolocationManagement($default_country);
if (!$ret) {
return $default_country;
}
return $ret;
}
}