From: <ma...@us...> - 2011-02-20 19:43:39
|
Revision: 6979 http://planeshift.svn.sourceforge.net/planeshift/?rev=6979&view=rev Author: magodra Date: 2011-02-20 19:43:33 +0000 (Sun, 20 Feb 2011) Log Message: ----------- - Added new flags to waypoints. - Added warning if GD isn't installed. Modified Paths: -------------- www/webconsole-new/npcs/viewnpcmap.php www/webconsole-new/rules/waypoints.php Modified: www/webconsole-new/npcs/viewnpcmap.php =================================================================== --- www/webconsole-new/npcs/viewnpcmap.php 2011-02-20 19:36:09 UTC (rev 6978) +++ www/webconsole-new/npcs/viewnpcmap.php 2011-02-20 19:43:33 UTC (rev 6979) @@ -130,6 +130,8 @@ echo "<h1>LIVE Map View $sector</h1>"; } +if (! extension_loaded('gd')) { echo "You need to install GD<BR>"; return; } + echo "<div id=Layer2 style=\"position:relative; \">"; //echo "<div id=Layer2 style=\"position:absolute; width:1968px; height:954px; z-index:1; left:0px; top:90px\">"; Modified: www/webconsole-new/rules/waypoints.php =================================================================== --- www/webconsole-new/rules/waypoints.php 2011-02-20 19:36:09 UTC (rev 6978) +++ www/webconsole-new/rules/waypoints.php 2011-02-20 19:43:33 UTC (rev 6979) @@ -106,6 +106,21 @@ }else{ echo 'INDOOR: <input type="checkbox" name="flags[]" value="INDOOR" /><br/>'; } + if (strpos($flags, 'PATH')){ + echo 'PATH: <input type="checkbox" name="flags[]" value="PATH" checked="true"/><br/>'; + }else{ + echo 'PATH: <input type="checkbox" name="flags[]" value="PATH" /><br/>'; + } + if (strpos($flags, 'ROAD')){ + echo 'ROAD: <input type="checkbox" name="flags[]" value="ROAD" checked="true"/><br/>'; + }else{ + echo 'ROAD: <input type="checkbox" name="flags[]" value="ROAD" /><br/>'; + } + if (strpos($flags, 'GROUND')){ + echo 'GROUND: <input type="checkbox" name="flags[]" value="GROUND" checked="true"/><br/>'; + }else{ + echo 'GROUND: <input type="checkbox" name="flags[]" value="GROUND" /><br/>'; + } echo '</td></tr>'; echo '</table>'; @@ -289,6 +304,9 @@ echo 'PUBLIC: <input type="checkbox" name="flags[]" value="PUBLIC" /><br/>'; echo 'CITY: <input type="checkbox" name="flags[]" value="CITY" /><br/>'; echo 'INDOOR: <input type="checkbox" name="flags[]" value="INDOOR" /><br/>'; + echo 'PATH: <input type="checkbox" name="flags[]" value="PATH" /><br/>'; + echo 'ROAD: <input type="checkbox" name="flags[]" value="ROAD" /><br/>'; + echo 'GROUND: <input type="checkbox" name="flags[]" value="GROUND" /><br/>'; echo '</td></tr>'; echo '</table>'; echo '<input type="submit" name="commit" value="Create Waypoint" />'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |