-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex2.php
More file actions
35 lines (25 loc) · 886 Bytes
/
index2.php
File metadata and controls
35 lines (25 loc) · 886 Bytes
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
<?php
/*
Copyright (C) 2008-2009 Gilles Dubuc (www.kouiskas.com - gilles@dubuc.fr)
Main page, shall contain a user's current and past entries when logged in
*/
require_once(dirname(__FILE__).'/entities/user.php');
require_once(dirname(__FILE__).'/utilities/page.php');
require_once(dirname(__FILE__).'/utilities/ui.php');
require_once(dirname(__FILE__).'/constants.php');
require_once(dirname(__FILE__).'/settings.php');
$user = User::getSessionUser();
$page = new Page(null, null, $user);
$page->addJavascript('HOME');
$page->addJavascript('EARTH');
$page->addStyle('HOME');
$page->startHTML();
$geoip_record = geoip_record_by_name($_SERVER['REMOTE_ADDR']);
$page->addJavascriptVariable('latitude', $geoip_record['latitude']);
$page->addJavascriptVariable('longitude', $geoip_record['longitude']);
?>
<div id='earth'></div>
<?php
$page->endHTML();
$page->render();
?>