mirror of
https://github.com/e107inc/e107.git
synced 2025-06-06 19:06:39 +02:00
removed the old lastseen/online_menu/online_extended_menu files
This commit is contained in:
parent
0e0c7169d2
commit
6b01af3dbe
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/lastseen/languages/English.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:20 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("LSP_LAN_1", "Last seen");
|
||||
|
||||
|
||||
?>
|
@ -1,46 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/lastseen/lastseen_menu.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:20 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
if (file_exists(e_PLUGIN."lastseen/languages/".e_LANGUAGE.".php"))
|
||||
{
|
||||
include_once(e_PLUGIN."lastseen/languages/".e_LANGUAGE.".php");
|
||||
}
|
||||
else
|
||||
{
|
||||
include_once(e_PLUGIN."lastseen/languages/English.php");
|
||||
}
|
||||
|
||||
$sql -> db_Select("user", "user_id, user_name, user_currentvisit", "ORDER BY user_currentvisit DESC LIMIT 0,10", "nowhere");
|
||||
$userArray = $sql -> db_getList();
|
||||
|
||||
$gen = new convert;
|
||||
$text = "<ul style='margin-left:15px; margin-top:0px; padding-left:0px;'>";
|
||||
foreach($userArray as $user)
|
||||
{
|
||||
// extract($user);
|
||||
$seen_ago = $gen -> computeLapse($user['user_currentvisit'], false, false, true, 'short');
|
||||
$lastseen = ($seen_ago ? $seen_ago : "1 ".LANDT_09)." ".LANDT_AGO;
|
||||
$text .= "<li style='list-style-type: square;'><a href='".e_BASE."user.php?id.".$user['user_id']."'>".$user['user_name']."</a><br /> [ ".$lastseen." ]</li>";
|
||||
}
|
||||
$text .= "</ul>";
|
||||
|
||||
$ns->tablerender(LSP_LAN_1, $text, 'lastseen');
|
||||
?>
|
Binary file not shown.
Before Width: | Height: | Size: 293 B |
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/online_extended_menu/languages/English.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2006-12-23 18:38:33 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("ONLINE_EL1", "Guests: ");
|
||||
define("ONLINE_EL2", "Members: ");
|
||||
define("ONLINE_EL3", "On this page: ");
|
||||
define("ONLINE_EL4", "Online");
|
||||
define("ONLINE_EL5", "Members");
|
||||
define("ONLINE_EL6", "Newest member");
|
||||
define("ONLINE_EL7", "viewing");
|
||||
|
||||
define("ONLINE_EL8", "most ever online: ");
|
||||
define("ONLINE_EL9", "on");
|
||||
|
||||
define("ONLINE_TRACKING_MESSAGE", "Online user tracking is currently disabled, please enable it [link=".e_ADMIN."users.php?options]here[/link][br]");
|
||||
|
||||
?>
|
@ -1,89 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/online_extended_menu/online_extended_menu.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2006-12-23 18:38:27 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
if(!defined("e_TRACKING_DISABLED") && (isset($pref['track_online']) && $pref['track_online'])) {
|
||||
$text = ONLINE_EL1.GUESTS_ONLINE.", ";
|
||||
$text .= ONLINE_EL2.MEMBERS_ONLINE." ...<br />";
|
||||
|
||||
if (MEMBERS_ONLINE) {
|
||||
global $listuserson, $ADMIN_DIRECTORY;
|
||||
foreach($listuserson as $uinfo => $pinfo) {
|
||||
|
||||
|
||||
list($oid, $oname) = explode(".", $uinfo, 2);
|
||||
$online_location_page = substr(strrchr($pinfo, "/"), 1);
|
||||
if ($pinfo == "log.php" || $pinfo == "error.php") {
|
||||
$online_location_page = "news.php";
|
||||
$pinfo = "news.php";
|
||||
}
|
||||
if ($online_location_page == "request.php") {
|
||||
$pinfo = "download.php";
|
||||
}
|
||||
if (strstr($online_location_page, "forum")) {
|
||||
$pinfo = e_PLUGIN."forum/forum.php";
|
||||
$online_location_page = "forum.php";
|
||||
}
|
||||
if (strstr($online_location_page, "content")) {
|
||||
$pinfo = "content.php";
|
||||
$online_location_page = "content.php";
|
||||
}
|
||||
if (strstr($online_location_page, "comment")) {
|
||||
$pinfo = "comment.php";
|
||||
$online_location_page = "comment.php";
|
||||
}
|
||||
$text .= "<img src='".e_IMAGE."admin_images/users_16.png' alt='' style='vertical-align:middle' /> <a href='".e_BASE."user.php?id.$oid'>$oname</a> ".ONLINE_EL7;
|
||||
(!strstr($pinfo, $ADMIN_DIRECTORY) ? $text .= " <a href='{$pinfo}'>$online_location_page</a><br />" : $text .= " $online_location_page<br />");
|
||||
}
|
||||
}
|
||||
|
||||
if ((MEMBERS_ONLINE + GUESTS_ONLINE) > ($menu_pref['most_members_online'] + $menu_pref['most_guests_online'])) {
|
||||
$menu_pref['most_members_online'] = MEMBERS_ONLINE;
|
||||
$menu_pref['most_guests_online'] = GUESTS_ONLINE;
|
||||
$menu_pref['most_online_datestamp'] = time();
|
||||
$tmp = addslashes(serialize($menu_pref));
|
||||
$sql->db_Update("core", "e107_value='$tmp' WHERE e107_name='menu_pref' ");
|
||||
}
|
||||
global $gen;
|
||||
if (!is_object($gen)) {
|
||||
$gen = new convert;
|
||||
}
|
||||
|
||||
$datestamp = $gen->convert_date($menu_pref['most_online_datestamp'], "short");
|
||||
|
||||
$text .= "<br />".ONLINE_EL8." ".($menu_pref['most_members_online'] + $menu_pref['most_guests_online'])."<br />(".ONLINE_EL2.$menu_pref['most_members_online'].", ".ONLINE_EL1.$menu_pref['most_guests_online'].") ".ONLINE_EL9." ".$datestamp."<br />";
|
||||
|
||||
$total_members = $sql->db_Count("user","(*)","where user_ban='0'"); // greatly optimizes the query below.
|
||||
if ($total_members > 1) {
|
||||
|
||||
$newest_member = $sql->db_Select("user", "user_id, user_name", "user_id > ".($total_members-2)." AND user_ban='0' ORDER BY user_join DESC LIMIT 1");
|
||||
|
||||
$row = $sql->db_Fetch();
|
||||
extract($row);
|
||||
$text .= "<br />".ONLINE_EL5.": ".$total_members."<br />".ONLINE_EL6.": <a href='".e_BASE."user.php?id.".$user_id."'>".$user_name."</a>";
|
||||
}
|
||||
} elseif(ADMIN) {
|
||||
global $tp;
|
||||
$text = $tp->toHtml(ONLINE_TRACKING_MESSAGE,TRUE);
|
||||
}
|
||||
|
||||
|
||||
$ns->tablerender(ONLINE_EL4, $text, 'online_extended');
|
||||
|
||||
?>
|
@ -1,27 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/online_menu/languages/English.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:32 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
define("ONLINE_L1", "Guests: ");
|
||||
define("ONLINE_L2", "Members: ");
|
||||
define("ONLINE_L3", "On this page: ");
|
||||
define("ONLINE_L4", "Online");
|
||||
define("ONLINE_L5", "Members");
|
||||
define("ONLINE_L6", "Newest");
|
||||
define("TRACKING_MESSAGE", "Online user tracking is currently disabled, please enable it <a href='".e_ADMIN."users.php?options'>here</a><br />");
|
||||
?>
|
@ -1,53 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/online_menu/online_menu.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:32 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$caption = (file_exists(THEME."images/online_menu.png") ? "<img src='".THEME."images/online_menu.png' alt='' /> ".ONLINE_L4 : ONLINE_L4);
|
||||
|
||||
if(!defined("e_TRACKING_DISABLED") && (isset($pref['track_online']) && $pref['track_online'])) {
|
||||
$text = ONLINE_L1.GUESTS_ONLINE."<br />";
|
||||
//if($pref['user_reg'] == 1){
|
||||
$text .= ONLINE_L2.MEMBERS_ONLINE.(MEMBERS_ONLINE ? ", ": "").MEMBER_LIST."<br />";
|
||||
//}
|
||||
$text .= ONLINE_L3.ON_PAGE;
|
||||
|
||||
global $e107cache;
|
||||
$members_totals = $e107cache->retrieve("online_menu_totals", 120);
|
||||
if($members_totals == false) {
|
||||
$total_members = $sql->db_Count("user");
|
||||
$newest_member = $sql->db_Select("user", "user_id, user_name", "user_ban='0' ORDER BY user_join DESC LIMIT 0,1");
|
||||
$row = $sql->db_Fetch();
|
||||
extract($row);
|
||||
$members_totals = "<br />".ONLINE_L5.": ".$total_members.", ".ONLINE_L6.": <a href='".e_HTTP."user.php?id.{$user_id}'>{$user_name}</a>";
|
||||
$e107cache->set("online_menu_totals", $members_totals);
|
||||
}
|
||||
$text .= $members_totals;
|
||||
|
||||
} else {
|
||||
if(ADMIN) {
|
||||
$text = TRACKING_MESSAGE;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$ns->tablerender($caption, $text, 'online');
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user