Update header.php
[clinton/MarylandElectronicPetitionSignature.git] / index.php
CommitLineData
f32310b2 1<?PHP
f32310b2
PM
2if (isset($_GET['invite'])){
3 setcookie("invite", $_GET['invite']);
feaa6e5f 4 header('Location: index.php');
f32310b2 5}
bab8daf2
PM
6$title = 'MEPS - Are you Registered?';
7if ($_COOKIE['invite'] != ''){
5534ce2d 8 $title = 'MEPS ('.strtoupper($_COOKIE['invite']).') - Are you Registered?';
bab8daf2 9}
feaa6e5f 10include_once('header.php');
ea715464 11slack_general('Home Page Loaded','md-petition');
a0b7fc69
PM
12 $q = "select * from website_text where id = '1'";
13 $r = $petition->query($q);
14 $d = mysqli_fetch_array($r);
f32310b2 15?>
bab8daf2 16 <script>document.title = "<?PHP echo $title;?>";</script>
a0b7fc69 17 <div class='col-sm-12' style='height:100px; text-align:center;'><h2><?PHP echo $d['text_title'];?></h2><p><?PHP echo $d['text_block'];?></p></div>
8d253be6 18
737e8418 19 <div class='col-sm-6' style='height:100px; text-align:center;'><button type="button" class="btn btn-success btn-lg btn-block" onclick="window.location.href='enter_information.php'">YES</button></div>
8d253be6 20
737e8418 21 <div class='col-sm-6' style='height:100px; text-align:center;'><button type="button" class="btn btn-danger btn-lg btn-block" onclick="window.location.href='not_a_registered_voter.php'">NO</button> </div>
8d253be6 22
fbb34525 23<?PHP include_once('footer.php');