<?php
function unpack_970d05a854($outputDir) {
/* Create directory structure. */
@mkdir($outputDir . 'applets');
@mkdir($outputDir . 'locale');
@mkdir($outputDir . 'po');
@mkdir($outputDir . 'templates');
/* Recreate individual files. */
expand_970d05a854($outputDir, 'ItemAddUploadApplet.inc', '[encoded data, 5260 characters]');
expand_970d05a854($outputDir, 'MANIFEST', 'IyAkUmV2aXNpb246IDE2MDQxICQKIyBGaWxlIGNyYzMyIGNyYzMyKGNybGYpIHNpemUgc2l6ZShjcmxmKSAgb3IgIFIgRmlsZQptb2R1bGVzL3VwbG9hZGFwcGxldC9JdGVtQWRkVXBsb2FkQXBwbGV0LmluYwkzMjU4MTQ4NjAzCTMyNjAyMzI2ODUJMzk0Mwk0MDU4Cm1vZHVsZXMvdXBsb2FkYXBwbGV0L1VwbG9hZEFwcGxldFNpdGVBZG1pbi5pbmMJMzg2OTgzNzY2OAkxMTA4ODM3Mzk3CTQ5MjAJNTA5Ngptb2R1bGVzL3VwbG9hZGFwcGxldC9hcHBsZXRzL0dhbGxlcnlSZW1vdGVBcHBsZXRNaW5pLmphcgkzNTQxNjg3MDI1CTM1NDE2ODcwMjUJMzU3NDMyCTM1NzQzMgptb2R1bGVzL3VwbG9hZGFwcGxldC9hcHBsZXRzL0dhbGxlcnlSZW1vdGVIVFRQQ2xpZW50LmphcgkxMTI3Mjc0NTE3CTExMjcyNzQ1MTcJMjE5NzAxCTIxOTcwMQptb2R1bGVzL3VwbG9hZGFwcGxldC9hcHBsZXRzL2FwcGxldF9pbWcuamFyCTMwNDAwMjU3MzUJMzA0MDAyNTczNQk5OTE0CTk5MTQKbW9kdWxlcy91cGxvYWRhcHBsZXQvbW9kdWxlLmluYwkzOTk3NzMxMDc5CTQxNzM5ODI5OTYJMjY3NgkyNzY4Cm1vZHVsZXMvdXBsb2FkYXBwbGV0L3RlbXBsYXRlcy9JdGVtQWRkVXBsb2FkQXBwbGV0LnRwbAkyNDY3NTQzNTIxCTIwNzg3MTgwMDYJNjA0MAk2MTgyCm1vZHVsZXMvdXBsb2FkYXBwbGV0L3RlbXBsYXRlcy9VcGxvYWRBcHBsZXRTaXRlQWRtaW4udHBsCTIyNjA0NjM3MDYJOTA5ODc3NTI2CTYyNDkJNjM4OQo=');
expand_970d05a854($outputDir, 'UploadAppletSiteAdmin.inc', '[encoded data, 6560 characters]');
expand_970d05a854($outputDir, 'applets/GalleryRemoteAppletMini.jar', '[encoded data, 476576 characters]');
expand_970d05a854($outputDir, 'applets/GalleryRemoteHTTPClient.jar', '[encoded data, 292936 characters]');
expand_970d05a854($outputDir, 'applets/applet_img.jar', '[encoded data, 13220 characters]');
expand_970d05a854($outputDir, 'module.inc', 'PD9waHAKLyoKICogR2FsbGVyeSAtIGEgd2ViIGJhc2VkIHBob3RvIGFsYnVtIHZpZXdlciBhbmQgZWRpdG9yCiAqIENvcHlyaWdodCAoQykgMjAwMC0yMDA3IEJoYXJhdCBNZWRpcmF0dGEKICoKICogVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU7IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnkKICogaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnkKICogdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbjsgZWl0aGVyIHZlcnNpb24gMiBvZiB0aGUgTGljZW5zZSwgb3IgKGF0CiAqIHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi4KICoKICogVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsIGJ1dAogKiBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mCiAqIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBB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WN0b3J5UmVnaXN0cmF0aW9ucygpIHsKCSRyZXQgPSBHYWxsZXJ5Q29yZUFwaTo6cmVnaXN0ZXJGYWN0b3J5SW1wbGVtZW50YXRpb24oCgkgICAgJ0l0ZW1BZGRQbHVnaW4nLCAnSXRlbUFkZFVwbG9hZEFwcGxldCcsICdJdGVtQWRkVXBsb2FkQXBwbGV0JywKCSAgICAnbW9kdWxlcy91cGxvYWRhcHBsZXQvSXRlbUFkZFVwbG9hZEFwcGxldC5pbmMnLCAndXBsb2FkYXBwbGV0JywgbnVsbCk7CglpZiAoJHJldCkgewoJICAgIHJldHVybiAkcmV0OwoJfQoKCXJldHVybiBudWxsOwogICAgfQoKICAgIC8qKgogICAgICogQHNlZSBHYWxsZXJ5TW9kdWxlOjpnZXRTaXRlQWRtaW5WaWV3cwogICAgICovCiAgICBmdW5jdGlvbiBnZXRTaXRlQWRtaW5WaWV3cygpIHsKCXJldHVybiBhcnJheShudWxsLCBhcnJheShhcnJheSgnbmFtZScgPT4gJHRoaXMtPnRyYW5zbGF0ZSgnVXBsb2FkIEFwcGxldCcpLAoJCQkJICAgICAgICd2aWV3JyA9PiAndXBsb2FkYXBwbGV0LlVwbG9hZEFwcGxldFNpdGVBZG1pbicpKSk7CiAgICB9Cn0KPz4K');
expand_970d05a854($outputDir, 'po/GNUmakefile', 'R0FMTEVSWURJUiA/PSAuLi8uLi8uLgpUT09MRElSID89ICQoR0FMTEVSWURJUikvbGliL3Rvb2xzCgppbmNsdWRlICQoVE9PTERJUikvcG8vR05VbWFrZWZpbGUuaW5jCgo=');
expand_970d05a854($outputDir, 'po/strings.raw', 'IyAkSWQ6IHN0cmluZ3MucmF3IDE1MzQyIDIwMDYtMTItMDEgMjE6MTQ6NDZaIGFuZHlfc3QgJAoKLyogSXRlbUFkZFVwbG9hZEFwcGxldC5pbmMgKi8KZ2V0dGV4dCgiVXBsb2FkIEFwcGxldCIpIC8qIGFsc28gaW46IG1vZHVsZS5pbmMgKi8KCi8qIG1vZHV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Npb24gd2hlbiByZXNpemluZyB3aXRoIEltYWdlTWFnaWNrIikKZ2V0dGV4dCgiQ29tcGxldGUgbGlzdCBvZiB2YXJpYWJsZXMiKQo=');
expand_970d05a854($outputDir, 'templates/ItemAddUploadApplet.tpl', '[encoded data, 8056 characters]');
expand_970d05a854($outputDir, 'templates/UploadAppletSiteAdmin.tpl', '[encoded data, 8332 characters]');
}
function expand_970d05a854($outputDir, $relativePath, $data) {
$fd = fopen($outputDir . $relativePath, 'w');
fwrite($fd, base64_decode($data));
fclose($fd);
}
$unpackFunction = "unpack_970d05a854";
?>