天天躁日日躁狠狠躁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)系我們修改或刪除,多謝。

主站蜘蛛池模板: 办公室里呻吟的丰满老师电影 | 扒开老师大腿猛进AAA片软件 | 影音先锋亚洲AV少妇熟女 | 亚洲日韩欧美国产专区 | 韩国羞羞秘密教学子开车漫书 | MELODY在线播放无删减 | 大屁股妇女流出白浆 | 成激人情在线影院920 | 公交车轮C关老师 | 无码人妻丰满熟妇区五十路久久 | 一个人在线观看免费高清视频 | 日本久久精品毛片一区随边看 | 毛片一区二区三区 | 中文字幕午夜乱理片 | 国产在线精品视频资源 | 大胸女晃奶动态图 | 国产亚洲日韩欧美视频 | 99热国产这里只有精品免费 | 好大好硬好爽好深好硬视频 | 久久久亚洲国产精品主播 | 久久人妻无码毛片A片麻豆 久久人妻熟女中文字幕AV蜜芽 | 久久国产精品久久国产精品 | 粗好大用力好深快点漫画 | 亚洲免费国产 | 玖玖爱这里只有精品视频 | 免费看欧美xxx片 | 91国在线产 | 国产69精品久久久熟女 | 蜜臀AV中文字幕熟女人妻 | 免费看黄软件 | 色欲色香天天天综合 | 黑兽在线观看高清在线播放樱花 | 性春院 | 老师的快感电影完整版 | 桃花在线视频观看免费 | 欧美多人群p刺激交换电影 欧美多毛的大隂道 | 欲香欲色天天天综合和网 | 欧美一区二区三区久久综 | 午夜向日葵视频在线观看 | 国产精品一久久香蕉国产线看 | 午夜片神马影院福利 |