Example #1
0
File: ajax.php Project: philum/cms
     req('pop,art,tri');
     $ret = correct_txt($id, "", 'codline');
     break;
 case "filters":
     req('tri');
     $msg = $id;
     if ($va == 'cleanbr') {
         $rt = clean_br($id);
     }
     if ($va == 'cleanmail') {
         $rt = convertmail($id);
     }
     if ($va == 'cleanpunct') {
         $rt = clean_punct($id);
     }
     $rt = clean_punct_b($rt);
     if ($va == 'converthtml') {
         $rt = converthtml(nl2br($id));
         $rt = repair_post_treat($rt);
     }
     if ($va == 'easytables') {
         $rt = str_replace('¬', '¬' . "\n", $id);
     }
     if ($va == 'addlines') {
         $rt = add_lines($id);
     }
     if ($va == 'addanchors') {
         $rt = add_anchors($id);
     }
     if ($va == 'deltables') {
         $rt = del_tables($id);
Example #2
0
File: lib.php Project: philum/cms
function clean_title($d)
{
    $nb = " ";
    $d = htmlentities($d);
    $d = html_entity_decode_b($d);
    $d = html_entity_decode($d);
    //$d=clean_acc($d);
    //$d=utflatindecode($d);
    $d = clean_punct_b($d);
    $d = lowercase($d);
    if (substr($d, -1) == '"') {
        $d = substr($d, 0, -1) . $nb . '»';
    }
    if (substr($d, 0, 1) == '"') {
        $d = '«' . $nb . substr($d, 1);
    }
    $d = str_replace(' "', ' «' . $nb, $d);
    $d = str_replace(array('" ', '"'), $nb . '» ', $d);
    $d = ereg_replace("[ ]{2,}", ' ', $d);
    //$d=clean_punct($d);//add clean_acc
    //$d=unescape($d);
    return trim($d);
}