-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyreps.php
executable file
·42 lines (32 loc) · 1.25 KB
/
myreps.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
<?php
if (isset($_REQUEST['_SESSION'])) die("Stop trying to Hack!");
//include_once("lib/functions_nec.php"); //must call first because sends headers.
include_once("lib/functions_rep.php");
?>
<div id="finding_location"><img src="img/wait-wheel.gif" alt="" />Gathering Local Representative Data...</div>
<div id="repspage">
<div id="content">
<?php
//-------------------------Call Functions-------------------------------
whorep($_GET['zipcode']); //gets reps and senators
sl_leg(); //gets age, all ids: Needs district|state | NO OUTPUT
/**/ //vs_last($_SESSION['lname']); //gets candidate ID /* not needed unless sunlight down */ ?>
<?
vs_zip($_GET["zipcode"]);
if (isset($_REQUEST["off"])) {vs_bio($_REQUEST["off"]);} //vs Bio
else {vs_bio($_SESSION['votesmart_id']);}
if (isset($_REQUEST["bill"])) {get_bill($_REQUEST["bill"]);} //vs bill search
else {vs_bill($_SESSION['votesmart_id']);} //votesmart bills by zip
sl_comm($_SESSION['bioguide_id']); //committees
os_sum($_SESSION['crp_id']);
os_org($_SESSION['crp_id']);
os_sec($_SESSION['crp_id']);
os_ind($_SESSION['crp_id']);
os_trip($_SESSION['crp_id']);
//nybill();
?>
</div>
<p class="source">
All data gathered from various sources are public domain and are frequently updated.
</p>
</div><!--end repspage-->