pumpio: Connecting to pumpio should be made much more easier

pull/153/head
Michael Vogel 2013-09-29 21:56:37 +02:00
parent b8213b207a
commit 8e799b0216
4 changed files with 11 additions and 5 deletions

View File

@ -1,11 +1,11 @@
#blogger-enable-label, #blogger-username-label, #blogger-password-label, #blogger-bydefault-label {
#blogger-enable-label, #blogger-username-label, #blogger-password-label, #blogger-bydefault-label, #blogger-blog-label {
float: left;
width: 200px;
margin-top: 10px;
}
#blogger-checkbox, #blogger-username, #blogger-password, #blogger-bydefault {
#blogger-checkbox, #blogger-username, #blogger-password, #blogger-bydefault, #blogger-blog {
float: left;
margin-top: 10px;
}

View File

@ -163,6 +163,9 @@ function pumpio_connect(&$a) {
if($success) {
logger("pumpio_connect: authenticated");
header("Location: ".$a->get_baseurl()."/settings/connectors");
$o .= t("You are now authenticated to pumpio.");
$o .= '<br /><a href="'.$a->get_baseurl().'/settings/connectors">'.t("return to the connector page").'</a>';
} else {
@ -316,6 +319,8 @@ function pumpio_settings_post(&$a,&$b) {
set_pconfig(local_user(),'pumpio','public',$_POST['pumpio_public']);
set_pconfig(local_user(),'pumpio','mirror',$_POST['pumpio_mirror']);
set_pconfig(local_user(),'pumpio','post_by_default',intval($_POST['pumpio_bydefault']));
header("Location: ".$a->get_baseurl()."/pumpio/connect");
}
}
}

View File

@ -313,11 +313,12 @@ function statusnet_settings(&$a,&$s) {
$s .= '<div class="clear"></div>';
$s .= '<label id="statusnet-baseapi-label" for="statusnet-baseapi">'. t("Base API Path \x28remember the trailing /\x29") .'</label>';
$s .= '<input id="statusnet-baseapi" type="text" name="statusnet-baseapi" size="35" /><br />';
$s .= '<p></p><div class="clear"></div></div>';
$s .= '<div class="clear"></div>';
$s .= '<label id="statusnet-applicationname-label" for="statusnet-applicationname">'.t('StatusNet application name').'</label>';
$s .= '<input id="statusnet-applicationname" type="text" name="statusnet-applicationname" size="35" /><br />';
$s .= '<p></p><div class="clear"></div></div>';
$s .= '<p></p><div class="clear"></div>';
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="statusnet-submit" class="settings-submit" value="' . t('Submit') . '" /></div>';
$s .= '</div>';
} else {
/***
* ok we have a consumer key pair now look into the OAuth stuff