diff options
Diffstat (limited to 'www/ajaxVote.php')
-rw-r--r-- | www/ajaxVote.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/ajaxVote.php b/www/ajaxVote.php new file mode 100644 index 0000000..27eb62c --- /dev/null +++ b/www/ajaxVote.php @@ -0,0 +1,21 @@ +<?php +/** + * We re-use vote.php but set the ajax flag + */ +$GLOBALS['ajaxRequest'] = true; +require 'vote.php'; + +$bs = SemanticScuttle_Service_Factory::get('Bookmark'); +$ts = SemanticScuttle_Service_Factory::get('Template'); +$bmrow = $bs->getBookmark($bookmark); + +header('Content-Type: text/xml; charset=utf-8'); +echo '<voteresult><bookmark>' . $bookmark . '</bookmark>' + . '<html xmlns="http://www.w3.org/1999/xhtml">'; +$ts->loadTemplate( + 'bookmarks-vote.inc.tpl.php', + array('row' => $bmrow) +); + +echo '</html></voteresult>'; +?>
\ No newline at end of file |