@ 2017-03-30T13:56:22Z <?php
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
/**
* RSS2 Feed Template for displaying RSS2 Posts feed.
*
* @package WordPress
* TARATUR
*/
function getLastCategory ($allcategories)
{
$catArray = explode("\n",$allcategories);
$lastCat = $catArray[count($catArray)-2];
return $lastCat;
}
function transliterate($textCyrillic){
$cyr = array(
'а' ,'б' ,'в' ,'г' ,'д' ,'ѓ' ,'е' ,'ж' ,'з' ,'ѕ' ,'и' ,'ј' ,'к' ,'л' ,'љ' ,'м' ,'н' ,'њ' ,'о' ,'п' ,'р' ,'с' ,'т' ,'ќ' ,'у' ,'ф' ,'х' ,'ц' ,'ч' ,'џ' ,'ш' ,
'А' ,'Б' ,'В' ,'Г' ,'Д' ,'Ѓ' ,'Е' ,'Ж' ,'З' ,'Ѕ' ,'И' ,'Ј' ,'К' ,'Л' ,'Љ' ,'М' ,'Н' ,'Њ' ,'О' ,'П' ,'Р' ,'С' ,'Т' ,'Ќ' ,'У' ,'Ф' ,'Х' ,'Ц' ,'Ч' ,'Џ' ,'Ш','„','”','–','…','Р','“');
$lat = array(
'a' ,'b' ,'v' ,'g' ,'d' ,'gj' ,'e' ,'zh' ,'z' ,'dz' ,'i' ,'j' ,'k' ,'l' ,'lj' ,'m' ,'n' ,'nj' ,'o' ,'p' ,'r' ,'s' ,'t' ,'kj' ,'u' ,'f' ,'h' ,'c' ,'ch' ,'dz', 'sh' ,
'A' ,'B' ,'V' ,'G' ,'D' ,'Gj' ,'E' ,'Zh' ,'Z' ,'Dz' ,'I' ,'J' ,'K' ,'L' ,'Lj' ,'M' ,'N' ,'Nj' ,'O' ,'P' ,'R' ,'S' ,'T' ,'Kj' ,'U' ,'F' ,'H' ,'C' ,'Ch' ,'Dz', 'Sh' ,'"','"','-','...','R','"'); // Ѕ и Џ се исти
return str_replace($cyr, $lat, $textCyrillic);
}
<
$smsContent = transliterate(strip_tags($content));
$smsContent = str_replace(array("\r\n", "\n", "\r"), ' ', $smsContent);
$smsContent = str_replace(" ", ' ', $smsContent);
$smsContent = str_replace("\xc2\xa0", ' ', $smsContent);
$smsContent = preg_replace('!\s+!', ' ', $smsContent);
$smsContent = substr($smsContent, 0, 300);
$smsContent = substr($smsContent,0,strrpos($smsContent," "));
$smsContent = preg_replace('/[^\00-\255]+/u', '', $smsContent);
?>
<SMStext><?php echo $smsContent; ?></SMStext>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 7.1.3 0.357 0.060 36.46 7.1.2 0.030 0.077 36.47 7.1.1 0.017 0.073 20.31 7.1.0 0.007 0.070 20.51 7.0.17 0.007 0.083 20.06 7.0.16 0.017 0.073 20.08 7.0.15 0.007 0.083 20.04 7.0.14 0.380 0.077 20.18 7.0.13 0.363 0.060 20.03 7.0.12 0.057 0.060 20.05 7.0.11 0.007 0.060 19.98 7.0.10 0.010 0.063 20.16 7.0.9 0.013 0.067 20.08 7.0.8 0.320 0.070 20.00 7.0.7 0.013 0.073 20.21 7.0.6 0.013 0.083 20.15 7.0.5 0.013 0.067 20.09 7.0.4 0.013 0.067 20.14 7.0.3 0.017 0.070 20.03 7.0.2 0.013 0.073 20.04 7.0.1 0.020 0.067 20.06 7.0.0 0.183 0.073 20.11
preferences:dark mode live preview
139.92 ms | 1398 KiB | 7 Q