diff options
author | Christian Pointner <equinox@ffgraz.net> | 2008-12-07 01:49:13 +0000 |
---|---|---|
committer | Christian Pointner <equinox@ffgraz.net> | 2008-12-07 01:49:13 +0000 |
commit | 9ca59f0e400038b2d33e06ea255334b4f71c7600 (patch) | |
tree | fa7a535af1d14f8e005bdefeeff497af434fe344 /index.php | |
parent | c93f7d666d312e79c3163c309a1d082e21685bb8 (diff) |
removed uncomplete visible arguments
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -2,16 +2,11 @@ if(isset($_REQUEST['lat'])) $lat = mysql_escape_string($_REQUEST['lat']);
if(isset($_REQUEST['lng'])) $lng = mysql_escape_string($_REQUEST['lng']);
if(isset($_REQUEST['res'])) $res = $_REQUEST['res'];
-if(isset($_REQUEST['marker']))
- $marker = $_REQUEST['marker'];
-else
- $marker = 'all';
//default values
if(empty($lat)) $lat=47.07102;
if(empty($lng)) $lng=15.440;
if(empty($res)) $res=15;
-if(empty($marker)) $marker="online";
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
@@ -52,7 +47,7 @@ if(empty($marker)) $marker="online"; <form name="visibleform" action="#" onsubmit="return false">
<table class="legend">
<tr>
- <td><input type="checkbox" name="offline" value="true" onclick="javascript:toggleVisible('offline')" <?php if($marker == "online") printf(' checked="checked"'); ?> ></td>
+ <td><input type="checkbox" name="offline" value="true" onclick="javascript:toggleVisible('offline')" checked="checked"></td>
<td> </td><td align="center"><img src="./img/marker_offline.png" /></td><td>Offline</td>
</tr>
<tr>
|