File size: 895B
<?php
class Informacje {
public function GetCountryCode() {
include_once('ip2c/ip2country.php');
$ip2c=new ip2country();
$ip2c->mysql_host='localhost';
$ip2c->db_user='weer';
$ip2c->db_pass='wojtextec';
$ip2c->db_name='weer_weer';
$ip2c->table_name='ip2c';
return $ip2c->get_country_code();
}
public function GetBrowser() {
require_once('userAgent.class.php');
$user = new userAgent();
if ($user->browserName) $przegladarka = $user->browserName . " " . $user->browserVersion; else $przegladarka = "";
return $przegladarka;
}
public function GetSO() {
require_once('userAgent.class.php');
$user = new userAgent();
if ($user->operatingSystem) $system = $user->operatingSystem; else $system = "";
return $system;
}
public function GetIP() {
return $_SERVER["REMOTE_ADDR"];
}
}
?>