Exemplo n.º 1
0
function getChatId($_user, $_targetGroup)
{
    if (isset($_POST[POST_EXTERN_CHAT_ID])) {
        return secPrev($_POST[POST_EXTERN_CHAT_ID]);
    } else {
        $result = queryDB(true, "SELECT `chat_id` FROM `" . DB_PREFIX . DATABASE_INFO . "`");
        $row = mysql_fetch_array($result, MYSQL_BOTH);
        $cid = $row["chat_id"] + 1;
        queryDB(true, "UPDATE `" . DB_PREFIX . DATABASE_INFO . "` SET `chat_id`='" . mysql_real_escape_string($cid) . "' WHERE `chat_id`='" . mysql_real_escape_string($row["chat_id"]) . "'");
        if (mysql_affected_rows() == 0) {
            return getChatId();
        } else {
            registerChat($cid, $_targetGroup);
            $_user->AddFunctionCall("lz_chat_set_id('" . $cid . "');", false);
            return $cid;
        }
    }
}
Exemplo n.º 2
0
function getParam($_getParam)
{
    if (isset($_GET[$_getParam])) {
        return secPrev($_GET[$_getParam]);
    } else {
        return null;
    }
}
Exemplo n.º 3
0
    }
} else {
    $TRACKINGSCRIPT = "lz_tracking_set_sessid(\"" . CALLER_USER_ID . "\",\"" . CALLER_BROWSER_ID . "\");";
    if (isset($_GET[GET_TRACK_BROWSERID]) && isset($_GET[GET_TRACK_START]) && isset($_GET[GET_TRACK_URL])) {
        if (!isnull($_GET[GET_TRACK_URL]) && strpos(base64UrlDecode($_GET[GET_TRACK_URL]), GET_INTERN_COBROWSE) !== false) {
            exit("lz_tracking_stop_tracking();");
        }
        $BROWSER = new ExternalBrowser(CALLER_BROWSER_ID, CALLER_USER_ID);
        if (isset($_GET[GET_EXTERN_USER_NAME]) && !isnull($_GET[GET_EXTERN_USER_NAME])) {
            $BROWSER->Fullname = substr(secPrev(base64UrlDecode($_GET[GET_EXTERN_USER_NAME])), 0, 32);
        }
        if (isset($_GET[GET_EXTERN_USER_EMAIL]) && !isnull($_GET[GET_EXTERN_USER_EMAIL])) {
            $BROWSER->Email = substr(secPrev(base64UrlDecode($_GET[GET_EXTERN_USER_EMAIL])), 0, 50);
        }
        if (isset($_GET[GET_EXTERN_USER_COMPANY]) && !isnull($_GET[GET_EXTERN_USER_COMPANY])) {
            $BROWSER->Company = substr(secPrev(base64UrlDecode($_GET[GET_EXTERN_USER_COMPANY])), 0, 50);
        }
        getData(false, false, false, true);
        define("IS_FILTERED", $FILTERS->Match(getIP(), formLanguages(!isnull(getServerParam("HTTP_ACCEPT_LANGUAGE")) ? getServerParam("HTTP_ACCEPT_LANGUAGE") : ""), CALLER_USER_ID));
        define("IS_FLOOD", !dataSetExists($BROWSER->SessionFile) && isFlood());
        if (!getAvailability() || IS_FILTERED || IS_FLOOD) {
            $BROWSER->Destroy();
            exit("lz_tracking_stop_tracking();");
        }
        if (dataSetExists($BROWSER->SessionFile)) {
            $BROWSER->Load();
        }
        $count = count($BROWSER->History);
        if (!dataSetExists($externalUser->ExternalStatic->SessionFile)) {
            createStaticFile($externalUser, array(@$_GET[GET_TRACK_RESOLUTION_WIDTH], @$_GET[GET_TRACK_RESOLUTION_HEIGHT]), @$_GET[GET_TRACK_COLOR_DEPTH], @$_GET[GET_TRACK_TIMEZONE_OFFSET], @$_GET[GEO_LATITUDE], @$_GET[GEO_LONGITUDE], @$_GET[GEO_COUNTRY_ISO_2], @$_GET[GEO_CITY], @$_GET[GEO_REGION], @$_GET[GEO_TIMEZONE], @$_GET[GEO_ISP], @$_GET[GEO_SSPAN], @$_GET[GEO_RESULT_ID]);
        }
Exemplo n.º 4
0
* recommended to desist from editing this file.
* 
***************************************************************************************/
define("IN_LIVEZILLA", true);
if (!defined("LIVEZILLA_PATH")) {
    define("LIVEZILLA_PATH", "./");
}
require LIVEZILLA_PATH . "_definitions/definitions.inc.php";
require LIVEZILLA_PATH . "_definitions/definitions.files.inc.php";
require LIVEZILLA_PATH . "_lib/functions.global.inc.php";
require LIVEZILLA_PATH . "_lib/objects.global.users.inc.php";
require LIVEZILLA_PATH . "_config/config.inc.php";
require LIVEZILLA_PATH . "_definitions/definitions.dynamic.inc.php";
if (isset($_GET["id"]) && setDataProvider()) {
    $id = $_GET["id"];
    if (strpos($id, ".") === false && !isnull($res = getResource(secPrev($id)))) {
        if (file_exists("./uploads/" . $res["value"])) {
            header('Content-Description: File Transfer');
            header('Content-Type: application/octet-stream');
            header('Content-Length: ' . filesize("./uploads/" . $res["value"]));
            header('Content-Disposition: attachment; filename=' . urlencode($res["title"]));
            readfile("./uploads/" . $res["value"]);
        } else {
            header("HTTP/1.0 404 Not Found");
        }
    } else {
        header("HTTP/1.0 404 Not Found");
    }
} else {
    header("HTTP/1.0 404 Not Found");
}