<?php
/**
* Front-Office of Gemibloo (after install)
* Presents blog entries on a map.
*
* @author Olivier G <hide@address.com>
* @version 1.0
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link http://gemibloo.fr
*/
header('Content-Type: text/html; charset=utf-8');
require_once('param/parameters.php');
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Gemibloo: the Geo Micro Blog</title>
<meta name="robots" content="index, follow"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta http-equiv="description" content=" A Gemibloo based geo-micro-blog"/>
<meta http-equiv="content-language" content="en"/>
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
<link href="front/css/Gemibloo.css" rel="stylesheet" type="text/css"/>
</head>
<body onload="fLoad()" onunload="GUnload()">
<div id="logo"><img src="front/images/logo_gemibloo.png" alt="Gemibloo logo" width="41" height="69"/></div>
<h1>Gemibloo: the Geo Micro Blog</h1>
<p>This is the default Gemibloo front page. Feel free to change it (<span class='italic'>index.php</span> file)</p>
<div class='right'>Direct access to the <a href="rss.php" onclick="window.open(this.href); return false;">geoRSS feed</a> of this geomicroblog (only the <?php echo MAX_ENTRIES; ?> most recent entries are available)</div>
<div id="mapContainer"></div>
<div id="status"></div>
<?php
if( (0 != strlen(TWITTER_USR)) || (0 != strlen(FIREEAGLE_USER_TOKEN)) ){
echo "<p>New entries (so locations) on this geoblog are automatically declared on ";
if(0 != strlen(TWITTER_USR))
echo"- <a href='http://twitter.com/".TWITTER_USR."' title='".TWITTER_USR." Twitter stream' onclick='window.open(this.href); return false;' class='external'><img src='front/images/twitter_logo.png' width='125' height='29' alt='twitter' style='vertical-align:text-bottom'/></a>";
if(0 != strlen(FIREEAGLE_USER_TOKEN))
echo"- <a href='http://fireeagle.yahoo.net/ title='Fire Eagle homepage' onclick='window.open(this.href); return false;' class='external'><img src='front/images/fireeagle_logo.png' width='125' height='27' alt='twitter style='vertical-align:text-bottom'></a>";
echo '</p>';
};
?>
<!--You really should not change code below -->
<div class="center"><a href="http://gemibloo.fr" onclick="window.open(this.href); return false;" title="Gemibloo website" class="external"><img src="front/images/powered_by.png" alt="Powered by Gemibloo" width="80" height="15"/></a></div>
<script type="text/javascript">
<?php
echo "var maps_provider = '".MAPS_PROVIDER."';";
//Check if an entry is requested.
if(isset($_GET[entry_id]))
echo 'var entry_id = '.$_GET[entry_id].';';
else
echo 'var entry_id = -1;';
?>
</script>
<?php
//Load the right maps API
if(0 != strlen(MAPS_PROVIDER)){
if( (0 == strcmp(MAPS_PROVIDER, 'google')) || ((0 == strcmp(MAPS_PROVIDER, 'openstreetmap'))))
echo "<script type=\"text/javascript\" src=\"http://maps.google.com/maps?file=api&v=2.x&hl=en&key=".MAPS_API_KEY."\"></script>\n";
}//if
?>
<script type="text/javascript" src="front/js/mapstraction-211.pack.js">
</script>
<script type="text/javascript" src="front/js/Gemibloo.js">
</script>
<script type="text/javascript">
<?php
//Check if an entry is requested.
if(isset($_GET[first]))
echo "alert('Congratulations! Gemibloo is now installed. You can start sending messages with attached geotagged pics to mailbox ".str_replace('%', '@', EMAIL_USR)."')";
?>
</script>
</body>
</html>