<?php /* 1: SET: HTML Meta, Location Array */ 	{ $GLOBALS["alkitab"] = array();
	$GLOBALS["alkitab"]["htmlmeta"]["fulluri"] = (server() == "q.com"?"http://":"https://").server();
	$GLOBALS["alkitab"]["htmlmeta"]["title"] = "Al Kitab | That Book of Guidance for the Awoken ones";
	$GLOBALS["alkitab"]["htmlmeta"]["img"] = (server() == "q.com"?"http://":"https://").server().dir_img()."bismillah-wide.png";
	$GLOBALS["alkitab"]["htmlmeta"]["imgsq"] = (server() == "q.com"?"http://":"https://").server().dir_img()."bismillah-sq.png";			
	$GLOBALS["alkitab"]["htmlmeta"]["desc"] = "The Book that cures the illness, gives life to dead, and brings out of the darkness into the light.";
	$GLOBALS["alkitab"]["htmlmeta"]["kywrds"] = "light, freedom, emancipation, God, salaat, islam, zakaat";
	if (is_home()) { $GLOBALS["alkitab"]["location"] = "Home"; }
	elseif (is_search() && (sanitizeURI() == "_translated") ) { 
		$GLOBALS["alkitab"]["htmlmeta"]["title"] = "Al Kitab Translated Verses Map";
		$GLOBALS["alkitab"]["htmlmeta"]["fulluri"] = (server() == "q.com"?"http://":"https://").server()."/_translated";
		$GLOBALS["alkitab"]["location"][0] = "";
	}
	elseif (is_search() && (sanitizeURI() == "_topics") ) { 
		$GLOBALS["alkitab"]["htmlmeta"]["title"] = "Al Kitab Topics";
		$GLOBALS["alkitab"]["htmlmeta"]["fulluri"] = (server() == "q.com"?"http://":"https://").server()."/_topics";
		$GLOBALS["alkitab"]["location"][0] = "";
	}
	elseif (is_search())	{ 
		$GLOBALS["alkitab"]["location"]["format"] = "LanguageSearch";
		$GLOBALS["alkitab"]["location"][0] = sanitizeURI();
		$GLOBALS["alkitab"]["htmlmeta"]["title"] = "Al Kitab Search: [ ". sanitizeURI() . " ]";
		$GLOBALS["alkitab"]["htmlmeta"]["fulluri"] = (server() == "q.com"?"http://":"https://").server()."/?s=".sanitizeURI();		
	}
	elseif	(is_rngpttrn()) 										{ $x = properpatternify(sanitizeURI());
			$GLOBALS["alkitab"]["location"]["format"] = "RangePattern";
			$GLOBALS["alkitab"]["location"]["format"] = "Range";
			$GLOBALS["alkitab"]["location"][0] = $x[0];
			$GLOBALS["alkitab"]["location"][1] = $x[1];
			$GLOBALS["alkitab"]["location"][2] = $x[2];
			$GLOBALS["alkitab"]["location"][3] = $x[3];
			$GLOBALS["alkitab"]["htmlmeta"]["title"] = "Al Kitab: [from: ". $x[0]."/".$x[1]." to: ". $x[2]."/".$x[3]."]";
			$GLOBALS["alkitab"]["htmlmeta"]["fulluri"] = (server() == "q.com"?"http://":"https://").server()."/?s=".$x[0]."/".$x[1]." — ". $x[2]."/".$x[3];
			$GLOBALS["alkitab"]["htmlmeta"]["img"] = (server() == "q.com"?"http://":"https://").server()."/dist/img/verses/w/$x[0]_1.png";
			$GLOBALS["alkitab"]["htmlmeta"]["imgsq"] = (server() == "q.com"?"http://":"https://").server()."/dist/img/verses/s/$x[0]_1.png";						
	}
	elseif	(is_svpttrn()) 											{ $x = properpatternify(sanitizeURI());
		$GLOBALS["alkitab"]["location"]["format"] = "SinglePattern";
		$GLOBALS["alkitab"]["location"][0] = $x[0];
		$GLOBALS["alkitab"]["location"][1] = $x[1];
		$GLOBALS["alkitab"]["location"]["chapter_eng"] = $y[1] = quran_data($x[0], "name_eng");
		$GLOBALS["alkitab"]["location"]["chapter_arb"] = $y[2] = quran_data($x[0], "name_arb");
		$GLOBALS["alkitab"]["htmlmeta"]["title"] = "Al Kitab: [Ayat ".$x[1]." of Chapter ".$x[0]." (".$y[2]." - ".$y[1].")]";
		$GLOBALS["alkitab"]["htmlmeta"]["fulluri"] = (server() == "q.com"?"http://":"https://").server()."/?s=".$x[0]."/".$x[1];
		$GLOBALS["alkitab"]["htmlmeta"]["img"] = (server() == "q.com"?"http://":"https://").server()."/dist/img/verses/w/$x[0]_$x[1].png";
		$GLOBALS["alkitab"]["htmlmeta"]["imgsq"] = (server() == "q.com"?"http//":"https//").server()."/dist/img/verses/s/$x[0]_$x[1].png";		
	}
	elseif	(is_chapter() || !empty($GLOBALS["fullsurah"])) 											{ $x = sanitizeURI();
		$GLOBALS["alkitab"]["location"]["format"] = "SingleChapter";
		$GLOBALS["alkitab"]["location"][0] = $x;
		$GLOBALS["alkitab"]["location"]["chapter_eng"] = $y[1] = quran_data($x, "name_eng");
		$GLOBALS["alkitab"]["location"]["chapter_arb"] = $y[2] = quran_data($x, "name_arb");
		$GLOBALS["alkitab"]["location"]["totalverses"] = $y[3] = quran_data($x, "verses");
		$GLOBALS["alkitab"]["htmlmeta"]["title"] = "Al Kitab Chapter: [".$x." - ".$y[2]." - ".$y[1]."]";
		$GLOBALS["alkitab"]["htmlmeta"]["fulluri"] = (server() == "q.com"?"http//":"https//").server()."/".sanitizeURI();
		$GLOBALS["alkitab"]["htmlmeta"]["img"] = (server() == "q.com"?"http://":"https://").server()."/dist/img/verses/w/$x[0]_1.png";
		$GLOBALS["alkitab"]["htmlmeta"]["imgsq"] = (server() == "q.com"?"http//":"https//").server()."/dist/img/verses/s/$x[0]_1.png";				
	}
	else { $GLOBALS["alkitab"]["location"] = "Error"; }
	function is_error() { return($GLOBALS["alkitab"]["location"] == "Error")?true:false; }
	
}
?>