[問題]無法輸出風格

phpBB 2 Style Support
討論的範圍包含版面排列、樣式、配置;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

[問題]無法輸出風格

文章 天霜 »

當我按下風格管理中的輸出後
出現\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))
admin_styles.php on line 777 (棕色)~ 778(紅色)

代碼: 選擇全部

			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")
			);
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題

這世界還有拼命守護的價值嗎...
主題已鎖定

回到「風格問題討論」