$ent_double_quotes = isset($_REQUEST['ent_double_quotes']) ? $_REQUEST['ent_double_quotes'] : ''; $ent_lt_gt = isset($_REQUEST['ent_lt_gt']) ? $_REQUEST['ent_lt_gt'] : ''; $ent_hyphenminus = isset($_REQUEST['ent_hyphenminus']) ? $_REQUEST['ent_hyphenminus'] : ''; $safe_numbers = isset($_REQUEST['safe_numbers']) ? $_REQUEST['safe_numbers'] : ''; $safe_latin_chars = isset($_REQUEST['safe_latin_chars']) ? $_REQUEST['safe_latin_chars'] : ''; $p = ''; $p1 = ''; $p3 = ''; $p4 = ''; $p5 = ''; if (!empty($source)) { $p1 = $source; if (!isset($Encrypt) || empty($Encrypt)) { $Encrypt = new Encrypt(); } $p1 = $Encrypt->fix_filename_str($p1); if (!isset($Translit) || empty($Translit)) { $Translit = new Translit(); } $p1 = $Translit->Transliterate($p1); $p1 = $Encrypt->unix_filename($p1); $p = $source; if (!isset($Entities) || empty($Entities)) { $Entities = new Entities(); } $p = $Entities->ipa_text_to_dec_ents($p); /* this replacement should be done before any other conversion to numeric entities */ //$p = $Entities->text_digits_to_dec_ents($p); $p = $Entities->text_symbs_to_dec_ents($p); $p = $Entities->named_symbs_to_dec_ents($p);