Subversion Repositories php-qbpwcf

Rev

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

Rev 207 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) 2015~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 55... Line 55...
55
	#結束執行,回傳shell 1.
55
	#結束執行,回傳shell 1.
56
	exit(1);
56
	exit(1);
57
 
57
 
58
	}#if end
58
	}#if end
59
 
59
 
60
#設置 include path 
60
#設置 include path
61
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
61
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
62
 
62
 
63
#匯入套件
63
#匯入套件
64
require_once("allInOne.php");
64
require_once("allInOne.php");
65
 
65
 
Line 124... Line 124...
124
	$redirectionNow=header::redirectionNow($conf);
124
	$redirectionNow=header::redirectionNow($conf);
125
	unset($conf);
125
	unset($conf);
126
 
126
 
127
	#如果執行失敗
127
	#如果執行失敗
128
	if($redirectionNow["status"]==="false"){
128
	if($redirectionNow["status"]==="false"){
129
	
129
 
130
		#函式說明:
130
		#函式說明:
131
		#撰寫log
131
		#撰寫log
132
		#回傳結果:
132
		#回傳結果:
133
		#$result["status"],狀態,"true"或"false".
133
		#$result["status"],狀態,"true"或"false".
134
		#$result["error"],錯誤訊息陣列.
134
		#$result["error"],錯誤訊息陣列.
Line 151... Line 151...
151
		#無.
151
		#無.
152
		#備註:
152
		#備註:
153
		#無.
153
		#無.
154
		$record=logs::record($conf);
154
		$record=logs::record($conf);
155
		unset($conf);
155
		unset($conf);
156
		
156
 
157
		#如果執行失敗
157
		#如果執行失敗
158
		if($record["status"]==="false"){
158
		if($record["status"]==="false"){
159
		
159
 
160
			#印出結果
160
			#印出結果
161
			var_dump($record);
161
			var_dump($record);
162
			
162
 
163
			#結束執行
163
			#結束執行
164
			exit;
164
			exit;
165
		
165
 
166
			}#if end
166
			}#if end
167
		
167
 
168
		#結束執行
168
		#結束執行
169
		exit;
169
		exit;
170
	
170
 
171
		}#if end
171
		}#if end
172
 
172
 
173
	}#if end
173
	}#if end
174
 
174
 
175
#var_dump($getFileContent["fileContent"]);exit;
175
#var_dump($getFileContent["fileContent"]);exit;
Line 223... Line 223...
223
	#無.
223
	#無.
224
	#備註:
224
	#備註:
225
	#無.
225
	#無.
226
	$record=logs::record($conf);
226
	$record=logs::record($conf);
227
	unset($conf);
227
	unset($conf);
228
	
228
 
229
	#如果執行失敗
229
	#如果執行失敗
230
	if($record["status"]==="false"){
230
	if($record["status"]==="false"){
231
	
231
 
232
		#印出結果
232
		#印出結果
233
		var_dump($record);
233
		var_dump($record);
234
		
234
 
235
		#結束執行
235
		#結束執行
236
		exit;
236
		exit;
237
	
237
 
238
		}#if end
238
		}#if end
239
	
239
 
240
	#結束執行
240
	#結束執行
241
	exit;
241
	exit;
242
 
242
 
243
	}#if end
243
	}#if end
244
 
244
 
245
#印出結果
245
#印出結果
246
echo $multiLine["content"];
246
echo $multiLine["content"];
247
 
247
 
248
?>
-
 
249
248
?>
-
 
249