--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/strings.inc Thu May 18 23:47:03 2006 +0200
@@ -0,0 +1,24 @@
+<?php
+function strtohtml($cadena)
+{
+ $new= ereg_replace("[<]", "<", $cadena);
+ $new= ereg_replace("[>]", ">'", $cadena);
+ $new= ereg_replace("[&]", "&'", $cadena);
+
+ return $new;
+}
+
+function strtosql($cadena)
+{
+ return ereg_replace("'", "'", $cadena);
+}
+
+function pricetohtml($price)
+{
+ if ($price < 0)
+ return sprintf("<FONT COLOR=\"FF0000\">%.2f</FONT>", $price);
+ else
+ return sprintf("%.2f", $price);
+
+}
+?>