Subversion Repositories php-qbpwcf

Rev

Rev 30 | Rev 53 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30 Rev 47
Line 172... Line 172...
172
define("systemMailAcct",$systemMailAcct);
172
define("systemMailAcct",$systemMailAcct);
173
 
173
 
174
#定義供系統寄送信件的email密碼
174
#定義供系統寄送信件的email密碼
175
define("systemMailPass",$systemMailPass);
175
define("systemMailPass",$systemMailPass);
176
 
176
 
-
 
177
#定義環境模式
-
 
178
define("mode",$mode);
-
 
179
 
-
 
180
#函式說明:
-
 
181
#將php設定檔常用的設定進行調整使之變成適用於開發模式、釋出模式、或自訂要調整哪些設定值
-
 
182
#回傳結果:
-
 
183
#$result["status"],執行是否正常,"true"為正常,"false"為不正常.
-
 
184
#$result["error"],錯誤訊息陣列.
-
 
185
#$result["function"],當前執行的函數名稱.
-
 
186
#必填參數:
-
 
187
#$conf["mode"],參數設定的模式,"release"代表是指共一般使用所需;"develop"代表是在開發狀態下所需;"custom"代表自訂參數設定內容
-
 
188
$conf["mode"]="release";
-
 
189
#可省略參數:
-
 
190
#$conf["customSettings"],要自訂的參數與其數值,例如array("display_errors=On").
-
 
191
$conf["customSettings"]=array();
-
 
192
#參考資料:
-
 
193
#ini_set=>http://www.php.net/manual/en/function.ini-set.php
-
 
194
#各個參數適用的修改方式=>http://www.php.net/manual/en/ini.list.php
-
 
195
#各個參數適用的修改方式的解說=>http://hi.baidu.com/richardali/item/d28104083c70c638a2332a60
-
 
196
#備註:
-
 
197
#使用該函式後,網頁會無法顯示。
-
 
198
$changeSettings=config::changeSettings($conf);
-
 
199
unset($conf);
-
 
200
 
-
 
201
#如果變更設定失敗
-
 
202
if($changeSettings["status"]==="false"){
-
 
203
 
-
 
204
	#debug
-
 
205
	var_dump($changeSettings);exit(1);
-
 
206
 
-
 
207
	}#if end
-
 
208
 
177
?>
209
?>
178
210