<commit_before><?php
# vim: syntax=php tabstop=4 softtabstop=0 noexpandtab laststatus=1 ruler

/**
 * html/includes/init.php
 *
 * Initialization file for UNetLab.
 *
 * This file include all needed files and variables to run UNetLab. Don't
 * edit this file, it will be overwritten when updating. Create a new file
 * named 'config.php' under /opt/unetlab/html/includes and set some of all
 * the following parameters:
 *
 * define('DATABASE', '/opt/unetlab/data/database.sdb');
 * define('FORCE_VM', 'auto');
 * define('SESSION', '3600');
 * define('THEME', 'default');
 * define('TIMEZONE', 'Europe/Rome');
 *
 * LICENSE:
 *
 * This file is part of UNetLab (Unified Networking Lab).
 *
 * UNetLab is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * UNetLab 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. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with UNetLab. If not, see <http://www.gnu.org/licenses/>.
 *
 * @author <NAME> <<EMAIL>>
 * @copyright 2014-2016 <NAME>
 * @license http://www.gnu.org/licenses/gpl.html
 * @link http://www.unetlab.com/
 * @version 20160126
 */

// Include custom configuration
if (file_exists('includes/config.php')) {
	require_once('includes/config.php');
}

if (!defined('DATABASE')) define('DATABASE', '/opt/unetlab/data/database.sdb');
if (!defined('FORCE_VM')) define('FORCE_VM', 'auto');
if (!defined('MODE')) define('MODE', 'multi-user');
if (!defined('SESSION')) define('SESSION', '3600');
if (!defined('THEME')) define('THEME', 'default');
if (!defined('TIMEOUT')) define('TIMEOUT', 25);
if (!defined('TIMEZONE')) define('TIMEZONE', 'Europe/Rome');

if (!isset($node_config)) {
	$node_config = Array(
		'iol'			=>	'embedded',
		'c1710'			=>	'embedded',
		'c3725'			=>	'embedded',
		'c7200'			=>	'embedded',
		'vpcs'			=>	'embedded',
		'asa'			=>	'config_asa.py',
		'asav'			=>	'config_asav.py',
		'csr1000v'		=>	'config_csr1000v.py',
		'docker'		=>	'config_docker.py',
		'titanium'		=>	'config_titanium.py',
		'veos'			=>	'config_veos.py',
		'viosl2'		=>	'config_viosl2.py',
		'vios'			=>	'config_vios.py',
		'vsrx'			=>	'config_vsrx.py',
		'vsrxng'		=>	'config_vsrxng.py',
		'vmx'			=>	'config_vmx.py',
		'xrv'			=>	'config_xrv.py'
	);
}

