[geeklog-cvs] geeklog: Clean up.
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Mar 28 15:56:24 EDT 2012
changeset 8564:60b9d52287ef
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/60b9d52287ef
user: Tom <websitemaster at cogeco.net>
date: Wed Mar 28 15:49:12 2012 -0400
description:
Clean up.
diffstat:
public_html/lib-common.php | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
diffs (32 lines):
diff -r 70cfe34bff56 -r 60b9d52287ef public_html/lib-common.php
--- a/public_html/lib-common.php Wed Mar 28 10:40:29 2012 -0400
+++ b/public_html/lib-common.php Wed Mar 28 15:49:12 2012 -0400
@@ -413,28 +413,6 @@
$_IMAGE_TYPE = 'gif';
}
-
-// Handle Who's Online block
-/*
-if (COM_isAnonUser() && isset($_SERVER['REMOTE_ADDR'])) {
- // The following code handles anonymous users so they show up properly
- DB_delete($_TABLES['sessions'], array('remote_ip', 'uid'),
- array($_SERVER['REMOTE_ADDR'], 1));
-
- $tries = 0;
- do
- {
- // Build a useless sess_id (needed for insert to work properly)
- $sess_id = mt_rand();
- $curtime = time();
-
- // Insert anonymous user session
- $result = DB_query( "INSERT INTO {$_TABLES['sessions']} (sess_id, start_time, remote_ip, uid) VALUES ($sess_id, $curtime, '{$_SERVER['REMOTE_ADDR']}', 1)", 1 );
- $tries++;
- }
- while(( $result === false) && ( $tries < 5 ));
-}
-*/
// Clear out any expired sessions
DB_query( "UPDATE {$_TABLES['sessions']} SET whos_online = 0 WHERE start_time < " . ( time() - $_CONF['whosonline_threshold'] ));
More information about the geeklog-cvs
mailing list