1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?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']) && $_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'] = getRequestURI(); ?> <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 class="clearall" /> <?php } ?> <br class="clearall" /> <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 class="clearall" /> <?php printAdminFooter(); ?>
</body> </html> <?php exitZP(); ?>
|