| Line 599... |
Line 599... |
| 599 |
$conf["fileArgu"]=__FILE__;
|
599 |
$conf["fileArgu"]=__FILE__;
|
| 600 |
#$conf["file"],字串,要更新的檔案位置與名稱.
|
600 |
#$conf["file"],字串,要更新的檔案位置與名稱.
|
| 601 |
$conf["file"]="qbpwcf/etc/config.php";
|
601 |
$conf["file"]="qbpwcf/etc/config.php";
|
| 602 |
#可省略參數:
|
602 |
#可省略參數:
|
| 603 |
#$conf["overWriteWith"],字串陣列,要置換成什麼樣的內容,每個元素代表一行內容.
|
603 |
#$conf["overWriteWith"],字串陣列,要置換成什麼樣的內容,每個元素代表一行內容.
|
| 604 |
$conf["overWriteWith"]=array("<?php","\$ip="."\"".$ip."\";","?>");
|
604 |
$conf["overWriteWith"]=array("<?php","\$myIp="."\"".$ip."\";","?>");
|
| 605 |
#$conf["replaceWith"],字串陣列,要將什麼內容置換成什麼內容.
|
605 |
#$conf["replaceWith"],字串陣列,要將什麼內容置換成什麼內容.
|
| 606 |
#conf["replaceWith"]=array(array("ori content","new content"),array("ori content","new content"),...);
|
606 |
#conf["replaceWith"]=array(array("ori content","new content"),array("ori content","new content"),...);
|
| 607 |
#$conf["addToTailWhenNoMatch"],字串,預設為"false"不做事;若為"true",則代表若使用 "replaceWith" 參數但沒有符合條件的內容出現,則新增到檔案的尾端.
|
607 |
#$conf["addToTailWhenNoMatch"],字串,預設為"false"不做事;若為"true",則代表若使用 "replaceWith" 參數但沒有符合條件的內容出現,則新增到檔案的尾端.
|
| 608 |
#$conf["addToTailWhenNoMatch"]="false";
|
608 |
#$conf["addToTailWhenNoMatch"]="false";
|
| 609 |
#$conf["addToTailBeforeThat"],字串,當 "replaceWith" 參數有使用,且 "addToTailWhenNoMatch" 為 "true" 時,若有使用該參數,則會從尾端尋找符合條件的行內容,然後將 沒有符合 "replaceWith" 條件的內容新增在此之前.
|
609 |
#$conf["addToTailBeforeThat"],字串,當 "replaceWith" 參數有使用,且 "addToTailWhenNoMatch" 為 "true" 時,若有使用該參數,則會從尾端尋找符合條件的行內容,然後將 沒有符合 "replaceWith" 條件的內容新增在此之前.
|