✏️ 正在编辑: doofinder-ajax.php
路径:
/home/bpioifn/www/pigmentse/modules/doofinder/doofinder-ajax.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * NOTICE OF LICENSE * * This file is licenced under the Software License Agreement. * With the purchase or the installation of the software in your application * you accept the licence agreement. * * You must not modify, adapt or create derivative works of this source code * * @author Doofinder * @copyright Doofinder * @license GPLv3 */ require_once(dirname(__FILE__) . '/../../config/config.inc.php'); require_once(dirname(__FILE__) . '/../../init.php'); Context::getContext()->controller->php_self = 'search'; $doofinder = Module::getInstanceByName('doofinder'); $check_api_key = Tools::getValue('check_api_key'); if ($check_api_key) { die($doofinder->checkApiKey(true)); } $autoinstaller = Tools::getValue('autoinstaller'); $shop_id = Tools::getValue('shop_id', NULL); if ($autoinstaller) { if (Tools::getValue('token') == Tools::encrypt('doofinder-ajax')) { $doofinder->autoinstaller($shop_id ); die('OK'); } else { $msgError = 'Forbidden access.' . ' Token for autoinstaller invalid.'; die($msgError); } } if ($doofinder->canAjax()) { echo $doofinder->ajaxCall(); }
💾 保存文件
← 返回文件管理器