一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

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類,轉載需保留來源!

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

主站蜘蛛池模板: 日韩欧美区 | 国产亚洲一区二区在线观看 | 日韩欧美伊人久久大香线蕉 | 国产高清视频免费观看 | 国产综合精品久久亚洲 | 99国产精品免费视频观看 | 青青热久久综合网伊人 | 国产做受视频激情播放 | 欧美日本高清视频在线观看 | 香蕉97超级碰碰碰免费公 | 一区二区三区影视 | 97国产精品人人爽人人做 | 国产成人精品免费视频大全可播放的 | 91人人看 | 韩国亚洲伊人久久综合影院 | 国产激情视频趣趣在线观看的 | 国产精品精品视频 | 亚洲欧洲专线一区 | 中文字幕一区二区区免 | 天天综合日日噜噜噜 | 国产福利最新手机在线观看 | 国内精品自在自线2020 | 韩国一级毛片视频 | 五月天六月婷婷开心激情 | 一道本色 | 欧美国产综合在线 | 免费视频一区二区三区四区 | 看全色黄大色大片免费久久 | a丫久久久久久一级毛片 | 日韩亚洲欧美一区噜噜噜 | 亚洲香蕉影院 | xxx日本在线 | 手机成人在线视频 | 性无遮挡高清视频免费 | 婷婷久久综合九色综合绿巨人 | 欧美午夜性视频 | 国语精品视频在线观看不卡 | 国产91视频免费 | 亚洲成a人片77777群色 | 91青青草视频在线观看 | 91久久精品在这里色伊人6882 |