if (!isset($node_templates)) {
	$node_templates = Array(
		'a10'			=>	'A10 vThunder',
		'clearpass'		=>	'Aruba ClearPass',
		'timos'			=>	'Alcatel 7750 SR',
		'veos'			=>	'Arista vEOS',
		'brocadevadx'		=>	'Brocade vADX',
		'cpsg'			=>	'CheckPoint Security Gateway VE',
		'docker'		=>	'Docker.io',
		'acs'			=>	'Cisco ACS',
		'asa'			=>	'Cisco ASA',
		'asav'			=>	'Cisco ASAv',
		'cda'			=>	'Cisco Context Directory Agent',
		'csr1000v'		=>	'Cisco CSR 1000V',
		'cips'			=>	'Cisco IPS',
		'ise'			=>	'Cisco ISE',
		'c1710'			=>	'Cisco IOS 1710 (Dynamips)',
		'c3725'			=>	'Cisco IOS 3725 (Dynamips)',
		'c7200'			=>	'Cisco IOS 7206VXR (Dynamips)',
		'iol'			=>	'Cisco IOL',
		'titanium'		=>	'Cisco NX-OSv (Titanium)',
		'sourcefire'		=>	'Cisco Sourcefire',
		'ucspe'			=>	'Cisco UCS-PE',
		'vios'			=>	'Cisco vIOS',
		'viosl2'		=>	'Cisco vIOS L2',
		'vnam'			=>	'Cisco vNAM',
		'vwlc'			=>	'Cisco vWLC',
		'vwaas'			=>	'Cisco vWAAS',
		'coeus'			=>	'Cisco Web Security Appliance',
		'xrv'			=>	'Cisco XRv',
		'nsvpx'			=>	'Citrix Netscaler',
		'cumulus'		=>	'Cumulus VX',
		'extremexos'		=>	'ExtremeXOS',
		'bigip'			=>	'F5 BIG-IP LTM VE',
		'fortinet'		=>	'Fortinet FortiGate',
		//'radware'		=>	'Radware Alteon',
		'hpvsr'			=>	'HP VSR1000',
		'olive'			=>	'<NAME>',
		'vmx'			=>	'Juniper vMX',
		'vsrx'			=>	'Juniper vSRX',
		'vsrxng'		=>	'Juniper vSRX NextGen',
		'linux'			=>	'Linux',
		'mikrotik'		=>	'MikroTik RouterOS',
		'ostinato'		=>	'Ostinato',
		'paloalto'		=>	'Palo Alto VM-100 Firewall',
		//'riverbed'		=>	'Riverbed',
		'sterra'		=>	'S-Terra',
		'vyos'			=>	'VyOS',
		//'esxi'		=>	'VMware ESXi',
		'win'			=>	'Windows',
		'vpcs'			=>	'Virtual PC'
	);
}

// Define parameters
define('VERSION', '1.0.0-7.004-git');
define('BASE_DIR', '/opt/unetlab');
define('BASE_LAB', BASE_DIR.'/labs');
define('BASE_TMP', BASE_DIR.'/tmp');
define('BASE_THEME', '/themes/'.THEME);<commit_msg>Update init.php<commit_after><?php
# vim: syntax=php tabstop=4 softtabstop=0 noexpandtab laststatus=1 ruler

/**
 * html/includes/init.php
 *
 * Initialization file for UNetLab.
 *
 * This file include all needed files and variables to run UNetLab. Don't
 * edit this file, it will be overwritten when updating. Create a new file
 * named 'config.php' under /opt/unetlab/html/includes and set some of all
 * the following parameters:
 *
 * define('DATABASE', '/opt/unetlab/data/database.sdb');
 * define('FORCE_VM', 'auto');
 * define('SESSION', '3600');
 * define('THEME', 'default');
 * define('TIMEZONE', 'Europe/Rome');
 *
 * LICENSE:
 *
 * This file is part of UNetLab (Unified Networking Lab).
 *
 * UNetLab is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * UNetLab 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. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with UNetLab. If not, see <http://www.gnu.org/licenses/>.
 *
 * @author <NAME> <<EMAIL>>
 * @copyright 2014-2016 <NAME>
 * @license http://www.gnu.org/licenses/gpl.html
 * @link http://www.unetlab.com/
 * @version 20160126
 */

// Include custom configuration
if (file_exists('includes/config.php')) {
	require_once('includes/config.php');
}

if (!defined('DATABASE')) define('DATABASE', '/opt/unetlab/data/database.sdb');
if (!defined('FORCE_VM')) define('FORCE_VM', 'auto');
if (!defined('MODE')) define('MODE', 'multi-user');
if (!defined('SESSION')) define('SESSION', '3600');
if (!defined('THEME')) define('THEME', 'default');
if (!defined('TIMEOUT')) define('TIMEOUT', 25);
if (!defined('TIMEZONE')) define('TIMEZONE', 'Europe/Rome');

