Subversion Repositories php-qbpwcf

Rev

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

Rev 122 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
 
26
 
27
說明:
27
說明:
Line 62... Line 62...
62
	#結束執行,回傳shell 1.
62
	#結束執行,回傳shell 1.
63
	exit(1);
63
	exit(1);
64
 
64
 
65
	}#if end
65
	}#if end
66
 
66
 
67
#設置 include path 
67
#設置 include path
68
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
68
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
69
 
69
 
70
#匯入外部套件
70
#匯入外部套件
71
include("allInOne.php");
71
include("allInOne.php");
72
 
72
 
Line 95... Line 95...
95
$unixDomainSockServer=sock::unixDomainSockServer($conf);
95
$unixDomainSockServer=sock::unixDomainSockServer($conf);
96
unset($conf);
96
unset($conf);
97
 
97
 
98
#如果執行失敗
98
#如果執行失敗
99
if($unixDomainSockServer["status"]=="false"){
99
if($unixDomainSockServer["status"]=="false"){
100
	
100
 
101
	#設置錯誤識別
101
	#設置錯誤識別
102
	$result["status"]="false";
102
	$result["status"]="false";
103
	
103
 
104
	#設置錯誤訊息
104
	#設置錯誤訊息
105
	$result["error"]=$unixDomainSockServer;
105
	$result["error"]=$unixDomainSockServer;
106
	
106
 
107
	#印出結果
107
	#印出結果
108
	var_dump($result);
108
	var_dump($result);
109
	
109
 
110
	#結束執行
110
	#結束執行
111
	exit;
111
	exit;
112
	
112
 
113
	}#if end
113
	}#if end