Exemplo n.º 1
0
']);"><?php 
        echo gettext('Migrate rights');
        ?>
</a>
								</span>
								<br class="clearall" />
							</p>
							<br class="clearall" />
							<?php 
    } else {
        if (Zenphoto_Authority::getVersion() > Zenphoto_Authority::$preferred_version) {
            ?>
							<br class="clearall" />
							<p class="notebox">
								<?php 
            printf(gettext('You may wish to revert the <em>Zenphoto_Authority</em> user rights to version %s for backwards compatibility with prior Zenphoto releases.'), Zenphoto_Authority::getVersion() - 1);
            ?>
								<br class="clearall" />
								<span class="buttons">
									<a onclick="launchScript('', ['action=migrate_rights', 'revert=true', 'XSRFToken=<?php 
            echo getXSRFToken('migrate_rights');
            ?>
']);"><?php 
            echo gettext('Revert rights');
            ?>
</a>
								</span>
								<br class="clearall" />
							</p>
							<br class="clearall" />
							<?php 
Exemplo n.º 2
0
					window.location = "' . FULLWEBPATH . '/' . ZENFOLDER . '/' . UTILITIES_FOLDER . '/backup_restore.php?compression=' . $compression_handler . '";
				}
			</script>
		';
            }
        }
        $_zp_options = NULL;
        //invalidate any options from before the restore
        if (getOption('zenphoto_install') !== $signaure) {
            $l1 = '<a href="' . WEBPATH . '/' . ZENFOLDER . '/setup.php">';
            $messages .= '<div class="notebox">
			<h2>' . sprintf(gettext('You have restored your database from a different instance of Zenphoto. You should run %1$ssetup%2$s to insure proper migration.'), $l1, '</a>') . '</h2>
			</div>';
        }
        setOption('license_accepted', ZENPHOTO_VERSION . '[' . ZENPHOTO_RELEASE . ']');
        if ($oldlibauth != Zenphoto_Authority::getVersion()) {
            if (!$_zp_authority->migrateAuth($oldlibauth)) {
                $messages .= '
			<div class="errorbox fade-message">
			<h2>' . gettext('Zenphoto Rights migration failed!') . '</h2>
			</div>
			';
            }
        }
    }
}
if (isset($_GET['compression'])) {
    $compression_handler = sanitize($_GET['compression']);
    $messages = '
	<div class="messagebox fade-message">
		<h2>