namespace Cubist\Util\Animations;
use Cubist\Util\Files\Files;
+use Cubist\Util\Xml;
class OAMAnimation
{
$res[$props[$p->_name]] = $p->_defaultValue;
}
}
- preg_match('|/oam/([0-9a-z]+)/$|', $unz, $m);
- $res['hash'] = $m[1];
- $res['url'] = '/files/oam/' . $res['hash'] . '/Assets/' . $res['html'];
+ $res['path'] = $unz;
return $res;
}
}
\ No newline at end of file
{
public static function getZIPData($src)
{
- $unz = self::unzipOAM($src,null, 'zip');
+ $unz = self::unzipOAM($src, null, 'zip');
$index = $unz . '/index.html';
if (file_exists($index)) {
$c = file_get_contents($index);
$res['height'] = $ad['h'];
}
- preg_match('|/zip/([0-9a-z]+)/$|', $unz, $m);
- $res['hash'] = $m[1];
- $res['url'] = '/files/zip/' . $res['hash'] . '/index.html';
+ $res['path'] = $unz;
return $res;
}
}