欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php類

 更新時間:2006年11月27日 00:00:00   作者:  
<?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 @@@@@@@@@@@@@@@@@@@@@@@@@\\\\\\\\
 }
?>

相關文章

  • ThinkPHP 3.2 數(shù)據(jù)分頁代碼分享

    ThinkPHP 3.2 數(shù)據(jù)分頁代碼分享

    這篇文章主要分享給大家一段ThinkPHP 3.2 數(shù)據(jù)分頁代碼,非常的簡單好用,有需要當朋友參考下
    2014-10-10
  • 熊海CMS代碼審計漏洞分析

    熊海CMS代碼審計漏洞分析

    這篇文章主要為大家介紹了熊海CMS代碼審計漏洞分析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2023-02-02
  • PHP實現(xiàn)鏈式操作的原理詳解

    PHP實現(xiàn)鏈式操作的原理詳解

    下面小編就為大家?guī)硪黄狿HP實現(xiàn)鏈式操作的原理詳解。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2016-09-09
  • PHP實現(xiàn)上傳圖片到 zimg 服務器

    PHP實現(xiàn)上傳圖片到 zimg 服務器

    zimg是一個具有圖片處理功能的圖片存儲服務,你可以上傳圖片到zimg服務器,然后通過帶有參數(shù)的URL來獲取被處理過的圖片,今天我們的主要內容是使用php實現(xiàn)圖片上傳到zimg服務器上,希望大家能夠喜歡
    2016-10-10
  • PHP laravel中的多對多關系實例詳解

    PHP laravel中的多對多關系實例詳解

    數(shù)據(jù)表之間是縱橫交叉、相互關聯(lián)的,laravel的一對一,一對多比較好理解,本文重點通過實例給大家講解 laravel中的多對多關系,感興趣的朋友一起看看吧
    2017-06-06
  • PHP安裝Swoole支持DTLS協(xié)議步驟

    PHP安裝Swoole支持DTLS協(xié)議步驟

    這篇文章主要為大家介紹了PHP安裝Swoole支持DTLS協(xié)議步驟示例,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2022-07-07
  • PHP使用Guzzle發(fā)起的異步請求示例詳解

    PHP使用Guzzle發(fā)起的異步請求示例詳解

    這篇文章主要為大家介紹了PHP使用Guzzle發(fā)起的異步請求示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2023-06-06
  • php的zip解壓縮類pclzip使用示例

    php的zip解壓縮類pclzip使用示例

    PclZip是一個很強大的壓縮與解壓縮zip文件的PHP類,這篇文章主要介紹了PclZip的使用方法
    2014-03-03
  • ThinkPHP頁面跳轉success與error方法概述

    ThinkPHP頁面跳轉success與error方法概述

    這篇文章主要介紹了ThinkPHP頁面跳轉success與error方法概述,需要的朋友可以參考下
    2014-06-06
  • THINKPHP5.1 Config的配置與獲取詳解

    THINKPHP5.1 Config的配置與獲取詳解

    這篇文章主要介紹了THINKPHP5.1 Config的配置與獲取詳解,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
    2020-06-06

最新評論