-
Notifications
You must be signed in to change notification settings - Fork 0
/
fmodpopupgdpr.php
116 lines (113 loc) · 5.28 KB
/
fmodpopupgdpr.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php require_once( $_SERVER['DOCUMENT_ROOT'] ."/inc/check.php");?>
<div class="CMSGDPR popupgdpr" id="popupgdprfunc"><p class="popupgdprclick">GDPR DATA COLLECTION AND COOKIES</p>
<div class="popuptext" id="gdprPopup">
<?php if ($gdprsettingtype == '2') {
?>
<form action="<?php echo "//". $host ."/inc/handlers/gdprprocessor.php";?>" method="post" id="gdprprocessorphp" enctype="multipart/form-data">
<? ;
}?>
<h2>Data Collection</h2>
<p>Some bullshit about data collection</p>
<p>Some more</p>
<p></p>
<h2>Javascript</h2>
<p>Some bullshit about javascript scripts on the website</p>
<h2>Cookies</h2>
<p>Some bullshit about cookies on the website</p>
<?php
if ($googleanalytics == '1') {
?>
<p>Bullshit about googleanalytics that is displayed only when googleanalytics module is toggled</p>
<p>on the website and the modules correctly loaded(value processed in an internal file)</p>
<!-- In the following switches, the $gdpr_something values are set from if the said module is active website,
then checking if the user already have preferences, and defines the value accordingly, else goes to default -->
<p>
<?
switch ($gdprsettingtype) {
case '1':
?>
<label class="switch">
<input class="gdprswitch" type="checkbox" id="gganalyticswitch"<?php if($gdpr_gganalytics == '1') { echo " checked";}?>>
<span class="slider"></span>
</label>
<span>Google Analytics</span>
</p><? ;
break;
case '2':
?>
<label class="switch" for="gganalyticswitch">
<input class="gdprswitch" type="checkbox" name="gganalyticswitch" id="gganalyticswitch"<?php if($gdpr_gganalytics == '1') { ?> value"yes" checked<?;} else {?> value"no"<?;}?>>
<span class="slider"></span>
</label>
<span>Google Analytics</span>
</p><? ;
break;
};
if ($gtm == '1') {
switch ($gdprsettingtype) {
case '1':
?>
<p>
<label class="switch">
<input class="gdprswitch" type="checkbox" id="gtmswitch"<?php if($gdpr_gtm == '1') { echo " checked";}?>>
<span class="slider"></span>
</label>
<span>Google Tagmanager</span>
</p><? ;
break;
case '2':
?>
<p>
<label class="switch" for="gtmswitch">
<input class="gdprswitch" type="checkbox" name="gtmswitch" id="gtmswitch"<?php if($gdpr_gtm == '1') { ?> value"yes" checked<?;} else {?> value"no"<?;}?>>
<span class="slider"></span>
</label>
<span>Google Tagmanager</span>
</p><? ;
break;
};
};
}?>
<?php
if ($googleanalytics != '1') {
?>
<p>We don't use external cookies</p>
<!-- Because if all google modules are disabled website-wide, we don't.-->
<? ;
}?>
<h2>Session</h2>
<p>PHP session and data related bullshit</p>
<?php
switch ($gdprsettingtype) {
case '1':
?>
<p>
<label class="switch">
<input class="gdprswitch" type="checkbox" id="sesslogswitch"<?php if($gdpr_sesslog == '1') { echo " checked";}?>>
<span class="slider"></span>
</label>
<span>Session logs</span>
</p><? ;
break;
case '2':
?>
<p>
<label class="switch" for="sesslogswitch">
<input class="gdprswitch" type="checkbox" name="sesslogswitch" id="sesslogswitch"<?php if($gdpr_sesslog == '1') { ?> value"yes" checked<?;} else {?> value"no"<?;}?>>
<span class="slider"></span>
</label>
<span>Session logs</span>
</p><? ;
break;
};
if ($gdprsettingtype == '2') {
?>
<p class="gdprbtn">
<input type ="hidden" name="backurl" value="<?php echo (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" ."#gdprPopup";?>">
<input type ="submit" name="submit" value="Apply" class="btn btn-primary">
</p>
</form>
<? ;
}?>
</div>
</div>