<?PHP
/* JAG Admin --------------------------- 06/03/2004 ------------------ v1.00 [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 Hack Attack ------------------------------------------------------------- */
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) 
	{ 
	die ("Access Denied"); 
	}
	
/* Start The Content For The Page ---------------------------------------------------- */
if (is_admin($admin) && $op == "JAG_Admin")
	{
	/* Set The Appropriate Language File ---------------------------------------------- */
	if (file_exists ("language/JAG_Admin/lang-$currentlang.php"))
		include_once("language/JAG_Admin/lang-$currentlang.php");
	else 
		include_once("language/JAG_Admin/lang-arabic.php");
		
	include_once ("header.php");
	
	GraphicAdmin();
	title("إدارة بلوك المتواجدون الآن");
	
	echo "<TABLE ALGIN='right' BORDER='0' WIDTH='100%' CELLPADDING='0' CELLSPACING='0'>\n";
	echo "	<TR>\n";	
	echo "		<TD WIDTH='100' ALIGN='CENTER' VALIGN='TOP'>\n";
	
					OpenTable();
					
	echo "				<CENTER><B>السكريبات الموجودة<BR><BR>\n";
	
						$dir = opendir("admin/modules");
						while ($file = readdir($dir))
							{		
							if (eregi("JAG_", $file) && eregi(".php", $file) && !eregi("JAG_Admin", $file) && !eregi("JAG_Whos_Been", $file) && !eregi("JAG_Virus_Alerts", $file))
								{
								$filearray .= eregi_replace(".php", "", $file)."<-N->";	
								}
							}
							
						$files = explode ("<-N->", $filearray);
						sort($files);
						
						for ($i = 1; ($i < count($files)); $i++)
							{
							echo "				<A HREF='admin.php?op=JAG_Admin&for=$files[$i]'>\n";
							echo "					<IMG SRC='images/admin/JAG_Admin/".$files[$i].".gif' BORDER='0'><BR>".eregi_replace("_", " ", $files[$i])."</A><BR><BR>\n";
							}
							
					CloseTable();
					
	echo "		</TD>\n";
	echo "		<TD WIDTH='5'>\n";	
	echo "			&nbsp;\n";	
	echo "		</TD>\n";
	echo "		<TD ALIGN='right' VALIGN='TOP'>\n";
					OpenTable();
														
						switch($for) 
							{
							case "JAG_Online":
								include("admin/modules/JAG_Online.php");
							break;
							
							default:
								echo "<CENTER><B>"._MAIN_NAME."</B></CENTER><BR><BR>"._MAIN_EXPL."";
							break;
							}
							
					CloseTable();
	echo "		</TD>\n";			
	echo "	</TR>\n";	
	echo "</TABLE>\n";

	include_once("footer.php");
	}
?>
