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 81... Line 81...
81
	$conf["newLineBreak"]="false";
81
	$conf["newLineBreak"]="false";
82
	#備註:
82
	#備註:
83
	#無.
83
	#無.
84
	$readLine=cmd::readLine($conf);
84
	$readLine=cmd::readLine($conf);
85
	unset($conf);
85
	unset($conf);
86
	
86
 
87
	#如果讀取 i/o 輸入失敗
87
	#如果讀取 i/o 輸入失敗
88
	if($readLine["status"]==="false")
88
	if($readLine["status"]==="false")
89
	{
89
	{
90
		#印出結果
90
		#印出結果
91
		var_dump($readLine);	
91
		var_dump($readLine);
92
 
92
 
93
		#停止執行
93
		#停止執行
94
		exit;
94
		exit;
95
	
95
 
96
	}#if end
96
	}#if end
97
	
97
 
98
	#如果沒有輸入
98
	#如果沒有輸入
99
	if(empty($readLine["content"]))
99
	if(empty($readLine["content"]))
100
	{
100
	{
101
		#show help
101
		#show help
102
		help();
102
		help();
103
 
103
 
104
		#停止執行
104
		#停止執行
105
		exit;
105
		exit;
106
	}
106
	}
107
	
107
 
108
	#設置為第一個參數
108
	#設置為第一個參數
109
	$_SERVER['argv'][1]=$readLine["content"];
109
	$_SERVER['argv'][1]=$readLine["content"];
110
}
110
}
111
 
111
 
112
#如果第參數為 "help" 或 "-h"
112
#如果第參數為 "help" 或 "-h"