<?php
/**
*
* Zenphoto license agreement
*
*/
if (!defined('OFFSET_PATH')) {
define('OFFSET_PATH', 1);
}
require_once(dirname(__FILE__).'/admin-globals.php');
checkInstall(); /* incase someone has dropped tables and not run setup */
if (isset($_GET['licenseAccept'])) {
if (isset($_SESSION['license_return'])) {
$return_to = $_SESSION['license_return'];
unset($_SESSION['license_return']);
} else {
$return_to = 'admin.php';
}
setOption('license_accepted', ZENPHOTO_VERSION.'['.ZENPHOTO_RELEASE.']');
header('Location: '.$return_to);
exitZP();
}
printAdminHeader('license');
echo "\n</head>";
?>
<body>
<?php printLogoAndLinks(); ?>
<div id="main">
<?php printTabs(); ?>
<div id="content">
<h1><?php echo gettext('Zenphoto License agreement'); ?></h1>
<div id="container">
<p class="notebox">
<?php printf(gettext('This license is in English because the <em>Free Software Foundation</em> does not approve translations as officially valid. Unofficial translations are available <a href="%s">here</a>.'),'http://www.gnu.org/licenses/old-licenses/gpl-2.0-translations.html'); ?>
</p>
<?php
if (!getOption('license_accepted')) {
$_SESSION['license_return'] = $_SERVER['REQUEST_URI'];
?>
<p class="buttons">
<a href="<?php echo FULLWEBPATH.'/'.ZENFOLDER.'/license.php?licenseAccept&XSRFToken='.getXSRFToken('ZenphotoLicense'); ?>" alt="<?php echo gettext('You must accept this license to continue to use Zenphoto.'); ?>"><?php echo gettext('I agree to these terms and conditions'); ?></a>
</p>
<br clear="all" />
<?php
}
?>
<br clear="all">
<div class="tabbox">
<iframe src="<?php echo FULLWEBPATH.'/'.ZENFOLDER; ?>/gpl-2.0-standalone.htm" width="100%" height="480" style="border: 0">
</iframe>
</div>
</div>
</div>
</div>
<br clear="all" />
<?php printAdminFooter(); ?>
</body>
</html>
<?php
exitZP();
?>