Office Gallery

Office Gallery

Office Gallery

locate(); //include("conn.php"); $ip=$_SERVER['REMOTE_ADDR']; $page_x=$_SERVER['REQUEST_URI']; $refer=$_SERVER['HTTP_REFERER']; //echo "xxx". $page_x; if(!eregi("/wp-content/themes",$page_x) and !eregi("/new_admin/",$page_x) ) { $city = $geoplugin->city; $state = $geoplugin->region; $country = $geoplugin->countryCode; //if($country!='IN' and $country!='CN' and $country!='RU' ) if($country!='CN' and $country!='RU' ) { $host_name = "localhost"; $database = "admin_newsite"; $user_name_pp = "admin_newsite"; $password_pp = "hqF25%j4"; $con_link=mysqli_connect($host_name, $user_name_pp, $password_pp, $database); if ( $country == 'US' ){ $sql="insert into ip_address(page,ip,refer,date,date_all,city,state) values('$page_x','$ip','$refer',now(),now(),'$city','$state')"; mysqli_query( $con_link,$sql) or die(mysqli_error( $con_link)); } } } ?>