-<?
+<?php
include("plotconf.inc");
include("plot.inc");
?>
-<? # START HTML
+<?php # START HTML
?>
-<html><head><title><? echo t("IP-Atlas Preferences") ?></title>
+<html><head><title><?php echo t("IP-Atlas Preferences") ?></title>
<!-- your head tags here -->
<link rel="Stylesheet" href="ip-atlas.css">
</head><body>
-<b><? echo t("IP-Atlas preferences"); ?></b> <? echo t("(cookie based)"); ?><br><br>
+<b><?php echo t("IP-Atlas preferences"); ?></b> <?php echo t("(cookie based)"); ?><br><br>
<?
if(isset($HTTP_POST_VARS["button"])) {
-print t("Your settings have been saved. You can now try"); ?> <a href="plot.php<? if(isset($HTTP_GET_VARS["lastquery"])) { echo "?address=$HTTP_GET_VARS[lastquery]"; } ?>"><? print t("plotting something.")."</a>"."<br><br>";
+print t("Your settings have been saved. You can now try"); ?> <a href="plot.php<?php if(isset($HTTP_GET_VARS["lastquery"])) { echo "?address=$HTTP_GET_VARS[lastquery]"; } ?>"><?php print t("plotting something.")."</a>"."<br><br>";
}
?>
-<form action="<? echo $HTTP_SERVER_VARS['PHP_SELF']; ?><? if(isset($HTTP_GET_VARS["lastquery"])) { echo "?lastquery=$HTTP_GET_VARS[lastquery]"; } ?>" method="POST">
+<form action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?><?php if(isset($HTTP_GET_VARS["lastquery"])) { echo "?lastquery=$HTTP_GET_VARS[lastquery]"; } ?>" method="POST">
-<? if(istheregd()) {
+<?php if(istheregd()) {
echo t("Draw mode (defaults guessed for your browser):");
print "<br><select name=\"seldrawmode\">";
?>
-<? echo t("Pointer Preferences (the dot that marks lat/lon):"); ?><br>
+<?php echo t("Pointer Preferences (the dot that marks lat/lon):"); ?><br>
<?
if($drawmode == "GD") {
print '
-<? echo t("Other Preferences:") ?><br>
-<? echo t("Earth Image:") ?>
+<?php echo t("Other Preferences:") ?><br>
+<?php echo t("Earth Image:") ?>
<select name="earthimage">
<?
</select>
<br><br>
-<input type="Submit" name="button" value="<? echo t("Save") ?>">
+<input type="Submit" name="button" value="<?php echo t("Save") ?>">
<div align="right">
-[ <a href="plot.php<? if(isset($HTTP_GET_VARS["lastquery"])) { echo "?address=$HTTP_GET_VARS[lastquery]"; } ?>"><? echo t("main") ?></a> ]<br><br>
+[ <a href="plot.php<?php if(isset($HTTP_GET_VARS["lastquery"])) { echo "?address=$HTTP_GET_VARS[lastquery]"; } ?>"><?php echo t("main") ?></a> ]<br><br>
</div>
-<? include("footer.inc"); ?>
+<?php include("footer.inc"); ?>
</body></html>
-<?
+<?php
include("plotconf.inc");
include("plot.inc");
<form method="GET" action="'.$PHP_SELF.'#map">
<table width="100%"><tr><td nowrap align="left">
'.t("IP/Hostname:").' <input value="'.$values["address"].'" type="text" size="30" name="address"><input type="Submit" value="'.t("Submit").'"></td><td align="right" width="100%">
-[ <a href="ip-atlas_prefs.php?lastquery='?><? if(isset($HTTP_GET_VARS["address"])) { echo $HTTP_GET_VARS["address"]; } ?><? echo '">'.t("preferences").'</a> ]
+[ <a href="ip-atlas_prefs.php?lastquery='?><?php if(isset($HTTP_GET_VARS["address"])) { echo $HTTP_GET_VARS["address"]; } ?><?php echo '">'.t("preferences").'</a> ]
[ <a href="'."$PHP_SELF".'">'.t("locate me").'</a> ]
</td></tr></table>
</form>