天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

php類

<?php
/*----------------------------------------------------------------//
 * Class::    Ini
 * Function:: to install the system which is requested from client     
 * Author::   Kevin#    
 * QQ::       84529890
 * Date::     2006.10.24
//----------------------------------------------------------------*/
 require_once( CLASS_SYS_PATH . "class.db.php");
 class Ini {
 /*
 * member variable $defaultPlay
 * to set the variable play 
 */
 var $defaultPlay = "main";
 /*
 * member variable $DB
 * to set the object : database
 */
 var $DB;
 /*
 * member variable $play
 * record the parameter of play
 */
 var $play;
//////@@@@ MEMBER FUNCTION LIST @@@@///////
//-======================================-//
//      LastModifyTime::2006.11.16 
//-======================================-//
////////////////////////////////////////////
 /*
 * function :: setDB($db)
 * set the global database object
 */
 function setDB($db){
     return $this->DB = $db;
 }
 /*
 * function::loadSystem($play)
 * load system
 */
 function loadSystem($play){
     if( $this->isValidPlay($play) ){
      require_once("class.smarttemplate.php"); 
  require_once( $play ); 
  $playLikeABird = new Main;
 }else{
     $this->halt("Invalid Access....");
 }
 }
 /*
 * function:: iniCon()
 * install database
 */
 function iniCon(){
     global $DB;
 $DB = new DB( HOST_ADDR , HOST_USER , HOST_PSW , DB_NAME );
 }
 /*
 * function::getDB()
 * to get the current database object
 */
 function getDB(){
     return $this->DB;
 }
 /*
 * function::getPlay()
 * get the play which is post from client
 */
 function getPlay(){
     return $play = empty( $_REQUEST["play"] ) ? $this->defaultPlay : $_REQUEST["play"];
 }
 /*
 * function:: isValidPlay($play)
 * to check legitimacy if the play parameter is 
 */
 function isValidPlay($play){  
 if( file_exists( $play  ) ){
     return true;
 }else{
 return false;
}
 }
 /*
 * function:: halt($msg)
 * show message on the browser 
 */
 function halt($msg){
     echo "<font color=/"#FF0000/">" . $msg . "</font>/n<br />";
 }
 /*
 * function :: iniSystem()
 * install system
 */
 function iniSystem(){
     $this->iniCon();
 $this->setDB($DB);
 $play = $this->getPlay();
 return $play = $this->resetPlay($play);
 }
 /*
 * function :: resetPlay($p)
 * to re-define the play's parameter
 */
 function resetPlay($p){
     return $p = CLASS_PATH . ENTRY_FIRST_FORMAT . $p . ENTRY_LAST_FORMAT;
 } 
 /*
 * function:: Ini()
 * to link the database and get the play which post from client
 */
 function Ini(){
     $play = $this->iniSystem();
 $this->Debug($play);
 $this->loadSystem($play);
 $this->close();
 }
 /*
 * function:: debug($play)
 * to show the debug information
 */
 function debug($play){
     if( DEBUG ) $this->halt("Play -> $play");
 }
 /*
 * function::close()
 * unset database
 */
 function close(){
     return $this->DB = NULL;
 }
 ///////@@@@@@@@@@@@@@@@@@@@@@@@@  define class over @@@@@@@@@@@@@@@@@@@@@@@@@////////
 }
?>

php技術php類,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 国产亚洲国际精品福利 | 在线涩涩免费观看国产精品 | 精品国产品国语在线不卡丶 | 亚洲AV精品无码成人 | 亚洲精品久久YY5099 | 国产激情视频在线观看 | 男的插曲女的下面免费APP | 狠狠国产欧美在线视频 | 九九精品视频在线播放 | 日本片bbbxxx| 亚洲精品在看在线观看 | 扒开老师大腿猛进AAA片 | 高清国产在线播放成人 | 欧美三级不卡在线观线看 | 中文字幕按摩 | 俄罗斯6一12呦女精品 | 国产360激情盗摄全集 | 青柠在线观看视频在线高清 | 欧美香蕉大胸在线视频观看 | 亚洲视频区 | 冰山高冷受被c到哭np双性 | 极品内射少妇精品无码视频 | 日韩精品免费在线观看 | 一区二区三区福利视频 | 日韩人妻无码精品久久中文字幕 | 黄页网站18以下勿看免费 | 亚洲视频在线观看视频 | 天美麻豆成人AV精品视频 | 国产一区日韩二区欧美三区 | 午夜一个人在线观看完整版 | 欧美又粗又长又大AAAA片 | 青柠在线观看视频在线高清 | 国产喷水1区2区3区咪咪爱AV | 2019午夜福利757视频第12集 | 亚洲男人片片在线观看 | 美女张开腿露出尿口扒开来摸动漫 | 欧美性情video sexo视频 | 嫩草AV久久伊人妇女 | 漂亮的保姆3中文版完整版 漂亮的保姆3集电影免费观看中文 | 99riav9 精品香蕉免费大视频 | 国产产一区二区三区久久毛片国语 |