[Tickets #1608] NEW: Embed Polls outside Horde

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Mar 22 15:21:48 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1608
-----------------------------------------------------------------------
 Ticket             | 1608
 Created By         | mini at zaphod.homeunix.com
 Summary            | Embed Polls outside Horde
 Queue              | Scry
 State              | New
 Priority           | 1. Low
 Type               | Enhancement
 Owners             | 
+New Attachment     | vote.php.patch
-----------------------------------------------------------------------


mini at zaphod.homeunix.com (2005-03-22 15:21) wrote:

It would be nice to be able to embed polls in pages outside Horde
applications. The attached patch allows you to use code like:
<?php
$options['method'] = 'POST';
$params['url'] = $_SERVER['SCRIPT_URI'];
$params['embed'] = 'php';
$_POST['form_params'] = $params;
$_POST['poll_id'] = 1;
require_once 'HTTP/Request.php';
$http = &new HTTP_Request('http://zaphod.homeunix.com/horde/scry/vote.php',
$options);
$http->addRawPostData($_POST);
$http->sendRequest();
if ($http->getResponseCode() != 200): echo 'Poll not available.';
else: echo $http->getResponseBody();
endif;
?>

There are still poblems with scry/lib/Driver.php when submitting a vote. I
do not have a patch for that yet.




More information about the bugs mailing list