From 6b01af3dbeaff0aed06b64b3def02dddf75775a1 Mon Sep 17 00:00:00 2001
From: lia <lisa@e107.org>
Date: Tue, 1 May 2007 19:57:06 +0000
Subject: [PATCH] removed the old lastseen/online_menu/online_extended_menu
 files

---
 e107_plugins/lastseen/languages/English.php   |  16 ----
 e107_plugins/lastseen/lastseen_menu.php       |  46 ---------
 .../online_extended_menu/images/user.png      | Bin 293 -> 0 bytes
 .../languages/English.php                     |  33 -------
 .../online_extended_menu.php                  |  89 ------------------
 .../online_menu/languages/English.php         |  27 ------
 e107_plugins/online_menu/online_menu.php      |  53 -----------
 7 files changed, 264 deletions(-)
 delete mode 100644 e107_plugins/lastseen/languages/English.php
 delete mode 100644 e107_plugins/lastseen/lastseen_menu.php
 delete mode 100644 e107_plugins/online_extended_menu/images/user.png
 delete mode 100644 e107_plugins/online_extended_menu/languages/English.php
 delete mode 100644 e107_plugins/online_extended_menu/online_extended_menu.php
 delete mode 100644 e107_plugins/online_menu/languages/English.php
 delete mode 100644 e107_plugins/online_menu/online_menu.php

diff --git a/e107_plugins/lastseen/languages/English.php b/e107_plugins/lastseen/languages/English.php
deleted file mode 100644
index fd3c0678a..000000000
--- a/e107_plugins/lastseen/languages/English.php
+++ /dev/null
@@ -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");
-
-
-?>
\ No newline at end of file
diff --git a/e107_plugins/lastseen/lastseen_menu.php b/e107_plugins/lastseen/lastseen_menu.php
deleted file mode 100644
index dd06ab5d9..000000000
--- a/e107_plugins/lastseen/lastseen_menu.php
+++ /dev/null
@@ -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');
-?>
\ No newline at end of file
diff --git a/e107_plugins/online_extended_menu/images/user.png b/e107_plugins/online_extended_menu/images/user.png
deleted file mode 100644
index 03438a6e33a52779aeb1b8193d4aa052a8aec9d3..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001

literal 293
zcmeAS@N?(olHy`uVBq!ia0vp^JV4CP!3-py+uy4OQrac15hcz=sfi_-`FRQ<nYpP9
z;i)MK#tOly1qwz62F5_b%D~9V$V@@k00`Eky?PDQ#$Mv->&kwalUbNqRNi~>exML%
zfk$L90|U1Z2s2)~TlWVj$dc~p>&U>cv7h@-A}f$D7vK}(`k&!Hka_Ohxq0*E{r~?z
zFE6jEs_M|8L$_|-TD5AG<0a2JpfqDikY6x^!?PP{K#rTIi(^Q|t=4mnVhsiy&IegC
zj{c6nv1Q6~>&?G5b1#_a(m%62c<$M(vz+HDL-`eRE+2Q(S;c=u|B?6>=4-~$FRB;q
c4-d4L|H#8+{FKK^0cawFr>mdKI;Vst0LwCBo&W#<

diff --git a/e107_plugins/online_extended_menu/languages/English.php b/e107_plugins/online_extended_menu/languages/English.php
deleted file mode 100644
index afd1ba9dc..000000000
--- a/e107_plugins/online_extended_menu/languages/English.php
+++ /dev/null
@@ -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]");
-
-?>
diff --git a/e107_plugins/online_extended_menu/online_extended_menu.php b/e107_plugins/online_extended_menu/online_extended_menu.php
deleted file mode 100644
index 31e106d2b..000000000
--- a/e107_plugins/online_extended_menu/online_extended_menu.php
+++ /dev/null
@@ -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');
-
-?>
diff --git a/e107_plugins/online_menu/languages/English.php b/e107_plugins/online_menu/languages/English.php
deleted file mode 100644
index 9c920c778..000000000
--- a/e107_plugins/online_menu/languages/English.php
+++ /dev/null
@@ -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 />");
-?>
\ No newline at end of file
diff --git a/e107_plugins/online_menu/online_menu.php b/e107_plugins/online_menu/online_menu.php
deleted file mode 100644
index 9a8424b97..000000000
--- a/e107_plugins/online_menu/online_menu.php
+++ /dev/null
@@ -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');
-
-?>
\ No newline at end of file