From: friendica Date: Fri, 14 Dec 2012 04:14:24 +0000 (-0800) Subject: remove other occurrences of file_get_contents() being used to fetch urls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1d233755b48e4cc9a8b67b83da2c93309bb2389a;p=friendica-addons.git remove other occurrences of file_get_contents() being used to fetch urls --- diff --git a/altpager.tgz b/altpager.tgz index cbc64a9e..87bb2f8f 100644 Binary files a/altpager.tgz and b/altpager.tgz differ diff --git a/altpager/altpager.php b/altpager/altpager.php index f5ccbe4d..20517d2f 100755 --- a/altpager/altpager.php +++ b/altpager/altpager.php @@ -93,7 +93,7 @@ function altpager_settings(&$a,&$s) { } function altpager_plugin_admin(&$a, &$o){ - $t = file_get_contents( $a->get_baseurl() . "/addon/altpager/admin.tpl" ); + $t = file_get_contents( "addon/altpager/admin.tpl" ); $o = replace_macros($t, array( '$submit' => t('Submit'), '$global' => array('altpagerchoice', t('Global'), 1, t('Force global use of the alternate pager'), get_config('alt_pager', 'global') == 1), diff --git a/fbpost.tgz b/fbpost.tgz index cd104d65..ecf933d8 100644 Binary files a/fbpost.tgz and b/fbpost.tgz differ diff --git a/fbpost/fbpost.php b/fbpost/fbpost.php index 76c5f672..57c831ce 100644 --- a/fbpost/fbpost.php +++ b/fbpost/fbpost.php @@ -239,7 +239,7 @@ function fbpost_content(&$a) { $page_access_token = get_pconfig(local_user(),'facebook','page_access_token'); $fb_token = get_pconfig($a->user['uid'],'facebook','access_token'); $url = 'https://graph.facebook.com/me/accounts'; - $x = file_get_contents($url."?access_token=".$fb_token); + $x = fetch_url($url."?access_token=".$fb_token); $accounts = json_decode($x); $o .= t("Post to page/group:")."