-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyhome.php
53 lines (48 loc) · 1.36 KB
/
myhome.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
<?php
if (isset($_REQUEST['_SESSION'])) die("Stop trying to hack!");
//require_once("lib/functions_nec.php"); //must call first because sends headers.
require_once("lib/functions_misc.php");
?>
<div id="finding_location"><img src="img/wait-wheel.gif" alt="" />Gathering Local Data for <?=$_SESSION["city"]?>...</div>
<div id="homepage">
<div id="location">
<?php
echo '
<p class="title">'.$_SESSION['city'].', '.$_SESSION['state'].'<br />
Zipcode: ',$_SESSION['zip_code'],'<br />
District(s): ', $_SESSION['district_text'], '<br />
Geo Coordinates: '.round($_SESSION["lat"], 5).', '.round($_SESSION["lng"], 5).'</p>';
?>
</div>
<div>
<?php
weath();
wiki(urlencode($_SESSION['city']));
//groups($_SESSION["zip_code"]);
//def("populus");
//abb("lol");
?>
</div>
<div id="Gnews"></div>
<script type="text/javascript"> //<!-- google news script -->
//<![CDATA[
google.load("elements", "1", {packages : ["newsshow"]});
function onLoad() {
// geo location to City
var options = {
"linkTarget" : "_blank",
// "format" : "300x250", // 300x250, or 728x90 (default)
"queryList" : [
{
title : "<?= $_SESSION['city'] ?> News:",
geo : "<?= $_SESSION['zip_code'] ?>",
}
]
}
var content = document.getElementById('Gnews');
var newsShow = new google.elements.NewsShow(content, options);
}
google.setOnLoadCallback(onLoad);
//]]>
</script>
</div><!--end homepage-->