$max))) return FALSE; return $string; } // sanitize a string in prep for passing a single argument to system() (or similar) function sanitize_system_string($string, $min='', $max='') { $pattern = '/(;|\||`|>|<|&|^|"|'."\n|\r|'".'|{|}|[|]|\)|\()/i'; // no piping, passing possible environment variables ($), // seperate commands, nested execution, file redirection, // background processing, special commands (backspace, etc.), quotes // newlines, or some other special characters $string = preg_replace($pattern, '', $string); $string = '"'.preg_replace('/\$/', '\\\$', $string).'"'; //make sure this is only interpretted as ONE argument $len = strlen($string); if((($min != '') && ($len < $min)) || (($max != '') && ($len > $max))) return FALSE; return $string; } // sanitize a string for SQL input (simple slash out quotes and slashes) function sanitize_sql_string($string, $min='', $max='') { $string = nice_addslashes($string); //gz $pattern = '/;/'; // jp $replacement = ''; $len = strlen($string); if((($min != '') && ($len < $min)) || (($max != '') && ($len > $max))) return FALSE; return preg_replace($pattern, $replacement, $string); } // sanitize a string for SQL input (simple slash out quotes and slashes) function sanitize_ldap_string($string, $min='', $max='') { $pattern = '/(\)|\(|\||&)/'; $len = strlen($string); if((($min != '') && ($len < $min)) || (($max != '') && ($len > $max))) return FALSE; return preg_replace($pattern, '', $string); } // sanitize a string for HTML (make sure nothing gets interpretted!) function sanitize_html_string($string) { $pattern[0] = '/\&/'; $pattern[1] = '//"; $pattern[3] = '/\n/'; $pattern[4] = '/"/'; $pattern[5] = "/'/"; $pattern[6] = "/%/"; $pattern[7] = '/\(/'; $pattern[8] = '/\)/'; $pattern[9] = '/\+/'; $pattern[10] = '/-/'; $replacement[0] = '&'; $replacement[1] = '<'; $replacement[2] = '>'; $replacement[3] = '
'; $replacement[4] = '"'; $replacement[5] = '''; $replacement[6] = '%'; $replacement[7] = '('; $replacement[8] = ')'; $replacement[9] = '+'; $replacement[10] = '-'; return preg_replace($pattern, $replacement, $string); } // make int int! function sanitize_int($integer, $min='', $max='') { $int = intval($integer); if((($min != '') && ($int < $min)) || (($max != '') && ($int > $max))) return FALSE; return $int; } // make float float! function sanitize_float($float, $min='', $max='') { $float = floatval($float); if((($min != '') && ($float < $min)) || (($max != '') && ($float > $max))) return FALSE; return $float; } // glue together all the other functions function sanitize($input, $flags, $min='', $max='') { if($flags & UTF8) $input = my_utf8_decode($input); if($flags & PARANOID) $input = sanitize_paranoid_string($input, $min, $max); if($flags & INT) $input = sanitize_int($input, $min, $max); if($flags & FLOAT) $input = sanitize_float($input, $min, $max); if($flags & HTML) $input = sanitize_html_string($input, $min, $max); if($flags & SQL) $input = sanitize_sql_string($input, $min, $max); if($flags & LDAP) $input = sanitize_ldap_string($input, $min, $max); if($flags & SYSTEM) $input = sanitize_system_string($input, $min, $max); return $input; } function check_paranoid_string($input, $min='', $max='') { if($input != sanitize_paranoid_string($input, $min, $max)) return FALSE; return TRUE; } function check_int($input, $min='', $max='') { if($input != sanitize_int($input, $min, $max)) return FALSE; return TRUE; } function check_float($input, $min='', $max='') { if($input != sanitize_float($input, $min, $max)) return FALSE; return TRUE; } function check_html_string($input, $min='', $max='') { if($input != sanitize_html_string($input, $min, $max)) return FALSE; return TRUE; } function check_sql_string($input, $min='', $max='') { if($input != sanitize_sql_string($input, $min, $max)) return FALSE; return TRUE; } function check_ldap_string($input, $min='', $max='') { if($input != sanitize_string($input, $min, $max)) return FALSE; return TRUE; } function check_system_string($input, $min='', $max='') { if($input != sanitize_system_string($input, $min, $max, TRUE)) return FALSE; return TRUE; } // glue together all the other functions function check($input, $flags, $min='', $max='') { $oldput = $input; if($flags & UTF8) $input = my_utf8_decode($input); if($flags & PARANOID) $input = sanitize_paranoid_string($input, $min, $max); if($flags & INT) $input = sanitize_int($input, $min, $max); if($flags & FLOAT) $input = sanitize_float($input, $min, $max); if($flags & HTML) $input = sanitize_html_string($input, $min, $max); if($flags & SQL) $input = sanitize_sql_string($input, $min, $max); if($flags & LDAP) $input = sanitize_ldap_string($input, $min, $max); if($flags & SYSTEM) $input = sanitize_system_string($input, $min, $max, TRUE); if($input != $oldput) return FALSE; return TRUE; } function validateEmail($email) { return preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9._-]+)+$/" , $email); } ?> Decometal - Herrajes, accesorios y perfiles de aluminio para muebles

Somos una empresa familiar dedicada a la fabricación e importación de herrajes.
Con una larga trayectoria en el sector metalúrgico, en 1999 comenzamos a trabajar con productos vinculados a la industria del mueble. Hoy ocupamos un lugar muy importante en el mercado nacional.

Nuestro objetivo es brindar un servicio integral. Buscamos dar un trato personalizado, crear lazos comerciales que perduren en el tiempo. Nos apoyamos fuertemente en la buena comunicación con nuestros clientes y en la mejora continua de nuestros procesos para lograr los estándares de calidad que nos caracterizan.

En un mercado cambiante, y donde las tendencias internacionales son de gran influencia en nuestro país, día a día nos esforzamos por actualizarnos y ofrecer productos con tecnologías innovadoras y de la más alta calidad.