diff options
Diffstat (limited to 'scripts/vendorid/functions.php')
-rw-r--r-- | scripts/vendorid/functions.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/vendorid/functions.php b/scripts/vendorid/functions.php new file mode 100644 index 0000000..d50925b --- /dev/null +++ b/scripts/vendorid/functions.php @@ -0,0 +1,36 @@ +<?php + +//created by Antonio Gallo (tonicucoz@yahoo.com) +// this script is in the Public Domain + +function decode($url) +{ + $url = str_replace(' ','-',$url); + $url = str_replace(',','',$url); + $url = str_replace('\'','',$url); + $url = str_replace('"','',$url); + $url = str_replace('#','-',$url); + $url = str_replace('[','',$url); + $url = str_replace(']','',$url); + $url = str_replace('(','',$url); + $url = str_replace(')','',$url); + $url = str_replace('/','-',$url); + $url = str_replace('@','-at-',$url); + $url = str_replace('?','-',$url); + $url = str_replace('&','-',$url); + return $url; +} + +function decode_soft($url) +{ + $url = str_replace('\'','',$url); + $url = str_replace('"','',$url); + return $url; +} + +function sanitizeDb($string) { + + $string = DB::$instance->real_escape_string($string); + return $string; + +} |