forked from seanlebeck/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adult_warning.inc.php
116 lines (95 loc) · 2.47 KB
/
adult_warning.inc.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("initvars.inc.php");
require_once("config.inc.php");
ob_start();
echo $_SESSION['ses_verified'];
echo $_SESSION['start'];
$xcatid = intval($_GET['catid']);
$xsubcatid = intval($_GET['subcatid']);
$xcityid = intval($_GET['cityid']);
if ( !$xsubcatid )
{
$sql = "SELECT alerttitle, alertdesc FROM $t_cats WHERE catid='$xcatid'";
$location_url = "index.php?view=ads&catid=$xcatid&cityid=$xcityid";
}
else
{
$sql = "SELECT alerttitle, alertdesc FROM $t_subcats WHERE subcatid='$xsubcatid'";
$location_url = "index.php?view=ads&subcatid=$xsubcatid&cityid=$xcityid";
}
$res = mysql_query($sql) or die($sql.mysql_error());
list($alerttitle, $alertdesc) = mysql_fetch_array($res);
if ( $_POST['submit'] )
{
if ( $alert_use_cookies )
{
setcookie("ck_adultverified", "Yes", 0, "/");
}
else
{
$_SESSION["adultverified"] = 1;
}
header("Location: $script_url/$location_url");
exit;
}
ob_flush();
?>
<style>
/* Core Formatting */
html {height: 100%;margin-bottom: 1px;}
body {margin: 0;line-height: 135%;}
body { min-width:982px;}
body {padding:0;margin:0;font-family:arial,sans-serif;background:#ffffff;font-size:62.5%;}
form {margin: 0;padding: 0;}
body {font-size: 12px; text-align:center}
p {margin-top: 10px;margin-bottom: 15px;}
h1, h2, h3, h4, h5 {padding-bottom: 5px;margin: 25px 0 10px 0;font-weight: normal;line-height: 135%;}
h1 {font-size: 250%;}
h2 {font-size: 200%;}
h3 {font-size: 175%;}
h4 {font-size: 120%;line-height: 130%;}
h5 {font-size: 100%;}
a {text-decoration: none;}
a:hover {text-decoration: none;}
a {color: #9FB400;}
a { outline:0; /* remove dotted line */ }
.clr {clear:both;position:relative;font-size: 0;}
img {display:block;border:0}
#title {
font-weight:bold;
margin-top:50px;
}
#desc {
margin-top:10px;
margin-bottom:20px;
width: 440px;
}
#img img {
margin-top:20px;
margin-bottom:20px;
}
#title, #desc, #img img, #buttons {
text-align: center;
margin-left: auto;
margin-right: auto;
}
</style>
<html>
<head>
<title><?php echo $site_name . ' - ' . $alerttitle; ?></title>
<body>
<div id="title">
<?php echo $alerttitle; ?>
</div>
<div id="img">
<img src="images/red-alert.jpg" alt="" />
</div>
<div id="desc"><?php echo nl2br($alertdesc); ?></div>
<div id="buttons">
<form id="adult" name="adult" method="post" action="<?= $_SERVER["REQUEST_URI"] ?>">
<input type="submit" name="submit" id="submit" value="I Understand" />
<input type=button value="Go Back" onClick="history.go(-1)"> </td>
</form>
</div>
</body>
</html>