Source for file libip.php
Documentation is available at libip.php
* IP address (unique user) abstraction class
* @author Christopher Troup <mini@chatetheory.com>
require_once 'libdb.php';
* Session identification string
* @param string $ip The IP address of requesting user
* @return boolean Success of object creation
* Find that users profile index from their session identification string
* @return integer Profile index
$result = $this->_query('select id from ' . $conf['ipTable'] . ' where session_id="' . $this->_sessId . '"');
* Return the profile index number
* @return integer Profile index number
* @return string IP address
* Return session identification string
* @return string Session identification string
* @param string $ip IP Address to set the class to
* Insert new profile into the database
* @param string $browser Browser name user is using
* @param string $browser_verion Browser verison user is using
* @param string $platform Operating System
$this->_insert('insert into ' . $conf['ipTable'] .
' set session_id="' . $this->_sessId .
'", ip="' . $this->_ip . '", ' .
'", browser_version="' . $browser_version . '", ' .
'platform="' . $platform . '"');
|