Subversion Repositories php-qbpwcf

Rev

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

Rev 96 Rev 222
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 74... Line 74...
74
#$result["content"],取得的header陣列.
74
#$result["content"],取得的header陣列.
75
#$result["function"],當前執行的函數名稱.
75
#$result["function"],當前執行的函數名稱.
76
#必填參數:
76
#必填參數:
77
#無
77
#無
78
#可省略參數:
78
#可省略參數:
79
#無 
79
#無
80
#參考資料:
80
#參考資料:
81
#無.
81
#無.
82
#備註:
82
#備註:
83
#無.
83
#無.
84
$getReceivedHeaders=header::getReceivedHeaders();
84
$getReceivedHeaders=header::getReceivedHeaders();
Line 107... Line 107...
107
	#無.
107
	#無.
108
	#備註:
108
	#備註:
109
	#無.
109
	#無.
110
	$record=logs::record($conf);
110
	$record=logs::record($conf);
111
	unset($conf);
111
	unset($conf);
112
	
112
 
113
	#結束執行
113
	#結束執行
114
	exit(1);
114
	exit(1);
115
 
115
 
116
	}#if end
116
	}#if end
117
 
117
 
Line 177... Line 177...
177
	#無.
177
	#無.
178
	#備註:
178
	#備註:
179
	#無.
179
	#無.
180
	$record=logs::record($conf);
180
	$record=logs::record($conf);
181
	unset($conf);
181
	unset($conf);
182
	
182
 
183
	#結束執行
183
	#結束執行
184
	exit(1);
184
	exit(1);
185
 
185
 
186
	}#if end
186
	}#if end
187
 
187
 
Line 246... Line 246...
246
		#無.
246
		#無.
247
		#備註:
247
		#備註:
248
		#無.
248
		#無.
249
		$record=logs::record($conf);
249
		$record=logs::record($conf);
250
		unset($conf);
250
		unset($conf);
251
		
251
 
252
		#結束執行
252
		#結束執行
253
		exit(1);
253
		exit(1);
254
 
254
 
255
		}#if end
255
		}#if end
256
		
256
 
257
	#如果沒有應該要存在的關鍵字 "%"
257
	#如果沒有應該要存在的關鍵字 "%"
258
	if($delStrBeforeKeyWord["founded"]==="false"){
258
	if($delStrBeforeKeyWord["founded"]==="false"){
259
 
259
 
260
		#函式說明:
260
		#函式說明:
261
		#撰寫log
261
		#撰寫log
Line 278... Line 278...
278
		#無.
278
		#無.
279
		#備註:
279
		#備註:
280
		#無.
280
		#無.
281
		$record=logs::record($conf);
281
		$record=logs::record($conf);
282
		unset($conf);
282
		unset($conf);
283
		
283
 
284
		#結束執行
284
		#結束執行
285
		exit(1);
285
		exit(1);
286
 
286
 
287
		}#if end
287
		}#if end
288
		
288
 
289
	#取得對接的server網路界面
289
	#取得對接的server網路界面
290
	$serverNetInterface=$delStrBeforeKeyWord["content"];
290
	$serverNetInterface=$delStrBeforeKeyWord["content"];
291
 
291
 
292
	#取得網路界面的資訊
292
	#取得網路界面的資訊
293
	#函式說明:
293
	#函式說明:
Line 309... Line 309...
309
	#無.
309
	#無.
310
	#備註:
310
	#備註:
311
	#無.
311
	#無.
312
	$ipAddrShow=cmd::ipAddrShow($conf);
312
	$ipAddrShow=cmd::ipAddrShow($conf);
313
	unset($conf);
313
	unset($conf);
314
	
314
 
315
	#var_dump($ipAddrShow);
315
	#var_dump($ipAddrShow);
316
	
316
 
317
	#如果執行失敗
317
	#如果執行失敗
318
	if($ipAddrShow["status"]==="false"){
318
	if($ipAddrShow["status"]==="false"){
319
 
319
 
320
		#函式說明:
320
		#函式說明:
321
		#撰寫log
321
		#撰寫log
Line 338... Line 338...
338
		#無.
338
		#無.
339
		#備註:
339
		#備註:
340
		#無.
340
		#無.
341
		$record=logs::record($conf);
341
		$record=logs::record($conf);
342
		unset($conf);
342
		unset($conf);
343
		
343
 
344
		#結束執行
344
		#結束執行
345
		exit(1);
345
		exit(1);
346
 
346
 
347
		}#if end
347
		}#if end
348
 
348
 
Line 357... Line 357...
357
#反之
357
#反之
358
else{
358
else{
359
 
359
 
360
	#印出 client 端 ip
360
	#印出 client 端 ip
361
	echo $_SERVER["REMOTE_ADDR"];
361
	echo $_SERVER["REMOTE_ADDR"];
362
	
362
 
363
	#結束執行
363
	#結束執行
364
	exit;
364
	exit;
365
 
365
 
366
	}#else end
366
	}#else end