Selador / headers.php

<?php

/* headers.php - Front-end code that spits out HTML headers for all in-game pages
 *
 * Copyright (C) 2006, 2007, 2008 Kevin Read, Simone Schaefer
 *
 * This file is part of Selador, a browser-based fantasy strategy game
 *
 * This program is distributed under the terms of the GNU Affero General Public License.
 *
 *
 *   Selador is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU Affero General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   any later version.
 *
 *   Selador is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Affero General Public License for more details.
 *
 *   You should have received a copy of the GNU Affero General Public License
 *   along with Selador.  If not, see <http://www.gnu.org/licenses/>.
 **/

// This should be in the front-end folder ??
?>
<!--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/transit.dtd">-->
<html><head><title>Selador - <?php echo WORLDTITLE; ?></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<?php
if (isset ($redirect_page))
{
  echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$redirect_page."\">\n";
  echo "</head></html>";
  $me->activevillage->update_stamp ();
  die ();
}

?>
<link type="text/css" href="styles/<?php echo $_SESSION['theme']; ?>.css" rel="stylesheet">
<link type="text/css" href="styles/AutoComplete.css" rel="stylesheet">
<link type="text/css" href="styles/<?php echo $_SESSION['theme']; ?>.css"></style>

<!--[if lt IE 7.]>
<script defer type="text/javascript" src="scripts/pngfix.js"></script>
<![endif]-->
<script src="scripts/de.js" type="text/javascript"></script>
<script src="scripts/autocomplete.js" type="text/javascript"></script>

<?php if ($_SESSION['tutorial'])
	echo '<script type="text/javascript" src="ol/overlibmws.js"></script>
<script type="text/javascript" src="ol/overlibmws_bubble.js"></script>';
?>

<script type="text/javascript">
<?php
echo "vill_x = ".$me->activevillage->x.";\n";
echo "vill_y = ".$me->activevillage->y.";\n";
if (isset ($no_reload))
	echo "no_reload = true;\n";
else
	echo "no_reload = false;\n";
?>
</script>
</head>
<?php 
echo "<body class=\"inhalt\" onload=\"start();";
if (isset ($body_onload))
   echo " ".$body_onload;
else
  echo "\">\n";
?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.