Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 349 | Rev 658 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
349 liveuser 1
<?php
2
 
615 liveuser 3
/*
4
 
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
    Copyright (C) 2015~2024 Min-Jhin,Chen
7
 
8
    This file is part of QBPWCF.
9
 
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
12
    the Free Software Foundation, either version 3 of the License, or
13
    (at your option) any later version.
14
 
15
    QBPWCF is distributed in the hope that it will be useful,
16
    but WITHOUT ANY WARRANTY; without even the implied warranty of
17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
    GNU General Public License for more details.
19
 
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/>.
22
 
23
*/
24
 
349 liveuser 25
#設置要讀取的檔案
26
$file="README";
27
 
28
#確認 READEME 是否存在
29
$exist=file_exists("README");
30
 
31
#如果 README 檔案不存在
32
if($exist!==true){
33
 
34
	#導頁到 qbpwcf 套件分享頁面
35
	header("location: https://sourceforge.net/projects/qbpwc/");
36
 
37
	#結束執行
38
	exit;
39
 
40
	}#if end
41
 
42
#印出 README 檔案的內容
43
echo "<pre>";
44
echo file_get_contents($file);
45
echo "</pre>";
46
 
47
?>