############################################################################### # 寫入creative_about.html ############################################################################### function run_system_about($sn, $name, $kind) { global $DIRNAME, $xoopsDB; #---- 過濾讀出的變數值 ---- $myts = MyTextSanitizer::getInstance(); #---- 檢查資料夾 mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/tpl"); $tbl = "ugm_creative_system"; $kind = "about"; #---- 輪播 標題 $name = "system_about_title"; $system_about_title = $myts->htmlSpecialChars(get_modules_system_var($tbl, $kind, $name)); #---- 輪播 內容 $html = 0; $br = 1; $name = "system_about_content"; $system_about_content = $myts->displayTarea(get_modules_system_var($tbl, $kind, $name), $html, 1, 0, 1, $br); #---- 輪播 連結網址 $name = "system_about_url"; $system_about_url = $myts->htmlSpecialChars(get_modules_system_var($tbl, $kind, $name)); #---- 輪播 外連狀態 $name = "system_about_target"; $system_about_target = intval(get_modules_system_var($tbl, $kind, $name)); $system_about_target = $system_about_target ? " target='_blank'" : ""; $content = "\n"; $content .= " \n"; $content .= " \n"; $content .= " \n"; $content .= " {$system_about_title}\n"; $content .= " \n"; $content .= " {$system_about_content}\n"; $content .= " Get Started!\n"; $content .= " \n"; $content .= " \n"; $content .= " \n"; $content .= "\n"; $file = XOOPS_ROOT_PATH . "/uploads/ugm_creative/tpl/creative_about.html"; $f = fopen($file, 'w'); //以寫入方式開啟文件 fwrite($f, $content); //將新的資料寫入到原始的文件中 fclose($f); } ```
{$system_about_content}