-
Notifications
You must be signed in to change notification settings - Fork 988
/
blacklist_view.php
115 lines (110 loc) · 3.24 KB
/
blacklist_view.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
<html>
<head>
<script src="<?php echo $this->config->item('generalscripts')."jquery/jquery.js"?>" type="text/javascript"></script>
<script src="<?php echo $this->config->item('generalscripts')."jquery/jquery-ui.js" ?>" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->config->item('generalscripts')."jquery/css/start/jquery-ui.css" ?>" />
<title><?PHP echo $clang->gT("Blacklist Control") ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url()."templates/default/template.css" ?>" />
<style type="text/css" media="aural tty">
progress-graph .zero, progress-graph .graph, progress-graph .cent { display: none; }
</style>
<script src="<?php echo base_url()."templates/default/template.js"?>" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url()."templates/default/favicon.ico" ?>" />
<script src="<?php echo $this->config->item('generalscripts')."scripts/survey_runtime.js" ?>" type="text/javascript"></script>
</head>
<body class="default lang-en groupbygroup">
<div class="outerframe">
<table class="innerframe">
<tr>
<td>
<table class="survey-header-table">
<tr>
<td class="survey-description">
<br />
<h2>Blacklist Control</h2>
<p></p>
</td>
</tr>
<tr>
<td class="graph">
</td>
</tr>
<tr>
<td class="language-changer">
</td>
</tr>
</table>
<div id='wrapper'>
<p id='tokenmessage'>
<?php
if($global == 1)
{
if($is_participant && $is_updated)
{
if($blacklist == 'Y')
{
echo $clang->gT("You have successfully blacklisted from any survey on this server");
}
else if($blacklist == 'N')
{
echo $clang->gT("You have successfully un-blacklisted from any survey on this server");
}
}
else if($is_participant)
{
if($blacklist == 'Y')
{
echo $clang->gT("You have already been blacklisted from any survey on this server");
}
else if($blacklist == 'N')
{
echo $clang->gT("You have already been un-blacklisted from any survey on this server");
}
}
else if(!$is_survey)
{
echo $clang->gT("Survey is no longer active");
}
else
{
echo $clang->gT("The URL you are trying to use is either modified, or you have been removed from this server");
}
}
else if($local == 1)
{
if($is_participant && $is_updated)
{
if($blacklist == 'Y')
{
echo $clang->gT("You have successfully blacklisted from this survey");
}
else if($blacklist == 'N')
{
echo $clang->gT("You have successfully un-blacklisted from this survey");
}
}
else if($is_participant)
{
if($blacklist == 'Y')
{
echo $clang->gT("You have already been blacklisted from this survey");
}
else if($blacklist == 'N')
{
echo $clang->gT("You have already been un-blacklisted from this survey");
}
}
else
{
echo $clang->gT("The URL you are trying to use is either modified, or you have been removed from this server");
}
}
else
{
echo $clang->gT("You have successfully blacklisted from this survey");
}
?>
</p>
</div>
</body>
</html>