Subversion Repositories php-qbpwcf

Rev

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

Rev 182 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~2025 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 66... Line 66...
66
 
66
 
67
	#啟動 session
67
	#啟動 session
68
	session_start();
68
	session_start();
69
 
69
 
70
	}#if end
70
	}#if end
71
	
71
 
72
#如果尚未取得 lib path
72
#如果尚未取得 lib path
73
if(!isset($folderOfUsrLib)){
73
if(!isset($folderOfUsrLib)){
74
 
74
 
75
	#儲存要執行的指令
75
	#儲存要執行的指令
76
	$cmd="php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../bin/libexec/folderOfUsrLib.php");
76
	$cmd="php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../bin/libexec/folderOfUsrLib.php");
Line 89... Line 89...
89
 
89
 
90
		}#if end
90
		}#if end
91
 
91
 
92
	#儲存lib path
92
	#儲存lib path
93
	$folderOfUsrLib=$output[0];
93
	$folderOfUsrLib=$output[0];
94
	
94
 
95
	}#if end
95
	}#if end
96
 
96
 
97
#匯入自建的php類別檔
97
#匯入自建的php類別檔
98
require_once("amazon.php"); #跟 amazon 互動的類別
98
require_once("amazon.php"); #跟 amazon 互動的類別
99
require_once("analyse.php"); #跟問卷整理分析有關的類別
99
require_once("analyse.php"); #跟問卷整理分析有關的類別
Line 171... Line 171...
171
#參考資料:
171
#參考資料:
172
#http://www.tcpdf.org/index.php
172
#http://www.tcpdf.org/index.php
173
require_once("tcpdf/tcpdf.php");
173
require_once("tcpdf/tcpdf.php");
174
 
174
 
175
#匯入全域的設定檔
175
#匯入全域的設定檔
176
require_once(pathinfo(__FILE__)["dirname"]."/../../../etc/qbpwcf/allInOneConfig.php"); 
176
require_once(pathinfo(__FILE__)["dirname"]."/../../../etc/qbpwcf/allInOneConfig.php");
177
 
177
 
178
#覆蓋資料庫連結用的資訊
178
#覆蓋資料庫連結用的資訊
179
#$dbAddress="localhost";#資料庫的位置
179
#$dbAddress="localhost";#資料庫的位置
180
#$dbPort="3306";#資料庫的 tcp port
180
#$dbPort="3306";#資料庫的 tcp port
181
#$dbAccount="root";#資料庫帳號
181
#$dbAccount="root";#資料庫帳號
Line 378... Line 378...
378
	#debug
378
	#debug
379
	var_dump($changeSettings);exit;
379
	var_dump($changeSettings);exit;
380
 
380
 
381
	}#if end
381
	}#if end
382
 
382
 
383
?>
-
 
384
383
?>
-
 
384