1
0

smartified export.inc.php

This commit is contained in:
onli
2012-02-17 13:27:06 +01:00
parent 55edda14bf
commit e795e4b2ea
2 changed files with 18 additions and 5 deletions

View File

@ -6,10 +6,20 @@ if (IN_serendipity !== true) {
die ("Don't hack!");
}
?>
<div>
<a href="<?php echo $serendipity['baseURL'] ?>rss.php?version=2.0&all=1" class="serendipityPrettyButton input_button"><?php echo EXPORT_FEED; ?></a>
</div>
<?php
if (!is_object($serendipity['smarty'])) {
serendipity_smarty_init();
}
$serendipity['smarty']->assign($data);
$tfile = dirname(__FILE__) . "/export.inc.tpl";
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion;
echo $content;
/* vim: set sts=4 ts=4 expandtab : */
?>

View File

@ -0,0 +1,3 @@
<div>
<a href="{$serendipityBaseURL}rss.php?version=2.0&all=1" class="serendipityPrettyButton input_button">{$CONST.EXPORT_FEED}</a>
</div>