1
0
forked from qwerty/milfs

Limpieza geojson

This commit is contained in:
humano 2014-09-25 13:14:57 -05:00
parent c679150426
commit 9466ed5479

View File

@ -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;
}
*/
?>