Subversion Repositories php-qbpwcf

Rev

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

Rev 3 Rev 226
Line 1... Line 1...
1
#!/usr/bin/php
1
#!/usr/bin/php
2
<?php
2
<?php
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~2024 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 17... Line 17...
17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
    GNU General Public License for more details.
18
    GNU General Public License for more details.
19
 
19
 
20
    You should have received a copy of the GNU General Public License
20
    You should have received a copy of the GNU General Public License
21
    along with QBPWCF.  If not, see <http://www.gnu.org/licenses/>.
21
    along with QBPWCF.  If not, see <http://www.gnu.org/licenses/>.
22
    
22
 
23
*/
23
*/
24
 
24
 
25
#使用命名空間qbpwcf
25
#使用命名空間qbpwcf
26
namespace qbpwcf;
26
namespace qbpwcf;
27
 
27
 
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
include("allInOne.php");
64
include("allInOne.php");
65
 
65
 
Line 98... Line 98...
98
	#設置錯誤訊息
98
	#設置錯誤訊息
99
	$result["error"]=$blockAcctackIp;
99
	$result["error"]=$blockAcctackIp;
100
 
100
 
101
	#印出結果
101
	#印出結果
102
	var_dump($result);
102
	var_dump($result);
103
	
103
 
104
	#結束執行
104
	#結束執行
105
	exit;
105
	exit;
106
 
106
 
107
	}#if end
107
	}#if end
108
	
108
 
109
#如果有執行封鎖IP的情形
109
#如果有執行封鎖IP的情形
110
if(isset($blockAcctackIp["content"])){
110
if(isset($blockAcctackIp["content"])){
111
 
111
 
112
	#comment
112
	#comment
113
	echo "本次發現有問題的IP的結果如下:".PHP_EOL;
113
	echo "本次發現有問題的IP的結果如下:".PHP_EOL;
114
	echo json_encode($blockAcctackIp["content"]);
114
	echo json_encode($blockAcctackIp["content"]);
115
 
115
 
116
	}#if end
116
	}#if end
117
	
117
 
118
#反之
118
#反之
119
else{
119
else{
120
 
120
 
121
	#反之
121
	#反之
122
	echo "本次無發現有問題的IP".PHP_EOL;
122
	echo "本次無發現有問題的IP".PHP_EOL;