<?php
/**
 * _global/config.php
 *
 * Author: pixelcave
 *
 * Global configuration file
 *
 */
//Database connection
$DATABASE_HOST = 'localhost';
$DATABASE_USER = 'open_dhrx';
$DATABASE_PASS = '*z~7L[jj^cAB[Wta*';
$DATABASE_NAME = 'open_dhrx';
// Try and connect using the info above.
$con = mysqli_connect($DATABASE_HOST, $DATABASE_USER, $DATABASE_PASS, $DATABASE_NAME);

// Check connection
if (!$con) {
    die("Connection failed: " . mysqli_connect_error());
}

// Include required classes
require 'inc/_classes/Template.php';

// **************************************************************************************************
// TEMPLATE OBJECT
// **************************************************************************************************

//                               : Name, version and assets folder's name
$one                             = new Template('iSkorpion', '1.0', 'assets');


// **************************************************************************************************
// GLOBAL META & OPEN GRAPH DATA
// **************************************************************************************************

//                               : The data is added in the <head> section of the page
$one->author                     = 'iSkorpion';
$one->robots                     = 'noindex, nofollow';
$one->title                      = 'DHPUnlocks - Unlocking Your Devices';
$one->description                = 'DHPUnlocks - Unlocking Your Devices by iSkorpion';

//                               : The url of your site, used in Open Graph Meta Data (eg 'https://example.com')
$one->og_url_site                = '';

//                               : The url of your image/logo, used in Open Graph Meta Data (eg 'https://example.com/assets/img/your_logo.png')
$one->og_url_image               = '';


// **************************************************************************************************
// GLOBAL GENERIC
// **************************************************************************************************

// ''                            : default color theme
// 'amethyst'                    : Amethyst color theme
// 'city'                        : City color theme
// 'flat'                        : Flat color theme
// 'modern'                      : Modern color theme
// 'smooth'                      : Smooth color theme
$one->theme                      = '';

// true                          : Enables Page Loader screen
// false                         : Disables Page Loader screen
$one->page_loader                = false;

// true                          : Remembers active color theme and dark mode between pages using
//                                 localStorage when set through
//                                 - Theme helper buttons [data-toggle="theme"],
//                                 - Layout helper buttons [data-toggle="layout" data-action="dark_mode_[on/off/toggle]"]
//                                 - ..and/or One.layout('dark_mode_[on/off/toggle]')
// false                         : Does not remember the active color theme and Dark Mode
$one->remember_theme             = true;


// **************************************************************************************************
// GLOBAL DARK MODE
// **************************************************************************************************

// true                          : Dark Mode enabled
// false                         : Dark Mode disabled
$one->l_dark_mode                = false;


// **************************************************************************************************
// GLOBAL INCLUDED VIEWS
// **************************************************************************************************

//                               : Useful for adding different sidebars/headers per page or per section
$one->inc_side_overlay           = '';
$one->inc_sidebar                = '';
$one->inc_header                 = '';
$one->inc_footer                 = '';


// **************************************************************************************************
// GLOBAL SIDEBAR & SIDE OVERLAY
// **************************************************************************************************

// true                          : Left Sidebar and right Side Overlay
// false                         : Right Sidebar and left Side Overlay
$one->l_sidebar_left             = true;

// true                          : Mini hoverable Sidebar (screen width > 991px)
// false                         : Normal mode
$one->l_sidebar_mini             = false;

// true                          : Visible Sidebar (screen width > 991px)
// false                         : Hidden Sidebar (screen width > 991px)
$one->l_sidebar_visible_desktop  = true;

// true                          : Visible Sidebar (screen width < 992px)
// false                         : Hidden Sidebar (screen width < 992px)
$one->l_sidebar_visible_mobile   = false;

// true                          : Dark themed Sidebar
// false                         : Light themed Sidebar (works with Dark Mode off)
$one->l_sidebar_dark             = true;

// true                          : Hoverable Side Overlay (screen width > 991px)
// false                         : Normal mode
$one->l_side_overlay_hoverable   = false;

// true                          : Visible Side Overlay
// false                         : Hidden Side Overlay
$one->l_side_overlay_visible     = false;

// true                          : Enables a visible clickable (closes Side Overlay) Page Overlay when Side Overlay opens
// false                         : Disables Page Overlay when Side Overlay opens
$one->l_page_overlay             = true;

// true                          : Custom scrolling (screen width > 991px)
// false                         : Native scrolling
$one->l_side_scroll              = true;


// **************************************************************************************************
// GLOBAL HEADER
// **************************************************************************************************

// true                          : Fixed Header
// false                         : Static Header
$one->l_header_fixed             = true;

// true                          : Dark themed Header
// false                         : Light themed Header (works with Dark Mode off)
$one->l_header_dark              = false;


// **************************************************************************************************
// GLOBAL MAIN CONTENT
// **************************************************************************************************

// ''                            : Full width Main Content
// 'boxed'                       : Full width Main Content with a specific maximum width (screen width > 1200px)
// 'narrow'                      : Full width Main Content with a percentage width (screen width > 1200px)
$one->l_m_content                = '';


// **************************************************************************************************
// GLOBAL MAIN MENU
// **************************************************************************************************

// It will get compared with the url of each menu link to make the link active and set up main menu accordingly
// If you are using query strings to load different pages, you can use the following value: basename($_SERVER['REQUEST_URI'])
$one->main_nav_active            = basename($_SERVER['PHP_SELF']);

// You can use the following array to create your main menu
$one->main_nav                   = array();
