CHips L MINI SHELL

CHips L pro

Current Path : /opt/cpanel/ea-php54/root/usr/share/pear/RVSeagullMod/modules/user/classes/observers/
Upload File :
Current File : //opt/cpanel/ea-php54/root/usr/share/pear/RVSeagullMod/modules/user/classes/observers/Forums.php

<?php
class Forums extends SGL_Observer
{
    function update($observable)
    {
        $logMsg = '### Start Observers ' . __CLASS__ . ' ###';  
        SGL::logMessage($logMsg, PEAR_LOG_DEBUG);
        
        $dbh = SGL_DB::singleton();
        $c = SGL_Config::singleton();
        $conf = $c->getAll();   
    
        require_once SGL_MOD_DIR  . '/main/classes/Main.php';
        $oMain = new Main();
        if ($oMain->verifyModules('forums') === false) {
        	$logMsg = '### Break Observers ' . __CLASS__ . ' ###';  
        	SGL::logMessage($logMsg, PEAR_LOG_DEBUG);
            return;
        }
        
        // Get the user id from the current session
        $uid = SGL_Session::getUid();        
        $req = SGL_Request::singleton();
        $input = $req->getAll();
        $sglManager = $req->getManagerName();
                        
        //require_once(SGL_MOD_DIR . '/forums/classes/Api.php');
        require_once SGL_Config::get('path.webRoot')  . '/forums/Api.php';  
              
        $oForumsApi = new ForumsApi();      
           
        require_once('ObserversWeb.php');
        doSglActon($sglManager, $oForumsApi, $observable, $input);                
        $logMsg = '### Stop Observers ' . __CLASS__ . ' ###';  
        SGL::logMessage($logMsg, PEAR_LOG_DEBUG);           
    }
}
?>

Copyright 2K16 - 2K18 Indonesian Hacker Rulez