Exemplo n.º 1
0
 static function get($code = 'certificate_id')
 {
     if (!function_exists('get_certificate')) {
         if (self::$certi === null) {
             if (file_exists(ROOT_DIR . '/config/certi.php')) {
                 require ROOT_DIR . '/config/certi.php';
                 self::$certi = $certificate;
             } else {
                 self::$certi = array();
             }
         }
     } else {
         self::$certi = get_certificate();
     }
     return self::$certi[$code];
 }
Exemplo n.º 2
0
 static function get($code = 'certificate_id')
 {
     if (!function_exists('get_certificate')) {
         if (self::$certi === null) {
             if (ECAE_MODE) {
                 self::$certi = app::get('base')->getConf('certificate');
             } else {
                 if (file_exists(ROOT_DIR . '/config/certi.php')) {
                     require ROOT_DIR . '/config/certi.php';
                     self::$certi = $certificate;
                 }
             }
         }
     } else {
         self::$certi = get_certificate();
     }
     return self::$certi[$code];
 }