[問題]無法輸出風格
發表於 : 2003-07-29 22:29
當我按下風格管理中的輸出後
出現\r
系統無法寫入佈景主題的設定檔案. 請按下按鈕由您的瀏覽器中下載這個檔案. 當您下載完這個檔案以後, 您即可將檔案移到包含此範本的目錄之下. 您可以重新包裝這個檔案用以分配或是其它您想要的處理方式
之後我按下載後出現\r
Notice: Undefined index: export_template in C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php on line 702
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php:702) in C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php on line 777
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php:702) in C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php on line 778
admin_styles.php on line 702(紅色)
admin_styles.php on line 777 (棕色)~ 778(紅色)
出現\r
系統無法寫入佈景主題的設定檔案. 請按下按鈕由您的瀏覽器中下載這個檔案. 當您下載完這個檔案以後, 您即可將檔案移到包含此範本的目錄之下. 您可以重新包裝這個檔案用以分配或是其它您想要的處理方式
之後我按下載後出現\r
Notice: Undefined index: export_template in C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php on line 702
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php:702) in C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php on line 777
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php:702) in C:\Inetpub\wwwroot\phpthb\admin\admin_styles.php on line 778
admin_styles.php on line 702(紅色)
代碼: 選擇全部
);
$template->pparse("body");
}
break;
case "export";
[color=red]if($HTTP_POST_VARS['export_template'])[/color]
{
$template_name = $HTTP_POST_VARS['export_template'];
$sql = "SELECT *
FROM " . THEMES_TABLE . "
WHERE template_name = '$template_name'";
if(!$result = $db->sql_query($sql))代碼: 選擇全部
message_die(GENERAL_MESSAGE, $message);
}
else if($HTTP_POST_VARS['send_file'])
{
[color=brown]header("Content-Type: text/x-delimtext; name=\"theme_info.cfg\"");[/color]
[color=red]header("Content-disposition: attachment; filename=theme_info.cfg");[/color]
echo stripslashes($HTTP_POST_VARS['theme_info']);
}
else
{
$template->set_filenames(array(
"body" => "admin/styles_exporter.tpl")
);