Summary | Embed Polls outside Horde |
Queue | Scry |
Type | Enhancement |
State | Rejected |
Priority | 1. Low |
Owners | |
Requester | mini (at) zaphod (dot) homeunix (dot) com |
Created | 03/22/2005 (7434 days ago) |
Due | |
Updated | 10/23/2005 (7219 days ago) |
Assigned | |
Resolved | 10/23/2005 (7219 days ago) |
Milestone | |
Patch | No |
State ⇒ Rejected
lib/api.php.
I'll write a full patch as soon as I have an idea where to start.
State ⇒ Feedback
method to retrieve a single poll. You could then retrieve the poll
through the RPC interface either by XMLRPC, SOAP, or REST.
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Embed Polls outside Horde
Queue ⇒ Scry
New Attachment: vote.php.patch
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.