<?PHP
/* JAG Online -------------------------- 06/03/2004 ------------------ v1.31 [6.5~7.1] */
/*                                                                                     */
/*      ////////// //\\ \\\\\\\\\\       Created by Dashe at http://nsd.jagamarog.com  */
/*             // //  \\ \\                                                            */
/*            // //    \\ \\             Email Address:           dashe@jagamarog.com  */
/*           // /////\\\\\ \\   \\\\\                                                  */
/*          // //        \\ \\      \\                                                 */
/*         // //          \\ \\\\\\\\\\                                                */
/* /////////  a g a m a r o g . c o m   N u k e   S c r i p t   D e v e l o p m e n t  */
/*                                                                                     */     
/* Created By Dashe -> http://nsd.jagamarog.com                                        */ 
/*                                                                                     */
/* ----------------------------------------------------------------------------------- */

/* DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING ------------------------------ */

/* Check For Admin Status ------------------------------------------------------------ */
CheckAdmin();

/* Stage 4 --------------------------------------------------------------------------- */
	echo "	<TR>\n";
	echo "		<TD CLASS='catLeft' COLSPAN='2' HEIGHT='28'>\n";
	echo "			<SPAN CLASS='cattitle'>Step 4: Checking for Include Code</SPAN></TD>\n";
	echo "  </TR>\n";
	
	echo "	<TR> \n";
	echo "		<TD CLASS='row1' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
	echo "			Checking includes/my_header.php for appropriate code</TD>\n";

	$i 	 		= 1;
	$lines = file("includes/my_header.php");
	while ($lines[$i] != "")
		{
		if (eregi("include_once\(\"includes/my_header_JAG_Online.php\"\)", "$lines[$i]")) 
			$LineFound = 1;
		$i++;
		}	
	
	if ($LineFound == 1)
		{			
		echo "		<TD CLASS='row2' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
		echo "			<FONT COLOR='$Green'>Code Found</FONT></TD>\n";
		}
	else
		{
		echo "		<TD CLASS='row2' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
		echo "			<FONT COLOR='$Red'><B>Not Found</B></FONT></TD>\n";
		}	

	echo "  </TR>\n";
	
	if ($LineFound != 1)
		{
		$ErrorMsg = 'The include line required in the includes/my_header.php file has not been found. Please add the following line exactly as it is shown below to the includes/my_header.php file and re-run this install.
					<BR><BR>Somewhere between the < ?PHP and ? > tag add this:<BR><BR>
					include_once("includes/my_header_JAG_Online.php");';
		EndNow($ErrorMsg);		
		}
		
	NextStep($goto);
?>