<?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 ------------------------------ */

/* Step 1 ---------------------------------------------------------------------------- */
	echo "	<TR>\n";
	echo "		<TD CLASS='catLeft' COLSPAN='2' HEIGHT='28'>\n";
	echo "			<SPAN CLASS='cattitle'>Step 1: Introduction & Checking Users Admin Status</SPAN></TD>\n";
	echo "  </TR>\n";
	
/* The Introduction Block ----------------------------------------------------------- */
	echo "	<TR>\n";
	echo "		<TD CLASS='row1' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
	echo "			Welcome to the $BlockName $BlockVersion Installation File.<BR><BR>\n";
	echo "			This file is designed to install and check all the components that are required to run this block on your site. To keep up-to-date on new releases join our newsletter on <A HREF='http://nsd.jagamarog.com' TARGET='_new'>JAG NSD</A>.<BR><BR>\n";
	echo "			If you have some ideas on how to make $BlockName better or you can help us with a translation file drop by our forums to find out more. <A HREF='http://nsd.jagamarog.com/module.php?name=Forums' TARGET='_new'>JAG NSD Forums</A><BR><BR>\n";
	echo "			Dashe<BR>\n";
	echo "			Site Admin – JAG NSD</TD>\n";
	echo "		<TD CLASS='row2' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
	echo "			</TD>\n";
	echo "  </TR>\n";
	
	BlankRow();
			
	echo "	<TR>\n";
	echo "		<TD CLASS='row1' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
	echo "			Verifying Administrators Credentials</TD>\n";
		
	if (is_admin($admin))
		{			
		echo "		<TD CLASS='row2' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
		echo "			<FONT COLOR='$Green'>Verified</FONT></TD>\n";
		}
	else
		{
		echo "		<TD CLASS='row2' HEIGHT='20' ALIGN='LEFT' VALIGN='TOP'>\n";
		echo "			<FONT COLOR='$Red'><B>FAILLED</B></FONT></TD>\n";
		}
		
	echo "  </TR>\n";
	
	if (!is_admin($admin))
		{
		$ErrorMsg = "For added security only Administrators from <B>$sitename</B> ($nukeurl) can run this file. If you are an Administrator please log into the admin section and re run this script.<BR><BR>If you are not an admin this is probably a left over Install file from $BlockName $BlockVersion and should have been deleted. Please report this to the site administrator (<A HREF='mailto:$adminmail'>$adminmail</A>)";
		EndNow($ErrorMsg);
		}

	NextStep($goto);	
?>