HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/public_html/crm/custom/include/social/get_data.php
<?php

/*
 * @author Salesagility Ltd <support@salesagility.com>
 * Date: 15/01/14
 * Time: 09:14
 */


//Grab the twitter and facebook values from the request.

$social = $_REQUEST['social'];
$twitter_user = $_REQUEST['twitter_user'];

if(!empty($_REQUEST['code'])){
    include("config.php");
    //nasty way of fixing the facebook login bug.
    header("Location: " . $sugar_config['site_url'] . "?module=" . $_REQUEST['module'] . "&action=DetailView&record=" . $_REQUEST['record'] . "&");
}

//If its facebook or twitter call the relevent file.
    switch($social){

        case "facebook":
            require("custom/include/social/facebook/facebookapi.php");
            break;
        case "twitter";
            require("custom/include/social/twitter/twitterapi.php");
            break;
    }