Underc0de

Programación Web => Back-end => Mensaje iniciado por: BigBear en Julio 03, 2011, 09:52:48 PM

Título: [PHP Class] Get Info By Doddy H
Publicado por: BigBear en Julio 03, 2011, 09:52:48 PM
Bueno , esto no es nada del otro mundo , solo una simple clase que te da informacion sobre el visitante

Código (php) [Seleccionar]

<?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

Título: Re:[PHP Class] Get Info By Doddy H
Publicado por: BigBear en Septiembre 06, 2015, 01:02:28 AM
no , pero cuando pueda actualizo esta clase que ni identacion tiene ...