Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <item>
  2.     <title><?php echo htmlspecialchars($pst['title'], ENT_QUOTES); ?></title>
  3.     <link><?php echo $pl=plk($pst['id']); ?></link>
  4.     <description><?php
  5.     $text = explode('[comments]', $pst['raw'], 1);
  6.     $text = str_replace('[comments]', '', $text);
  7.     $fulltext = retex(nl2br($text[0]));
  8.     echo htmlspecialchars($fulltext, ENT_QUOTES);
  9.     ?></description>
  10.     <pubDate><?php echo date("D, d M Y H:i:s ", $pst['id'] + $_s['tmset'] * 3600).'GMT'; ?></pubDate>
  11.     <guid><?php echo $pl; ?></guid>
  12. </item>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement