<?php

/*************************************************************************************************
 * Copyright 2016 JPL TSolucio, S.L. -- This file is a part of TSOLUCIO coreBOS Customizations.
 * Licensed under the vtiger CRM Public License Version 1.1 (the "License"); you may not use this
 * file except in compliance with the License. You can redistribute it and/or modify it
 * under the terms of the License. JPL TSolucio, S.L. reserves all rights not expressly
 * granted by the License. coreBOS distributed by JPL TSolucio S.L. is distributed in
 * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Unless required by
 * applicable law or agreed to in writing, software distributed under the License is
 * distributed on an "AS IS" BASIS, WITHOUT ANY WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language governing
 * permissions and limitations under the License. You may obtain a copy of the License
 * at <http://corebos.org/documentation/doku.php?id=en:devel:vpl11>
 *************************************************************************************************
 *  This file is included within "DetailView.tpl" to provide SESSION value to smarty template
 *************************************************************************************************/
require_once 'include/utils/Session.php';
coreBOS_Session::init();
$aAllBlockStatus = $_SESSION['BLOCKINITIALSTATUS'];
$this->assign("BLOCKINITIALSTATUS", $aAllBlockStatus);
Exemple #2
0
    $view = $_REQUEST["view"];
    $_SESSION['view'] = $view;
}
/** Function to set, character set in the header, as given in include/language/*_lang.php */
function insert_charset_header()
{
    global $app_strings, $default_charset;
    $charset = $default_charset;
    if (isset($app_strings['LBL_CHARSET'])) {
        $charset = $app_strings['LBL_CHARSET'];
    }
    header('Content-Type: text/html; charset=' . $charset);
}
insert_charset_header();
// Create or reestablish the current session
coreBOS_Session::init(true);
if (!is_file('config.inc.php')) {
    header("Location: install.php");
    exit;
}
require_once 'config.inc.php';
if (!isset($dbconfig['db_hostname']) || $dbconfig['db_status'] == '_DB_STAT_') {
    header("Location: install.php");
    exit;
}
// load up the config_override.php file.  This is used to provide default user settings
if (is_file('config_override.php')) {
    require_once 'config_override.php';
}
// load global help links
require_once 'config.help.link.php';