コード例 #1
0
function queryDB($_log, $_sql, $_serversetup = false, &$_errorCode = -1)
{
    global $DB_CONNECTOR;
    if (!DB_CONNECTION && !(isServerSetup() && !empty(DBManager::$Provider))) {
        if (DEBUG_MODE) {
            logit("Query without connection: " . $_sql, FILE_SQL_ERROR_LOG);
        }
        return false;
    }
    return $DB_CONNECTOR->Query($_log, $_sql, $_errorCode);
}
コード例 #2
0
ファイル: server.php プロジェクト: bgabor/RenaniaOpencart
* All rights reserved.
* LiveZilla is a registered trademark.
* 
* Improper changes to this file may cause critical errors.
***************************************************************************************/
define("IN_LIVEZILLA", true);
define("SAFE_MODE", @ini_get('safe_mode'));
define("LIVEZILLA_PATH", "./");
@error_reporting(E_ALL);
require LIVEZILLA_PATH . "_definitions/definitions.inc.php";
require LIVEZILLA_PATH . "_definitions/definitions.protocol.inc.php";
require LIVEZILLA_PATH . "_lib/functions.global.inc.php";
require LIVEZILLA_PATH . "_lib/objects.global.users.inc.php";
require LIVEZILLA_PATH . "_lib/objects.devices.inc.php";
define("ACCESSTIME", getRuntime());
if (isServerSetup()) {
    CacheManager::Flush();
}
defineURL(FILE_SERVER_FILE);
processHeaderValues();
$DBA = 0;
$RESPONSE = new Response();
if (!isset($_POST[POST_INTERN_ADMINISTRATE]) && isset($_POST["p_request"]) && $_POST["p_request"] == CALLER_TYPE_INTERNAL) {
    header("Content-Type: text/xml; charset=UTF-8");
    if (getIdle()) {
        $RESPONSE->SetValidationError(LOGIN_REPLY_IDLE);
        exit($RESPONSE->GetXML());
    }
    if (!getAvailability() && $_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_LOGIN && !isset($_POST[POST_INTERN_ACCESSTEST])) {
        $RESPONSE->SetValidationError(LOGIN_REPLY_DEACTIVATED);
        exit($RESPONSE->GetXML());
コード例 #3
0
* LiveZilla intern.php
* 
* Copyright 2014 LiveZilla GmbH
* All rights reserved.
* LiveZilla is a registered trademark.
* 
* Improper changes to this file may cause critical errors.
***************************************************************************************/
if (!defined("IN_LIVEZILLA")) {
    die;
}
define("LOGIN", $_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_LOGIN);
define("LOGOFF", isset($_POST[POST_INTERN_USER_STATUS]) && $_POST[POST_INTERN_USER_STATUS] == USER_STATUS_OFFLINE);
define("DB_ACCESS_REQUIRED", DB_CONNECTION && !empty($_POST[POST_INTERN_GET_MANAGEMENT]));
define("NO_CLIPPING", LOGIN || isset($_POST["p_ext_u"]) && $_POST["p_ext_u"] == XML_CLIP_NULL);
define("SERVERSETUP", isServerSetup());
define("MANAGEMENT", !empty($_POST[POST_INTERN_GET_MANAGEMENT]) && SERVERSETUP);
initData(array("INTERNAL", "GROUPS", "VISITOR", "FILTERS", "INPUTS"));
require LIVEZILLA_PATH . "_lib/functions.internal.inc.php";
require LIVEZILLA_PATH . "_lib/objects.internal.inc.php";
validate();
if (isValidated()) {
    getDataUpdateTimes();
    if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_LISTEN || $_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_LOGIN) {
        $INTERNAL[CALLER_SYSTEM_ID]->SaveMobileParameters();
        listenXML();
        if (STATS_ACTIVE && !LOGIN) {
            $STATS->ProcessAction(ST_ACTION_LOG_STATUS, array($INTERNAL[CALLER_SYSTEM_ID]));
        }
    } else {
        if ($_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_INIT_UPLOAD) {