Subversion Repositories php-qbpwcf

Rev

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

Rev 100 Rev 226
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) 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 98... Line 98...
98
$writeTextIntoFile=fileAccess::writeTextIntoFile($conf);
98
$writeTextIntoFile=fileAccess::writeTextIntoFile($conf);
99
unset($conf);
99
unset($conf);
100
 
100
 
101
#如果執行失敗
101
#如果執行失敗
102
if($writeTextIntoFile["status"]=="false"){
102
if($writeTextIntoFile["status"]=="false"){
103
	
103
 
104
	#印出結果
104
	#印出結果
105
	var_dump($callShell);
105
	var_dump($callShell);
106
	
106
 
107
	#結束執行回傳1
107
	#結束執行回傳1
108
	exit(1);
108
	exit(1);
109
	
109
 
110
	}#if end
110
	}#if end
111
 
111
 
112
#函式說明:
112
#函式說明:
113
#呼叫shell執行系統命令,並取得回傳的內容.
113
#呼叫shell執行系統命令,並取得回傳的內容.
114
#回傳結果:
114
#回傳結果:
Line 169... Line 169...
169
$callShell=external::callShell($conf);
169
$callShell=external::callShell($conf);
170
unset($conf);
170
unset($conf);
171
 
171
 
172
#如果執行失敗
172
#如果執行失敗
173
if($callShell["status"]=="false"){
173
if($callShell["status"]=="false"){
174
	
174
 
175
	#印出結果
175
	#印出結果
176
	var_dump($callShell);
176
	var_dump($callShell);
177
	
177
 
178
	#結束執行回傳1
178
	#結束執行回傳1
179
	exit(1);
179
	exit(1);
180
	
180
 
181
	}#if end
181
	}#if end
182
 
182
 
183
#記錄 action
183
#記錄 action
184
$job_at_now_repeat_after_60sec["action"]=$callShell["escape"]["array"];
184
$job_at_now_repeat_after_60sec["action"]=$callShell["escape"]["array"];
185
 
185
 
Line 252... Line 252...
252
$callShell=external::callShell($conf);
252
$callShell=external::callShell($conf);
253
unset($conf);
253
unset($conf);
254
 
254
 
255
#如果執行失敗
255
#如果執行失敗
256
if($callShell["status"]=="false"){
256
if($callShell["status"]=="false"){
257
	
257
 
258
	#印出結果
258
	#印出結果
259
	var_dump($callShell);
259
	var_dump($callShell);
260
	
260
 
261
	#結束執行回傳1
261
	#結束執行回傳1
262
	exit(1);
262
	exit(1);
263
	
263
 
264
	}#if end
264
	}#if end
265
 
265
 
266
#記錄 action
266
#記錄 action
267
$job_at_every_min["action"]=$callShell["escape"]["array"];
267
$job_at_every_min["action"]=$callShell["escape"]["array"];
268
 
268
 
Line 302... Line 302...
302
$createList=autoService::createList($conf);
302
$createList=autoService::createList($conf);
303
unset($conf);
303
unset($conf);
304
 
304
 
305
#如果執行失敗
305
#如果執行失敗
306
if($createList["status"]=="false"){
306
if($createList["status"]=="false"){
307
	
307
 
308
	#印出結果
308
	#印出結果
309
	var_dump($createList);
309
	var_dump($createList);
310
	
310
 
311
	#結束執行回傳1
311
	#結束執行回傳1
312
	exit(1);
312
	exit(1);
313
	
313
 
314
	}#if end
314
	}#if end
315
 
315
 
316
#debug
316
#debug
317
var_dump($createList);
317
var_dump($createList);
318
 
318