[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.320,1.321
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Tue May 11 13:12:58 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv26219/public_html
Modified Files:
lib-common.php
Log Message:
Added an option to do IP address lookups.
Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.320
retrieving revision 1.321
diff -C2 -d -r1.320 -r1.321
*** lib-common.php 10 May 2004 07:53:06 -0000 1.320
--- lib-common.php 11 May 2004 17:12:56 -0000 1.321
***************
*** 2819,2823 ****
if( !empty( $A['ipaddress'] ))
{
! $deloption .= '| ' . $A['ipaddress'] . ' ';
}
$template->set_var( 'delete_option', $deloption );
--- 2819,2833 ----
if( !empty( $A['ipaddress'] ))
{
! if( empty( $_CONF['ip_lookup'] ))
! {
! $deloption .= '| ' . $A['ipaddress'] . ' ';
! }
! else
! {
! $iplookup = str_replace( '*', $A['ipaddress'],
! $_CONF['ip_lookup'] );
! $deloption .= '| <a href="' . $iplookup . '">'
! . $A['ipaddress'] . '</a> ';
! }
}
$template->set_var( 'delete_option', $deloption );
More information about the geeklog-cvs
mailing list