diff --git a/upload/includes/functions.php b/upload/includes/functions.php index 04548b7d..6d62d336 100755 --- a/upload/includes/functions.php +++ b/upload/includes/functions.php @@ -6033,6 +6033,18 @@ } + /** + * This function is used to clean a string removing all special chars + * @author Mohammad Shoaib + * @param string + * @return cleaned string + */ + function cleanString($string) { + $string = str_replace("’", "'", $string); + return preg_replace('/[^A-Za-z0-9 !@#$%^&*()_?<>|{}\[\].,+-;\/:"\'\-]/', "'", $string); + } + + include( 'functions_db.php' ); include( 'functions_filter.php' ); include( 'functions_player.php' ); diff --git a/upload/styles/cb_28/layout/header.html b/upload/styles/cb_28/layout/header.html old mode 100644 new mode 100755 index bcdf7fc4..0344419d --- a/upload/styles/cb_28/layout/header.html +++ b/upload/styles/cb_28/layout/header.html @@ -107,6 +107,7 @@ + {ANCHOR place="elastic_mode_search"}