[PHP Class] Get Info By Doddy H

Iniciado por BigBear, 7 Octubre 2011, 01:21 AM

0 Miembros y 1 Visitante están viendo este tema.

BigBear

Bueno , esto no es nada del otro mundo , solo una simple clase que te da informacion sobre el visitante


<?php 

/*

Simple Class GetInfo

By Doddy Hackman

*/


class getinfo {


public function 
ip() {
return 
htmlentities($_SERVER['SERVER_ADDR']);
}

public function 
navegador() {

$navegador get_browser($_SERVER['HTTP_USER_AGENT'], true);
return array(
htmlentities($navegador['browser']),htmlentities($navegador['version']));
}

public function 
so() {

$navegador get_browser($_SERVER['HTTP_USER_AGENT'], true);
return 
htmlentities($navegador['platform']);

}
}

?>



Funciones


ip() // Te da la IP
navegador() // Te da el navegador
so() // te da el SO