OXIESEC PANEL
- Current Dir:
/
/
home
/
u116888525
/
domains
/
aretetesting.in
/
public_html
/
imc_testing
/
phpMyAdmin
Server IP: 82.112.239.19
Upload:
Create Dir:
Name
Size
Modified
Perms
📄
---.htaccess
114 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
--.htpasswd
48 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📁
..
-
10/11/2024 05:53:15 AM
rwxr-xr-x
📄
CONTRIBUTING.md
1.69 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
ChangeLog
15.9 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
DCO
1.77 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
LICENSE
17.67 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
README
1.48 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
RELEASE-DATE-4.7.9
29 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
ajax.php
913 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
browse_foreigners.php
1.49 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
changelog.php
4.99 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
chk_rel.php
772 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
composer.json
2.05 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
composer.lock
84.89 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
config.inc.php
4.77 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
config.sample.inc.php
4.41 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_central_columns.php
5.24 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_datadict.php
5.69 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_designer.php
5.72 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_events.php
356 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_export.php
4.88 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_import.php
1.02 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_operations.php
10.37 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_qbe.php
4.32 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_routines.php
416 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_search.php
2.02 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_sql.php
1.08 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_sql_autocomplete.php
749 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_sql_format.php
488 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_structure.php
1.05 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_tracking.php
4.34 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
db_triggers.php
360 bytes
10/11/2024 05:50:58 AM
rw-rw-rw-
📁
doc
-
10/11/2024 05:50:58 AM
rwxr-xr-x
📄
error_report.php
4.43 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📁
examples
-
10/11/2024 05:50:58 AM
rwxr-xr-x
📄
export.php
15.27 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
favicon.ico
21.96 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
gis_data_editor.php
15.48 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
import.php
23.29 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
import_status.php
3.32 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📄
index.php
19.35 KB
10/11/2024 05:50:58 AM
rw-rw-rw-
📁
js
-
10/11/2024 05:50:59 AM
rwxr-xr-x
📁
libraries
-
10/11/2024 05:50:59 AM
rwxr-xr-x
📄
license.php
897 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
lint.php
1.38 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
logout.php
287 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
navigation.php
2.14 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
normalization.php
3.94 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
phpinfo.php
510 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
phpmyadmin.css.php
746 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
prefs_forms.php
2.7 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
prefs_manage.php
14.89 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
print.css
1.18 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
robots.txt
26 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
schema_export.php
1.64 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_binlog.php
804 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_collations.php
837 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_databases.php
817 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_engines.php
803 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_export.php
1.2 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_import.php
779 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_plugins.php
808 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_privileges.php
13.56 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_replication.php
2.18 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_sql.php
847 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_status.php
995 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_status_advisor.php
954 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_status_monitor.php
2.88 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_status_processes.php
1.9 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_status_queries.php
1.36 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_status_variables.php
1.59 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_user_groups.php
1.8 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
server_variables.php
817 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📁
setup
-
10/11/2024 05:50:59 AM
rwxr-xr-x
📄
show_config_errors.php
1.02 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📁
sql
-
10/11/2024 05:50:59 AM
rwxr-xr-x
📄
sql.php
6.17 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_addfield.php
3.82 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_change.php
6.38 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_chart.php
990 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_create.php
3.12 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_export.php
4.38 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_find_replace.php
1.02 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_get_field.php
1.39 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_gis_visualization.php
1.23 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_import.php
873 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_indexes.php
1.4 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_operations.php
13.31 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_recent_favorite.php
455 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_relation.php
2.31 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_replace.php
16.13 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_row_action.php
4.94 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_select.php
1.15 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_sql.php
1.25 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_structure.php
1.63 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_tracking.php
5.76 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_triggers.php
141 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
tbl_zoom_select.php
1.07 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📁
templates
-
10/11/2024 05:50:59 AM
rwxr-xr-x
📁
themes
-
10/11/2024 05:50:59 AM
rwxr-xr-x
📄
themes.php
938 bytes
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
transformation_overview.php
1.88 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
transformation_wrapper.php
4.39 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
url.php
1.26 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
user_password.php
9.03 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📁
vendor
-
10/11/2024 05:50:59 AM
rwxr-xr-x
📄
version_check.php
1.07 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
view_create.php
9.34 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
📄
view_operations.php
3.91 KB
10/11/2024 05:50:59 AM
rw-rw-rw-
Editing: gis_data_editor.php
Close
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Editor for Geometry data types. * * @package PhpMyAdmin */ use PMA\libraries\Response; use PMA\libraries\gis\GISFactory; use PMA\libraries\gis\GISVisualization; use PMA\libraries\URL; /** * Escapes special characters if the variable is set. * Returns an empty string otherwise. * * @param string $variable variable to be escaped * * @return string escaped variable */ function escape($variable) { return isset($variable) ? htmlspecialchars($variable) : ''; } require_once 'libraries/common.inc.php'; if (! isset($_REQUEST['field'])) { PMA\libraries\Util::checkParameters(array('field')); } // Get data if any posted $gis_data = array(); if (PMA_isValid($_REQUEST['gis_data'], 'array')) { $gis_data = $_REQUEST['gis_data']; } $gis_types = array( 'POINT', 'MULTIPOINT', 'LINESTRING', 'MULTILINESTRING', 'POLYGON', 'MULTIPOLYGON', 'GEOMETRYCOLLECTION' ); // Extract type from the initial call and make sure that it's a valid one. // Extract from field's values if available, if not use the column type passed. if (! isset($gis_data['gis_type'])) { if (isset($_REQUEST['type']) && $_REQUEST['type'] != '') { $gis_data['gis_type'] = mb_strtoupper($_REQUEST['type']); } if (isset($_REQUEST['value']) && trim($_REQUEST['value']) != '') { $start = (substr($_REQUEST['value'], 0, 1) == "'") ? 1 : 0; $gis_data['gis_type'] = mb_substr( $_REQUEST['value'], $start, mb_strpos($_REQUEST['value'], "(") - $start ); } if ((! isset($gis_data['gis_type'])) || (! in_array($gis_data['gis_type'], $gis_types)) ) { $gis_data['gis_type'] = $gis_types[0]; } } $geom_type = htmlspecialchars($gis_data['gis_type']); // Generate parameters from value passed. $gis_obj = GISFactory::factory($geom_type); if (isset($_REQUEST['value'])) { $gis_data = array_merge( $gis_data, $gis_obj->generateParams($_REQUEST['value']) ); } // Generate Well Known Text $srid = (isset($gis_data['srid']) && $gis_data['srid'] != '') ? htmlspecialchars($gis_data['srid']) : 0; $wkt = $gis_obj->generateWkt($gis_data, 0); $wkt_with_zero = $gis_obj->generateWkt($gis_data, 0, '0'); $result = "'" . $wkt . "'," . $srid; // Generate SVG based visualization $visualizationSettings = array( 'width' => 450, 'height' => 300, 'spatialColumn' => 'wkt' ); $data = array(array('wkt' => $wkt_with_zero, 'srid' => $srid)); $visualization = GISVisualization::getByData($data, $visualizationSettings) ->toImage('svg'); $open_layers = GISVisualization::getByData($data, $visualizationSettings) ->asOl(); // If the call is to update the WKT and visualization make an AJAX response if (isset($_REQUEST['generate']) && $_REQUEST['generate'] == true) { $extra_data = array( 'result' => $result, 'visualization' => $visualization, 'openLayers' => $open_layers, ); $response = Response::getInstance(); $response->addJSON($extra_data); exit; } ob_start(); echo '<form id="gis_data_editor_form" action="gis_data_editor.php" method="post">'; echo '<input type="hidden" id="pmaThemeImage"' , ' value="' , $GLOBALS['pmaThemeImage'] , '" />'; echo '<div id="gis_data_editor">'; echo '<h3>'; printf( __('Value for the column "%s"'), htmlspecialchars($_REQUEST['field']) ); echo '</h3>'; echo '<input type="hidden" name="field" value="' , htmlspecialchars($_REQUEST['field']) , '" />'; // The input field to which the final result should be added // and corresponding null checkbox if (isset($_REQUEST['input_name'])) { echo '<input type="hidden" name="input_name" value="' , htmlspecialchars($_REQUEST['input_name']) , '" />'; } echo URL::getHiddenInputs(); echo '<!-- Visualization section -->'; echo '<div id="placeholder" style="width:450px;height:300px;' , ($srid != 0 ? 'display:none;' : '') , '">'; echo $visualization; echo '</div>'; echo '<div id="openlayersmap" style="width:450px;height:300px;' , ($srid == 0 ? 'display:none;' : '') , '">'; echo '</div>'; echo '<div class="choice" style="float:right;clear:right;">'; echo '<input type="checkbox" id="choice" value="useBaseLayer"' , ($srid != 0 ? ' checked="checked"' : '') , '/>'; echo '<label for="choice">' , __("Use OpenStreetMaps as Base Layer") , '</label>'; echo '</div>'; echo '<script language="javascript" type="text/javascript">'; echo $open_layers; echo '</script>'; echo '<!-- End of visualization section -->'; echo '<!-- Header section - Inclueds GIS type selector and input field for SRID -->'; echo '<div id="gis_data_header">'; echo '<select name="gis_data[gis_type]" class="gis_type">'; foreach ($gis_types as $gis_type) { echo '<option value="' , $gis_type , '"'; if ($geom_type == $gis_type) { echo ' selected="selected"'; } echo '>' , $gis_type , '</option>'; } echo '</select>'; echo ' '; /* l10n: Spatial Reference System Identifier */ echo '<label for="srid">' , __('SRID:') , '</label>'; echo '<input name="gis_data[srid]" type="text" value="' , $srid , '" />'; echo '</div>'; echo '<!-- End of header section -->'; echo '<!-- Data section -->'; echo '<div id="gis_data">'; $geom_count = 1; if ($geom_type == 'GEOMETRYCOLLECTION') { $geom_count = (isset($gis_data[$geom_type]['geom_count'])) ? intval($gis_data[$geom_type]['geom_count']) : 1; if (isset($gis_data[$geom_type]['add_geom'])) { $geom_count++; } echo '<input type="hidden" name="gis_data[GEOMETRYCOLLECTION][geom_count]"' , ' value="' , $geom_count , '" />'; } for ($a = 0; $a < $geom_count; $a++) { if (! isset($gis_data[$a])) { continue; } if ($geom_type == 'GEOMETRYCOLLECTION') { echo '<br/><br/>'; printf(__('Geometry %d:'), $a + 1); echo '<br/>'; if (isset($gis_data[$a]['gis_type'])) { $type = htmlspecialchars($gis_data[$a]['gis_type']); } else { $type = $gis_types[0]; } echo '<select name="gis_data[' , $a , '][gis_type]" class="gis_type">'; foreach (array_slice($gis_types, 0, 6) as $gis_type) { echo '<option value="' , $gis_type , '"'; if ($type == $gis_type) { echo ' selected="selected"'; } echo '>' , $gis_type , '</option>'; } echo '</select>'; } else { $type = $geom_type; } if ($type == 'POINT') { echo '<br/>'; echo __('Point:'); echo '<label for="x">' , __("X") , '</label>'; echo '<input name="gis_data[' , $a , '][POINT][x]" type="text"' , ' value="' , escape($gis_data[$a]['POINT']['x']) , '" />'; echo '<label for="y">' , __("Y") , '</label>'; echo '<input name="gis_data[' , $a , '][POINT][y]" type="text"' , ' value="' , escape($gis_data[$a]['POINT']['y']) , '" />'; } elseif ($type == 'MULTIPOINT' || $type == 'LINESTRING') { $no_of_points = isset($gis_data[$a][$type]['no_of_points']) ? intval($gis_data[$a][$type]['no_of_points']) : 1; if ($type == 'LINESTRING' && $no_of_points < 2) { $no_of_points = 2; } if ($type == 'MULTIPOINT' && $no_of_points < 1) { $no_of_points = 1; } if (isset($gis_data[$a][$type]['add_point'])) { $no_of_points++; } echo '<input type="hidden" value="' , $no_of_points , '"' , ' name="gis_data[' , $a , '][' , $type , '][no_of_points]" />'; for ($i = 0; $i < $no_of_points; $i++) { echo '<br/>'; printf(__('Point %d'), $i + 1); echo ': '; echo '<label for="x">' , __("X") , '</label>'; echo '<input type="text"' , ' name="gis_data[' , $a , '][' , $type , '][' , $i , '][x]"' , ' value="' , escape($gis_data[$a][$type][$i]['x']) , '" />'; echo '<label for="y">' , __("Y") , '</label>'; echo '<input type="text"' , ' name="gis_data[' , $a , '][' , $type , '][' , $i , '][y]"' , ' value="' , escape($gis_data[$a][$type][$i]['y']) , '" />'; } echo '<input type="submit"' , ' name="gis_data[' , $a , '][' , $type , '][add_point]"' , ' class="add addPoint" value="' , __("Add a point") , '" />'; } elseif ($type == 'MULTILINESTRING' || $type == 'POLYGON') { $no_of_lines = isset($gis_data[$a][$type]['no_of_lines']) ? intval($gis_data[$a][$type]['no_of_lines']) : 1; if ($no_of_lines < 1) { $no_of_lines = 1; } if (isset($gis_data[$a][$type]['add_line'])) { $no_of_lines++; } echo '<input type="hidden" value="' , $no_of_lines , '"' , ' name="gis_data[' , $a , '][' , $type , '][no_of_lines]" />'; for ($i = 0; $i < $no_of_lines; $i++) { echo '<br/>'; if ($type == 'MULTILINESTRING') { printf(__('Linestring %d:'), $i + 1); } else { if ($i == 0) { echo __('Outer ring:'); } else { printf(__('Inner ring %d:'), $i); } } $no_of_points = isset($gis_data[$a][$type][$i]['no_of_points']) ? intval($gis_data[$a][$type][$i]['no_of_points']) : 2; if ($type == 'MULTILINESTRING' && $no_of_points < 2) { $no_of_points = 2; } if ($type == 'POLYGON' && $no_of_points < 4) { $no_of_points = 4; } if (isset($gis_data[$a][$type][$i]['add_point'])) { $no_of_points++; } echo '<input type="hidden" value="' , $no_of_points , '"' , ' name="gis_data[' , $a , '][' , $type , '][' , $i , '][no_of_points]" />'; for ($j = 0; $j < $no_of_points; $j++) { echo('<br/>'); printf(__('Point %d'), $j + 1); echo ': '; echo '<label for="x">' , __("X") , '</label>'; echo '<input type="text" name="gis_data[' , $a , '][' , $type . '][' , $i , '][' , $j , '][x]" value="' , escape($gis_data[$a][$type][$i][$j]['x']) , '" />'; echo '<label for="y">' , __("Y") , '</label>'; echo '<input type="text" name="gis_data[' , $a , '][' , $type , '][' , $i , '][' , $j , '][y]"' , ' value="' , escape($gis_data[$a][$type][$i][$j]['y']) , '" />'; } echo '<input type="submit" name="gis_data[' , $a , '][' , $type , '][' , $i , '][add_point]"' , ' class="add addPoint" value="' , __("Add a point") , '" />'; } $caption = ($type == 'MULTILINESTRING') ? __('Add a linestring') : __('Add an inner ring'); echo '<br/>'; echo '<input type="submit"' , ' name="gis_data[' , $a , '][' , $type , '][add_line]"' , ' class="add addLine" value="' , $caption , '" />'; } elseif ($type == 'MULTIPOLYGON') { $no_of_polygons = isset($gis_data[$a][$type]['no_of_polygons']) ? intval($gis_data[$a][$type]['no_of_polygons']) : 1; if ($no_of_polygons < 1) { $no_of_polygons = 1; } if (isset($gis_data[$a][$type]['add_polygon'])) { $no_of_polygons++; } echo '<input type="hidden"' , ' name="gis_data[' , $a , '][' , $type , '][no_of_polygons]"' , ' value="' , $no_of_polygons , '" />'; for ($k = 0; $k < $no_of_polygons; $k++) { echo '<br/>'; printf(__('Polygon %d:'), $k + 1); $no_of_lines = isset($gis_data[$a][$type][$k]['no_of_lines']) ? intval($gis_data[$a][$type][$k]['no_of_lines']) : 1; if ($no_of_lines < 1) { $no_of_lines = 1; } if (isset($gis_data[$a][$type][$k]['add_line'])) { $no_of_lines++; } echo '<input type="hidden"' , ' name="gis_data[' , $a , '][' , $type , '][' , $k , '][no_of_lines]"' , ' value="' , $no_of_lines , '" />'; for ($i = 0; $i < $no_of_lines; $i++) { echo '<br/><br/>'; if ($i == 0) { echo __('Outer ring:'); } else { printf(__('Inner ring %d:'), $i); } $no_of_points = isset($gis_data[$a][$type][$k][$i]['no_of_points']) ? intval($gis_data[$a][$type][$k][$i]['no_of_points']) : 4; if ($no_of_points < 4) { $no_of_points = 4; } if (isset($gis_data[$a][$type][$k][$i]['add_point'])) { $no_of_points++; } echo '<input type="hidden"' , ' name="gis_data[' , $a , '][' , $type , '][' , $k , '][' , $i , '][no_of_points]"' , ' value="' , $no_of_points , '" />'; for ($j = 0; $j < $no_of_points; $j++) { echo '<br/>'; printf(__('Point %d'), $j + 1); echo ': '; echo '<label for="x">' , __("X") , '</label>'; echo '<input type="text"' , ' name="gis_data[' , $a , '][' , $type , '][' , $k , '][' , $i , '][' , $j , '][x]"' , ' value="' , escape($gis_data[$a][$type][$k][$i][$j]['x']) , '" />'; echo '<label for="y">' , __("Y") , '</label>'; echo '<input type="text"' , ' name="gis_data[' , $a , '][' , $type , '][' , $k , '][' , $i , '][' , $j , '][y]"' , ' value="' , escape($gis_data[$a][$type][$k][$i][$j]['y']) , '" />'; } echo '<input type="submit"' , ' name="gis_data[' , $a , '][' , $type , '][' , $k , '][' , $i , '][add_point]"' , ' class="add addPoint" value="' , __("Add a point") , '" />'; } echo '<br/>'; echo '<input type="submit"' , ' name="gis_data[' , $a , '][' , $type , '][' , $k , '][add_line]"' , ' class="add addLine" value="' , __('Add an inner ring') , '" />'; echo '<br/>'; } echo '<br/>'; echo '<input type="submit"' , ' name="gis_data[' , $a , '][' , $type , '][add_polygon]"' , ' class="add addPolygon" value="' , __('Add a polygon') , '" />'; } } if ($geom_type == 'GEOMETRYCOLLECTION') { echo '<br/><br/>'; echo '<input type="submit" name="gis_data[GEOMETRYCOLLECTION][add_geom]"' , 'class="add addGeom" value="' , __("Add geometry") , '" />'; } echo '</div>'; echo '<!-- End of data section -->'; echo '<br/>'; echo '<input type="submit" name="gis_data[save]" value="' , __('Go') , '" />'; echo '<div id="gis_data_output">'; echo '<h3>' , __('Output') , '</h3>'; echo '<p>'; echo __( 'Choose "GeomFromText" from the "Function" column and paste the' . ' string below into the "Value" field.' ); echo '</p>'; echo '<textarea id="gis_data_textarea" cols="95" rows="5">'; echo htmlspecialchars($result); echo '</textarea>'; echo '</div>'; echo '</div>'; echo '</form>'; Response::getInstance()->addJSON('gis_editor', ob_get_contents()); ob_end_clean();