2013-04-28 19:14:10 +01:00

180 lines
4.2 KiB
PHP

<?php
$path = "release";
if ( $_REQUEST['build'] == 'dev' )
$path = "dev";
function loadUserScriptHeader($path)
{
$result = Array();
$f = fopen ( $path, "rt" );
while ( ( $line = fgets ( $f ) ) !== FALSE )
{
if ( preg_match ( '#//[ \\t]*==/UserScript==#', $line ) )
break;
$matches = Array();
if ( preg_match ( '#^//[ \\t]*(@[a-zA-Z0-9]+)[ \\t]+(.*)$#', $line, $matches ) )
{
$name = $matches[1];
$value = $matches[2];
if ( ! array_key_exists ( $name, $result ) )
{
$result[$name] = $value;
}
}
}
fclose ( $f );
return $result;
}
?>
<!DOCTYPE html>
<html lang="en">
<!-- ******** head ******** -->
<head>
<meta charset="utf-8">
<title>Ingress Intel Total Conversion</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<![endif]-->
<style>
.nowrap { white-space: nowrap; }
</style>
<?php
if ( file_exists ( 'tracking.php' ) )
{
include 'tracking.php';
}
?>
</head>
<!-- ******** body ******** -->
<body>
<div class="container-fluid">
<!-- **** page header **** -->
<div class="row-fluid">
<div class="span12 header well well-small">
<div class="media">
<a class="pull-left" href="./">
<img class="media-object" src="assets/img/logo.png" title="IITC" alt="IITC Logo">
</a>
<div class="media-body">
<h1 class="media-heading">Ingress Intel Total Conversion</h1>
<!--
<a href="//plus.google.com/105383756361375410867?prsrc=3" rel="publisher" style="text-decoration:none;">
<img src="//ssl.gstatic.com/images/icons/gplus-16.png" alt="Google+" style="border:0;width:16px;height:16px;"/></a>
-->
</div>
</div>
</div>
</div>
<!-- **** top alert box **** -->
<div class="alert alert-block alert-info">
IITC now has a
<a href="https://plus.google.com/105383756361375410867"><img src="//ssl.gstatic.com/images/icons/gplus-16.png" alt="Google+" style="border:0;width:16px;height:16px;"/> Google+ page</a>.
Follow this to keep up to date on the latest news.
</div>
<!-- **** two column body area **** -->
<div class="row-fluid">
<!-- **** navigation **** -->
<div class="span3 well">
<ul class="nav nav-list nowrap">
<?php
$pages = Array (
'home' => '<i class="icon-home"></i> Home',
'news' => '<i class="icon-list"></i> News',
'faq' => '<i class="icon-question-sign"></i> FAQ',
'desktop' => '<i class="icon-chevron-right"></i> Desktop',
'mobile' => '<i class="icon-chevron-right"></i> Mobile',
'developer' => '<i class="icon-cog"></i> Developers',
'about' => '<i class="icon-info-sign"></i> About',
);
$page = $_REQUEST['page'];
if ( ! array_key_exists ( $page, $pages ) )
$page = "home";
foreach ( $pages as $key => $name )
{
# before 'desktop', add a nav-header
if ( $key == 'desktop' )
print "<li class=\"nav-header\">Downloads</li>";
if ( $key == "home" )
$url = "./";
else
$url = "?page=$key";
print "<li".($page == $key ? ' class="active"' :'')."><a href=\"$url\">$name</a></li>\n";
# after 'mobile', add a horizontal seperator
if ( $key == 'mobile' )
print "<li class=\"divider\"></li>";
}
?>
</ul>
</div>
<!-- **** end of navigation **** -->
<!-- **** page body **** -->
<div class="span9 well">
<?php
include "page/$page.php";
?>
</div>
<!-- **** end of page body **** -->
</div> <!-- row - for navigation + page body -->
<!-- **** footer **** -->
<div class="alert alert-block alert-error">
This site and the scripts are not officially affiliated with Ingress or Niantic Labs at Google.
Using these scripts is likely to be considered against the Ingress Terms of Service. Any use is at your own risk.
</div>
</div> <!-- container -->
<!-- ******** javascript includes ******** -->
<script src="http://code.jquery.com/jquery.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>