Exemple #1
0
}
echo "SWF Version:{$version}  Check Version:{$check_version}\n";
foreach ($swf->_tags as $tag) {
    $code = $tag->code;
    $tag_name = $tag->getTagInfo($code, "name");
    $tag_ver = $tag->getTagInfo($code, "version");
    if (is_null($tag_ver)) {
        continue;
    }
    if ($check_version < $tag_ver) {
        echo "{$tag_name}({$code}):{$tag_ver}\n";
    }
    if ($code === 12 || $code === 59) {
        // DoAction or DoInitAction
        if ($tag->parseTagContent()) {
            $actions = $tag->tag->_actions;
            foreach ($actions as $action) {
                $actionCode = $action['Code'];
                $actionVersion = IO_SWF_Type_Action::getCodeVersion($actionCode);
                if ($check_version < $actionVersion) {
                    $actionName = IO_SWF_Type_Action::getCodeName($actionCode);
                    $hexCode = strtoupper(dechex($actionCode));
                    echo "    {$actionName}(0x{$hexCode}):{$actionVersion}\n";
                }
            }
        } else {
            echo "Illegal Action Contents\n";
        }
    }
}
exit(0);