File: crazyuploader_utils.php

Recommend this page to a friend!
  Classes of Sandro Alves Peres   Crazy Uploader   crazyuploader_utils.php   Download  
File: crazyuploader_utils.php
Role: Auxiliary data
Content type: text/plain
Description: file
Class: Crazy Uploader
Plug-in for TinyMCE to upload document files
Author: By
Last change:
Date: 11 years ago
Size: 957 bytes
 

Contents

Class file image Download
<?php function noSpecialChars( $s ) { $s = ereg_replace("[áàâãª]", "a", $s); $s = ereg_replace("[ÁÀÂÃ]", "A", $s); $s = ereg_replace("[éèê]", "e", $s); $s = ereg_replace("[ÉÈÊ]", "E", $s); $s = ereg_replace("[íìî]", "i", $s); $s = ereg_replace("[ÍÌÎ]", "I", $s); $s = ereg_replace("[óòôõº]", "o", $s); $s = ereg_replace("[ÓÒÔÕ]", "O", $s); $s = ereg_replace("[úùû]", "u", $s); $s = ereg_replace("[ÚÙÛ]", "U", $s); $s = str_replace("ñ", "n", $s); $s = str_replace("Ñ", "N", $s); $s = str_replace("ç", "c", $s); $s = str_replace("Ç", "Ç", $s); $s = str_replace("[¿?!]", "", $s); return $s; } function filterDirectory( $var ) { $search = noSpecialChars( utf8_decode($_POST["search"]) ); if( $search == "" ) { return true; } if( stripos($var, $search) !== false ) { return true; } return false; } ?>