/**
 * Define a variable that will tell header.php if session_start()
 * needs to be called or not (since it is also called from
 * session_check.php
 */
$is_template = true;
/**
 * Loads a language file from the current template folder based on
 * the system options.
 */
$lang = SITE_LANG;
if (!isset($ld)) {
    $ld = 'cftp_admin';
}
require_once ROOT_DIR . '/includes/classes/i18n.php';
I18n::LoadDomain(ROOT_DIR . "/templates/" . TEMPLATE_USE . "/lang/{$lang}.mo", $ld);
$this_template = BASE_URI . 'templates/' . TEMPLATE_USE . '/';
include_once ROOT_DIR . '/templates/session_check.php';
/**
 * URI to the default template CSS file.
 */
$this_template_css = BASE_URI . 'templates/' . TEMPLATE_USE . '/main.css';
$database->MySQLDB();
/**
 * Get all the client's information
 */
$client_info = get_client_by_username($this_user);
/**
 * Get the list of different groups the client belongs to.
 */
$sql_groups = $database->query("SELECT DISTINCT group_id FROM tbl_members WHERE client_id='" . $client_info['id'] . "'");
 * on the footer blocks.
 *
 */
define('SYSTEM_URI', 'http://www.projectsend.org/');
define('SYSTEM_URI_LABEL', 'ProjectSend on Google Code');
define('DONATIONS_URL', 'http://www.projectsend.org/donations/');
/** Previously cFTP */
define('SYSTEM_NAME', 'ProjectSend');
define('LOGO_FOLDER', ROOT_DIR . '/img/custom/logo/');
define('LOGO_THUMB_FOLDER', ROOT_DIR . '/img/custom/thumbs/');
/**
 * Current system language
 *
 * @see sys.config.sample.php
 */
$lang = SITE_LANG;
define('I18N_DEFAULT_DOMAIN', 'cftp_admin');
require_once ROOT_DIR . '/includes/classes/i18n.php';
I18n::LoadDomain(ROOT_DIR . "/lang/{$lang}.mo", 'cftp_admin');
/** System User Roles names */
$user_role_9_name = __('System Administrator', 'cftp_admin');
$user_role_8_name = __('Account Manager', 'cftp_admin');
$user_role_7_name = __('Uploader', 'cftp_admin');
$user_role_0_name = __('Client', 'cftp_admin');
define('USER_ROLE_LVL_9', $user_role_9_name);
define('USER_ROLE_LVL_8', $user_role_8_name);
define('USER_ROLE_LVL_7', $user_role_7_name);
define('USER_ROLE_LVL_0', $user_role_0_name);
/** phpass */
define('HASH_COST_LOG2', 8);
define('HASH_PORTABLE', false);