<?php

// CONNECT TO  IRIS DATABASE
// MySQL HOSTNAME
const DB_HOST_IRIS = '62.182.18.252';

// MySQL DATABASE NAME
const DB_NAME_IRIS = 'iriswebportalliv_dbv4';
const DB_NAME_IRIS_OLD = 'iriswebportalliv_db';

// MySQL USERNAME
const DB_USER_IRIS = 'iriswebportalliv_site';

// MySQL PASSWORD
const DB_PASSWORD_IRIS = 'ZKg0HFIBD$sk';

// IRIS DATABSE GLOBAL VARIABLE
$iris_db = new wpdb( DB_USER_IRIS, DB_PASSWORD_IRIS, DB_NAME_IRIS, DB_HOST_IRIS );
$iris_db_old = new wpdb( DB_USER_IRIS, DB_PASSWORD_IRIS, DB_NAME_IRIS_OLD, DB_HOST_IRIS );

const PRODUCT_NAME = 'IRIS WebPortal';
const PRODUCT_WEBSITE = 'https://iriswebportal.co.uk';

const PACKAGE_1 = 'Essentials';
const PACKAGE_2 = 'Select';
const PACKAGE_3 = 'Professional';
const PACKAGE_4 = 'Signature';
const PACKAGE_5 = 'Template Standard';
const PACKAGE_6 = 'Template Advanced';
const PACKAGE_7 = 'Bespoke Standard';
const PACKAGE_8 = 'Bespoke Advanced';

// SUPPORT DETAILS
const OW_SUPPORT_PHONE = '0845 544 0182';
const OW_SUPPORT_EMAIL = 'support@irisopenwebsite.co.uk';
const OW_SUPPORT_RESPONSE_TIME = 48; # HOURS

const OW_ADMIN_EMAIL = 'ow.admin@iris.co.uk';
define( 'OW_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); 

// FILE INCLUDES

// DEVELOPER CONSOLE
include OW_PLUGIN_PATH . 'developer-console/index.php';

// FUNCTION FILE
include OW_PLUGIN_PATH . 'functions.php';

// ADMIN AREA
if ( is_admin() ) {
	include OW_PLUGIN_PATH . 'admin/index.php';
}

// COMPONENTS
foreach ( glob( OW_PLUGIN_PATH . 'components/*.php' ) as $file ) {
	include $file;
}

// MEDIA HUB
include OW_PLUGIN_PATH . 'media/media-hub.php';

// WORDPRESS CLEAN
include OW_PLUGIN_PATH . 'wp-clean.php';

//----------------------------------------------------------------------------------------------------------------------
