-
/www/wwwroot/risinglcd/dayrui/App/Synlang/Models/SaveDbAndCache.php : 90 — Phpcmf\Model\Synlang\Cache->writeLangFile ()
83 } 84 } 85 } 86 87 if (!$cacheExists) { 88 // 缓存不存在,从数据库获取所有翻译并创建缓存 89 $allTranslations = $this->getTranslationFromDatabase(null, $to); 90 \Phpcmf\Service::M('Cache', 'synlang')->writeLangFile($allTranslations, $this->filePath); 91 } 92 93 94 //$texts = array_map([$this, 'normalizeText'], (array)$texts); 95 $encodedTexts = array_map([$this, 'encodeText'], $texts); 96 $originalTexts = array_combine($encodedTexts, $texts); 97 -
/www/wwwroot/risinglcd/dayrui/App/Synlang/Models/HtmlTranslator.php : 111 — Phpcmf\Model\Synlang\SaveDbAndCache->batchString ()
104 if (!$this->isProtectedText($content['content'])) { 105 $textsToTranslate[] = trim($content['content']); 106 } 107 } 108 } 109 110 // $resTrans 返回 [['md5' => xxx, 'text' => xxx, 'trans' => xxx], ...] 111 $resTrans = \Phpcmf\Service::M('SaveDbAndCache', 'synlang')->batchString($textsToTranslate, $from, $to); 112 113 // $translatedTexts 数组主键 = md5(原文) 114 $translatedTexts = []; 115 foreach ($resTrans as $key => $value) { 116 if (!empty($value['trans'])) { 117 $translatedTexts[$value['md5']] = $value['trans']; 118 $translationResults['translated'][] = [ -
/www/wwwroot/risinglcd/dayrui/App/Synlang/Models/HtmlTranslator.php : 65 — Phpcmf\Model\Synlang\HtmlTranslator->translateContent ()
58 //根据提取规则从 HTML 中提取自定义节点并用占位符替换。 59 $this->extractCustomNodesWithPlaceholders(); 60 61 // 在翻译前保存原始内容 62 $this->saveOriginalContents(); 63 64 // 翻译内容并获取翻译结果 65 $translationResults = $this->translateContent($from, $to); 66 67 $this->fillPlaceholders(); 68 $getHtml = $this->getHtml(); 69 $UrlCache = is_file(APPSPATH.'Synlang/Models/UrlCache.php'); 70 if($UrlCache){ 71 // 检查翻译结果检查 72 $result = $this->checkTranslationComplete(); -
/www/wwwroot/risinglcd/dayrui/App/Synlang/Config/Hooks.php : 214 — Phpcmf\Model\Synlang\HtmlTranslator->Htmlextract ()
207 //header('Content-Type: text/html; charset=utf-8'); 208 $client_file = WRITEPATH.'config/app_client_seo.php'; 209 $client_data = \Phpcmf\Service::R($client_file); 210 211 212 if($client_data[IS_CLIENT]['SITE_LANG'] && $client_data[IS_CLIENT]['SITE_LANG'] != $config['sitelang']){ 213 214 $html = \Phpcmf\Service::M('HtmlTranslator', 'synlang')->Htmlextract( 215 $html, 216 'auto', 217 $client_data[IS_CLIENT]['SITE_LANG'] 218 ); 219 220 } 221 -
{PHP internal code} — Phpcmf\Service::{closure} ()
-
/www/wwwroot/risinglcd/dayrui/Fcms/Core/Hooks.php : 337 — call_user_func()
-
/www/wwwroot/risinglcd/dayrui/Fcms/Core/View.php : 298 — Phpcmf\Hooks::trigger ()
291 292 // 挂钩点 模板加载之后 293 \Phpcmf\Hooks::trigger('cms_view', $this->_options, $_temp_file); 294 295 include $_temp_file; 296 297 // 挂钩点 模板结束之后 298 \Phpcmf\Hooks::trigger('cms_view_end'); 299 300 $this->_view_time = round(microtime(true) - $phpcmf_start, 2); 301 302 // 消毁变量 303 if ($is_destruction) { 304 unset($this->loadjs); 305 unset($this->_include_file); -
/www/wwwroot/risinglcd/dayrui/App/Cms/Extends/Home/Module.php : 453 — Phpcmf\View->display ()
446 } else { 447 $tpl = $category['setting']['template']['list'] ? $category['setting']['template']['list'] : 'list.html'; 448 } 449 } 450 451 // 输出方式 452 if (!$rt) { 453 \Phpcmf\Service::V()->display($tpl); 454 } else { 455 $category['phpcmf_tpl'] = $category['tpl'] = $tpl; 456 return $category; 457 } 458 } 459 460 // 模块内容页 -
/www/wwwroot/risinglcd/dayrui/Fcms/Control/Category.php : 86 — Phpcmf\Home\Module->_Category ()
79 $this->goto_404_page(dr_lang('栏目所属模块不存在')); 80 } 81 } else { 82 $this->_module_init('share'); 83 } 84 85 // 调用栏目方法 86 $this->_Category($id, $dir, $page); 87 } 88 89 } 90 -
/www/wwwroot/risinglcd/dayrui/System/Extend/Run.php : 149 — Phpcmf\Control\Category->index ()
142 'value' => $value 143 ]); 144 145 } 146 } 147 } 148 149 $app->$method(); 150 151 if (CI_DEBUG) { 152 $tool = new \CodeIgniter\Debug\Toolbar(config(\Config\Toolbar::class)); 153 $tool->prepare($this); 154 } 155 156 -
/www/wwwroot/risinglcd/dayrui/System/Init.php : 408 — Frame\Run->bootWeb ()
401 $tool->respond(); 402 }); 403 } 404 405 406 // 启动框架 407 $run = new \Frame\Run(); 408 $run->bootWeb(); 409 410 -
require /www/wwwroot/risinglcd/dayrui/Fcms/Init.php — require()
-
require /www/wwwroot/risinglcd/index.php — require()