Subversion Repositories php-qbpwcf

Rev

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

Rev 148 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
#宣告命名空間
25
#宣告命名空間
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 76... Line 76...
76
#$result["_POST"],收到的 HTTP POST 參數陣列.
76
#$result["_POST"],收到的 HTTP POST 參數陣列.
77
#必填參數:
77
#必填參數:
78
#無
78
#無
79
#可省略參數:
79
#可省略參數:
80
#$conf["echo"],"true"代表要將抓到的參數一個個印出來,"false"代表用回傳的方式,預設為"false".
80
#$conf["echo"],"true"代表要將抓到的參數一個個印出來,"false"代表用回傳的方式,預設為"false".
81
$conf["echo"]="false";	
81
$conf["echo"]="false";
82
$getArgu=cmd::getArgu($conf);
82
$getArgu=cmd::getArgu($conf);
83
 
83
 
84
#如果執行失敗
84
#如果執行失敗
85
if($getArgu["status"]==="false"){
85
if($getArgu["status"]==="false"){
86
	
86
 
87
	#設置錯誤識別
87
	#設置錯誤識別
88
	$result["status"]="false";
88
	$result["status"]="false";
89
	
89
 
90
	#設置錯誤訊息
90
	#設置錯誤訊息
91
	$result["error"]=$getArgu;
91
	$result["error"]=$getArgu;
92
	
92
 
93
	#debug
93
	#debug
94
	var_dump($result);
94
	var_dump($result);
95
	
95
 
96
	}#if end
96
	}#if end
97
	
97
 
98
#印出 json
98
#印出 json
99
echo json_encode($getArgu["content"]);
99
echo json_encode($getArgu["content"]);
100
 
100
 
101
?>
101
?>