chat(); $inc->live(); $inc->operator(); $inc->cobrowse(); if (isset($_GET['opchat']) && isset($_GET['chatid'])) { $chatid = addslashes($_GET['chatid']); } elseif (isset($_GET['opchat']) && !isset($_GET['chatid'])) { $chatid = 'op_'.$GLOBALS['operator']->id(); } else { if (isset($_GET['live']) || isset($_GET['cobrowse']) || isset($_GET['request'])) { $GLOBALS['live']->newvisitor(); $chatid = $GLOBALS['live']->chatid(); } if (isset($_GET['chat']) && isset($_GET['admin'])) { $chatid = addslashes($_GET['chatid']); } else { $GLOBALS['live']->newvisitor(); $chatid = $GLOBALS['live']->chatid(); } if (isset($_GET['monitor']) || isset($_GET['request'])) { $operatorid = $GLOBALS['operator']->id(); } } // Prevent injection foreach ($_GET as $key => $val) { $_GET[$key] = addslashes($val); } foreach ($_POST as $key => $val) { $_POST[$key] = addslashes($val); } $misc_flag = false; $image_flag = false; $monitor_flag = false; $live_flag = false; $cobrowse_flag = false; $request_flag = false; $chat_flag = false; $aardvark_flag = false; $xmlhttprequest_flag = false; ?>