Exemplo n.º 1
0
Arquivo: spe.php Projeto: philum/cms
function good_rech($rch = '')
{
    $ret = $rch ? $rch : ajx(urldecode($_GET['search']), 1);
    if (!$ret) {
        return;
    }
    $ret = str_replace('’', "'", $ret);
    $ret = utflatindecode($ret);
    $ret = clean_acc($ret);
    $ret = strip_tags($ret);
    stripslashes($ret);
    $ret = trim($ret);
    return $ret;
}
Exemplo n.º 2
0
Arquivo: tri.php Projeto: philum/cms
function repair_post_treat($ret)
{
    //$ret=clean_firstspace($ret);
    $ret = clean_prespace($ret);
    //$ret=antipuces($ret);
    $ret = repair_badn($ret);
    $ret = repair_tags($ret);
    $ret = utflatindecode($ret);
    $ret = clean_acc($ret);
    //$ret=add_comments($ret);
    $ret = clean_tab_c($ret);
    $ret = clean_punct($ret);
    //$ret=pre_clean($ret);
    //$ret=no_unused_br($ret);
    $ret = mb_ereg_replace("[ ]{2,}", " ", $ret);
    //trim($ret);
    return $ret;
}
Exemplo n.º 3
0
Arquivo: lib.php Projeto: philum/cms
function clean_punct($in)
{
    $ret = clean_acc($in);
    $poub = array(" )", "( ", " ,", " .", " ;", " :", ' !', " ?", "« ", " »", '0 0', "<<", ">>");
    $pouc = array(")", "(", ",", ".", "&nbsp;;", "&nbsp;:", "&nbsp;!", "&nbsp;?", "«&nbsp;", "&nbsp;»", '0&nbsp;0', '"', '"');
    return str_replace($poub, $pouc, $ret);
}