#returnbob.com
ob_start();
session_start ();
mb_internal_encoding("UTF-8");
header("Content-Type: text/html; charset=utf-8");
#load time count
$time_load = microtime();
$time_load = explode(' ', $time_load);
$time_load = $time_load[1] + $time_load[0];
$start_load = $time_load;
include("config.inc.php");
#$iqb_url = "https://".$_SERVER['HTTP_HOST']."/";
#echo $iqb_url."resources/library/css/bootstrap.css";
$request_full = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$request = str_replace($root_folder, "/", $_SERVER['REQUEST_URI']);
$url_pages = $teile = explode("/", $request);
$user_lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
switch ($user_lang) {
#case 'de':
#$lang_file = 'de.lang.php';
#break;
default:
$lang_file = 'en.lang.php';
}
include_once 'resources/library/languages/'.$lang_file;
require_once('resources/library/src/facebook.php');
require_once 'fb_functions.php';
#Facebook - Configuration
$config = array(
'appId' => $fb_appID,
'secret' => $fb_appSEC,
);
$facebook = new Facebook($config);
$user_id = $facebook->getUser();
if(empty($url_pages["1"]))
{
header('Location: '.$iqb_url.'dashboard');
}
else
{
$sql_object_type=mysqli_query($db_connect_returnbob,"SELECT object_type,object_key,object_content,object_og_title, object_og_img, object_og_site_name, object_og_description,object_user_id FROM object where object_key='".mysqli_real_escape_string($db_connect_returnbob,$url_pages["1"])."' AND object_active !='off'
UNION ALL
SELECT nav_type,nav_name,nav_value,nav_value2,nav_content,nav_position,nav_active,nav_admin FROM navigation where nav_value='".mysqli_real_escape_string($db_connect_returnbob,$url_pages["1"])."'");
$sql_object_type_check = mysqli_num_rows($sql_object_type);
while($sql_object_type_daten = mysqli_fetch_array($sql_object_type))
{
$object_type = $sql_object_type_daten['object_type'];
$object_key = $sql_object_type_daten['object_key'];
$object_content = $sql_object_type_daten['object_content'];
$object_og_title = $sql_object_type_daten['object_og_title'];
$object_og_img = $sql_object_type_daten['object_og_img'];
$object_og_site_name = $sql_object_type_daten['object_og_site_name'];
$object_og_description = $sql_object_type_daten['object_og_description'];
$object_user_id = $sql_object_type_daten['object_user_id'];
#echo $object_user_id;
// get host name from URL
preg_match('@^(?:https://)?([^/]+)@i',$sc_referer, $matches);
$host = $matches[1];
// get last two segments of host name
preg_match('/[^.]+\.[^.]+$/', $host, $matches);
$sc_referer_domain = "{$matches[0]}";
$sc_ip = getenv("REMOTE_ADDR"); // IP bestimmen
$sc_ip_host = gethostbyaddr($sc_ip); // IP auflösen und Host bestimmen
$sc_timestamp = time();
$sc_referer = $_SERVER['HTTP_REFERER'];
$sc_user_agent=$_SERVER['HTTP_USER_AGENT'];
@$country = json_decode(file_get_contents("https://ipinfo.io/{$sc_ip}"));
$sc_user_country =$country->country; // -> "US"
$sc_user_city =$country->city; // -> "US"
#echo $object_type;
#echo preg_match("/id/",$object_type);
if(preg_match("/id/",$object_type)=='1')
{
$object_type="mid";
}
else
{
$sql_static_snds= "INSERT INTO static (sc_id, sc_app, sc_type, sc_host, sc_track, sc_ip, sc_ip_host, sc_timestamp,sc_referer_domain, sc_referer,sc_user_agent,sc_os,sc_browser,sc_user_country,sc_user_city,sc_pattern) VALUES ('', 'track', 'track', '".$object_user_id."','".$object_key."','".$sc_ip."','".$sc_ip_host."','".$sc_timestamp."','".$sc_referer_domain."','".$sc_referer."','".$sc_user_agent."','".$sc_os."','".$sc_browser."','".$sc_user_country."','".$sc_user_city."','".$url_pages["2"]."')";
mysqli_query($db_connect_returnbob,$sql_static_snds) or die('Check Error, check INSERT failed!');
}
switch ($object_type)
{
case ("object") :
$nid = "report";
$code_set = $url_pages["1"];
break;
case (crb) :
$nid = "report";
$code_set = $url_pages["1"];
break;
case (CRB) :
$nid = "report";
$code_set = $url_pages["1"];
break;
case (page):
$nid = "page";
break;
case (WIFI):
$nid = "page";
break;
case (COM):
$nid = "page";
break;
case (url):
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.$object_content);
break;
case (URL):
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.$object_content);
break;
case (mid):
$nid=$url_pages["1"];
break;
case (qr):
$path="https://".$_SERVER['HTTP_HOST']."/resources/library/qr_database/data"; # You must set path to data files.
$image_path="https://".$_SERVER['HTTP_HOST']."/resources/library/qr_database/image"; # You must set path to QRcode frame images.
$version_ul=120; # upper limit for version
$sc_track_key = $url_pages["2"];
?>
exit();
break;
case (api):
include("resources/library/php/api.php");
exit();
break;
case (apiv2):
include("resources/library/php/apiv2.php");
exit();
break;
case ("sys"):
include("resources/library/php/card.php");
exit();
break;
}
}
}
?>
echo "We’re on a mission to make your web business easier, more enjoyable and productive."; ?>if((!empty($_POST["object_content"]))){?>