]> git.mxchange.org Git - friendica-addons.git/commitdiff
pumpio: Connecting to pumpio should be made much more easier
authorMichael Vogel <icarus@dabo.de>
Sun, 29 Sep 2013 19:56:37 +0000 (21:56 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 29 Sep 2013 19:56:37 +0000 (21:56 +0200)
.gitignore
blogger/blogger.css
pumpio/pumpio.php
statusnet/statusnet.php

index e1850648d5fbe89b4bcfc301e6a30fd01b34c1ff..39340a425ee8cde5a3516ab2a519d7bcb01ab9bf 100644 (file)
@@ -21,4 +21,4 @@ report/
 /nbproject/private/\r
 \r
 #ignore smarty cache\r
-/view/smarty3/compiled/
\ No newline at end of file
+/view/smarty3/compiled/\r
index 4e2294e5b4e92c0a10d8380d913a8bd485490a5c..2304ef9b1d9dfd3670c3f368f3acc84d4cda93fe 100755 (executable)
@@ -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;
 }
index e9130dd4bc675c986ccf852bb055c1a393f6cb68..a9e611ac7e1f0a5d2cc0631d056d67a595ea4221 100755 (executable)
@@ -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");
                }
        }
 }
index c19065cff8a15b3776d066b874f91eb064ebcdce..2c9795403f9c638a211e136de64c78fe025fb008 100755 (executable)
@@ -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