wd_submit 前臺內容文章_config can't write able
- rickyaung
-
Topic Author
- 訪客
-
2009-05-04 16:58 #13613
來自 rickyaung
rickyaung created the topic: wd_submit 前臺內容文章_config can't write able
[attachment=0:va7l8fe6]<!-- ia0 -->submit.png<!-- ia0 -->[/attachment:va7l8fe6]
請問我要改那個資料夾的權限才可以寫入呢?
config 是指那一個呢?它的位置是在那呢。
我之前有請網管修改這幾個資料: ../admiminstraotr/components/ (為777) 還是說無法寫入耶?
../components/
../cache/
../tmp/
我是在[url=joomlachina]http://www.joomlachina.cn/index.php?option=com_content&view=article&id=586:wdsubmit-utf-8-&catid=63:2008-06-14-08-00-21&Itemid=272[/url] 下載的wd_submit
請問我要改那個資料夾的權限才可以寫入呢?
config 是指那一個呢?它的位置是在那呢。
我之前有請網管修改這幾個資料: ../admiminstraotr/components/ (為777) 還是說無法寫入耶?
../components/
../cache/
../tmp/
我是在[url=joomlachina]http://www.joomlachina.cn/index.php?option=com_content&view=article&id=586:wdsubmit-utf-8-&catid=63:2008-06-14-08-00-21&Itemid=272[/url] 下載的wd_submit
Please 登入 to join the conversation.
- fashion_jack
-
- 訪客
-
- rickyaung
-
Topic Author
- 訪客
-
- rickyaung
-
Topic Author
- 訪客
-
2009-05-11 16:01 #13718
來自 rickyaung
rickyaung replied the topic: wd_submit 前臺內容文章_config can't write able
我請網管幫忙改configuration 為777,再去執行,還是不行耶。
我找了它的程式碼,可是我不知要把那一個資料權限改成666以上嗎?看下面所寫的
我找了它的程式碼,可是我不知要把那一個資料權限改成666以上嗎?看下面所寫的
function saveConfig($option){
global $mainframe,$option;
$configfile = JPATH_COMPONENT.DS.'settings.php';
@chmod($configfile,0666);
if( !is_writable($configfile) ){
$msg = "Config file not writeable";
$mainframe->redirect('index.php?option='.$option,$msg);
break;
}
$config = "<?php\n";
$config .= '$H_enabled = ' . JRequest::getVar('enable','POST','') . ";\n";
$config .= '$H_enable_resize = ' . JRequest::getVar('enableResize','POST','') . ";\n";
$config .= '$H_rules = ' . JRequest::getVar('rules','POST','') . ";\n";
$config .= '$H_allowable_upload_images=' . JRequest::getVar('enableUpload','POST','') . ";\n";
$config .= '$H_allowable_images="'. JRequest::getVar('allowable_images','POST','') .'"'.";\n";
$config .= '$H_notify_email = "' . JRequest::getVar('notify_email','POST','') . "\";\n";
//Fixed save config error with CZwidth & Czheight
$config .= '$H_width = "' . JRequest::getVar('iwidth','POST','') . "\";\n";
$config .= '$H_height = "' . JRequest::getVar('iheight','POST','') . "\";\n";
//Added img maxsize config
$config .= '$H_maxsize = "' . JRequest::getVar('isize','POST','') . "\";\n";
//Added Security Images
$config .= '$H_securityimage = "'. JRequest::getVar('securityimage','POST','') . "\";\n";
//language
$config .= '$H_language ="' . JRequest::getVar('filelanguage','POST','') ."\";\n";
//Added available categories
$config .= '$H_avaiCategories ="' . implode(",",JRequest::getVar('listcatid','POST','') )."\";\n";
if ( in_array( "none",JRequest::getVar('listusertypes','POST','') ) ){
$config .= '$H_auto_approve_groups ="";'."\n";
}else{
$config .= '$H_auto_approve_groups ="' . implode( ",",JRequest::getVar('listusertypes','POST','') )."\";\n";
}
Please 登入 to join the conversation.
- cutes13
-
- 訪客
-
2009-05-11 20:37 #13723
來自 cutes13
cutes13 replied the topic: wd_submit 前臺內容文章_config can't write able
你可以縮小範圍的設定試試,有時權限全開777反而會不行喔。因為有些程式的設計是不可全開的 :redface:
rickyaung 寫了道:: [attachment=0:3mmnj687]<!-- ia0 -->submit.png<!-- ia0 -->[/attachment:3mmnj687]
請問我要改那個資料夾的權限才可以寫入呢?
config 是指那一個呢?它的位置是在那呢。
我之前有請網管修改這幾個資料: ../admiminstraotr/components/ (為777) 還是說無法寫入耶?
../components/
../cache/
../tmp/
我是在[url=joomlachina]http://www.joomlachina.cn/index.php?option=com_content&view=article&id=586:wdsubmit-utf-8-&catid=63:2008-06-14-08-00-21&Itemid=272[/url] 下載的wd_submit
Please 登入 to join the conversation.