if (!isset($node_config)) {
	$node_config = Array(
		'iol'			=>	'embedded',
		'c1710'			=>	'embedded',
		'c3725'			=>	'embedded',
		'c7200'			=>	'embedded',
		'vpcs'			=>	'embedded',
		'asa'			=>	'config_asa.py',
		'asav'			=>	'config_asav.py',
		'csr1000v'		=>	'config_csr1000v.py',
		'docker'		=>	'config_docker.py',
		'titanium'		=>	'config_titanium.py',
		'veos'			=>	'config_veos.py',
		'viosl2'		=>	'config_viosl2.py',
		'vios'			=>	'config_vios.py',
		'vsrx'			=>	'config_vsrx.py',
		'vsrxng'		=>	'config_vsrxng.py',
		'vmx'			=>	'config_vmx.py',
		'xrv'			=>	'config_xrv.py'
	);
}

if (!isset($node_templates)) {
	$node_templates = Array(
		'a10'			=>	'A10 vThunder',
		'clearpass'		=>	'Aruba ClearPass',
		'timos'			=>	'Alcatel 7750 SR',
		'veos'			=>	'Arista vEOS',
		'brocadevadx'		=>	'Brocade vADX',
		'cpsg'			=>	'CheckPoint Security Gateway VE',
		'docker'		=>	'Docker.io',
		'acs'			=>	'Cisco ACS',
		'asa'			=>	'Cisco ASA',
		'asav'			=>	'Cisco ASAv',
		'cda'			=>	'Cisco Context Directory Agent',
		'csr1000v'		=>	'Cisco CSR 1000V',
		'cips'			=>	'Cisco IPS',
		'ise'			=>	'Cisco ISE',
		'c1710'			=>	'Cisco IOS 1710 (Dynamips)',
		'c3725'			=>	'Cisco IOS 3725 (Dynamips)',
		'c7200'			=>	'Cisco IOS 7206VXR (Dynamips)',
		'iol'			=>	'Cisco IOL',
		'titanium'		=>	'Cisco NX-OSv (Titanium)',
		'sourcefire'		=>	'Cisco Sourcefire',
		'ucspe'			=>	'Cisco UCS-PE',
		'vios'			=>	'Cisco vIOS',
		'viosl2'		=>	'Cisco vIOS L2',
		'vnam'			=>	'Cisco vNAM',
		'vwlc'			=>	'Cisco vWLC',
		'vwaas'			=>	'Cisco vWAAS',
		'coeus'			=>	'Cisco Web Security Appliance',
		'xrv'			=>	'Cisco XRv',
		'nsvpx'			=>	'Citrix Netscaler',
		'cumulus'		=>	'Cumulus VX',
		'extremexos'		=>	'ExtremeXOS',
		'bigip'			=>	'F5 BIG-IP LTM VE',
		'fortinet'		=>	'Fortinet FortiGate',
		//'radware'		=>	'Radware Alteon',
		'hpvsr'			=>	'HP VSR1000',
		'olive'			=>	'Juniper Olive',
		'vmx'			=>	'Juniper vMX',
		'vsrx'			=>	'Juniper vSRX',
		'vsrxng'		=>	'Juniper vSRX NextGen',
		'linux'			=>	'Linux',
		'mikrotik'		=>	'MikroTik RouterOS',
		'ostinato'		=>	'Ostinato',
		'paloalto'		=>	'Palo Alto VM-100 Firewall',
		//'riverbed'		=>	'Riverbed',
		'sterra'		=>	'S-Terra',
		'vyos'			=>	'VyOS',
		//'esxi'		=>	'VMware ESXi',
		'win'			=>	'Windows',
		'vpcs'			=>	'Virtual PC'
	);
}

// Define parameters
define('VERSION', '1.0.0-7.005-git');
define('BASE_DIR', '/opt/unetlab');
define('BASE_LAB', BASE_DIR.'/labs');
define('BASE_TMP', BASE_DIR.'/tmp');
define('BASE_THEME', '/themes/'.THEME);
{'fraction_non_alphanumeric': 0.19487465181058497, 'fraction_numerical': 0.024289693593314763, 'mean_word_length': 3.815450643776824, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 146, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1964986', 'n_tokens_mistral': 4209, 'n_tokens_neox': 3788, 'n_words': 851}