Changeset 2845
- Timestamp:
- 01/08/12 08:54:01 (4 months ago)
- Location:
- trunk/site
- Files:
-
- 2 modified
-
map.img.php (modified) (2 diffs)
-
myboat.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/site/map.img.php
r2698 r2845 37 37 38 38 $maptype = htmlentities(get_cgi_var('maptype', 'compas')); 39 if ( in_array($maptype, Array("floatingcompas", "bothcompass", "compas" ) ) ) {39 if ( in_array($maptype, Array("floatingcompas", "bothcompass", "compas", "none" ) ) ) { 40 40 setUserPref($boat, "mapTools" , $maptype, $save); 41 41 } else { 42 setUserPref($boat, "mapTools" , " none", $save);42 setUserPref($boat, "mapTools" , "compas", $save); 43 43 } 44 44 $list= htmlentities($_GET['list']) ; … … 172 172 173 173 $maplayers=htmlentities($_GET['maplayers']); 174 if ( $maplayers == "" ) $maplayers = "m erged";174 if ( $maplayers == "" ) $maplayers = "multi"; 175 175 setUserPref($boat, "mapLayers" , $maplayers, $save); 176 176 -
trunk/site/myboat.php
r2603 r2845 83 83 } 84 84 85 // Retri ve user_prefs85 // Retrieve user_prefs 86 86 $mapOpponents = $usersObj->getMyPref("mapOpponents"); 87 87 if ( $mapOpponents == "NULL" ) $mapOpponents="myboat"; 88 88 89 $mapTools = $usersObj->getMyPref("mapTools"); 89 if ( $mapTools == "NULL" ) $mapTools="compas"; 90 if ( !in_array($mapTools, Array("floatingcompas", "bothcompass", "compas", "none" )) ) $mapTools = "compas"; 91 90 92 $mapCenter = $usersObj->getMyPref("mapCenter"); 91 if ( $mapCenter == "NULL" ) $mapCenter="myboat"; 93 if ( !in_array($mapCenter, Array("myboat", "mywp", "roadtowp")) ) $mapCenter = "myboat"; 94 92 95 $mapArea = $usersObj->getMyPref("maparea"); 93 96 if ( $mapArea == "NULL" ) $mapArea=10; 94 97 $mapAge = $usersObj->getMyPref("mapAge"); 95 98 if ( $mapAge == "NULL" ) $mapAge=3; 99 96 100 $mapLayers = $usersObj->getMyPref("mapLayers"); 97 if ( $mapLayers == "NULL" ) $mapLayers="merged"; 101 if ( !in_array($mapLayers, Array("multi", "merged")) ) $mapLayers = "multi"; 102 98 103 $mapMaille = $usersObj->getMyPref("mapMaille"); 99 104 if ( $mapMaille == "NULL" ) $mapMaille=3; … … 101 106 if ( $mapEstime == "NULL" ) $mapEstime=50; 102 107 $mapX = $usersObj->getMyPref("mapX"); 103 if ( $mapX == "NULL" ) $mapX = 800;108 if ( $mapX == "NULL" ) $mapX = 1024; 104 109 $mapY = $usersObj->getMyPref("mapY"); 105 if ( $mapY == "NULL" ) $mapY = 600;110 if ( $mapY == "NULL" ) $mapY = 768; 106 111 $mapDrawtextwp = $usersObj->getMyPref("mapDrawtextwp"); 107 112 if ( $mapDrawtextwp == "NULL" ) $mapDrawtextwp = "on";
