Location: PHPKode > projects > Zitro-Stats > include/out_admin_plugin.inc.php
<?php

	// ANTIHACK
	defined('INSTATS') AND defined('OUT') OR die();
	
	$navi[] = "<a href=\"?inc=admin\">Admin</a>";
	$links[] = "<link rel=\"up\" href=\"?inc=admin\" />";

	////////////////////////////////////////////////////////////////
	// ADMINCHECK
	if(!isset($_COOKIE['ZITROSTATS']['ADMIN_PASSWORD']) || $_COOKIE['ZITROSTATS']['ADMIN_PASSWORD']!=md5($options['ADMIN_PASSWORD'])) {
		header("Location: ?inc=admin");
		die();
	}
	
	////////////////////////////////////////////////////////////////
	// PLUGINCHECK
	if(preg_match('/[a-z]+/',$plugin=@$_GET['plugin']) && is_file($file='plugins/'.$plugin.'/admin.inc.php')) {
		require($file);
	} else {
		$navi[] = "<a href=\"?inc=admin_plugin&amp;plugin=".urlencode(@$_GET['plugin'])."\">Plugin (".htmlentities(@$_GET['plugin']).")</a>";
		$out = "<h1>Plugin Administration<br /></h1>\n".
			"<br/>\n".
			"No Administration Panel found for this Plugin!<br/>\n";
	}

?>
Return current item: Zitro-Stats