<?php

//Set all date and time to Jakarta time
date_default_timezone_set("Asia/Jakarta");

if (preg_match('/config.php/i', $_SERVER['PHP_SELF']))
{ header("location: 404_not_found.php");
  }
else
{ $prefixho="doto_ho_";

		$db_appauthorization=$prefixho."appauthorization";
		$db_appauthorizationapproval=$prefixho."appauthorizationapproval";
		$db_appmenu=$prefixho."appmenu";
		$db_appuser=$prefixho."appuser";
		$db_appuserapproval=$prefixho."appuserapproval";
		$db_appusergroup=$prefixho."appusergroup";
		$db_appusergroupapproval=$prefixho."appusergroupapproval";
		$db_banktujuanbayar=$prefixho."banktujuanbayar";
		$db_carabayarlunas=$prefixho."carabayarlunas";
		$db_carabayartandajadi=$prefixho."carabayartandajadi";
		$db_channel=$prefixho."channel";
		$db_cicilan=$prefixho."cicilan";
		$db_debitur=$prefixho."debitur";
		$db_disclaimer=$prefixho."disclaimer";
		$db_download=$prefixho."download";
		$db_item=$prefixho."item";
		$db_itemprice=$prefixho."itemprice";
		$db_kategoribarang=$prefixho."kategoribarang";
		$db_kategoribisnis=$prefixho."kategoribisnis";
		$db_kategoripelanggan=$prefixho."kategoripelanggan";
		$db_kota=$prefixho."kota";
		$db_logakses=$prefixho."logakses";
		$db_merek=$prefixho."merek";
		$db_model=$prefixho."model";
		$db_nilaidp=$prefixho."nilaidp";
		$db_parent_menu=$prefixho."parent_menu";
		$db_propinsi=$prefixho."propinsi";
		$db_spekmotor=$prefixho."spekmotor";
		$db_thnproduksi=$prefixho."thnproduksi";
		$db_voucher=$prefixho."voucher";
		$db_warna=$prefixho."warna";
		$db_wilayahotr=$prefixho."wilayahotr";

		$prefixrkn="doto_rkn_";

		$db_appauthorization2=$prefixrkn."appauthorization";
		$db_appauthorizationapproval2=$prefixrkn."appauthorizationapproval";
		$db_appmenu2=$prefixrkn."appmenu";
		$db_appuser2=$prefixrkn."appuser";
		$db_appuserapproval2=$prefixrkn."appuserapproval";
		$db_appusergroup2=$prefixrkn."appusergroup";
		$db_appusergroupapproval2=$prefixrkn."appusergroupapproval";
		// doto_rkn_bpkbstnk
		$db_lunasbayar=$prefixrkn."lunasbayar";
		$db_papproval=$prefixrkn."papproval";
		$db_parent_menu2=$prefixrkn."parent_menu";
		$db_pbatal=$prefixrkn."pbatal";
		$db_pdetailapproval=$prefixrkn."pdetailapproval";
		$db_pdetailok=$prefixrkn."pdetailok";
		$db_pelunasan=$prefixrkn."pelunasan";
		$db_pengiriman=$prefixrkn."pengiriman";
		$db_pesanan=$prefixrkn."pesanan";
		$db_pesanandetail=$prefixrkn."pesanandetail";
		$db_pesanannote=$prefixrkn."pesanannote";
		$db_pfakturapproval=$prefixrkn."pfakturapproval";
		$db_pok=$prefixrkn."pok";
		$db_rekanan=$prefixrkn."rekanan";
		$db_toko=$prefixrkn."toko";
				
		// Useful variables
		$namaaplikasi="DMMXOTO.ID";
		$namadomain="";
		$wktsekarang=date("d-m-Y H:i:s");
		$wktsekarangdb=date("Y-m-d H:i:s");
		$tglhariini=date("Y-m-d");
		$jamsekarang=date("H:i:s");
		$linkback="<a href='javascript:history.back(-1)'>Halaman Sebelumnya</a>";
		$linkhome="<a href='index.php'>Dashboard</a>";
		$loginstarttime="00:00:01";
		$loginendtime="23:59:59";
		}

?>
