-
/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 : 597 — Phpcmf\View->display ()
590 'related' => $related, 591 'urlrule' => \Phpcmf\Service::L('Router')->show_url($this->module, $data, '[page]'), 592 'fix_html_now_url' => defined('SC_HTML_FILE') ? dr_url_prefix(\Phpcmf\Service::L('Router')->show_url($this->module, $data, $page), $this->module['dirname'], SITE_ID, \Phpcmf\Service::IS_MOBILE_TPL()) : '', // 修复静态下的当前url变量 593 ]); 594 \Phpcmf\Service::V()->module($this->module['dirname']); 595 596 $data['phpcmf_tpl'] = isset($data['template']) && strpos($data['template'], '.html') !== FALSE && is_file(\Phpcmf\Service::V()->get_dir().$data['template']) ? $data['template'] : ($cat['setting']['template']['show'] ? $cat['setting']['template']['show'] : 'show.html'); 597 !$rt && \Phpcmf\Service::V()->display($data['phpcmf_tpl']); 598 599 return $data; 600 } 601 602 // 模块草稿、审核、定时、内容页 603 protected function _MyShow($type, $id = 0, $page = 1) { 604 -
/www/wwwroot/risinglcd/dayrui/Fcms/Control/Show.php : 37 — Phpcmf\Home\Module->_Show ()
30 $this->goto_404_page(dr_lang('无法通过id找到共享模块的模块目录')); 31 } 32 33 // 初始化模块 34 $this->_module_init($mid); 35 36 // 调用内容方法 37 $this->_Show($id, null, max(1, (int)\Phpcmf\Service::L('input')->get('page'))); 38 } 39 40 } 41 -
/www/wwwroot/risinglcd/dayrui/System/Extend/Run.php : 149 — Phpcmf\Control\Show->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()