Source for file userreport.php
Documentation is available at userreport.php
require_once './include/version.php';
require_once './lib/core.php';
require ('smarty/libs/Smarty.class.php');
$smarty->plugins_dir[] = 'include';
require_once $smarty->_get_plugin_filepath('function', 'html_doctype');
$login = new login(true);
$smarty->assign('login', $login);
header( 'Location: login.php' ) ;
$sql = 'select * from phpusertrack_ip where ip=\'' . $_GET['ip'] . '\' order by timestamp desc limit 1';
$visits = $db->_query($sql);
//$smarty->assign('pageTitle', 'phpUserTrack - ' . $_GET['ip'] );
$smarty->assign('mysqlQueryTime', (getmicrotime() - $time));
$smarty->assign('visits', $visits);
$smarty->assign('ip', $_GET['ip']);
$geoip = Net_GeoIP::getInstance('./include/GeoLiteCity.dat',
$location = $geoip->lookupLocation($ip);
$smarty->assign('location', $location);
$smarty->assign('notifMsg', $notify);
$smarty->display('header.tpl');
$smarty->display('userreport.tpl');
$smarty->assign('pageRenderTime', (getmicrotime() - $time));
$smarty->display('footer.tpl');
|