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
<?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 76... Line 76...
76
	#參考資料:
76
	#參考資料:
77
	#無.
77
	#無.
78
	#備註:
78
	#備註:
79
	#無.
79
	#無.
80
	$record=logs::record($conf);
80
	$record=logs::record($conf);
81
	
81
 
82
	#如果執行失敗
82
	#如果執行失敗
83
	if($record["status"]==="false"){
83
	if($record["status"]==="false"){
84
	
84
 
85
		#印出結果
85
		#印出結果
86
		var_dump($record);
86
		var_dump($record);
87
		
87
 
88
		}#if end
88
		}#if end
89
 
89
 
90
	#異常結束執行
90
	#異常結束執行
91
	exit(1);
91
	exit(1);
92
	
92
 
93
	}#if end
93
	}#if end
94
	
94
 
95
#設定內容為 javaScript
95
#設定內容為 javaScript
96
#參考資料:
96
#參考資料:
97
#https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
97
#https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
98
header("Content-Type:text/javascript");
98
header("Content-Type:text/javascript");
99
	
99
 
100
#印出 javaScript
100
#印出 javaScript
101
echo $qbpwcfJavaScript["content"];
-
 
102
101
echo $qbpwcfJavaScript["content"];
-
 
102