cleanup: removed typo3/alt_main_new.php and typo3/sysext/topapps as it was never...
authorIngo Renner <ingo.renner@typo3.org>
Tue, 15 Jan 2008 22:31:27 +0000 (22:31 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Tue, 15 Jan 2008 22:31:27 +0000 (22:31 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2908 709f56b5-9817-0410-a4d7-c38de5d9e867

42 files changed:
ChangeLog
typo3/alt_main_new.php [deleted file]
typo3/sysext/topapps/cache/conf.php [deleted file]
typo3/sysext/topapps/cache/index.php [deleted file]
typo3/sysext/topapps/cache/locallang.xml [deleted file]
typo3/sysext/topapps/clock/conf.php [deleted file]
typo3/sysext/topapps/clock/index.php [deleted file]
typo3/sysext/topapps/clock/locallang.xml [deleted file]
typo3/sysext/topapps/dashboard/conf.php [deleted file]
typo3/sysext/topapps/dashboard/index.php [deleted file]
typo3/sysext/topapps/dashboard/locallang.xml [deleted file]
typo3/sysext/topapps/dashboard/x_dashboard.png [deleted file]
typo3/sysext/topapps/dashboard/x_search.png [deleted file]
typo3/sysext/topapps/ext_emconf.php [deleted file]
typo3/sysext/topapps/ext_tables.php [deleted file]
typo3/sysext/topapps/menu/conf.php [deleted file]
typo3/sysext/topapps/menu/index.php [deleted file]
typo3/sysext/topapps/search/conf.php [deleted file]
typo3/sysext/topapps/search/index.php [deleted file]
typo3/sysext/topapps/search/locallang.xml [deleted file]
typo3/sysext/topapps/search/x_search.png [deleted file]
typo3/sysext/topapps/shortcut/addedit.png [deleted file]
typo3/sysext/topapps/shortcut/conf.php [deleted file]
typo3/sysext/topapps/shortcut/config.png [deleted file]
typo3/sysext/topapps/shortcut/index.php [deleted file]
typo3/sysext/topapps/shortcut/locallang.xml [deleted file]
typo3/sysext/topapps/shortcut/mediamanager.png [deleted file]
typo3/sysext/topapps/shortcut/module.png [deleted file]
typo3/sysext/topapps/shortcut/user.png [deleted file]
typo3/sysext/topapps/submodules/conf.php [deleted file]
typo3/sysext/topapps/submodules/index.php [deleted file]
typo3/sysext/topapps/user/be_users.gif [deleted file]
typo3/sysext/topapps/user/conf.php [deleted file]
typo3/sysext/topapps/user/index.php [deleted file]
typo3/sysext/topapps/user/locallang.xml [deleted file]
typo3/sysext/topapps/workspaces/conf.php [deleted file]
typo3/sysext/topapps/workspaces/index.php [deleted file]
typo3/sysext/topapps/workspaces/locallang.xml [deleted file]
typo3/sysext/topapps/workspaces/sys_workspace.png [deleted file]
typo3/sysext/topapps/xyzcorp/conf.php [deleted file]
typo3/sysext/topapps/xyzcorp/index.php [deleted file]
typo3/sysext/topapps/xyzcorp/logo.png [deleted file]

index 997dc03..f16c534 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
        * added feature #7161: create a shortcut manager to delegate calls to create a new shortcut to the right target
        * added the shortcut menu, part of the cleaner backend project
        * added feature #7163: Make backend.php the default backend
+       * cleanup: removed typo3/alt_main_new.php and typo3/sysext/topapps as it was never finished and used
 
 2008-01-15  Benjamin Mack  <mack@xnos.org>
 
diff --git a/typo3/alt_main_new.php b/typo3/alt_main_new.php
deleted file mode 100644 (file)
index e59b167..0000000
+++ /dev/null
@@ -1,933 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- * Main frameset of the TYPO3 backend
- * Sending the GET var "alt_main.php?edit=[page id]" will load the page id in the editing module configured.
- *
- * $Id$
- * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
- * XHTML Compliant (almost)
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- *
- *   72: class SC_alt_main
- *   91:     function init()
- *  113:     function generateJScode()
- *  386:     function editPageHandling()
- *  437:     function startModule()
- *  459:     function main()
- *  533:     function printContent()
- *
- * TOTAL FUNCTIONS: 6
- * (This index is automatically created/updated by the extension "extdeveval")
- *
- */
-
-die(); // Disabled until Kasper finishes this feature.
-
-require ('init.php');
-require ('template.php');
-require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
-require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
-require_once ('class.alt_menu_functions.inc');
-$LANG->includeLLFile('EXT:lang/locallang_misc.xml');
-
-
-
-
-/**
- * Script Class for rendering of the main frameset for the TYPO3 backend.
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage core
- */
-class SC_alt_main {
-
-               // Internal, dynamic:
-       var $content;
-       var $mainJScode;
-
-       /**
-        * Object for backend modules, load modules-object
-        *
-        * @var t3lib_loadModules
-        */
-       var $loadModules;
-
-       /**
-        * Menu functions object
-        *
-        * @var alt_menu_functions
-        */
-       var $alt_menuObj;
-
-               // Internal, static:
-       var $leftMenuFrameW = 130;
-       var $selMenuFrame = 130;
-       var $topFrameH = 32;
-       var $shortcutFrameH = 30;
-       
-       
-       var $topMenu = 21;
-       var $topIcons = 40;
-
-       /**
-        * Initialization of the script class
-        *
-        * @return      void
-        */
-       function init() {
-               global $TBE_MODULES,$TBE_STYLES;
-
-                       // Initializes the backend modules structure for use later.
-               $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
-               $this->loadModules->load($TBE_MODULES);
-
-                       // Instantiates thee menu object which will generate some JavaScript for the goToModule() JS function in this frameset.
-               $this->alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
-
-                       // Check for distances defined in the styles array:
-               if ($TBE_STYLES['dims']['leftMenuFrameW'])              $this->leftMenuFrameW = $TBE_STYLES['dims']['leftMenuFrameW'];
-               if ($TBE_STYLES['dims']['topFrameH'])           $this->topFrameH = $TBE_STYLES['dims']['topFrameH'];
-               if ($TBE_STYLES['dims']['shortcutFrameH'])              $this->shortcutFrameH = $TBE_STYLES['dims']['shortcutFrameH'];
-               if ($TBE_STYLES['dims']['selMenuFrame'])                $this->selMenuFrame = $TBE_STYLES['dims']['selMenuFrame'];
-       }
-
-       /**
-        * Generates the JavaScript code for the frameset.
-        *
-        * @return      void
-        */
-       function generateJScode()       {
-               global $BE_USER,$LANG;
-
-               $pt3 = t3lib_div::dirname(t3lib_div::getIndpEnv('SCRIPT_NAME')).'/';
-               $goToModule_switch = $this->alt_menuObj->topMenu($this->loadModules->modules,0,"",4);
-               $fsMod = implode(chr(10),$this->alt_menuObj->fsMod);
-
-                       // If another page module was specified, replace the default Page module with the new one
-               $newPageModule = trim($GLOBALS['BE_USER']->getTSConfigVal('options.overridePageModule'));
-               $pageModule = t3lib_BEfunc::isModuleSetInTBE_MODULES($newPageModule) ? $newPageModule : 'web_layout';
-
-               $this->mainJScode='
-       
-       /**
-        * "Content" Iframe resize function
-        */
-       function resize_Iframe() {
-               var container = document.getElementById("content");
-               var menuHeight = '.(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['icons']) ? $this->topIcons+$this->topMenu : $this->topMenu).'; //taille du menu (a définir dynamiquement)
-               container.style.height = (document.body.clientHeight-menuHeight)+"px";
-       }
-       window.onload = resize_Iframe;
-       window.onresize = resize_Iframe;        
-               
-       /**
-        * Function similar to PHPs  rawurlencode();
-        */
-       function rawurlencode(str)      {       //
-               var output = escape(str);
-               output = str_replace("*","%2A", output);
-               output = str_replace("+","%2B", output);
-               output = str_replace("/","%2F", output);
-               output = str_replace("@","%40", output);
-               return output;
-       }
-
-       /**
-        * String-replace function
-        */
-       function str_replace(match,replace,string)      {       //
-               var input = ""+string;
-               var matchStr = ""+match;
-               if (!matchStr)  {return string;}
-               var output = "";
-               var pointer=0;
-               var pos = input.indexOf(matchStr);
-               while (pos!=-1) {
-                       output+=""+input.substr(pointer, pos-pointer)+replace;
-                       pointer=pos+matchStr.length;
-                       pos = input.indexOf(match,pos+1);
-               }
-               output+=""+input.substr(pointer);
-               return output;
-       }
-
-       /**
-        * TypoSetup object.
-        */
-       function typoSetup()    {       //
-               this.PATH_typo3 = "'.$pt3.'";
-               this.PATH_typo3_enc = "'.rawurlencode($pt3).'";
-               this.username = "'.$BE_USER->user['username'].'";
-               this.uniqueID = "'.t3lib_div::shortMD5(uniqid('')).'";
-               this.navFrameWidth = 0;
-       }
-       var TS = new typoSetup();
-
-       /**
-        * Functions for session-expiry detection:
-        */
-       function busy() {       //
-               this.loginRefreshed = busy_loginRefreshed;
-               this.checkLoginTimeout = busy_checkLoginTimeout;
-               this.openRefreshWindow = busy_OpenRefreshWindow;
-               this.busyloadTime=0;
-               this.openRefreshW=0;
-               this.reloginCancelled=0;
-       }
-       function busy_loginRefreshed()  {       //
-               var date = new Date();
-               this.busyloadTime = Math.floor(date.getTime()/1000);
-               this.openRefreshW=0;
-       }
-       function busy_checkLoginTimeout()       {       //
-               var date = new Date();
-               var theTime = Math.floor(date.getTime()/1000);
-               if (theTime > this.busyloadTime+'.intval($BE_USER->auth_timeout_field).'-30)    {
-                       return true;
-               }
-       }
-       function busy_OpenRefreshWindow()       {       //
-               vHWin=window.open("login_frameset.php","relogin_"+TS.uniqueID,"height=350,width=700,status=0,menubar=0,location=1");
-               vHWin.focus();
-               this.openRefreshW=1;
-       }
-       function busy_checkLoginTimeout_timer() {       //
-               if (busy.checkLoginTimeout() && !busy.reloginCancelled && !busy.openRefreshW)   {
-                       if (confirm('.$GLOBALS['LANG']->JScharCode($LANG->sL('LLL:EXT:lang/locallang_core.php:mess.refresh_login')).')) {
-                               busy.openRefreshWindow();
-                       } else  {
-                               busy.reloginCancelled = 1;
-                       }
-               }
-               window.setTimeout("busy_checkLoginTimeout_timer();",2*1000);    // Each 2nd second is enough for checking. The popup will be triggered 10 seconds before the login expires (see above, busy_checkLoginTimeout())
-
-                       // Detecting the frameset module navigation frame widths (do this AFTER setting new timeout so that any errors in the code below does not prevent another time to be set!)
-               if (top && top.content && top.content.nav_frame && top.content.nav_frame.document && top.content.nav_frame.document.body)       {
-                       TS.navFrameWidth = (top.content.nav_frame.document.documentElement && top.content.nav_frame.document.documentElement.clientWidth) ? top.content.nav_frame.document.documentElement.clientWidth : top.content.nav_frame.document.body.clientWidth;
-               }
-       }
-
-       /**
-        * Launcing information window for records/files (fileref as "table" argument)
-        */
-       function launchView(table,uid,bP)       {       //
-               var backPath= bP ? bP : "";
-               var thePreviewWindow="";
-               thePreviewWindow = window.open(TS.PATH_typo3+"show_item.php?table="+escape(table)+"&uid="+escape(uid),"ShowItem"+TS.uniqueID,"height=300,width=550,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
-               if (thePreviewWindow && thePreviewWindow.focus) {
-                       thePreviewWindow.focus();
-               }
-       }
-
-       /**
-        * Opens plain window with url
-        */
-       function openUrlInWindow(url,windowName)        {       //
-               regularWindow = window.open(url,windowName,"status=1,menubar=1,resizable=1,location=1,directories=0,scrollbars=1,toolbar=1");
-               regularWindow.focus();
-               return false;
-       }
-
-       /**
-        * Loads a URL in the topmenuFrame
-        */
-       function loadTopMenu(url)       {       //
-               top.topmenuFrame.location = url;
-       }
-
-       /**
-        * Loads a page id for editing in the page edit module:
-        */
-       function loadEditId(id,addGetVars)      {       //
-               top.fsMod.recentIds["web"]=id;
-               top.fsMod.navFrameHighlightedID["web"]="pages"+id+"_0";         // For highlighting
-
-               if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav)  {
-                       top.content.nav_frame.refresh_nav();
-               }
-
-               top.goToModule("'.$pageModule.'", 0, addGetVars?addGetVars:"");
-       }
-
-       /**
-        * Returns incoming URL (to a module) unless nextLoadModuleUrl is set. If that is the case nextLoadModuleUrl is returned (and cleared)
-        * Used by the shortcut frame to set a "intermediate URL"
-        */
-       var nextLoadModuleUrl="";
-       function getModuleUrl(inUrl)    {       //
-               var nMU;
-               if (top.nextLoadModuleUrl)      {
-                       nMU=top.nextLoadModuleUrl;
-                       top.nextLoadModuleUrl="";
-                       return nMU;
-               } else {
-                       return inUrl;
-               }
-       }
-
-       /**
-        * Print properties of an object
-        */
-       function debugObj(obj,name,printEach)   {       //
-               var acc;
-               for (i in obj) {
-                       if (obj[i])     {
-                               if (printEach)  {
-                                       alert(i+":  "+obj[i]);
-                               } else {
-                                       acc+=i+":  "+obj[i]+"\n";
-                               }
-                       }
-               }
-               if (!printEach) alert("Object: "+name+"\n\n"+acc);
-       }
-
-       /**
-        * Initialize login expiration warning object
-        */
-       var busy = new busy();
-       busy.loginRefreshed();
-       busy_checkLoginTimeout_timer();
-
-
-       /**
-        * Highlight module:
-        */
-       var currentlyHighLightedId = "";
-       var currentlyHighLighted_restoreValue = "";
-       var currentlyHighLightedMain = "";
-       function highlightModuleMenuItem(trId, mainModule)      {       //
-               currentlyHighLightedMain = mainModule;
-                       // Get document object:
-               if (top.menu && top.menu.document)      {
-                       var docObj = top.menu.document;
-                       var HLclass = mainModule ? "c-mainitem-HL" : "c-subitem-row-HL";
-               } else if (top.topmenuFrame && top.topmenuFrame.document)       {
-                       var docObj = top.topmenuFrame.document;
-                       var HLclass = mainModule ? "c-mainitem-HL" : "c-subitem-HL";
-               }
-
-               if (docObj)     {
-                               // Reset old:
-                       if (currentlyHighLightedId && docObj.getElementById(currentlyHighLightedId))    {
-                               docObj.getElementById(currentlyHighLightedId).attributes.getNamedItem("class").nodeValue = currentlyHighLighted_restoreValue;
-                       }
-                               // Set new:
-                       currentlyHighLightedId = trId;
-                       if (currentlyHighLightedId && docObj.getElementById(currentlyHighLightedId))    {
-                               var classAttribObject = docObj.getElementById(currentlyHighLightedId).attributes.getNamedItem("class");
-                               currentlyHighLighted_restoreValue = classAttribObject.nodeValue;
-                               classAttribObject.nodeValue = HLclass;
-                       }
-               }
-       }
-
-       /**
-        * Function restoring previous selection in left menu after clearing cache
-        */
-       function restoreHighlightedModuleMenuItem() {   //
-               if (currentlyHighLightedId) {
-                       highlightModuleMenuItem(currentlyHighLightedId,currentlyHighLightedMain);
-               }
-       }
-
-       /**
-        * Function used to switch switch module.
-        */
-       var currentModuleLoaded = "";
-       function goToModule(modName,cMR_flag,addGetVars)        {       //
-               var additionalGetVariables = "";
-               if (addGetVars) additionalGetVariables = addGetVars;
-
-               var cMR = 0;
-               if (cMR_flag)   cMR = 1;
-
-               currentModuleLoaded = modName;
-
-               switch(modName) {'.$goToModule_switch.'
-               }
-       }
-
-       /**
-        * Frameset Module object
-        *
-        * Used in main modules with a frameset for submodules to keep the ID between modules
-        * Typically that is set by something like this in a Web>* sub module:
-        *              if (top.fsMod) top.fsMod.recentIds["web"] = "\'.intval($this->id).\'";
-        *              if (top.fsMod) top.fsMod.recentIds["file"] = "...(file reference/string)...";
-        */
-       function fsModules()    {       //
-               this.recentIds=new Array();                                     // used by frameset modules to track the most recent used id for list frame.
-               this.navFrameHighlightedID=new Array();         // used by navigation frames to track which row id was highlighted last time
-               this.currentMainLoaded="";
-               this.currentBank="0";
-       }
-       var fsMod = new fsModules();
-       '.$fsMod.'
-
-               // Used by Frameset Modules
-       var condensedMode = '.($BE_USER->uc['condensedMode']?1:0).';
-       var currentSubScript = "";
-       var currentSubNavScript = "";
-
-               // Used for tab-panels:
-       var DTM_currentTabs = new Array();
-               ';
-
-                       // Check editing of page:
-               $this->editPageHandling();
-               $this->startModule();
-       }
-
-       /**
-        * Checking if the "&edit" variable was sent so we can open for editing the page.
-        * Code based on code from "alt_shortcut.php"
-        *
-        * @return      void
-        */
-       function editPageHandling()     {
-               global $BE_USER;
-
-               if (!t3lib_extMgm::isLoaded('cms'))     return;
-
-                       // EDIT page:
-               $editId = preg_replace('/[^[:alnum:]_]/','',t3lib_div::_GET('edit'));
-               $theEditRec = '';
-
-               if ($editId)    {
-
-                               // Looking up the page to edit, checking permissions:
-                       $where = ' AND ('.$BE_USER->getPagePermsClause(2).' OR '.$BE_USER->getPagePermsClause(16).')';
-                       if (t3lib_div::testInt($editId))        {
-                               $theEditRec = t3lib_BEfunc::getRecordWSOL('pages',$editId,'*',$where);
-                       } else {
-                               $records = t3lib_BEfunc::getRecordsByField('pages','alias',$editId,$where);
-                               if (is_array($records)) {
-                                       reset($records);
-                                       $theEditRec = current($records);
-                                       t3lib_BEfunc::workspaceOL('pages', $theEditRec);
-                               }
-                       }
-
-                               // If the page was accessible, then let the user edit it.
-                       if (is_array($theEditRec) && $BE_USER->isInWebMount($theEditRec['uid']))        {
-                                       // Setting JS code to open editing:
-                               $this->mainJScode.='
-               // Load page to edit:
-       window.setTimeout("top.loadEditId('.intval($theEditRec['uid']).');",500);
-                       ';
-                                       // Checking page edit parameter:
-                               if(!$BE_USER->getTSConfigVal('options.shortcut_onEditId_dontSetPageTree')) {
-
-                                               // Expanding page tree:
-                                       t3lib_BEfunc::openPageTree(intval($theEditRec['pid']),!$BE_USER->getTSConfigVal('options.shortcut_onEditId_keepExistingExpanded'));
-                               }
-                       } else {
-                               $this->mainJScode.='
-               // Warning about page editing:
-       alert('.$GLOBALS['LANG']->JScharCode(sprintf($GLOBALS['LANG']->getLL('noEditPage'),$editId)).');
-                       ';
-                       }
-               }
-       }
-
-       /**
-        * Sets the startup module from either GETvars module and mpdParams or user configuration.
-        *
-        * @return      void
-        */
-       function startModule() {
-               global $BE_USER;
-               $module = preg_replace('/[^[:alnum:]_]/','',t3lib_div::_GET('module'));
-               if (!$module && $BE_USER->uc['startInTaskCenter']) {
-                       $module = 'user_task';
-               }
-
-               $params = t3lib_div::_GET('modParams');
-               if ($module) {
-                       $this->mainJScode.='
-               // open in module:
-       window.setTimeout("top.goToModule(\''.$module.'\',false,\''.$params.'\');",500);
-                       ';
-               }
-       }
-
-
-       /**
-        * Creates the header and frameset of the backend interface
-        *
-        * @return      void
-        */
-       function main() {
-               global $BE_USER,$TYPO3_CONF_VARS;
-
-                       // Set doktype:
-               $GLOBALS['TBE_TEMPLATE']->docType='xhtml_frames';
-
-                       // Make JS:
-               $this->generateJScode();
-               $GLOBALS['TBE_TEMPLATE']->JScode= '
-                       <script type="text/javascript" src="md5.js"></script>
-                       <script type="text/javascript" src="../t3lib/jsfunc.evalfield.js"></script>
-                       ';
-               $GLOBALS['TBE_TEMPLATE']->JScode.=$GLOBALS['TBE_TEMPLATE']->wrapScriptTags($this->mainJScode);
-
-                       // Title:
-               $title = $TYPO3_CONF_VARS['SYS']['sitename'] ? $TYPO3_CONF_VARS['SYS']['sitename'].' [TYPO3 '.TYPO3_version.']' : 'TYPO3 '.TYPO3_version;
-
-               //Add styles
-               $this->content.='
-               
-               <script src="contrib/prototype/prototype.js" language="JavaScript" type="text/javascript"></script>
-               <script src="contrib/scriptaculous/scriptaculous.js" language="JavaScript" type="text/javascript"></script>
-               <script type="text/javascript" language="JavaScript">
-                       function getElementContent(placeholderId, frequency, url) {
-                               if (!url)       {
-                                       if (placeholderId=="_logoMenu") {
-                                               var url = "logomenu.php?cmd=menuitem";
-                                       } else {
-                                               var url = "mod.php?M="+placeholderId+"&cmd=menuitem";
-                                       }
-                               }
-                               var pars = "";
-                               
-                               if (frequency)  {
-                                       var myAjax = new Ajax.PeriodicalUpdater(
-                                               placeholderId, 
-                                               url, 
-                                               {
-                                                       method: "get", 
-                                                       parameters: pars,
-                                                       evalScripts: true,
-                                                       frequency: frequency
-                                               });
-                               } else {
-                                       var myAjax = new Ajax.Updater(
-                                               placeholderId, 
-                                               url, 
-                                               {
-                                                       method: "get", 
-                                                       parameters: pars,
-                                                       evalScripts: true
-                                               });
-                               }
-                       }                       
-                       
-                       
-                       var menuActive = "";
-                       var menuItemObjects = new Array();
-                       
-                       function menuToggleState(ID) {
-                               if (menuActive) {
-                                       menuReset();
-                               } else {
-                                       menuSet(ID);
-                               }
-                       }
-                       function menuMouseOver(ID) {
-                               if (menuActive) {
-                                       menuSet(ID);
-                               }
-                       }
-                       function menuMouseOut(ID)       {
-                               return;
-                               if (menuActive) {
-                                       hideOpenLayerStack();
-                                       Element.removeClassName(menuActive, "menu-hilight");
-                                       Element.addClassName(menuActive, "menu-normal");
-                               }
-                       }
-                       
-                       function menuSet(ID) {
-                               if (menuActive != ID)   {
-                                       hideOpenLayerStack();
-                                       if (menuActive) {
-                                               Element.removeClassName(menuActive, "menu-hilight");
-                                               Element.addClassName(menuActive, "menu-normal");
-                                       }
-                                       menuActive = ID;
-
-                                       Element.addClassName(menuActive, "menu-hilight");
-                                       Element.removeClassName(menuActive, "menu-normal");
-
-                                               // Show layer below
-                                       var nodes = $A($(ID).childNodes);
-                                       nodes.each(function(node){
-                                               if (node.nodeType==1)   {       // This type seems to represent tags, not CDATA (which for some reason stops JS execution!)
-                                                       if (Element.hasClassName(node,"menulayer"))     {
-                                                               menuShowLayer(node, ID);
-                                                       }
-                                               }
-                                       });
-
-                                       if (menuItemObjects[ID])        menuItemObjects[ID].onActivate();
-                               }
-                       }
-                       function menuReset() {
-                               hideOpenLayerStack();
-                               Element.removeClassName(menuActive, "menu-hilight");
-                               Element.addClassName(menuActive, "menu-normal");
-                               menuActive = "";
-                       }
-                       
-                       function hideOpenLayerStack() {
-                               var layersToHide = document.getElementsByClassName("menulayer", "menu");
-                               var nodes = $A(layersToHide);
-                               nodes.each(function(node){
-                                       Element.hide(node);
-//                                     Effect.Fade(node,{duration: 0.4});
-                               });                             
-                       }
-                       function menuShowLayer(menyLayerObj, alignWithID)       {
-//                             Element.show(menyLayerObj);
-
-                               var rightEdgeOfLayer = $(alignWithID).offsetLeft + Element.getDimensions(menyLayerObj).width;
-                               if (rightEdgeOfLayer>document.body.clientWidth) {
-                                       Element.setStyle(menyLayerObj,{left: ($(alignWithID).offsetLeft + Element.getDimensions(alignWithID).width - Element.getDimensions(menyLayerObj).width)+\'px\'}); 
-                               } else {
-                                       Element.setStyle(menyLayerObj,{left: ($(alignWithID).offsetLeft)+\'px\'}); 
-                               }
-                               Element.setStyle(menyLayerObj,{top: \''.$this->topMenu.'px\'}); 
-                               
-                               Effect.Appear(menyLayerObj,{duration: 0.2});
-                       }       
-                       
-                       function menuOpenSub(el)        {
-
-                                       // First, show node:
-                               var nodes = $A(el.childNodes);
-                               nodes.each(function(node){
-                                       if (node.nodeType==1)   {       // This type seems to represent tags, not CDATA (which for some reason stops JS execution!)
-                                               //debugObj(node);
-                                               if (Element.hasClassName(node,"menulayer") && !Element.visible(node))   {
-                                                       Effect.Appear(node,{duration: 0.2});
-                                                       Element.setStyle(node,{left: ($(el).offsetLeft + Element.getDimensions(el).width - 5) +\'px\'}); 
-                                                       
-                                                       if (el.id && menuItemObjects[""+el.id]) {
-                                                               menuItemObjects[""+el.id].onActivate();
-                                                       }
-                                               }
-                                       }
-                               });
-
-                                       // Hide everyone except this:
-                               var siblings = $A(el.parentNode.childNodes);
-                               siblings.each(function(sibling){
-                                       if (sibling.nodeType==1)        {
-                                               var equal =  sibling==el;
-                                               if (!equal)     {
-                                                       var layersToHide = document.getElementsByClassName("menulayer", sibling);
-                                                       var nodes = $A(layersToHide);
-                                                       nodes.each(function(node){
-                                                               Element.hide(node);
-                                                       });
-                                               }
-                                       }
-                               });
-                       }               
-                       
-                       
-                               
-               </script>               
-               
-               
-               <style type="text/css" id="internalStyle">
-                               /*<![CDATA[*/
-                                       
-<!--
-
-body, html {
-       width: 100%;
-       height: 100%;
-       margin: 0;
-       padding: 0;
-}
-
-#menu {
-       position: absolute;
-       top: 0px;
-       left: 0px;
-       height: '.$this->topMenu.'px;
-       z-index: 99;
-       border-bottom: 1px solid #666666;
-       border-top: 1px solid black;
-       width: 100%;
-       background-image: url("gfx/x_menubackground.gif");
-}
-
-#icons {
-       position: absolute;
-       top: '.$this->topMenu.'px;
-       left: 0px;
-       height: '.$this->topIcons.'px;
-       z-index: 98;
-       background-color: #eeeeee;
-       border-bottom: 1px solid #666666;
-       width: 100%;
-}
-
-#content {
-       position: absolute;
-       top: '.(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['icons']) ? $this->topIcons+$this->topMenu : $this->topMenu).'px;
-       left: 0px;
-       width: 100%;
-       height: 100%;
-       border: 0px; 
-       z-index: 1;
-}
-
-.menu-hilight {
-       background-color: #d0e7b1;
-       padding-left: 0px; 
-       padding-right: 0px;
-       border-left: 1px solid #999999;
-       border-right: 1px solid #999999;
-}
-.menu-normal {
-       padding-left: 1px; 
-       padding-right: 1px;
-}
-.menuItems {
-       height: '.($this->topMenu-1).'px;
-       cursor: hand;
-       padding-top:2px;
-       font-size: 12px;
-}
-.menulayer {
-       position: absolute;
-       border: 1px solid #aaaaaa;
-       background-image : url("gfx/x_menulayerbg.png");
-}
-
-.menulayer DIV.menuLayerItem {
-       cursor: hand;
-       width: 100%; 
-       height: 16px;
-       white-space: nowrap;
-       padding-top: 3px;
-       padding-bottom: 3px;
-       font-size: 11px;
-}
-.menulayerItemIcon     {
-       vertical-align: middle;
-       padding-right: 3px;
-}
-
-.menulayer DIV.menuLayerItem_divider {
-       background-image : url("gfx/x_dividerbg.png");
-       width: 100%;
-       height: 7px;
-}
-.menulayer DIV.menuLayerItem:hover {
-       background-color: #d0e7b1;
-}
-
-html {
-       /*for IE6*/
-       _overflow: hidden; 
-}
-
-body { 
- overflow: hidden; 
-}
-
-
-
-/* Specific for applications: (TODO: Move this into general API:) */
-
-.dashboard-col {
-       float: left;
-       border: 1px solid red;
-}
-.dashboard-dock {
-       border: 1px solid yellow;
-       float: none;
-}
-.dashboard-item {
-       background-color: white;
-       border: 1px solid blue;
-       margin: 10 10 10 10;
-}
-.dashboard-dock .dashboard-item {
-       background-color: yellow;
-}
-.dashboard-dock .dashboard-item .dashboard-icon {
-       display: visible;
-}
-.dashboard-dock .dashboard-item .dashboard-content {
-       display: none
-}
-.dashboard-col .dashboard-item .dashboard-icon {
-       display: none;
-}
-
-.dashboard-item-hover {
-       border: 3px solid green;
-}
-
--->
-                               /*]]>*/
-
-</style>
-               ';
-               
-               
-               
-                       // Start page header:
-               $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage($title);
-/*
-                       // Creates frameset
-               $fr_content = '<frame name="content" src="alt_intro.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />';
-               $fr_toplogo = '<frame name="toplogo" src="alt_toplogo.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />';
-               $fr_topmenu = '<frame name="topmenuFrame" src="alt_topmenu_dummy.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />';
-
-               $shortcutFrame=array();
-               if ($BE_USER->getTSConfigVal('options.shortcutFrame'))  {
-                       $shortcutFrame['rowH']=','.$this->shortcutFrameH;
-                       $shortcutFrame['frameDef']='<frame name="shortcutFrame" src="alt_shortcut.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />';
-               }
-
-                       // XHTML notice: ' framespacing="0" frameborder="0" border="0"' in FRAMESET elements breaks compatibility with XHTML-frames, but HOW ELSE can I control the visual appearance?
-               if ($GLOBALS['BE_USER']->uc['noMenuMode'])      {
-                       $this->content.= '
-                       <frameset rows="'.$this->topFrameH.',*'.$shortcutFrame['rowH'].'" framespacing="0" frameborder="0" border="0">
-                               '.(!strcmp($BE_USER->uc['noMenuMode'],'icons') ? '
-                               <frameset cols="'.$this->leftMenuFrameW.',*" framespacing="0" frameborder="0" border="0">
-                                       '.$fr_toplogo.'
-                                       '.$fr_topmenu.'
-                               </frameset>' : '
-                               <frameset cols="'.$this->leftMenuFrameW.','.$this->selMenuFrame.',*" framespacing="0" frameborder="0" border="0">
-                                       '.$fr_toplogo.'
-                                       <frame name="menu" src="alt_menu_sel.php" scrolling="no" noresize="noresize" />
-                                       '.$fr_topmenu.'
-                               </frameset>').'
-                               '.$fr_content.'
-                               '.$shortcutFrame['frameDef'].'
-                       </frameset>
-                       ';
-               } else {
-                       $this->content.='
-                       <frameset rows="'.$this->topFrameH.',*'.$shortcutFrame['rowH'].'" framespacing="0" frameborder="0" border="0">
-                               <frameset cols="'.$this->leftMenuFrameW.',*" framespacing="0" frameborder="0" border="0">
-                                       '.$fr_toplogo.'
-                                       '.$fr_topmenu.'
-                               </frameset>
-                               <frameset cols="'.$this->leftMenuFrameW.',*" framespacing="0" frameborder="0" border="0">
-                                       <frame name="menu" src="alt_menu.php" marginwidth="0" marginheight="0" scrolling="auto" noresize="noresize" />
-                                       '.$fr_content.'
-                               </frameset>
-                               '.$shortcutFrame['frameDef'].'
-                       </frameset>
-                       ';
-               }
-               $this->content.='
-
-</html>';
-*/
-
-
-
-$c_menu = '';
-$c_icons = '';
-$populate = '';
-if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu'])) {
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu'] = array();
-}
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu'] = array_merge(array('_logoMenu' => array('leftAlign'=>TRUE)), $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu']);
-
-foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu'] as $modName => $options)        {
-       $align = $options['leftAlign'];
-       $c_menu.='<div id="'.$modName.'"'.(!$options['simpleContainer'] ? ' class="menuItems menu-normal"' : '').' style="float: '.($align?'left':'right').';"'.(!$options['simpleContainer'] ? ' onclick="menuToggleState(\''.$modName.'\');" onmouseover="menuMouseOver(\''.$modName.'\');" onmouseout="menuMouseOut(\''.$modName.'\');"':'').'></div>';
-       $populate.= '
-                               getElementContent("'.$modName.'");';
-}
-
-if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['icons'])) {
-       foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['icons'] as $modName => $options)        {
-               $align = $options['leftAlign'];
-               $c_icons.='<div id="'.$modName.'" style="float: '.($align?'left':'right').';"></div>';
-               $populate.= '
-                                       getElementContent("'.$modName.'");';
-       }
-}
-
-$this->content.= ('<body>
-                       <div id="menu">'.$c_menu.'</div>
-                       '.($c_icons ? '<div id="icons">'.$c_icons.'</div>' : '').'
-                       <iframe src="./alt_intro.php" id="content" name="content"></iframe>
-                       
-
-                       <script type="text/javascript" language="JavaScript">
-                               '.$populate.'
-                       </script>               
-                       
-                       
-</body>');
-
-$this->content.= ('</html>');
-       }
-
-       /**
-        * Outputting the accumulated content to screen
-        *
-        * @return      void
-        */
-       function printContent() {
-               echo $this->content;
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_main.php'])     {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_main.php']);
-}
-
-
-
-
-
-
-
-// ******************************
-// Starting document output
-// ******************************
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_alt_main');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
-
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/cache/conf.php b/typo3/sysext/topapps/cache/conf.php
deleted file mode 100644 (file)
index 2c65b46..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_cache'; // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/cache/index.php b/typo3/sysext/topapps/cache/index.php
deleted file mode 100644 (file)
index f107032..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-$LANG->includeLLFile('EXT:topapps/cache/locallang.xml');
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-require_once ('class.alt_menu_functions.inc');
-
-/**
- * Main script class for the cache clearing functions
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_cache extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-
-                               echo '<img src="gfx/clear_cache.gif" hspace="1" />';
-                               
-                               echo'
-                                       <script>
-                                               getElementContent("'.$MCONF['name'].'-layer", 10, "mod.php?M='.$MCONF['name'].'&cmd=content")
-                                       </script>
-                               
-                               ';
-                               echo $this->simpleLayer('Fetching...',$MCONF['name'].'-layer');
-                       break;
-                       case 'content':
-                               $mObj = t3lib_div::makeInstance('alt_menu_functions');
-                               $functions = $mObj->adminFunctions('');
-                               $functions[] = array(
-                                       'title' => 'Clear page cache',
-                                       'href' => 'tce_db.php?vC='.$GLOBALS['BE_USER']->veriCode().'&redirect='.rawurlencode(t3lib_div::getIndpEnv('TYPO3_REQUEST_SCRIPT')).'&cacheCmd=pages',
-                                       'id' => 'page'
-                               );
-                               
-                               $items = array();
-                               foreach($functions as $cfg)     {
-                                       
-                                       switch($cfg['id'])      {
-                                               case 'temp_CACHED':
-                                                       $cacheFiles = t3lib_extMgm::currentCacheFiles();
-                                                       $cfg['title'].= ' ['.($cacheFiles[0] ? t3lib_BEfunc::calcAge(time()-filemtime($cacheFiles[0])) : 'NONE').']';
-                                                       $cfg['icon'] = array('gfx/clear_cache_files_in_typo3c.gif','width="21" height="18"');
-                                               break;
-                                               case 'all':
-                                                       $res = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('count(*)','cache_hash','');
-                                                       $cfg['title'].= ' ['.$res[0]['count(*)'].']';
-                                                       $cfg['icon'] = array('gfx/clear_all_cache.gif','width="21" height="18"');
-                                               break;
-                                               case 'page':
-                                                       $res = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('count(*)','cache_pages','');
-                                                       $cfg['title'].= ' ['.$res[0]['count(*)'].']';
-                                               break;
-                                       }
-                                       
-                                       
-                                       $items[] = array(
-                                               'title' => $cfg['title'],
-                                               'icon' => $cfg['icon'],
-                                               'onclick' => "new Ajax.Request('".$cfg['href']."');"
-                                       );
-                               }
-
-                               echo $this->menuItems($items);
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/cache/index.php'])    {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/cache/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_cache');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/cache/locallang.xml b/typo3/sysext/topapps/cache/locallang.xml
deleted file mode 100644 (file)
index 3e68b9e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Labels for module</description>
-               <type>module</type>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="cache">Cache</label>
-               </languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/clock/conf.php b/typo3/sysext/topapps/clock/conf.php
deleted file mode 100644 (file)
index 7c7b75b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_clock'; // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/clock/index.php b/typo3/sysext/topapps/clock/index.php
deleted file mode 100644 (file)
index 8f9e590..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-$LANG->includeLLFile('EXT:topapps/clock/locallang.xml');
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-require_once ('class.alt_menu_functions.inc');
-
-/**
- * Main script class for the clock display
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_clock extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG,$BE_USER;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-                               echo '
-                                       <script>
-//                                             Element.update("'.$MCONF['name'].'-time","test");
-                                               getElementContent("'.$MCONF['name'].'", 10, "mod.php?M='.$MCONF['name'].'&cmd=time");
-                                       </script>                               
-                               ';
-                       break;
-                       case 'time':
-                       
-                               $config = $BE_USER->uc['moduleData'][$MCONF['name']];
-
-                               echo '&nbsp;'.strftime(($config['day']?'%a, ':'').($config['date']?'%d %b %Y ':'').'%H:%M'.($config['timezone']?' %z':'')).'&nbsp;';
-
-                               $menuItems = array(
-                                       array(
-                                               'title' => 'Show day',
-                                               'state' => $config['day'] ? 'checked' : '',
-                                               'onclick' => $this->toggleOnclick('day')
-                                       ),
-                                       array(
-                                               'title' => 'Show date',
-                                               'state' => $config['date'] ? 'checked' : '',
-                                               'onclick' => $this->toggleOnclick('date')
-                                       ),
-                                       array(
-                                               'title' => 'Show timezone',
-                                               'state' => $config['timezone'] ? 'checked' : '',
-                                               'onclick' => $this->toggleOnclick('timezone')
-                                       ),
-                               );
-                               echo $this->menuLayer($menuItems);
-                       break;
-                       case 'toggle':
-                               $index = t3lib_div::_GET('index');
-                               if (t3lib_div::inList('day,date,timezone',$index))      {
-                                       $BE_USER->uc['moduleData'][$MCONF['name']][$index] = !$BE_USER->uc['moduleData'][$MCONF['name']][$index];
-                                       $BE_USER->writeUC($BE_USER->uc);
-                               }
-                       break;
-               }
-       }
-       function toggleOnclick($index)  {
-               global $MCONF;
-               return 'new Ajax.Request("mod.php?M='.$MCONF['name'].'&cmd=toggle&index='.$index.'",{onComplete: function(){getElementContent("'.$MCONF['name'].'", 0, "mod.php?M='.$MCONF['name'].'&cmd=time");}});';
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/clock/index.php'])    {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/clock/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_clock');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/clock/locallang.xml b/typo3/sysext/topapps/clock/locallang.xml
deleted file mode 100644 (file)
index 3e68b9e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Labels for module</description>
-               <type>module</type>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="cache">Cache</label>
-               </languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/dashboard/conf.php b/typo3/sysext/topapps/dashboard/conf.php
deleted file mode 100644 (file)
index 3630f13..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_dashboard';     // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/dashboard/index.php b/typo3/sysext/topapps/dashboard/index.php
deleted file mode 100644 (file)
index 6290287..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-$LANG->includeLLFile('EXT:topapps/dashboard/locallang.xml');
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-
-/**
- * Main script class for the dashboard overlay
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_dashboard extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-                               
-                               echo '<img src="'.t3lib_extMgm::extRelPath('topapps').'dashboard/x_dashboard.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" alt="" onclick="menuItemObjects[\''.$MCONF['name'].'\'].toggle();" />
-                               <script>
-                                       menuItemObjects[\''.$MCONF['name'].'\'] = {
-                                               active : false,
-                                               toggle: function () {
-                                                       if (!this.active)       {
-                                                               this.active = true;
-                                                               $(\''.$MCONF['name'].'-layer\').style.height = (document.body.clientHeight-50)+\'px\';
-                                                               $(\''.$MCONF['name'].'-background\').style.height = (document.body.clientHeight-50)+\'px\';
-                                                               Effect.Appear(\''.$MCONF['name'].'-background'.'\',{duration: 0.4, from:0, to:0.7}); 
-                                                               Effect.Appear(\''.$MCONF['name'].'-layer'.'\',{duration: 0.4}); 
-                                                       } else {
-                                                               this.active = false;
-                                                               Effect.Fade(\''.$MCONF['name'].'-background'.'\',{duration: 0.4}); 
-                                                               Effect.Fade(\''.$MCONF['name'].'-layer'.'\',{duration: 0.4}); 
-                                                       }
-                                               }
-                                       }                                       
-                               </script>
-                               
-                               
-                               ';
-                               
-                               $layerContent = '
-                               <div id="'.$MCONF['name'].'-background" style="position: absolute; display: none; background: black; left: 0px; width: 100%;"></div>
-                               <div id="'.$MCONF['name'].'-layer" style="position: absolute; display: none; left: 0px; width: 100%;">
-
-                                       <div class="dashboard-dock" id="dashboard_dock">
-                                               <div class="dashboard-item" id="i1"><p class="handle">H</p>Item 1</div>
-                                               <div class="dashboard-item" id="i2"><p class="handle">H</p>Item 2</div>
-                                               <div class="dashboard-item" id="i3"><p class="handle">H</p>Item 3</div>
-                                       </div><br/>
-
-                                       <div class="dashboard-col" style="width: 46%;" id="dashboard_col1">
-                                               <br/>
-
-                                               <div class="dashboard-item" id="i4">
-                                                       <div class="dashboard-icon">ICON</div>
-                                                       <div class="dashboard-handle handle">My header</div>
-                                                       <div class="dashboard-content">
-                                                               Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... 
-                                                       </div>
-                                               </div>
-                                       </div>
-                       
-                                       <div class="dashboard-col" style="width: 33%;" id="dashboard_col2">
-                                               <br/>
-
-                                               <div class="dashboard-item" id="i5">
-                                                       <div class="dashboard-icon">ICON</div>
-                                                       <div class="dashboard-handle handle">My header</div>
-                                                       <div class="dashboard-content">
-                                                               Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... 
-                                                       </div>
-                                               </div>
-                                       </div>
-                       
-                                       <div class="dashboard-col" style="width: 20%;" id="dashboard_col3">
-                                               <br/>
-
-                                               <div class="dashboard-item" id="i6">
-                                                       <div class="dashboard-icon">ICON</div>
-                                                       <div class="dashboard-handle handle">My header</div>
-                                                       <div class="dashboard-content">
-                                                               Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... Lots of content... 
-                                                       </div>
-                                               </div>
-                                       </div>
-                       
-                               </div>
-                               
-                                <script type="text/javascript">
-                                // <![CDATA[
-                                  Sortable.create("dashboard_dock",
-                                    {
-                                               dropOnEmpty:true,
-                                               containment:["dashboard_dock","dashboard_col1","dashboard_col2","dashboard_col3"],
-                                               constraint:false,
-                                               tag: \'div\',
-                                               handle: \'handle\',
-                                               hoverclass : \'dashboard-item-hover\',
-                                               onUpdate: function (obj,another){ 
-                                                       alert(obj.id);
-                                               }
-                                       });
-                                  Sortable.create("dashboard_col1",
-                                    {
-                                               dropOnEmpty:true,
-                                               containment:["dashboard_dock","dashboard_col1","dashboard_col2","dashboard_col3"],
-                                               constraint:false,
-                                               tag: \'div\',
-                                               handle: \'handle\',
-                                               onUpdate: function (obj){
-                                                       //alert(obj.id);
-                                               }
-                                       });
-                                  Sortable.create("dashboard_col2",
-                                    {
-                                               dropOnEmpty:true,
-                                               containment:["dashboard_dock","dashboard_col1","dashboard_col2","dashboard_col3"],
-                                               constraint:false,
-                                               tag: \'div\',
-                                               handle: \'handle\',
-                                               onUpdate: function (obj){
-                                                       //alert(obj.id);
-                                               }
-                                       });
-                                  Sortable.create("dashboard_col3",
-                                    {
-                                               dropOnEmpty:true,
-                                               containment:["dashboard_dock","dashboard_col1","dashboard_col2","dashboard_col3"],
-                                               constraint:false,
-                                               tag: \'div\',
-                                               handle: \'handle\',
-                                               onUpdate: function (obj){
-                                                       //alert(obj.id);
-                                               }
-                                       });
-
-                                // ]]>
-                                </script>
-                                                               
-                               
-                               
-                               ';
-                               echo $layerContent;
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/dashboard/index.php'])        {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/dashboard/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_dashboard');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/dashboard/locallang.xml b/typo3/sysext/topapps/dashboard/locallang.xml
deleted file mode 100644 (file)
index eb1e160..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Labels for module</description>
-               <type>module</type>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="searchFor">Search:</label>
-               </languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/dashboard/x_dashboard.png b/typo3/sysext/topapps/dashboard/x_dashboard.png
deleted file mode 100644 (file)
index 5d052cb..0000000
Binary files a/typo3/sysext/topapps/dashboard/x_dashboard.png and /dev/null differ
diff --git a/typo3/sysext/topapps/dashboard/x_search.png b/typo3/sysext/topapps/dashboard/x_search.png
deleted file mode 100644 (file)
index d361165..0000000
Binary files a/typo3/sysext/topapps/dashboard/x_search.png and /dev/null differ
diff --git a/typo3/sysext/topapps/ext_emconf.php b/typo3/sysext/topapps/ext_emconf.php
deleted file mode 100644 (file)
index dbf4601..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-########################################################################
-# Extension Manager/Repository config file for ext: "impexp"
-#
-# Auto generated 17-11-2004 17:48
-#
-# Manual updates:
-# Only the data in the array - anything else is removed by next write
-########################################################################
-
-$EM_CONF[$_EXTKEY] = Array (
-       'title' => 'Top Area Applications',
-       'description' => 'Core applications for the top bar in TYPO3 new backend',
-       'category' => 'be',
-       'TYPO3_version' => '4.1.0-',
-       'author' => 'Kasper Skårhøj',
-       'author_email' => 'kasperYYYY@typo3.com',
-       'author_company' => 'Curby Soft Multimedia',
-);
-
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/ext_tables.php b/typo3/sysext/topapps/ext_tables.php
deleted file mode 100644 (file)
index 5a0b284..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
-
-if (TYPO3_MODE=='BE')  {
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_menu',t3lib_extMgm::extPath($_EXTKEY).'menu/',FALSE,array('leftAlign' => TRUE, 'simpleContainer' => TRUE));
-
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_search',t3lib_extMgm::extPath($_EXTKEY).'search/');
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_clock',t3lib_extMgm::extPath($_EXTKEY).'clock/');
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_workspaces',t3lib_extMgm::extPath($_EXTKEY).'workspaces/');
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_user',t3lib_extMgm::extPath($_EXTKEY).'user/');
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_cache',t3lib_extMgm::extPath($_EXTKEY).'cache/');
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_xyzcorp',t3lib_extMgm::extPath($_EXTKEY).'xyzcorp/');
-
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_shortcuts',t3lib_extMgm::extPath($_EXTKEY).'shortcut/',TRUE,array('leftAlign' => TRUE));
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_dashboard',t3lib_extMgm::extPath($_EXTKEY).'dashboard/',TRUE,array('leftAlign' => TRUE));
-       t3lib_extMgm::addTopApp('xMOD_txtopapps_submodules',t3lib_extMgm::extPath($_EXTKEY).'submodules/',TRUE);
-}
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/menu/conf.php b/typo3/sysext/topapps/menu/conf.php
deleted file mode 100644 (file)
index bb65e45..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_menu';  // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/menu/index.php b/typo3/sysext/topapps/menu/index.php
deleted file mode 100644 (file)
index 59253a6..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
-require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
-require_once ('class.alt_menu_functions.inc');
-
-
-
-
-/**
- * Main script class for the drop down menu
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_menu extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF;
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-                                       // Initialize modules
-                               $loadModules = t3lib_div::makeInstance('t3lib_loadModules');
-                               $loadModules->observeWorkspaces = TRUE;
-                               $loadModules->load($TBE_MODULES);
-
-                                       // Make menu and add it:
-                               $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
-                               $itemArray = $alt_menuObj->topMenu($loadModules->modules,0,'',5);
-
-/*
-                               echo '
-                               &nbsp;Modules&nbsp;';
-                               
-                               echo $this->menuLayer($itemArray);
-       */
-       
-                               foreach($itemArray as $k => $prop)      {
-                                       $content = '&nbsp;'.htmlspecialchars($prop['title']).'&nbsp;';
-                                       if (is_array($prop['subitems']))        {
-                                               
-                                               foreach($prop['subitems'] as $kk => $kprop)     {
-                                                       if ($GLOBALS['TBE_MODULES_EXT'][$kprop['moduleName']]['MOD_MENU']['function'])  {
-                                                               $prop['subitems'][$kk]['subitems'] = array();
-                                                               foreach($GLOBALS['TBE_MODULES_EXT'][$kprop['moduleName']]['MOD_MENU']['function'] as $function) {
-                                                                       $prop['subitems'][$kk]['subitems'][] = array(
-                                                                               'title' => $GLOBALS['LANG']->sL($function['title']),
-                                                                       );
-                                                               }
-                                                       }
-                                               }
-                                               $content.= $this->menuLayer($prop['subitems']);
-                                       }
-                                       echo $this->menuItemLayer($MCONF['name'].'_'.$k,$content,$prop['onclick']); 
-                               }
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/menu/index.php'])     {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/menu/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_menu');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/search/conf.php b/typo3/sysext/topapps/search/conf.php
deleted file mode 100644 (file)
index 1f770a5..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_search';        // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/search/index.php b/typo3/sysext/topapps/search/index.php
deleted file mode 100644 (file)
index 6416842..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-$LANG->includeLLFile('EXT:topapps/search/locallang.xml');
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-require_once(PATH_typo3.'sysext/indexed_search/class.lexer.php');
-
-
-/**
- * Main script class for the search box
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_search extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-                               
-                               echo '<img src="'.t3lib_extMgm::extRelPath('topapps').'search/x_search.png" hspace="5" alt=""/>
-                               <script>
-                                       menuItemObjects[\''.$MCONF['name'].'\'] = {
-                                               onActivate: function() {
-                                               },
-                                               search: function (str) {
-                                                       if (str.length>2)       {
-                                                               var pars = "sword="+str;
-                                                               var myAjax = new Ajax.Updater(
-                                                                       "'.$MCONF['name'].'-result", 
-                                                                       "mod.php?M=xMOD_txtopapps_search&cmd=search", 
-                                                                       {
-                                                                               method: "get", 
-                                                                               parameters: pars,
-                                                                               evalScripts: true
-                                                                       });
-                                                       }
-                                               }
-                                       }                                       
-                               </script>
-                               
-                               ';
-                               
-                               $layerContent = '<div style="background: #d0e7b1; width: 200px; white-space: nowrap; padding: 5 5 5 5;" onclick="event.stopPropagation();">'.$LANG->getLL('searchFor').
-                                       ' <input type="text" value="" name="" onkeyup="menuItemObjects[\''.$MCONF['name'].'\'].search(this.value);" /></div>
-                               <div id="'.$MCONF['name'].'-result" style="border-top: 1px solid black;"></div>
-                               ';
-                               
-                               echo $this->simpleLayer($layerContent);
-                       break;
-                       case 'search':
-                               $sw = t3lib_div::_GET('sword');
-                               $lexer = t3lib_div::makeInstance('tx_indexedsearch_lexer');
-                               $words = $lexer->split2Words($sw);
-                               
-                               $widArray = array(0);
-                               $c=0;
-                               foreach($words as $k => $v)     {
-                                       $c++;
-                                       $widArray[] = t3lib_div::md5int($c==count($words) ? substr($v,0,3) : $v);
-                               }
-                               
-                               
-                               
-                               // TODO: substr(3) will not work with utf-8!! (also problem in indexer!)
-                               
-                               
-                               $rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
-                                       'sys_refindex_res.*, count(*) as numberOfWordMatches',
-                                       'sys_refindex_words,sys_refindex_rel,sys_refindex_res',
-                                       'sys_refindex_words.wid IN ('.implode(',',$widArray).')'.
-                                               ' AND sys_refindex_words.wid=sys_refindex_rel.wid'.
-                                               ' AND sys_refindex_rel.rid=sys_refindex_res.rid',
-                                       'sys_refindex_res.rid',
-                                       'numberOfWordMatches DESC',
-                                       '10'
-                               );
-                               
-                               foreach($rows as $k => $row)    {
-                                       if ($row['numberOfWordMatches']!=count($words)) {
-                                               unset($rows[$k]);
-                                       }
-                               }
-                               
-                               echo 'Searching for "'.implode('" AND "', $words).'":<hr/>';
-                               $c=0;
-                               foreach($rows as $k => $row)    {
-                                       $rec = t3lib_BEfunc::getRecord($row['tablename'],$row['recuid']);
-                                       if (is_array($rec))     {
-                                               if ($c>=10)     {
-                                                       echo '... and some more...';
-                                                       break;
-                                               } else {
-                                                       echo t3lib_iconWorks::getIconImage($row['tablename'],$rec,'','class="absmiddle"'). 
-                                                               t3lib_BEfunc::getRecordTitle($row['tablename'],$rec,TRUE).'<br/>';
-                                                       $c++;
-                                               }
-                                       }
-                               }
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/search/index.php'])   {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/search/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_search');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/search/locallang.xml b/typo3/sysext/topapps/search/locallang.xml
deleted file mode 100644 (file)
index eb1e160..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Labels for module</description>
-               <type>module</type>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="searchFor">Search:</label>
-               </languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/search/x_search.png b/typo3/sysext/topapps/search/x_search.png
deleted file mode 100644 (file)
index d361165..0000000
Binary files a/typo3/sysext/topapps/search/x_search.png and /dev/null differ
diff --git a/typo3/sysext/topapps/shortcut/addedit.png b/typo3/sysext/topapps/shortcut/addedit.png
deleted file mode 100644 (file)
index 70888c4..0000000
Binary files a/typo3/sysext/topapps/shortcut/addedit.png and /dev/null differ
diff --git a/typo3/sysext/topapps/shortcut/conf.php b/typo3/sysext/topapps/shortcut/conf.php
deleted file mode 100644 (file)
index 69b23dc..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_shortcut';      // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/shortcut/config.png b/typo3/sysext/topapps/shortcut/config.png
deleted file mode 100644 (file)
index af81c27..0000000
Binary files a/typo3/sysext/topapps/shortcut/config.png and /dev/null differ
diff --git a/typo3/sysext/topapps/shortcut/index.php b/typo3/sysext/topapps/shortcut/index.php
deleted file mode 100644 (file)
index 5fe464f..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-/**
- * Main script class for the shortcut display
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_shortcut extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG,$BE_USER;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-                               echo '
-<div id="shortcut_icons">
-<a onclick="Element.toggle(\'shortcut_iconpossibilities\');return false;">C</a>
-                               <a onclick="top.goToModule(\'web_list\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/module.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-                               <a onclick="top.goToModule(\'web_layout\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/addedit.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-                               <a onclick="top.goToModule(\'file_list\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/mediamanager.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-                               <a onclick="top.goToModule(\'tools_beuser\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/user.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-                               <a onclick="top.goToModule(\'user_setup\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/config.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-</div>
-
-<div id="shortcut_iconpossibilities" style="background-color: #666666; position:absolute; width: 300px; display: none;">
-<a onclick="top.goToModule(\'web_list\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/module.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'web_layout\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/addedit.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'file_list\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/mediamanager.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'tools_beuser\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/user.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'user_setup\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/config.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<hr>
-<a onclick="top.goToModule(\'web_list\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/module.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'web_layout\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/addedit.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'file_list\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/mediamanager.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'tools_beuser\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/user.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'user_setup\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/config.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'file_list\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/mediamanager.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'tools_beuser\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/user.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'user_setup\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/config.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'file_list\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/mediamanager.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'tools_beuser\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/user.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-<a onclick="top.goToModule(\'user_setup\'); event.stopPropagation(); return false;"><img src="'.t3lib_extMgm::extRelPath('topapps').'shortcut/config.png" height="32" style="padding-left: 4px; cursor: hand;" vspace="4" /></a>
-</div>
-                                <script type="text/javascript">
-                                // <![CDATA[
-                                  Sortable.create("shortcut_icons",
-                                    {
-                                               dropOnEmpty:true,
-                                               containment:["shortcut_icons","shortcut_iconpossibilities"],
-                                               constraint:false,
-                                               tag: \'a\',
-                                               overlap: \'horizontal\',
-                                               onUpdate: function (id){}
-                                       });
-
-
-                                  Sortable.create("shortcut_iconpossibilities",
-                                    {
-                                               dropOnEmpty:true,
-                                               containment:["shortcut_icons","shortcut_iconpossibilities"],
-                                               constraint:false,
-                                               tag: \'a\',
-                                               overlap: \'horizontal\',
-                                               onUpdate: function (id){}
-                                       });
-                                // ]]>
-                                </script>
-                               ';
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/shortcut/index.php']) {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/shortcut/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_shortcut');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/shortcut/locallang.xml b/typo3/sysext/topapps/shortcut/locallang.xml
deleted file mode 100644 (file)
index 3e68b9e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Labels for module</description>
-               <type>module</type>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="cache">Cache</label>
-               </languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/shortcut/mediamanager.png b/typo3/sysext/topapps/shortcut/mediamanager.png
deleted file mode 100644 (file)
index 64c8b0a..0000000
Binary files a/typo3/sysext/topapps/shortcut/mediamanager.png and /dev/null differ
diff --git a/typo3/sysext/topapps/shortcut/module.png b/typo3/sysext/topapps/shortcut/module.png
deleted file mode 100644 (file)
index ef0b7d7..0000000
Binary files a/typo3/sysext/topapps/shortcut/module.png and /dev/null differ
diff --git a/typo3/sysext/topapps/shortcut/user.png b/typo3/sysext/topapps/shortcut/user.png
deleted file mode 100644 (file)
index 0c6ba8f..0000000
Binary files a/typo3/sysext/topapps/shortcut/user.png and /dev/null differ
diff --git a/typo3/sysext/topapps/submodules/conf.php b/typo3/sysext/topapps/submodules/conf.php
deleted file mode 100644 (file)
index 64dad8b..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_submodules';    // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/submodules/index.php b/typo3/sysext/topapps/submodules/index.php
deleted file mode 100644 (file)
index 88601b5..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
-require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
-require_once ('class.alt_menu_functions.inc');
-
-/**
- * Main script class for the submodules display
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_submodules extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG,$BE_USER;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-                               echo '
-                                       
-                                       <script>
-                                               myTimer = function () {
-                                                       window.setTimeout("myTimer();",5*1000);
-                                                       if (top.fsMod.currentMainLoaded=="web") {       
-                                                               getElementContent("'.$MCONF['name'].'", 0, "mod.php?M='.$MCONF['name'].'&cmd=content");
-                                                       } else {
-                                                               Element.update("'.$MCONF['name'].'","");
-                                                       }
-                                               }
-                                               myTimer();
-                                       </script>';
-                       break;
-                       case 'content':
-                                       // Initialize modules
-                               $loadModules = t3lib_div::makeInstance('t3lib_loadModules');
-                               $loadModules->observeWorkspaces = TRUE;
-                               $loadModules->load($TBE_MODULES);
-
-                                       // Make menu and add it:
-                               $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
-                               $itemArray = $alt_menuObj->topMenu($loadModules->modules,0,'',5);
-
-                               foreach($itemArray['web_tab']['subitems'] as $kk => $submodules)        {
-                                       echo '<div style="padding: 3 3 3 3; background-color: #999999; border: 1px solid black; float:left; cursor: hand;" onclick="'.htmlspecialchars($submodules['onclick']).'">'.htmlspecialchars($submodules['title']).'</div>';
-                               }
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/submodules/index.php'])       {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/submodules/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_submodules');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/user/be_users.gif b/typo3/sysext/topapps/user/be_users.gif
deleted file mode 100644 (file)
index c741e31..0000000
Binary files a/typo3/sysext/topapps/user/be_users.gif and /dev/null differ
diff --git a/typo3/sysext/topapps/user/conf.php b/typo3/sysext/topapps/user/conf.php
deleted file mode 100644 (file)
index 5ce11ce..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_user';  // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/user/index.php b/typo3/sysext/topapps/user/index.php
deleted file mode 100644 (file)
index be7c6d4..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-require_once ('class.alt_menu_functions.inc');
-
-/**
- * Main script class for the user listing
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_user extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-
-                               echo '<img src="'.t3lib_extMgm::extRelPath('topapps').'user/be_users.gif" hspace="1" alt=""/>';
-                               
-                               $itemArray = array();
-                               $users = t3lib_BEfunc::getUserNames();
-                               foreach($users as $uid => $dat) {
-                                       $userRec = t3lib_BEfunc::getRecord('be_users',$uid);
-                                       $itemArray[] = array(
-                                               'title' => $userRec['username'].' - '.$userRec['realName'].' ('.($userRec['lastlogin'] ? t3lib_BEfunc::calcAge(time()-$userRec['lastlogin']) : 'never').')',
-                                               'icon' => array(t3lib_iconWorks::getIcon('be_users',$userRec),'width="18" height="16"'),
-                                               'state' => $GLOBALS['BE_USER']->user['uid']==$uid ? 'checked' : '',
-                                               'onclick' => 'top.document.location="mod.php?M=tools_beuser&SwitchUser='.$uid.'&switchBackUser=1";',
-                                       );
-                               }
-                               $itemArray[] = array(
-                                       'title' => '--div--',
-                               );
-                               $itemArray[] = array(
-                                       'title' => 'Edit profile',
-                                       'onclick' => 'top.goToModule("user_setup")'
-                               );
-                               
-                               echo $this->menuLayer($itemArray);
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/user/index.php'])     {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/user/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_user');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/user/locallang.xml b/typo3/sysext/topapps/user/locallang.xml
deleted file mode 100644 (file)
index 3e68b9e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Labels for module</description>
-               <type>module</type>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="cache">Cache</label>
-               </languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/workspaces/conf.php b/typo3/sysext/topapps/workspaces/conf.php
deleted file mode 100644 (file)
index 3eb5508..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_workspaces';    // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/workspaces/index.php b/typo3/sysext/topapps/workspaces/index.php
deleted file mode 100644 (file)
index 3f4fe47..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-require_once ('class.alt_menu_functions.inc');
-
-/**
- * Main script class for the workspace selector
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_workspace extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG,$BE_USER,$TYPO3_DB;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-
-                               echo '<img src="'.t3lib_extMgm::extRelPath('topapps').'workspaces/sys_workspace.png" hspace="1" alt=""/>';
-
-
-                                       // Create options array:
-                               $itemArray = array();
-                               if ($BE_USER->checkWorkspace(array('uid' => 0)))        {
-                                       $itemArray[] = array(
-                                               'title' => '[Live Workspace]',
-                                               'onclick' => 'top.document.location="mod.php?M='.$MCONF['name'].'&cmd=switch&wid=0"',
-                                               'state' => $BE_USER->workspace==0
-                                       );
-                               }
-                               if ($BE_USER->checkWorkspace(array('uid' => -1)))       {
-                                       $itemArray[] = array(
-                                               'title' => '[Draft Workspace]',
-                                               'onclick' => 'top.document.location="mod.php?M='.$MCONF['name'].'&cmd=switch&wid=-1"',
-                                               'state' => $BE_USER->workspace==-1
-                                       );
-                               }
-
-                                       // Add custom workspaces (selecting all, filtering by BE_USER check):
-                               $workspaces = $TYPO3_DB->exec_SELECTgetRows('uid,title,adminusers,members,reviewers','sys_workspace','pid=0'.t3lib_BEfunc::deleteClause('sys_workspace'),'','title');
-                               if (count($workspaces)) {
-                                       foreach ($workspaces as $rec)   {
-                                               if ($BE_USER->checkWorkspace($rec))     {
-                                                       $itemArray[] = array(
-                                                               'title' => $rec['uid'].': '.$rec['title'],
-                                                               'onclick' => 'top.document.location="mod.php?M='.$MCONF['name'].'&cmd=switch&wid='.$rec['uid'].'"',
-                                                               'state' => $BE_USER->workspace==$rec['uid']
-                                                       );
-                                               }
-                                       }
-                               }
-                               
-                               $itemArray[] = array(
-                                       'title' => '--div--'
-                               );
-                               $itemArray[] = array(
-                                       'title' => 'Workspace module',
-                                       'onclick' => 'top.goToModule("user_ws");'
-                               );
-                               $itemArray[] = array(
-                                       'title' => 'Frontend Preview',
-                                       'state' => $BE_USER->user['workspace_preview'] ? 'checked' : '',
-                                       'onclick' => 'new Ajax.Request(
-                                                       "mod.php?M='.$MCONF['name'].'&cmd=toggleFEPreview",
-                                                       {onComplete: function(){
-                                                               getElementContent("'.$MCONF['name'].'", 0, "mod.php?M='.$MCONF['name'].'&cmd=menuitem");
-                                                       }}
-                                               );'
-                               );
-                               
-                               echo $this->menuLayer($itemArray);
-                       break;
-                       case 'toggleFEPreview':
-                               $BE_USER->setWorkspacePreview(!$BE_USER->user['workspace_preview']);
-                       break;
-                       case 'switch':
-                               $BE_USER->setWorkspace(t3lib_div::_GET("wid"));
-                               header('Location: '.t3lib_div::locationHeaderUrl('alt_main_new.php'));
-                               exit;
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/workspace/index.php'])        {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/workspace/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_workspace');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/workspaces/locallang.xml b/typo3/sysext/topapps/workspaces/locallang.xml
deleted file mode 100644 (file)
index 3e68b9e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-<T3locallang>
-       <meta type="array">
-               <description>Labels for module</description>
-               <type>module</type>
-       </meta>
-       <data type="array">
-               <languageKey index="default" type="array">
-                       <label index="cache">Cache</label>
-               </languageKey>
-       </data>
-</T3locallang>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/workspaces/sys_workspace.png b/typo3/sysext/topapps/workspaces/sys_workspace.png
deleted file mode 100644 (file)
index 0bcd428..0000000
Binary files a/typo3/sysext/topapps/workspaces/sys_workspace.png and /dev/null differ
diff --git a/typo3/sysext/topapps/xyzcorp/conf.php b/typo3/sysext/topapps/xyzcorp/conf.php
deleted file mode 100644 (file)
index 927ff07..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-$MCONF['name']='xMOD_txtopapps_xyzcorp';       // xMOD_[modulename][optional: '_something']
-?>
diff --git a/typo3/sysext/topapps/xyzcorp/index.php b/typo3/sysext/topapps/xyzcorp/index.php
deleted file mode 100644 (file)
index e8d4746..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project is
-*  free software; you can redistribute it and/or modify
-*  it under the terms of the GNU General Public License as published by
-*  the Free Software Foundation; either version 2 of the License, or
-*  (at your option) any later version.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- */
-/**
- * [CLASS/FUNCTION INDEX of SCRIPT]
- *
- *
- */
-
-require_once(PATH_t3lib.'class.t3lib_topmenubase.php');
-
-
-/**
- * Main script class for the xyzcorp logo
- *
- * @author     Kasper Skaarhoj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage tx_topapps
- */
-class SC_topapps_xyzcorp extends t3lib_topmenubase {
-
-       /**
-        * Main function
-        *
-        * @return      void
-        */
-       function main() {
-               global $TBE_MODULES,$TBE_TEMPLATE,$MCONF,$LANG;
-               
-               switch((string)t3lib_div::_GET('cmd'))  {
-                       case 'menuitem':
-                               echo '<img src="'.t3lib_extMgm::extRelPath('topapps').'xyzcorp/logo.png" alt="" onclick="openUrlInWindow(\'http://www.some_typo3_company.com/\',\'aWindow\'); if (!menuActive) event.stopPropagation();"/>';
-                       break;
-               }
-       }
-}
-
-// Include extension?
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/xyzcorp/index.php'])  {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/topapps/xyzcorp/index.php']);
-}
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_topapps_xyzcorp');
-$SOBE->main();
-?>
\ No newline at end of file
diff --git a/typo3/sysext/topapps/xyzcorp/logo.png b/typo3/sysext/topapps/xyzcorp/logo.png
deleted file mode 100644 (file)
index 2f45114..0000000
Binary files a/typo3/sysext/topapps/xyzcorp/logo.png and /dev/null differ