* @version $Revision: 17580 $ */ class GalleryRemoteWebStartView extends GalleryView { /** * @see GalleryView::isImmediate */ function isImmediate() { return true; } /** * @see GalleryView::isAllowedInEmbedOnly */ function isAllowedInEmbedOnly() { return true; } /** * @see GalleryView::shouldSaveSession */ function shouldSaveSession() { return false; } /** * @see GalleryView::loadTemplate */ function renderImmediate($status, $error) { global $gallery; if (!headers_sent()) { header("Content-type: application/x-java-jnlp-file"); } $urlGenerator =& $gallery->getUrlGenerator(); $codebase = $urlGenerator->getCurrentUrlDir(true); /* * Removed the href attribute in the jnlp element, because it caused WebStart to fail * caching the application. */ /*$jnlpFile = $urlGenerator->generateUrl( array('view' => 'remote.GalleryRemoteWebStart'), array('forceDirect' => true, 'forceFullUrl' => true, 'forceSessionId' => false));*/ $user = $gallery->getActiveUser(); if (isset($user)) { $username = $user->getUserName(); } echo '' . "\n"; ?> Gallery Remote Gallery A Java application you can use to upload pictures to your Gallery -url -username