forked from projectsend/projectsend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolicy.php
46 lines (38 loc) · 1.14 KB
/
policy.php
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
<?php
/**
* Privacy policy page
*
* @package ProjectSend
*
*/
$allowed_levels = array(9,8,7,0);
require_once('bootstrap.php');
/** Check if the page is enabled */
if ( defined('PAGE_POLICY_ENABLE') && PAGE_POLICY_ENABLE == '1' ) {
$page_title = defined('PAGE_POLICY_TITLE') ? html_output(PAGE_POLICY_TITLE) : __('Privacy policy', 'cftp_admin');
$dont_redirect_if_logged = 1;
include_once ADMIN_TEMPLATES_DIR . DS . 'header-unlogged.php';
}
else {
header("Location:".BASE_URI."index.php");
exit;
}
?>
<div class="col-xs-12 col-sm-12 col-lg-4 col-lg-offset-4">
<div class="row">
<div class="col-xs-12 branding_unlogged">
<?php echo get_branding_layout(); ?>
</div>
</div>
<div class="white-box">
<div class="white-box-interior">
<h3><?php echo $page_title; ?></h3>
<?php echo strip_tags(PAGE_POLICY_CONTENT, '<p><br><span><a><strong><em><b><i><u><s><ul><ol><li>'); ?>
</div>
</div>
<div class="login_form_links">
<p><a href="<?php echo BASE_URI; ?>" target="_self"><?php _e('Go back to the homepage.','cftp_admin'); ?></a></p>
</div>
</div>
<?php
include_once ADMIN_TEMPLATES_DIR . DS . 'footer.php';