HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/nudepix.eu/public_html/wp-content/plugins/wp-autosocial/fb-access.php
<?php
/*  Copyright 2011  Pau Capó Pons  (email : pau@capo.cat)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as 
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

require('../../../wp-load.php' );

if (!current_user_can('manage_options')) die('meeeeeec!');


$fb_enabled = get_option('fb_enabled');
$fb_appid = get_option('fb_appid');
$fb_appsecret = get_option('fb_appsecret');
$fb_token = get_option('fb_token');

if (isset($_GET['code'])) {
   $fb_code = $_GET['code'];
   $fb_token_url = 'https://graph.facebook.com/oauth/access_token?client_id='.$fb_appid.'&redirect_uri='.urlencode($fb_url).'&client_secret='.$fb_appsecret.'&code='.$fb_code;
   $fb_token = autosocial_graph($fb_token_url);
   parse_str($fb_token, $fb);
   update_option('fb_token', $fb['access_token']);
   update_option('fb_token_time', time());
   update_option('fb_token_expires', $fb['expires']);
   header('Location: '.$plugin_url.'&fb_connect=1');
} else {
   header('Location: '.$plugin_url.'&fb_connect=0');
}

?>