source: subversion/sites/other/freemap/home.php @ 8877

Last change on this file since 8877 was 5736, checked in by nick, 12 years ago

various changes to Freemap/Osmajax?

File size: 861 bytes
Line 
1<?php
2require_once('common/freemap_functions.php');
3require_once('common/functionsnew.php');
4session_start();
5?>
6<html>
7<head>
8<link rel='stylesheet' type='text/css' href='/css/freemap2.css'/>
9<title><?php echo $_SESSION['gatekeeper']?>'s Home Page</title>
10</head>
11<body>
12<?
13if(!isset($_SESSION["gatekeeper"]))
14{
15        echo "You need to be logged in to view your home page!";
16}
17else
18{
19        $conn=dbconnect();
20        $userid=get_user_id($_SESSION['gatekeeper'],'freemap_users');
21        echo "<h1>{$_SESSION[gatekeeper]}'s home page</h1>";
22        echo "<hr/>";
23        echo "<h2>Your uploaded tracks</h2>";
24        $tracks=get_user_tracks($userid);
25        display_user_tracks($tracks);
26        echo "<h2>Your walk routes</h2>";
27        $walkroutes=get_user_walkroutes($userid);
28        show_user_walkroutes($walkroutes);
29        mysql_close($conn);
30        echo "<hr/>";
31        echo "<p><a href='/index.php'>Back to map</a></p>";
32}
33?>
34</body>
35</html>
Note: See TracBrowser for help on using the repository browser.