* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Some security stuff...
if (!defined('__SECURITY')) {
- die();
+ exit();
} elseif ((!isExtensionActive('online')) && (!isAdmin())) {
// Just skip this extension
return;
}
// Total visitors online
-$total = countSumTotalData('', 'online', 'id', 'userid', true);
+$total = countSumTotalData('', 'online', 'id', 'userid', TRUE);
if (getConfig('mad_count') < $total) {
// Update counter
// Prepare content
$content = array(
- 'guests' => countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='N'"),
- 'members' => countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='Y'"),
- 'admins' => countSumTotalData('Y', 'online', 'id', 'is_admin', true),
+ 'guests' => countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='N'"),
+ 'members' => countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='Y'"),
+ 'admins' => countSumTotalData('Y', 'online', 'id', 'is_admin', TRUE),
'total' => $total
);
// Output table
-$GLOBALS['rows'] .= loadTemplate('online_now', true, $content);
+$GLOBALS['rows'] .= loadTemplate('online_now', TRUE, $content);
// Add more links in this block
runFilterChain('online_extra_links');