Update warning_not_found.php
[clinton/MarylandElectronicPetitionSignature.git] / warning_not_found.php
CommitLineData
ffde8170 1<?PHP
f612f880
PM
2/* delete ALL cookies */
3foreach ( $_COOKIE as $key => $value ){
4 unset($_COOKIE[$key]);
5 setcookie($key, '', time() - 3600, '/');
6}
7// unset cookies
8if (isset($_SERVER['HTTP_COOKIE'])) {
9 $cookies = explode(';', $_SERVER['HTTP_COOKIE']);
10 foreach($cookies as $cookie) {
11 $parts = explode('=', $cookie);
12 $name = trim($parts[0]);
13 setcookie($name, '', time()-1000);
14 setcookie($name, '', time()-1000, '/');
15 }
16}
ffde8170 17include_once('header.php');
f612f880 18slack_general('Warning Not Found ('.$_COOKIE['invite'].')','md-petition');
ce49cf79 19$qX = "select * from website_text where id = '5'";
ffde8170
PM
20$rX = $petition->query($qX);
21$dX = mysqli_fetch_array($rX);
ce49cf79 22?>
5625b4c2 23<script>document.title = "MEPS - Warning Not Found";</script>
1a946745 24<div class='row'>
833a22d3 25 <div class='col-sm-10' style='text-align:center;'><h1><?PHP echo $dX['text_title'];?></h1></div>
1a946745
PM
26</div>
27<div class='row'>
833a22d3 28 <div class='col-sm-10' style='text-align:center;'><h2><?PHP echo $dX['text_block'];?></h2></div>
1a946745 29</div>
9cf4b960 30<?PHP include_once('footer.php');