Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/autosubmitter/ban.php
<?php
	if(function_exists('dbcom') !== TRUE)
	{
		require(BASEDIR . 'config.php');
	}
	$visitor_ip = $_SERVER['REMOTE_ADDR']; # the ip address of the visitor
	$bannedip = dbcom('(SELECT bannedip FROM iplog where bannedip <> "0") UNION (SELECT ip FROM submitter_bannedips WHERE ip <> "0");');
	while($banned = mysql_fetch_assoc($bannedip))
	{
		if($banned['bannedip'] == $visitor_ip)
		{
			echo '<p>Sorry, you are banned from this function!</p>' . "\n";
			die();
		}
	}
?>
Return current item: DDL CMS