<?php

if ($_SERVER['HTTP_HOST'] == "localhost") {
	// Settings for local midas server do not edit here
	// database settings
	$ARR_CFGS["db_host"] = 'localhost';
	$ARR_CFGS["db_name"] = 'onlineloveproble_db';
	$ARR_CFGS["db_user"] = 'root';
	$ARR_CFGS["db_pass"] = '';
	define('SITE_SUB_PATH', 'Astrologer Arjun Shastri');
}
else {
	// Settings for live server edit whenever shifting site to different server
	// database settings af$rT45
	$ARR_CFGS["db_host"] = 'localhost';
	$ARR_CFGS["db_name"] = 'onlineloveproble_db';
	$ARR_CFGS["db_user"] = 'onlineloveproble_user';
	$ARR_CFGS["db_pass"] = 'adCb[1wYn}*d';
	define('SITE_SUB_PATH', 'Astrologer Arjun Shastri');
};



    $dbconn = new mysqli($ARR_CFGS["db_host"], $ARR_CFGS["db_user"], $ARR_CFGS["db_pass"],$ARR_CFGS["db_name"]);
    $GLOBALS['dbconn']=$dbconn;
    if($dbconn->connect_error) {
        die("Could not connect to database. Please check configuration and ensure MySQL is running.");
    }
	
	$admin_sql = mysqli_query($GLOBALS['dbconn'], "SELECT name,email,cc,bcc,subject,address,companyName,phone,country,mobile,whatsapp_no,city,state,facebook,instagram,linkedin,youtube,twitter,company_video,targetlocation,analitic,mobile_meta,companyLogo,gstno,scroll_text,establish from admin_details");
$admin_res = mysqli_fetch_array($admin_sql);
define('site_url', 'https://www.onlineloveproblemsolutionastrologer.com');
define('admin_url', 'https://www.onlineloveproblemsolutionastrologer.com/wps-admin/');
define('theme_url', 'https://www.onlineloveproblemsolutionastrologer.com/designer/');
define('upload_url', 'https://www.onlineloveproblemsolutionastrologer.com/uploaded-files/');
define('NO_IMG_URL', 'https://www.onlineloveproblemsolutionastrologer.com/uploaded-files/category/images/noimage.jpg');
define('SITE_ADMIN_URL',site_url."/wps-admin");
define('ADMIN_DIR', 'wps-admin');
define('COMPANY', "Astrologer Arjun Shastri");
define('site_key', '6Lf6iisrAAAAAAPOIOn6gwAjGeIin5o3vFvQIvYD');
define('secret_key', '6Lf6iisrAAAAACgmayTmpt5zOuDrmJfTb7xq_MxY');

$_GLOBALS['pgsize_arr']=array("1","5","10","25","50","100");
?>