}
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),
$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:")."<select name='post_to_page'>";
}
$url = 'https://graph.facebook.com/me/groups';
- $x = file_get_contents($url."?access_token=".$fb_token);
+ $x = fetch_url($url."?access_token=".$fb_token);
$groups = json_decode($x);
foreach($groups->data as $group) {
$account = get_pconfig($uid,'fromgplus','account');
$key = get_config('fromgplus','key');
- $result = file_get_contents("https://www.googleapis.com/plus/v1/people/".$account."/activities/public?alt=json&pp=1&key=".$key."&maxResults=".$maxfetch);
+ $result = fetch_url("https://www.googleapis.com/plus/v1/people/".$account."/activities/public?alt=json&pp=1&key=".$key."&maxResults=".$maxfetch);
//$result = file_get_contents("google.txt");
//file_put_contents("google.txt", $result);