<?php
$http_local_hosts = array("localhost", "bs.localhost");
if (in_array($_SERVER["HTTP_HOST"], $http_local_hosts)) {
	$absDom = "http://am.localhost";
} else {
	$absDom = "http://www.angkamimpi.com";
}
if (!defined("absDom")) {
	define("absDom", $absDom);
}

if (!defined("development")) {
	define("development", 1);
}
if (!defined("useTotalAjax")) {
	define("useTotalAjax", 0);
}

if (!isset($_SESSION["user"])) {
	#echo 'sesi kosong';
	if ($pageName=="login") {
		#echo '<br/>page login';
	} else {
		header("Location: /".adminFolder."/login/");
		#echo '<br/>bukan page login';
	}
} else {
	#echo 'sesi ada';
}
?>