View file Live Chat 3/5.0_complete/include/db_new.php

File size: 4.48Kb
<?php

/*===============================================*\
|| ############################################# ||
|| # JAKWEB.CH / Version 5.0.6                 # ||
|| # ----------------------------------------- # ||
|| # Copyright 2023 JAKWEB All Rights Reserved # ||
|| ############################################# ||
\*===============================================*/

// Database connection and setup
define('JAKDB_HOST', 'localhost'); // Database host ## Datenbank Server
define('JAKDB_DBTYPE', 'mysql'); // Database host ## Datenbank Server
define('JAKDB_PORT', 3306); // Enter the database port for your mysql server
define('JAKDB_USER', 'your_db_user_goes_here'); // Database user ## Datenbank Benutzername
define('JAKDB_PASS', 'your_db_password_goes_here'); // Database password ## Datenbank Passwort
define('JAKDB_NAME', 'your_db_name_goes_here'); // Database name ## Datenbank Name
define('JAKDB_PREFIX', 'lc3_'); // Database prefix use (a-z) and (_)

// Define a unique key for your site, don't change after, or people can't login anymore. (https://jakweb.ch/faq/a/99/database-and-password-hash)
define('DB_PASS_HASH', 'something_strong_goes_in_here');

// Define your site url, for example: www.jakweb.ch (https://jakweb.ch/faq/a/98/full-site-domain)
define('FULL_SITE_DOMAIN', 'your_full_site_domain_goes_here');

// URL Rewrite
define('JAK_USE_APACHE', 0); // Use 1 for Apache / Nginx (SEO URL's) or 0 for all others

// Set http or https
define('JAK_SITEHTTPS', 1); // Site is running in HTTP 0 = / HTTPS = 1

// Operator panel
define('JAK_OPERATOR_LOC', 'operator'); // The operator folder, due not change except you have changed the operator folder name as well

// Define cookie path and lifetime
define('JAK_COOKIE_PATH', '/');  // Available in the whole domain
define('JAK_COOKIE_TIME', 60*60*24*30); // 30 days by default

// Choose a cache directory to reduce page and server load
define('JAK_CACHE_DIRECTORY', 'cache');

// Choose the userfiles directory, rename if you like different location
define('JAK_FILES_DIRECTORY', 'files');

// String encryption
define('JAK_STRING_SECRET_KEY', 'file_secret_key');
define('JAK_STRING_SECRET_IV', 'file_secret_iv');

// Operator Time
define('OPERATOR_CHAT_EXPIRE', '7200'); // If we have no activity from the operator it will expire after x seconds

// Important Stuff
define('JAK_SUPERADMIN', '1'); // Undeletable and SuperADMIN User, more user seperate with comma. e.g. 1,4,5,6 (userid)

// !!! ONLY IN COMBINATION WITH (Cloud Desk 3 or Cloud Chat 3) !!! Should you host this for your customer you might want to set some limitations.

// Database connection for the main site where user control is active when used with Live CHAT PHP Server on standalone ignore it.
define('JAKDB_MAIN_HOST', 'localhost'); // Database host ## Datenbank Server
define('JAKDB_MAIN_DBTYPE', 'mysql'); // Database host ## Datenbank Server
define('JAKDB_MAIN_PORT', 3306); // Enter the database port for your mysql server
define('JAKDB_MAIN_USER', ''); // Database user ## Datenbank Benutzername
define('JAKDB_MAIN_PASS', ''); // Database password ## Datenbank Passwort
define('JAKDB_MAIN_NAME', ''); // Database name ## Datenbank Name
define('JAKDB_MAIN_PREFIX', ''); // Database prefix use (a-z) and (_)

// Location ID as defined in your MAIN Database
define('JAK_MAIN_LOC', 1);

// Cloud Chat 3 settings = $jakhs
$jakhs = array();

$jakhs['hostactive'] = 0; // 0 = No, all below will be ignored, 1 = Yes, all below will count.
$jakhs['pricemonth'] = '5'; // Set the price here in a number (e.g. 4.5, 5, 4.99)
$jakhs['operators'] = 5; // 0 = Unlimited, or any number for example 5, will allow to create 5 operators
$jakhs['departments'] = 5; // 0 = Unlimited, or any number for example 5, will allow to create 5 departments
$jakhs['chatwidgets'] = 2; // 0 = Unlimited, or any number for example 5, will allow to create 5 chat widgets
$jakhs['privateopchat'] = 0; // 0 = not available, 1 = available
$jakhs['publicopchat'] = 0; // 0 = not available, 1 = available
$jakhs['groupchat'] = 0; // 0 = not available, 1 = available
$jakhs['copyright'] = '<a href="https://jakweb.ch" target="_blank">Powered by Live Chat 3</a>'; // the copyright link/text e.g. <a href="https://jakweb.ch" target="_blank">Powered by Live Chat 3</a>
$jakhs['files'] = 1; // 0 = not available, 1 = available
$jakhs['filetype'] = ".zip,.rar,.jpg,.jpeg,.png,.gif"; // files allowed to upload for client e.g. .zip,.rar,.jpg,.jpeg,.png,.gif
$jakhs['filetypeo'] = ".zip,.rar,.jpg,.jpeg,.png,.gif"; // files allowed to upload for operator e.g. .zip,.rar,.jpg,.jpeg,.png,.gif
?>