From: Friendika Date: Mon, 7 Nov 2011 22:25:11 +0000 (-0800) Subject: use request var for post enable settings so can be scripted X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=92358453faaa735b62e64b1f0b74b063ddff8b9c;p=friendica-addons.git use request var for post enable settings so can be scripted --- diff --git a/facebook.tgz b/facebook.tgz index 3f21bdc4..2eeb5f4f 100644 Binary files a/facebook.tgz and b/facebook.tgz differ diff --git a/facebook/facebook.php b/facebook/facebook.php index 3c0a2a04..268f79b1 100644 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -743,10 +743,10 @@ function facebook_post_local(&$a,&$b) { if((local_user()) && (local_user() == $b['uid'])) { $fb_post = intval(get_pconfig(local_user(),'facebook','post')); - $fb_enable = (($fb_post && x($_POST,'facebook_enable')) ? intval($_POST['facebook_enable']) : 0); + $fb_enable = (($fb_post && x($_REQUEST,'facebook_enable')) ? intval($_REQUEST['facebook_enable']) : 0); // if API is used, default to the chosen settings - if($_POST['api_source'] && intval(get_pconfig(local_user(),'facebook','post_by_default'))) + if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'facebook','post_by_default'))) $fb_enable = 1; if(! $fb_enable) diff --git a/statusnet.tgz b/statusnet.tgz index fcb40767..93ae0e58 100644 Binary files a/statusnet.tgz and b/statusnet.tgz differ diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 0020b4b5..c29ea2ed 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -362,10 +362,10 @@ function statusnet_post_local(&$a,&$b) { if((local_user()) && (local_user() == $b['uid']) && (! $b['private'])) { $statusnet_post = get_pconfig(local_user(),'statusnet','post'); - $statusnet_enable = (($statusnet_post && x($_POST,'statusnet_enable')) ? intval($_POST['statusnet_enable']) : 0); + $statusnet_enable = (($statusnet_post && x($_REQUEST,'statusnet_enable')) ? intval($_REQUEST['statusnet_enable']) : 0); // if API is used, default to the chosen settings - if($_POST['api_source'] && intval(get_pconfig(local_user(),'statusnet','post_by_default'))) + if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'statusnet','post_by_default'))) $statusnet_enable = 1; if(! $statusnet_enable) diff --git a/twitter.tgz b/twitter.tgz index 0ddf1924..f4fcc79c 100644 Binary files a/twitter.tgz and b/twitter.tgz differ diff --git a/twitter/twitter.php b/twitter/twitter.php index 7218e8ec..6f13a443 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -214,10 +214,10 @@ function twitter_post_local(&$a,&$b) { if((local_user()) && (local_user() == $b['uid']) && (! $b['private']) && (! $b['parent']) ) { $twitter_post = intval(get_pconfig(local_user(),'twitter','post')); - $twitter_enable = (($twitter_post && x($_POST,'twitter_enable')) ? intval($_POST['twitter_enable']) : 0); + $twitter_enable = (($twitter_post && x($_REQUEST,'twitter_enable')) ? intval($_REQUEST['twitter_enable']) : 0); // if API is used, default to the chosen settings - if($_POST['api_source'] && intval(get_pconfig(local_user(),'twitter','post_by_default'))) + if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'twitter','post_by_default'))) $twitter_enable = 1; if(! $twitter_enable) diff --git a/wppost.tgz b/wppost.tgz index fd0d262b..c76b4138 100644 Binary files a/wppost.tgz and b/wppost.tgz differ diff --git a/wppost/wppost.php b/wppost/wppost.php index b987778a..235aa823 100644 --- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -132,9 +132,9 @@ function wppost_post_local(&$a,&$b) { $wp_post = intval(get_pconfig(local_user(),'wppost','post')); - $wp_enable = (($wp_post && x($_POST,'wppost_enable')) ? intval($_POST['wppost_enable']) : 0); + $wp_enable = (($wp_post && x($_REQUEST,'wppost_enable')) ? intval($_REQUEST['wppost_enable']) : 0); - if($_POST['api_source'] && intval(get_pconfig(local_user(),'wppost','post_by_default'))) + if($_REQUEST['api_source'] && intval(get_pconfig(local_user(),'wppost','post_by_default'))) $wp_enable = 1; if(! $wp_enable)