$efvip = $_SERVER['REMOTE_ADDR']; include('/home/myaccount/public_html/geo/geoip.inc'); $gi = geoip_open('/home/myaccount/public_html/geo/ip/GeoIP.dat',GEOIP_STANDARD); $mygig = geoip_country_code_by_addr($gi, $efvip); $mycountry=array('AL','AZ','BA','BD','BG','BW','CD','EE','EG','ET','FI','KW','KE','KP','KR','LB','LC','LR','LV','MA','MT','MU','NG','NP','PH','RS','SK','SL','TN','UY','VG','ZM','ZW'); $show['in_country'] = !in_array($mygig,$mycountry);
<vb:if condition="$show['guest']"> <vb:if condition="$show[in_country]"><div class="padtop">stuff to go here</div></vb:if></vb:if>