<?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 2 --------------------------------------------------------------------------- */
	echo "	<TR>\n";
	echo "		<TD CLASS='catLeft' COLSPAN='2' HEIGHT='28'>\n";
	echo "			<SPAN CLASS='cattitle'>Step 2: Checking For Required Files</SPAN></TD>\n";
	echo "  </TR>\n";
	
	$Files = array(
					"admin/case/case.JAG_Admin.php",
					"admin/links/links.JAG_Admin.php",
					"admin/modules/JAG_Online.php",
					"blocks/block-JAG_Online.php",
					"images/admin/JAG_Admin.gif",
					"images/admin/JAG_Admin/JAG_Online.gif",
					"images/blocks/JAG_Online_Admin.gif",
					"images/blocks/JAG_Online_New_Mail.gif" ,
					"images/blank.gif",
					"includes/JAG_Online_Login.php",
					"includes/JAG_Online_Members.php",
					"includes/JAG_Online_Online.php",
					"includes/JAG_Online_PMS.php",
					"includes/JAG_Online_Script.php",
					"includes/my_header_JAG_Online.php",
					"language/JAG_Admin/lang-english.php",
					"language/JAG_Online/lang-english.php"
				  );
	$i=0;
	while ($Files[$i] != "")
		{
		echo "	<TR> \n";
		echo "		<TD CLASS='row1' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
		echo "			<FONT><NOBR>$Files[$i]</NOBR></FONT></TD>\n";
		echo "		<TD CLASS='row2' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
		
		if(file_exists($Files[$i]))	
			{
			echo "			<FONT STYLE='COLOR:$Green;'>File Found</B></FONT></TD>\n";
			}
		else
			{
			echo "			<FONT STYLE='COLOR:$Red;'><B>File Not Found</B></FONT></TD>\n";
			$NotAllFiles = 1;
			}

		echo "	</TR> \n";		
		$i++;
		}
		
	echo "	<TR> \n";
	echo "		<TD CLASS='row1' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
	echo "			<B>NOTE:</B> The flag images are not checked as they are not required.</FONT></TD>\n";
	echo "		<TD CLASS='row2' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
	echo "			<FONT STYLE='COLOR:$Green;'>Not Checked</FONT></TD>\n";
	echo "	</TR> \n";	
		
	if ($NotAllFiles == 1)
		{	
		$ErrorMsg = "There appears to be one or more files missing, the $BlockName block will not work correctly unless all the files are uploaded to your server and in the correct folder. Please upload the missing file(s) and run this script again to finish the installation.";
		EndNow($ErrorMsg);
		}
	
	NextStep($goto);	
?>