Exemplo n.º 1
0
 static function GetEngine()
 {
     if (!self::$engine) {
         if (!class_exists('getID3')) {
             $tmp_dir = WPFB_Core::UploadDir() . '/.tmp';
             if (!is_dir($tmp_dir)) {
                 @mkdir($tmp_dir);
             }
             define('GETID3_TEMP_DIR', $tmp_dir . '/');
             unset($tmp_dir);
             require_once WPFB_PLUGIN_ROOT . 'extras/getid3/getid3.php';
         }
         self::$engine = new getID3();
     }
     return self::$engine;
 }