false, 'error' => "No valid ID."))); if (!file_exists('../config.php')) die('include/[clientchat.php] config.php not exist'); require_once '../config.php'; if (isset($_SESSION["crossurl"])) unset($_SESSION["crossurl"]); // We do not load any widget code if we are on hosted and and expiring date is true. if ($jakosub['active'] == 0) die(json_encode(array('status' => false, 'error' => "Account expired."))); // Get the client browser $ua = new Browser(); // Is a robot just die if ($ua->isRobot()) die(json_encode(array('status' => false, 'error' => "Robots do not need a embed support area."))); // Set the session for the embed part if (!isset($_SESSION["webembed"])) $_SESSION["webembed"] = true; // Now let's set the category id if we have any $supporturl = str_replace('include/', '', JAK_rewrite::jakParseurl(JAK_SUPPORT_URL)); if (isset($_GET['catid']) && is_numeric($_GET['catid'])) $supporturl = str_replace('include/', '', JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 'c', $_GET['catid'])); // Now get the support frame into the div. die(json_encode(array('status' => true, 'widgethtml' => ''))); ?>