Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (26 sloc) 0.782 kb
<?php
require_once('dia/api.php');
require_once('settings.php');
$DIA = new DemocracyInAction_API( $node, $user, $password);
$d = $_REQUEST;
$s_a = array(
'key' => $d['key'],
'personal_petition' => '1',
'personal_message' => $d['personal_message'],
'signature_goal' => $d['signature_goal'],
'email_message' => $d['email_message'],
'facebook_message' => $d['facebook_message'],
'twitter_message' => $d['twitter_message']
);
$DIA->save('supporter_action', $s_a ) ;
if (($d['email_trigger_KEYS']) && ($d['Email']) ){
$s['email_trigger_KEYS']= $d['email_trigger_KEYS'];
$s['Email']= $d['Email'];
}
if ($d['image']) {
$s['image']= $d['image'];
}
$s['key']= $d['linkKey'];
$DIA->save('supporter', $s ) ;
header('Location: '.$d['redirect']);
?>
Jump to Line
Something went wrong with that request. Please try again.