天天躁日日躁狠狠躁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技術(shù)php類,轉(zhuǎn)載需保留來源!

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

主站蜘蛛池模板: 免费观看亚洲视频 | 国产精品亚洲精品日韩电影 | 亚洲一区精品在线 | 99在线在线视频观看 | 欧美手机在线播放 | 国产二区自拍 | 国产成人刺激视频在线观看 | 国产高清视频免费在线观看 | 国产成人免费a在线视频app | 国产成人a视频在线观看 | 免费xxx成年大片 | 蜜柚在线观看免费高清官网视频 | 孕妇高潮抽搐喷水30分钟 | 特大巨黑人吊性xxxxgay | 亚洲伊人色综合久久天天伊人 | 国产精品自产拍在线观看中文 | 亚洲一日韩欧美中文字幕在线 | TUBE69CHINESE学生| 果冻传媒在线看免费高清 | 久久国产视频网站 | 国精产品999一区二区三区有限 | tube日本护士| 好姑娘BD高清在线观看免费 | 美女脱三角裤 | 伊人久久中文字幕久久cm | 欧美日韩精品久久久免费观看 | 小向美奈子厨房magnet | 北岛玲手机在线观看视频观看 | 亚洲欭美日韩颜射在线二 | 日韩人妻少妇一区二区三区 | 免费99精品国产自在现线 | 亚洲高清国产拍精品影院 | 色狐直播免费观看 | 欧美506070| 亚洲精品视频免费看 | 永久免费无码AV国产网站 | 中文字幕亚洲欧美在线视频 | qvod伦理片| 精品久久香蕉国产线看观看麻豆 | 亚洲不卡视频在线观看 | 伦理片午夜在线视频 |