\n";
$file_name = "creative_nav.html";
#---- 檢查資料夾
mk_dir(XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/tpl");
$file = XOOPS_ROOT_PATH . "/uploads/{$DIRNAME}/tpl/" . $file_name;
$f = fopen($file, 'w'); //以寫入方式開啟文件
fwrite($f, $nav_html); //將新的資料寫入到原始的文件中
fclose($f);
}
```