File Manager

Current Path : /webspace/www.babilon.be/html/modules/CGExtensions/lib/
Upload File :
Current File : //webspace/www.babilon.be/html/modules/CGExtensions/lib/class.cge_jshandler.php

<?php

final class cge_jshandler
{
    private function __construct() {}

    public static function load($libname)
    {
        $mod = cms_utils::get_module('CGExtensions');
        if( $libname == 'cg_cmsms' ) {
            // gotta return code.
            $config = cmsms()->GetConfig();
            $smarty = cmsms()->GetSmarty();
            $smarty->assign('mod',$mod);
            $smarty->assign('config',$config);
            $code = $mod->ProcessTemplate('jquery.cg_cmsms.tpl');
            $obj = new StdClass;
            $obj->code = $code;
            return $obj;
        }
    }
} // end of class

?>

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com