Subversion Repositories php-qbpwcf

Rev

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

Rev 218 Rev 226
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 
4
 
5
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
5
        QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
    Copyright (C) 2014~2025 Min-Jhin,Chen
6
    Copyright (C) 2014~2025 MIN ZHI, CHEN
7
 
7
 
8
    This file is part of QBPWCF.
8
    This file is part of QBPWCF.
9
 
9
 
10
    QBPWCF is free software: you can redistribute it and/or modify
10
    QBPWCF is free software: you can redistribute it and/or modify
11
    it under the terms of the GNU General Public License as published by
11
    it under the terms of the GNU General Public License as published by
Line 58... Line 58...
58
#如果執行異常
58
#如果執行異常
59
if($cp["status"]==="false"){
59
if($cp["status"]==="false"){
60
 
60
 
61
	#debug
61
	#debug
62
	var_dump($cp);
62
	var_dump($cp);
63
	
63
 
64
	#異常結束回傳1給shell
64
	#異常結束回傳1給shell
65
	exit(1);
65
	exit(1);
66
	
66
 
67
	}#if end
67
	}#if end
68
 
68
 
69
#匯入 $formats
69
#匯入 $formats
70
include($assetsDir."/formats.php");
70
include($assetsDir."/formats.php");
71
 
71
 
Line 111... Line 111...
111
#參數設定 $conf["replaceTo"][$i]=array("varName1"=>$replaceStr1,"varName2"=>$replaceStr2); 代表符合格式的連續字串中的 $i+1 行內容中的變數 varName1 要置換成 $replaceStr1;變數 varName2 要置換成 $replaceStr2.
111
#參數設定 $conf["replaceTo"][$i]=array("varName1"=>$replaceStr1,"varName2"=>$replaceStr2); 代表符合格式的連續字串中的 $i+1 行內容中的變數 varName1 要置換成 $replaceStr1;變數 varName2 要置換成 $replaceStr2.
112
$replaceMatchContent=phpLib::replaceMatchContent($conf);
112
$replaceMatchContent=phpLib::replaceMatchContent($conf);
113
unset($conf);
113
unset($conf);
114
 
114
 
115
#debug
115
#debug
116
var_dump($replaceMatchContent);
-
 
117
116
var_dump($replaceMatchContent);
-
 
117