2010-08-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: erased deprecate function "entrada_limpia" for to use only the english named "safe_input". * godmode/setup/links.php: replaced the deprecate function "entrada_limpia" for the english named "safe_input". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3143 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ca648be4e2
commit
1bdd0e7ebe
|
@ -1,3 +1,10 @@
|
||||||
|
2010-08-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
* include/functions.php: erased deprecate function "entrada_limpia" for to
|
||||||
|
use only the english named "safe_input".
|
||||||
|
|
||||||
|
* godmode/setup/links.php: replaced the deprecate function "entrada_limpia"
|
||||||
|
for the english named "safe_input".
|
||||||
|
|
||||||
2010-08-13 Sergio Martin <sergio.martin@artica.es>
|
2010-08-13 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_visual_map.php: Added the alerts fired status
|
* include/functions_visual_map.php: Added the alerts fired status
|
||||||
|
|
|
@ -41,9 +41,9 @@ if (isset($_POST["create"])){ // If create
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_POST["update"])){ // if update
|
if (isset($_POST["update"])){ // if update
|
||||||
$id_link = entrada_limpia($_POST["id_link"]);
|
$id_link = safe_input($_POST["id_link"]);
|
||||||
$name = entrada_limpia($_POST["name"]);
|
$name = safe_input($_POST["name"]);
|
||||||
$link = entrada_limpia($_POST["link"]);
|
$link = safe_input($_POST["link"]);
|
||||||
$sql_update ="UPDATE tlink SET name = '".$name."', link ='".$link."' WHERE id_link = '".$id_link."'";
|
$sql_update ="UPDATE tlink SET name = '".$name."', link ='".$link."' WHERE id_link = '".$id_link."'";
|
||||||
$result=mysql_query($sql_update);
|
$result=mysql_query($sql_update);
|
||||||
if (! $result)
|
if (! $result)
|
||||||
|
@ -53,7 +53,7 @@ $sql_update ="UPDATE tlink SET name = '".$name."', link ='".$link."' WHERE id_li
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["borrar"])){ // if delete
|
if (isset($_GET["borrar"])){ // if delete
|
||||||
$id_link = entrada_limpia($_GET["borrar"]);
|
$id_link = safe_input($_GET["borrar"]);
|
||||||
$sql_delete= "DELETE FROM tlink WHERE id_link = ".$id_link;
|
$sql_delete= "DELETE FROM tlink WHERE id_link = ".$id_link;
|
||||||
$result=mysql_query($sql_delete);
|
$result=mysql_query($sql_delete);
|
||||||
if (! $result)
|
if (! $result)
|
||||||
|
@ -67,7 +67,7 @@ if (isset($_GET["borrar"])){ // if delete
|
||||||
if ((isset($_GET["form_add"])) or (isset($_GET["form_edit"]))){
|
if ((isset($_GET["form_add"])) or (isset($_GET["form_edit"]))){
|
||||||
if (isset($_GET["form_edit"])){
|
if (isset($_GET["form_edit"])){
|
||||||
$creation_mode = 0;
|
$creation_mode = 0;
|
||||||
$id_link = entrada_limpia($_GET["id_link"]);
|
$id_link = safe_input($_GET["id_link"]);
|
||||||
$sql1='SELECT * FROM tlink WHERE id_link = '.$id_link;
|
$sql1='SELECT * FROM tlink WHERE id_link = '.$id_link;
|
||||||
$result=mysql_query($sql1);
|
$result=mysql_query($sql1);
|
||||||
if ($row=mysql_fetch_array($result)){
|
if ($row=mysql_fetch_array($result)){
|
||||||
|
|
|
@ -69,14 +69,6 @@ function output_clean_strict ($string) {
|
||||||
return preg_replace ('/[\|\@\$\%\/\(\)\=\?\*\&\#]/', '', $string);
|
return preg_replace ('/[\|\@\$\%\/\(\)\=\?\*\&\#]/', '', $string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use safe_input and get_parameter functions. Keep temporarily for compatibility.
|
|
||||||
*/
|
|
||||||
function entrada_limpia ($string) {
|
|
||||||
return safe_input ($string);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs an extra clean to a string removing all but alphanumerical
|
* Performs an extra clean to a string removing all but alphanumerical
|
||||||
* characters _ and / The string is also stripped to 125 characters from after ://
|
* characters _ and / The string is also stripped to 125 characters from after ://
|
||||||
|
|
Loading…
Reference in New Issue