예제 #1
0
파일: priv_mod.php 프로젝트: tseeker/LWB5
 private function loadAds()
 {
     $ads = new ini("./modules/default/ads.ini");
     if ($ads->getError()) {
         return;
     }
     $sections = $ads->getSections();
     foreach ($sections as $ad) {
         $int = $ads->getIniVal($ad, "int");
         $channel = $ads->getIniVal($ad, "chan");
         $msg = $ads->getIniVal($ad, "msg");
         $argArray = array('msg' => $msg, 'channel' => $channel);
         $this->timerClass->addTimer($ad, $this, "misc_adTimer", $argArray, $int);
     }
     $this->ads = $ads;
 }
예제 #2
0
 public function getSlaps()
 {
      $slaps = new ini( "./modules/slap/slaps.ini" );
      
      if( $slaps->getError( ) )
      {
           $this->ircClass->notice( $nick, "Error while getting slaps." );
           return;
      }
      
      $sections = $slaps->getSections( );
      
      foreach( $sections as $slap )
      {
           $msg = $slaps->getIniVal( $slap, "msg" );
           $status = $slaps->getIniVal( $slap, "status" );
           
           $argArray = array('msg'	=> $msg,
                     'status' => $status);
      }
      
      $this->slaps = $slaps;
 }
예제 #3
0
 private function loadConfig()
 {
     $httpConfig = new ini("modules/httpdext/http.ini");
     if ($httpConfig->getError()) {
         return false;
     }
     $this->port = intval($httpConfig->getIniVal("config", "port"));
     if ($this->port == 0) {
         return false;
     }
     $this->httpConfig = $httpConfig;
     return true;
 }
예제 #4
0
 private function loadConfig()
 {
     $httpConfig = new ini("modules/httpd/http.ini");
     if ($httpConfig->getError()) {
         return false;
     }
     $this->port = intval($httpConfig->getIniVal("config", "port"));
     if ($this->port == 0) {
         return false;
     }
     $root = $httpConfig->getIniVal("config", "root");
     if ($root === false) {
         $root = "";
     }
     $this->root = $root;
     $defaultIndex = $httpConfig->getIniVal("config", "defaultindex");
     if ($defaultIndex === false) {
         $defaultIndex = "index.html";
     }
     $this->defaultIndex = $defaultIndex;
     $this->httpConfig = $httpConfig;
     return true;
 }