From 9466ed5479abc9acfa86ca9c4e824488733cb073 Mon Sep 17 00:00:00 2001 From: humano Date: Thu, 25 Sep 2014 13:14:57 -0500 Subject: [PATCH] Limpieza geojson --- milfs/json.php | 59 -------------------------------------------------- 1 file changed, 59 deletions(-) diff --git a/milfs/json.php b/milfs/json.php index eba5121..fedc708 100644 --- a/milfs/json.php +++ b/milfs/json.php @@ -74,64 +74,5 @@ $geometria = "{ \"type\": \"FeatureCollection\", \"features\": [$geometria ]}"; echo $geometria; -//echo json_encode($features); - -//print_r($features); -/* -function Conectarse(){ - if ( !isset ( $link ) ) { - - include("includes/datos.php"); - if(!isset($db)) { - // include("escritorio/includes/datos.php"); - } - - if (!($link=mysql_connect($servidor,$usuario,$password))) - { - echo "Error conectando a la base de datos."; - exit(); - } - if (!mysql_select_db($db,$link)) - { - echo "Error seleccionando la base de datos."; - exit(); - } - - - return $link; - } -} -*/ -/* -function mysql_seguridad($inp) { - if(is_array($inp)) - return array_map(__METHOD__, $inp); - - if(!empty($inp) && is_string($inp)) { - return str_replace(array('\\', "\0", "\n", "\r", "'", '"', "\x1a"), array('\\\\', '\\0', '\\n', '\\r', "\\*", "\\*", '\\Z'), $inp); - } - - return $inp; -} -*/ -/* -function remplacetas($tabla,$campo,$valor,$por,$and){ - -$link=Conectarse(); -mysql_query("SET NAMES 'utf8'"); -if($and !=''){$AND = "AND $and";} -$consulta = "SELECT * FROM $tabla - WHERE $campo = '$valor' $AND order by id DESC limit 1"; -$sql=mysql_query($consulta,$link); -if (mysql_num_rows($sql)!='0'){ -$resultado[] = mysql_result($sql,0,$por); -$resultado[] = mysql_result($sql,0,id); -$resultado[] = $consulta; - }else{$resultado[0] = ''; - $resultado[1] =""; - $resultado[2] = $consulta;} -return $resultado; -} -*/ ?> \ No newline at end of file