-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3ceecbd
Showing
11 changed files
with
548 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Admin tool: User Statistics | ||
* | ||
* This admin tool provides details about registered Website Baker | ||
* users from the Website Baker users database table. | ||
* | ||
* This file contains the CSS definitions for the backend. | ||
* | ||
* LICENSE: GNU General Public License 3.0 | ||
* | ||
* @author Christian Sommer | ||
* @copyright Christian Sommer (c) 2006-2009 | ||
* @license http://www.gnu.org/licenses/gpl.html | ||
* @version 0.30 | ||
* @platform Website Baker 2.7 | ||
*/ | ||
|
||
div.userstat thead { | ||
background-color: #C7D1DB; | ||
color:#000; | ||
} | ||
|
||
div.userstat thead td { | ||
font-weight: bold; | ||
} | ||
|
||
div.userstat tr.even { | ||
background-color: #EEEEF0; | ||
} | ||
|
||
div.userstat tr.even_inactive { | ||
background-color: #EEEEF0; | ||
|
||
} | ||
|
||
div.userstat tr.inactive { | ||
color:#CCC; | ||
} | ||
|
||
div.userstat tr.inactive td, div.userstat tr.even_inactive td { | ||
color:#999; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<div class="userstat"> | ||
|
||
<h2>{TXT_HEADING}</h2> | ||
<p>{TXT_MESSAGE}</p> | ||
|
||
<!-- BEGIN user_table --> | ||
<table border="0" cellpadding="1" cellspacing="0" width="98%"> | ||
<thead> | ||
<tr> | ||
<th width="8%"><a href="?tool=userstat&list=active">{TXT_TH_ACTIVE}</a></th> | ||
<th width="25%"><a href="?tool=userstat&list=user">{TXT_TH_USER}</a></th> | ||
<th width="18%"><a href="?tool=userstat&list=last_check">{TXT_TH_LAST_LOGIN}</a></th> | ||
<th width="10%">{TXT_TH_DAYS_INACTIVE}</th> | ||
<th width="10%">{TXT_TH_LAST_IP}</th> | ||
<th width="21%">{TXT_TH_IP_CHECK}</th> | ||
<th width="6%">{TXT_TH_EMAIL}</th> | ||
</tr> | ||
</thead> | ||
|
||
<!-- BEGIN user_list --> | ||
<tr {TR_CLASS}> | ||
<td>{ACTIVE}</td> | ||
<td>{USERNAME}</td> | ||
<td>{LAST_LOGIN}</td> | ||
<td>{DAYS_INACTIVE}</td> | ||
<td>{LAST_IP}</td> | ||
<td> | ||
<a href="http://www.ripe.net/perl/whois?searchtext={LAST_IP}" target="_blank" | ||
title="{TXT_RI_COUNTRIES}">{TXT_RI}</a> | | ||
<a href="http://lacnic.net/cgi-bin/lacnic/whois?query={LAST_IP}" target="_blank" | ||
title="{TXT_LAC_COUNTRIES}">{TXT_LAC}</a> | | ||
<a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput={LAST_IP}" target="_blank" | ||
title="{TXT_AR_COUNTRIES}">{TXT_AR}</a> | | ||
<a href="http://www.afrinic.net/cgi-bin/whois?searchtext={LAST_IP}" target="_blank" | ||
title="{TXT_AF_COUNTRIES}">{TXT_AF}</a> | | ||
<a href="http://www.apnic.net/apnic-bin/whois2.pl?searchtext={LAST_IP}" target="_blank" | ||
title="{TXT_AP_COUNTRIES}">{TXT_AP}</a> | ||
</td> | ||
<td><a href="mailto:{USER_EMAIL}" title="{USER_EMAIL}">{TXT_MAILTO}</a></td> | ||
</tr> | ||
<!-- END user_list --> | ||
</table> | ||
<!-- END user_table --> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<div class="userstat"> | ||
|
||
<h2>{TXT_HEADING}</h2> | ||
<p>{TXT_MESSAGE}</p> | ||
|
||
<!-- BEGIN user_table --> | ||
<table border="0" cellpadding="1" cellspacing="0" width="98%"> | ||
<thead> | ||
<tr> | ||
<th width="8%"><a href="?tool=userstat&list=active">{TXT_TH_ACTIVE}</a></th> | ||
<th width="25%"><a href="?tool=userstat&list=user">{TXT_TH_USER}</a></th> | ||
<th width="18%"><a href="?tool=userstat&list=last_check">{TXT_TH_LAST_LOGIN}</a></th> | ||
<th width="10%">{TXT_TH_DAYS_INACTIVE}</th> | ||
<th width="10%">{TXT_TH_LAST_IP}</th> | ||
<th width="21%">{TXT_TH_IP_CHECK}</th> | ||
<th width="6%">{TXT_TH_EMAIL}</th> | ||
</tr> | ||
</thead> | ||
|
||
<!-- BEGIN user_list --> | ||
<tr {TR_CLASS}> | ||
<td>{ACTIVE}</td> | ||
<td>{USERNAME}</td> | ||
<td>{LAST_LOGIN}</td> | ||
<td>{DAYS_INACTIVE}</td> | ||
<td>{LAST_IP}</td> | ||
<td> | ||
<a href="http://www.ripe.net/perl/whois?searchtext={LAST_IP}" target="_blank" | ||
title="{TXT_RI_COUNTRIES}">{TXT_RI}</a> | | ||
<a href="http://lacnic.net/cgi-bin/lacnic/whois?query={LAST_IP}" target="_blank" | ||
title="{TXT_LAC_COUNTRIES}">{TXT_LAC}</a> | | ||
<a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput={LAST_IP}" target="_blank" | ||
title="{TXT_AR_COUNTRIES}">{TXT_AR}</a> | | ||
<a href="http://www.afrinic.net/cgi-bin/whois?searchtext={LAST_IP}" target="_blank" | ||
title="{TXT_AF_COUNTRIES}">{TXT_AF}</a> | | ||
<a href="http://www.apnic.net/apnic-bin/whois2.pl?searchtext={LAST_IP}" target="_blank" | ||
title="{TXT_AP_COUNTRIES}">{TXT_AP}</a> | ||
</td> | ||
<td><a href="mailto:{USER_EMAIL}" title="{USER_EMAIL}">{TXT_MAILTO}</a></td> | ||
</tr> | ||
<!-- END user_list --> | ||
</table> | ||
<!-- END user_table --> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
/** | ||
* Admin tool: User Statistics | ||
* | ||
* This admin tool provides details about registered Website Baker | ||
* users from the Website Baker users database table. | ||
* | ||
* This file defines the variables required for Website Baker. | ||
* | ||
* LICENSE: GNU General Public License 3.0 | ||
* | ||
* @author Christian Sommer | ||
* @copyright Christian Sommer (c) 2006-2009 | ||
* @license http://www.gnu.org/licenses/gpl.html | ||
* @version 0.30 | ||
* @platform Website Baker 2.7 | ||
* | ||
* ------------------------------------------------------------------------------------------------ | ||
* MODULE VERSION HISTORY | ||
* ------------------------------------------------------------------------------------------------ | ||
* v0.30 stable (doc: Mar 13, 2009) | ||
* + updated module according guidelines introduced in the "Module Primer" | ||
* + removed support for WB 2.6.x (only supports WB 2.7 or higher) | ||
* | ||
* v0.21 stable (doc: Sep 28, 2008) | ||
* + applied module functions introduced with WB 2.7 (/framework/module.functions.php) | ||
* + added module variable $module_requirements to info.php | ||
* | ||
* v0.20 stable (doc: Sep 27, 2008) | ||
* + seperated HTML / CSS and PHP by using the phplib template class | ||
* + moved CSS styles to backend.css file | ||
* + introduction of Zend coding guidelines (http://framework.zend.com/manual/de/coding-standard.html) | ||
* | ||
* v0.14 stable (doc: Dec 07, 2007) | ||
* + fixed bug in tool.php (displayed wrong login information for users never logged in so far) | ||
* + applied common WB version numbering to index.php | ||
* | ||
* v0.13 beta (davon: Dec 06, 2007) | ||
* + added IP Check (including quick mouseover (title tag) infos) | ||
* + small changes at the information layout | ||
* + changed displaying of the full email adress into simple "Mailto" with mouseover title tag | ||
* | ||
* v0.12 beta (doc: Dec 01, 2006) | ||
* + changed module function from page to tool (thanks to ruebenwurzel) | ||
* + added language support via language files (GERMAN and ENGLISH available so far) | ||
* + added some CSS styles to format the output table | ||
* | ||
* v0.11 alpha (doc: Nov 30, 2006) | ||
* + added output of days inactive and mailto: link (posted in forum as: "User Infos") | ||
* | ||
* v0.10 alpha (doc: Nov 30, 2006) | ||
* + initial release of the module (posted in forum as: "User Infos") | ||
* ------------------------------------------------------------------------------------------------ | ||
*/ | ||
// OBLIGATORY WEBSITE BAKER VARIABLES | ||
$module_directory = 'userstat'; | ||
$module_name = 'User Statistics'; | ||
$module_function = 'tool'; | ||
$module_version = '0.31'; | ||
$module_status = 'stable'; | ||
$module_platform = '2.8.1'; | ||
$module_author = 'Christian Sommer (doc)'; | ||
$module_license = '<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public Licencse 3.0</a>'; | ||
$module_license_terms = '-'; | ||
$module_requirements = '-'; | ||
$module_description = 'This module creates a list of registered users with their last login details.'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
/** | ||
* Admin tool: User Statistics | ||
* | ||
* This admin tool provides details about registered Website Baker | ||
* users from the Website Baker users database table. | ||
* | ||
* This file contains the German language output. | ||
* | ||
* LICENSE: GNU General Public License 3.0 | ||
* | ||
* @author Christian Sommer | ||
* @copyright Christian Sommer (c) 2006-2009 | ||
* @license http://www.gnu.org/licenses/gpl.html | ||
* @version 0.30 | ||
* @platform Website Baker 2.7 | ||
*/ | ||
|
||
// German module description | ||
$module_description = 'Diese Modul erstellt eine Liste der registrierten Benutzer und zeigt deren letzten Login an.'; | ||
|
||
// declare module language array | ||
$LANG = array(); | ||
|
||
// Text outputs for the module backend ("htt/backend_view.htt") | ||
$LANG[0] = array( | ||
// normal text outputs | ||
'TXT_HEADING' => 'Benutzerstatistik', | ||
'TXT_DESCRIPTION' => 'Nachfolgende Liste gibt die registrierten Benutzer, sowie deren letzten Login aus.', | ||
'TXT_TH_USER' => 'Benutzer', | ||
'TXT_TH_ACTIVE' => 'Active', | ||
'TXT_TH_LAST_LOGIN' => 'Letzter Login', | ||
'TXT_TH_DAYS_INACTIVE' => 'In Tagen', | ||
'TXT_TH_LAST_IP' => 'Letzte IP', | ||
'TXT_TH_IP_CHECK' => 'IP Check', | ||
'TXT_TH_EMAIL' => 'Email', | ||
'TXT_ERROR_DATABASE' => 'Datenbankfehler. Benutzerdaten konnten nicht ermittelt werden.', | ||
'TXT_MAILTO' => 'Email an', | ||
// text outputs for the IP check | ||
'TXT_RI' => 'RI', | ||
'TXT_RI_COUNTRIES' => 'Ripe - (Europe, Middle East, Parts of Africa and Asia)', | ||
'TXT_LAC' => 'LAC', | ||
'TXT_LAC_COUNTRIES' => 'LacNic - Latin America and Carribean region', | ||
'TXT_AR' => 'AR', | ||
'TXT_AR_COUNTRIES' => 'ARIN - North America, parts of Carribean and Saharan Africa', | ||
'TXT_AF' => 'AF', | ||
'TXT_AF_COUNTRIES' => 'AfriNic - Africa', | ||
'TXT_AP' => 'AP', | ||
'TXT_AP_COUNTRIES' => 'APNic - Asia and Pacific Regions', | ||
// date format (see PHP date function for information) | ||
'DATE_FORMAT' => 'd.m.y | H:i', | ||
'TXT_NO' => 'Geen', | ||
'TXT_YES' => 'Ja' | ||
); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
/** | ||
* Admin tool: User Statistics | ||
* | ||
* This admin tool provides details about registered Website Baker | ||
* users from the Website Baker users database table. | ||
* | ||
* This file contains the English language output. | ||
* | ||
* LICENSE: GNU General Public License 3.0 | ||
* | ||
* @author Christian Sommer | ||
* @copyright Christian Sommer (c) 2006-2009 | ||
* @license http://www.gnu.org/licenses/gpl.html | ||
* @version 0.30 | ||
* @platform Website Baker 2.7 | ||
*/ | ||
|
||
// German module description | ||
$module_description = 'This module creates a list of registered users with their last login details.'; | ||
|
||
// declare module language array | ||
$LANG = array(); | ||
|
||
// Text outputs for the module backend ("htt/backend_view.htt") | ||
$LANG[0] = array( | ||
// normal text outputs | ||
'TXT_HEADING' => 'User statistics', | ||
'TXT_DESCRIPTION' => 'The table provides a list of registered WB users, and the date of their last login.', | ||
'TXT_TH_USER' => 'User', | ||
'TXT_TH_ACTIVE' => 'Active', | ||
'TXT_TH_LAST_LOGIN' => 'Last login', | ||
'TXT_TH_DAYS_INACTIVE' => 'In days', | ||
'TXT_TH_LAST_IP' => 'Last IP', | ||
'TXT_TH_IP_CHECK' => 'IP check', | ||
'TXT_TH_EMAIL' => 'Email', | ||
'TXT_ERROR_DATABASE' => 'Database error. Unable to fetch user statistics from database.', | ||
'TXT_MAILTO' => 'Mailto', | ||
// text outputs for the IP check | ||
'TXT_RI' => 'RI', | ||
'TXT_RI_COUNTRIES' => 'Ripe - (Europe, Middle East, Parts of Africa and Asia)', | ||
'TXT_LAC' => 'LAC', | ||
'TXT_LAC_COUNTRIES' => 'LacNic - Latin America and Carribean region', | ||
'TXT_AR' => 'AR', | ||
'TXT_AR_COUNTRIES' => 'ARIN - North America, parts of Carribean and Saharan Africa', | ||
'TXT_AF' => 'AF', | ||
'TXT_AF_COUNTRIES' => 'AfriNic - Africa', | ||
'TXT_AP' => 'AP', | ||
'TXT_AP_COUNTRIES' => 'APNic - Asia and Pacific Regions', | ||
// date format (see PHP date function for information) | ||
'DATE_FORMAT' => 'm/d/y | h:i', | ||
'TXT_NO' => 'No', | ||
'TXT_YES' => 'Yes' | ||
); | ||
?> |
Oops, something went wrong.