Removed files from misc
authorKasper Skårhøj <kasper@typo3.org>
Mon, 26 Apr 2004 22:10:24 +0000 (22:10 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Mon, 26 Apr 2004 22:10:24 +0000 (22:10 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@246 709f56b5-9817-0410-a4d7-c38de5d9e867

56 files changed:
misc/3.0.0/oldscripts/boardLib.inc [deleted file]
misc/3.0.0/oldscripts/board_help.tmpl [deleted file]
misc/3.0.0/oldscripts/board_help1.gif [deleted file]
misc/3.0.0/oldscripts/board_notify.txt [deleted file]
misc/3.0.0/oldscripts/board_submit.inc [deleted file]
misc/3.0.0/oldscripts/board_template1.tmpl [deleted file]
misc/3.0.0/oldscripts/board_template2.tmpl [deleted file]
misc/3.0.0/oldscripts/board_template3.tmpl [deleted file]
misc/3.0.0/oldscripts/calendar.inc [deleted file]
misc/3.0.0/oldscripts/calendar_template.tmpl [deleted file]
misc/3.0.0/oldscripts/fe_admin_dmailsubscrip.tmpl [deleted file]
misc/3.0.0/oldscripts/fe_admin_dmailsubscrip_dk.tmpl [deleted file]
misc/3.0.0/oldscripts/fe_admin_fe_users.tmpl [deleted file]
misc/3.0.0/oldscripts/guestLib.inc [deleted file]
misc/3.0.0/oldscripts/guest_help.tmpl [deleted file]
misc/3.0.0/oldscripts/guest_help1.gif [deleted file]
misc/3.0.0/oldscripts/guest_submit.inc [deleted file]
misc/3.0.0/oldscripts/guest_template1.tmpl [deleted file]
misc/3.0.0/oldscripts/guest_template2.tmpl [deleted file]
misc/3.0.0/oldscripts/meta.php [deleted file]
misc/3.0.0/oldscripts/new.gif [deleted file]
misc/3.0.0/oldscripts/newsLib.inc [deleted file]
misc/3.0.0/oldscripts/news_help.tmpl [deleted file]
misc/3.0.0/oldscripts/news_help1.gif [deleted file]
misc/3.0.0/oldscripts/news_template.tmpl [deleted file]
misc/3.0.0/oldscripts/payment_DIBS.php [deleted file]
misc/3.0.0/oldscripts/payment_DIBS_template.tmpl [deleted file]
misc/3.0.0/oldscripts/payment_DIBS_template_uk.tmpl [deleted file]
misc/3.0.0/oldscripts/pollLib.inc [deleted file]
misc/3.0.0/oldscripts/poll_extTables.inc [deleted file]
misc/3.0.0/oldscripts/poll_help.tmpl [deleted file]
misc/3.0.0/oldscripts/poll_submit.inc [deleted file]
misc/3.0.0/oldscripts/pollbar-begin.gif [deleted file]
misc/3.0.0/oldscripts/pollbar-end.gif [deleted file]
misc/3.0.0/oldscripts/pollbar-main.gif [deleted file]
misc/3.0.0/oldscripts/productsLib.inc [deleted file]
misc/3.0.0/oldscripts/products_comp_calcScript.inc [deleted file]
misc/3.0.0/oldscripts/products_help.tmpl [deleted file]
misc/3.0.0/oldscripts/products_help1.gif [deleted file]
misc/3.0.0/oldscripts/products_mail.inc [deleted file]
misc/3.0.0/oldscripts/products_template.tmpl [deleted file]
misc/3.0.0/oldscripts/products_template_de.tmpl [deleted file]
misc/3.0.0/oldscripts/products_template_htmlmail.tmpl [deleted file]
misc/3.0.0/oldscripts/ratingLib.inc [deleted file]
misc/3.0.0/oldscripts/rating_extTables.inc [deleted file]
misc/3.0.0/oldscripts/rating_help.tmpl [deleted file]
misc/3.0.0/oldscripts/rating_help1.gif [deleted file]
misc/3.0.0/oldscripts/rating_submit.inc [deleted file]
misc/3.0.0/oldscripts/star.gif [deleted file]
misc/3.0.0/oldscripts/star_grey.gif [deleted file]
misc/3.0.0/oldscripts/star_mask.gif [deleted file]
misc/3.0.0/oldscripts/tipafriendLib.inc [deleted file]
misc/3.0.0/oldscripts/tipafriend_help.tmpl [deleted file]
misc/3.0.0/oldscripts/tipafriend_help1.gif [deleted file]
misc/3.0.0/oldscripts/tipafriend_template.tmpl [deleted file]
misc/3.0.0/oldscripts/tipafriend_template_dk.tmpl [deleted file]

diff --git a/misc/3.0.0/oldscripts/boardLib.inc b/misc/3.0.0/oldscripts/boardLib.inc
deleted file mode 100755 (executable)
index 2c68e0f..0000000
+++ /dev/null
@@ -1,933 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@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!
-***************************************************************/
-/**
- * boardLib.inc
- * 
- * Creates a forum/board in tree or list style
- * 
- * TypoScript config:
- * - See static_template "plugin.tt_board_tree" and plugin.tt_board_list
- * - See TS_ref.pdf
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- */
-
-class user_board {
-       var $cObj;              // The backReference to the mother cObj object set at call time
-
-       var $enableFields ="";          // The enablefields of the tt_board table.
-       var $dontParseContent=0;
-       var $treeIcons=array(
-               "joinBottom"=>"\\-",
-               "join"=>"|-",
-               "line"=>"|&nbsp;",
-               "blank"=>"&nbsp;&nbsp;",
-               "thread"=>"+",
-               "end"=>"-"
-       );
-       var $searchFieldList="author,email,subject,message";
-
-       var $emoticons = 1;
-       var $emoticonsPath = "media/emoticons/";
-       var $emoticonsTag = '<img src="{}" valign="bottom" hspace=4>';
-       var $emoticonsSubst=array(
-               ":-)" => "smile.gif",
-               ";-)" => "wink.gif",
-               ":-D" => "veryhappy.gif",
-               ":-(" => "sad.gif"
-       );
-       
-       var $alternativeLayouts="";
-       var $allowCaching="";
-       var $conf=array();
-       var $config=array();
-       var $tt_board_uid="";
-       var $pid="";
-       var $orig_templateCode="";
-       var $typolink_conf=array();
-       var $local_cObj="";
-
-
-       /**
-        * Main board function. Call this from TypoScript
-        */
-       function main_board($content,$conf)     {
-               // *************************************
-               // *** getting configuration values:
-               // *************************************
-               $this->conf = $conf;
-               $this->tt_board_uid = intval(t3lib_div::GPvar("tt_board_uid"));
-       
-               $this->alternativeLayouts = intval($this->conf["alternatingLayouts"])>0 ? intval($this->conf["alternatingLayouts"]) : 2;
-                       
-                       // pid_list is the pid/list of pids from where to fetch the board items.
-               $this->config["pid_list"] = trim($this->cObj->stdWrap($this->conf["pid_list"],$this->conf["pid_list."]));
-               $this->config["pid_list"] = $this->config["pid_list"] ? implode(t3lib_div::intExplode(",",$this->config["pid_list"]),",") : $GLOBALS["TSFE"]->id;
-               list($pid) = explode(",",$this->config["pid_list"]);
-               $this->pid = $pid;
-       
-                       // "CODE" decides what is rendered:
-               $this->config["code"] = $this->cObj->stdWrap($this->conf["code"],$this->conf["code."]);
-               $this->allowCaching = $this->conf["allowCaching"]?1:0;
-               
-                       // If the current record should be displayed.
-               $this->config["displayCurrentRecord"] = $this->conf["displayCurrentRecord"];
-               if ($this->config["displayCurrentRecord"])      {
-                       $this->config["code"]="FORUM";
-                       $this->tt_board_uid=$this->cObj->data["uid"];
-               }
-       
-       //      debug($this->config["code"]);
-                       // template is read.
-               $this->orig_templateCode = $this->cObj->fileResource($this->conf["templateFile"]);
-
-
-                       // globally substituted markers, fonts and colors.      
-               $splitMark = md5(microtime());
-               $globalMarkerArray=array();
-               list($globalMarkerArray["###GW1B###"],$globalMarkerArray["###GW1E###"]) = explode($splitMark,$this->cObj->stdWrap($splitMark,$conf["wrap1."]));
-               list($globalMarkerArray["###GW2B###"],$globalMarkerArray["###GW2E###"]) = explode($splitMark,$this->cObj->stdWrap($splitMark,$conf["wrap2."]));
-               list($globalMarkerArray["###GW3B###"],$globalMarkerArray["###GW3E###"]) = explode($splitMark,$this->cObj->stdWrap($splitMark,$conf["wrap3."]));
-               $globalMarkerArray["###GC1###"] = $this->cObj->stdWrap($conf["color1"],$conf["color1."]);
-               $globalMarkerArray["###GC2###"] = $this->cObj->stdWrap($conf["color2"],$conf["color2."]);
-               $globalMarkerArray["###GC3###"] = $this->cObj->stdWrap($conf["color3"],$conf["color3."]);
-               $globalMarkerArray["###GC4###"] = $this->cObj->stdWrap($conf["color4"],$conf["color4."]);
-
-                       // Substitute Global Marker Array
-               $this->orig_templateCode= $this->cObj->substituteMarkerArray($this->orig_templateCode, $globalMarkerArray);
-
-       
-                       // TypoLink.
-               $this->typolink_conf = $this->conf["typolink."];
-               $this->typolink_conf["parameter."]["current"] = 1;
-               $this->typolink_conf["additionalParams"] = $this->cObj->stdWrap($this->typolink_conf["additionalParams"],$this->typolink_conf["additionalParams."]);
-               unset($this->typolink_conf["additionalParams."]);
-               
-
-       
-               // *************************************
-               // *** doing the things...:
-               // *************************************
-
-               $this->enableFields = $this->cObj->enableFields("tt_board");
-               $this->dontParseContent = $this->conf["dontParseContent"];
-
-               $this->local_cObj =t3lib_div::makeInstance("tslib_cObj");               // Local cObj.
-               
-               $codes=t3lib_div::trimExplode(",", $this->config["code"]?$this->config["code"]:$this->conf["defaultCode"],1);
-               if (!count($codes))     $codes=array("");
-               while(list(,$theCode)=each($codes))     {
-                       $theCode = (string)strtoupper(trim($theCode));
-                       switch($theCode)        {
-                               case "LIST_CATEGORIES":
-                               case "LIST_FORUMS":
-                                       $content.= $this->forum_list($theCode);
-                               break;
-                               case "POSTFORM":
-                               case "POSTFORM_REPLY":
-                               case "POSTFORM_THREAD":
-                                       $content.= $this->forum_postform($theCode);
-                               break;
-                               case "FORUM":
-                               case "THREAD_TREE":
-                                       $content.= $this->forum_forum($theCode);
-                               break;
-                               default:
-                                       $langKey = strtoupper($GLOBALS["TSFE"]->config["config"]["language"]);
-                                       $helpTemplate = $this->cObj->fileResource("media/scripts/board_help.tmpl");
-
-                                               // Get language version
-                                       $helpTemplate_lang="";
-                                       if ($langKey)   {$helpTemplate_lang = $this->cObj->getSubpart($helpTemplate,"###TEMPLATE_".$langKey."###");}
-                                       $helpTemplate = $helpTemplate_lang ? $helpTemplate_lang : $this->cObj->getSubpart($helpTemplate,"###TEMPLATE_DEFAULT###");
-
-                                               // Markers and substitution:
-                                       $markerArray["###CODE###"] = $theCode;
-                                       $content.=$this->cObj->substituteMarkerArray($helpTemplate,$markerArray);
-                               break;
-                       }               // Switch
-               }
-               return $content;
-       }
-
-       /**
-        * Creates a list of forums or categories depending on theCode
-        */
-       function forum_list($theCode)   {
-               if (!$this->tt_board_uid)       {
-                       $forumlist=0;           // set to true if this is a list of forums and not categories + forums
-                       if ($theCode=="LIST_CATEGORIES")        {
-                                       // Config if categories are listed.
-                               $lConf= $this->conf["list_categories."];
-                       } else {
-                               $forumlist=1;
-                                       // Config if forums are listed.
-                               $lConf= $this->conf["list_forums."];
-                               $lConf["noForums"] = 0;
-                       }
-                       $GLOBALS["TSFE"]->set_cache_timeout_default($lConf["cache_timeout"] ? intval($lConf["cache_timeout"]) : 60*5);
-                       $templateCode = $this->local_cObj->getSubpart($this->orig_templateCode, "###TEMPLATE_OVERVIEW###");
-
-                       if ($templateCode)      {
-                                       // Getting the specific parts of the template
-                               $categoryHeader=$this->getLayouts($templateCode,$this->alternativeLayouts,"CATEGORY");
-                               $forumHeader=$this->getLayouts($templateCode,$this->alternativeLayouts,"FORUM");
-                               $postHeader=$this->getLayouts($templateCode,$this->alternativeLayouts,"POST");
-                               $subpartContent="";
-                               
-                                       // Getting categories
-                               $categories = $this->getPagesInPage($this->config["pid_list"]);
-                               reset($categories);
-                               $c_cat=0;
-                               while(list(,$catData)=each($categories))        {
-                                               // Getting forums in category
-                                       if ($forumlist) {
-                                               $forums = $categories;
-                                       } else {
-                                               $forums = $this->getPagesInPage($catData["uid"]);
-                                       }
-                                       if (!$forumlist && count($categoryHeader))      {
-                                                       // Rendering category
-                                               $out=$categoryHeader[$c_cat%count($categoryHeader)];
-                                               $c_cat++;
-
-                                               
-                                               $this->local_cObj->start($catData);     
-                                                       
-                                                       // Clear
-                                               $markerArray=array();
-                                               $wrappedSubpartContentArray=array();
-
-                                                       // Markers
-                                               $markerArray["###CATEGORY_TITLE###"]=$this->local_cObj->stdWrap($this->formatStr($catData["title"]), $lConf["title_stdWrap."]);
-                                               $markerArray["###CATEGORY_DESCRIPTION###"]=$this->local_cObj->stdWrap($this->formatStr($catData["subtitle"]), $lConf["subtitle_stdWrap."]);
-                                               $markerArray["###CATEGORY_FORUMNUMBER###"]=$this->local_cObj->stdWrap(count($forums), $lConf["count_stdWrap."]);
-
-                                                       // Link to the category (wrap)
-                                               $this->local_cObj->setCurrentVal($catData["uid"]);
-                                               $wrappedSubpartContentArray["###LINK###"]=$this->local_cObj->typolinkWrap($this->typolink_conf);
-
-                                                       // Substitute
-                                               $subpartContent.=$this->local_cObj->substituteMarkerArrayCached($out,$markerArray,array(),$wrappedSubpartContentArray);
-                                       }
-                                       if (count($forumHeader) && !$lConf["noForums"]) {
-                                                       // Rendering forums
-                                               reset($forums);
-                                               $c_forum=0;
-                                               while(list(,$forumData)=each($forums))  {
-                                                       $out=$forumHeader[$c_forum%count($forumHeader)];
-                                                       $c_forum++;
-                                                       
-                                                       $this->local_cObj->start($forumData);
-
-                                                               // Clear
-                                                       $markerArray=array();
-                                                       $wrappedSubpartContentArray=array();
-                                                       
-                                                               // Markers
-                                                       $markerArray["###FORUM_TITLE###"]=$this->local_cObj->stdWrap($this->formatStr($forumData["title"]), $lConf["forum_title_stdWrap."]);
-                                                       $markerArray["###FORUM_DESCRIPTION###"]=$this->local_cObj->stdWrap($this->formatStr($forumData["subtitle"]), $lConf["forum_description_stdWrap."]);
-                                                       $markerArray["###FORUM_POSTS###"]=$this->local_cObj->stdWrap($this->getNumPosts($forumData["uid"]), $lConf["forum_posts_stdWrap."]);
-                                                       $markerArray["###FORUM_THREADS###"]=$this->local_cObj->stdWrap($this->getNumThreads($forumData["uid"]), $lConf["forum_threads_stdWrap."]);
-
-                                                               // Link to the forum (wrap)
-                                                       $this->local_cObj->setCurrentVal($forumData["uid"]);
-                                                       $wrappedSubpartContentArray["###LINK###"]=$this->local_cObj->typolinkWrap($this->typolink_conf);
-
-                                                       
-                                                               // LAST POST:
-                                                       $lastPostInfo = $this->getLastPost($forumData["uid"]);
-                                                       $this->local_cObj->start($lastPostInfo);
-                                                       if ($lastPostInfo)      {
-                                                               $markerArray["###LAST_POST_AUTHOR###"] = $this->local_cObj->stdWrap($this->formatStr($lastPostInfo["author"]), $lConf["last_post_author_stdWrap."]);
-                                                               $markerArray["###LAST_POST_DATE###"] = $this->local_cObj->stdWrap($this->recentDate($lastPostInfo),$this->conf["date_stdWrap."]);
-                                                               $markerArray["###LAST_POST_TIME###"] = $this->local_cObj->stdWrap($this->recentDate($lastPostInfo),$this->conf["time_stdWrap."]);
-                                                               $markerArray["###LAST_POST_AGE###"] = $this->local_cObj->stdWrap($this->recentDate($lastPostInfo),$this->conf["age_stdWrap."]);
-                                                       } else {
-                                                               $markerArray["###LAST_POST_AUTHOR###"] = "";
-                                                               $markerArray["###LAST_POST_DATE###"] = "";
-                                                               $markerArray["###LAST_POST_TIME###"] = "";
-                                                               $markerArray["###LAST_POST_AGE###"] = "";
-                                                       }
-
-                                                               // Link to the last post
-                                                       $this->local_cObj->setCurrentVal($lastPostInfo["pid"]);
-                                                       $temp_conf=$this->typolink_conf;
-                                                       $temp_conf["additionalParams"].= "&tt_board_uid=".$lastPostInfo["uid"];
-                                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                                                       $wrappedSubpartContentArray["###LINK_LAST_POST###"]=$this->local_cObj->typolinkWrap($temp_conf);
-
-                                                               // Add result
-                                                       $subpartContent.=$this->local_cObj->substituteMarkerArrayCached($out,$markerArray,array(),$wrappedSubpartContentArray);
-                                                       
-                                                               // Rendering the most recent posts
-                                                       if (count($postHeader) && $lConf["numberOfRecentPosts"])        {
-                                                               $recentPosts = $this->getMostRecentPosts($forumData["uid"],intval($lConf["numberOfRecentPosts"]));
-                                                               reset($recentPosts);
-                                                               $c_post=0;
-                                                               while(list(,$recentPost)=each($recentPosts))    {
-                                                                       $out=$postHeader[$c_post%count($postHeader)];
-                                                                       $c_post++;
-                                                                       $this->local_cObj->start($recentPost);
-                                                                               
-                                                                               // Clear:
-                                                                       $markerArray=array();
-                                                                       $wrappedSubpartContentArray=array();
-
-                                                                               // markers:
-                                                                       $markerArray["###POST_TITLE###"] = $this->local_cObj->stdWrap($this->formatStr($recentPost["subject"]), $lConf["post_title_stdWrap."]);
-                                                                       $markerArray["###POST_CONTENT###"] = $this->substituteEmoticons($this->local_cObj->stdWrap($this->formatStr($recentPost["message"]), $lConf["post_content_stdWrap."])); 
-                                                                       $markerArray["###POST_REPLIES###"] = $this->local_cObj->stdWrap($this->getNumReplies($recentPost["pid"],$recentPost["uid"]), $lConf["post_replies_stdWrap."]);
-                                                                       $markerArray["###POST_AUTHOR###"] = $this->local_cObj->stdWrap($this->formatStr($recentPost["author"]), $lConf["post_author_stdWrap."]);
-                                                                       $markerArray["###POST_DATE###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["date_stdWrap."]);
-                                                                       $markerArray["###POST_TIME###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["time_stdWrap."]);
-                                                                       $markerArray["###POST_AGE###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["age_stdWrap."]);
-
-                                                                               // Link to the post:
-                                                                       $this->local_cObj->setCurrentVal($recentPost["pid"]);
-                                                                       $temp_conf=$this->typolink_conf;
-                                                                       $temp_conf["additionalParams"].= "&tt_board_uid=".$recentPost["uid"];
-                                                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                                                                       $wrappedSubpartContentArray["###LINK###"]=$this->local_cObj->typolinkWrap($temp_conf);
-                                                                       $subpartContent.=$this->local_cObj->substituteMarkerArrayCached($out,$markerArray,array(),$wrappedSubpartContentArray);
-
-                                                                               // add result
-                                                                       $subpartContent.=$out;
-                                                               }
-                                                       }
-                                               }
-                                       }
-                                       if ($forumlist) {
-                                               break;
-                                       }
-                               }
-                                       // Substitution:
-                               $content.= $this->local_cObj->substituteSubpart($templateCode,"###CONTENT###",$subpartContent) ;
-                       } else {
-                               $content = $this->outMessage("No template code for ###TEMPLATE_OVERVIEW###");
-                       }
-               }
-               return $content;
-       }
-
-       /**
-        * Creates a post form for a forum
-        */
-       function forum_postform($theCode)       {
-               $parent=0;              // This is the parent item for the form. If this ends up being is set, then the form is a reply and not a new post.
-               $nofity=array();
-                       // Find parent, if any
-               if ($this->tt_board_uid)        {
-                       if ($this->conf["tree"])        {
-                               $parent=$this->tt_board_uid;
-                       } else {
-                               $parentR = $this->getRootParent($this->tt_board_uid);
-                               $parent = $parentR["uid"];
-                       }
-
-                       $rootParent = $this->getRootParent($parent);
-                       $wholeThread = $this->getSingleThread($rootParent["uid"],1);
-                       reset($wholeThread);
-                       while(list(,$recordP)=each($wholeThread))       {
-                               if ($recordP["notify_me"] && $recordP["email"])         {
-                                       $notify[md5(trim(strtolower($recordP["email"])))] = trim($recordP["email"]);
-                               }
-                       }
-               }
-
-                       // Get the render-code 
-               $lConf = $this->conf["postform."];
-               $modEmail = $this->conf["moderatorEmail"];
-               if (!$parent && isset($this->conf["postform_newThread."]))      {
-                       $lConf = $this->conf["postform_newThread."] ? $this->conf["postform_newThread."] : $lConf;                      // Special form for newThread posts...
-                       $modEmail = $this->conf["moderatorEmail_newThread"] ? $this->conf["moderatorEmail_newThread"] : $modEmail;
-               }
-               if ($modEmail)  {
-                       $modEmail = explode(",", $modEmail);
-                       while(list(,$modEmail_s)=each($modEmail))       {
-                               $notify[md5(trim(strtolower($modEmail_s)))] = trim($modEmail_s);
-                       }
-               }
-//debug($notify);
-               if ($theCode=="POSTFORM" || ($theCode=="POSTFORM_REPLY" && $parent) || ($theCode=="POSTFORM_THREAD" && !$parent))       {
-                       $lConf["dataArray."]["9999."] = array(
-                               "type" => "*data[tt_board][NEW][parent]=hidden",
-                               "value" => $parent
-                       );
-                       $lConf["dataArray."]["9998."] = array(
-                               "type" => "*data[tt_board][NEW][pid]=hidden",
-                               "value" => $this->pid
-                       );
-                       $lConf["dataArray."]["9997."] = array(
-                               "type" => "tt_board_uid=hidden",
-                               "value" => $parent
-                       );
-                       if (count($notify))             {
-                               $lConf["dataArray."]["9997."] = array(
-                                       "type" => "notify_me=hidden",
-                                       "value" => htmlspecialchars(implode($notify,","))
-                               );
-                       }
-//                                             debug($lConf);
-                       $content.=$this->local_cObj->FORM($lConf);
-               }
-               return $content;
-       }
-
-       /**
-        * Creates the forum display, including listing all items/a single item
-        */
-       function forum_forum($theCode)  {
-               if ($this->conf["iconCode"])    {
-                       $this->treeIcons["joinBottom"] = $this->local_cObj->stdWrap($this->conf["iconCode."]["joinBottom"],$this->conf["iconCode."]["joinBottom."]);
-                       $this->treeIcons["join"] = $this->local_cObj->stdWrap($this->conf["iconCode."]["join"],$this->conf["iconCode."]["join."]);
-                       $this->treeIcons["line"] = $this->local_cObj->stdWrap($this->conf["iconCode."]["line"],$this->conf["iconCode."]["line."]);
-                       $this->treeIcons["blank"] = $this->local_cObj->stdWrap($this->conf["iconCode."]["blank"],$this->conf["iconCode."]["blank."]);
-                       $this->treeIcons["thread"] = $this->local_cObj->stdWrap($this->conf["iconCode."]["thread"],$this->conf["iconCode."]["thread."]);
-                       $this->treeIcons["end"] = $this->local_cObj->stdWrap($this->conf["iconCode."]["end"],$this->conf["iconCode."]["end."]);
-               }
-
-               if ($this->tt_board_uid && $theCode!="THREAD_TREE")     {
-                       if (!$this->allowCaching)               $GLOBALS["TSFE"]->set_no_cache();               // MUST set no_cache as this displays single items and not a whole page....
-                       $lConf= $this->conf["view_thread."];
-                       $templateCode = $this->local_cObj->getSubpart($this->orig_templateCode, "###TEMPLATE_THREAD###");
-
-                       if ($templateCode)      {
-                               $rootParent = $this->getRootParent($this->tt_board_uid);
-                               $wholeThread = $this->getSingleThread($rootParent["uid"],1);
-                               
-                               if ($lConf["single"])   {
-                                       reset($wholeThread);
-                                       while(list(,$recentP)=each($wholeThread))       {
-                                               if ($recentP["uid"]==$this->tt_board_uid)       {
-                                                       $recentPosts[]=$recentP;
-                                                       break;
-                                               }
-                                       }
-                               } else {
-                                       $recentPosts = $wholeThread;
-                               }
-                               $nextThread = $this->getThreadRoot($this->config["pid_list"],$rootParent);
-                               $prevThread = $this->getThreadRoot($this->config["pid_list"],$rootParent,"prev");
-
-                               $subpartContent="";
-
-                                       // Clear
-                               $markerArray=array();
-                               $wrappedSubpartContentArray=array();
-                                               
-
-                                       // Getting the specific parts of the template
-                               $markerArray["###FORUM_TITLE###"] = $this->local_cObj->stdWrap($GLOBALS["TSFE"]->page["title"],$lConf["forum_title_stdWrap."]);
-
-                                       // Link back to forum
-                               $this->local_cObj->setCurrentVal($this->pid);
-                               $wrappedSubpartContentArray["###LINK_BACK_TO_FORUM###"]=$this->local_cObj->typolinkWrap($this->typolink_conf);
-
-                                       // Link to next thread
-                               $this->local_cObj->setCurrentVal($this->pid);
-                               $temp_conf=$this->typolink_conf;
-                               if (is_array($nextThread))      {
-                                       $temp_conf["additionalParams"].= "&tt_board_uid=".$nextThread["uid"];
-                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                               }
-                               $wrappedSubpartContentArray["###LINK_NEXT_THREAD###"]=$this->local_cObj->typolinkWrap($temp_conf);
-
-                                       // Link to prev thread
-                               $this->local_cObj->setCurrentVal($this->pid);
-                               $temp_conf=$this->typolink_conf;
-                               if (is_array($prevThread))      {
-                                       $temp_conf["additionalParams"].= "&tt_board_uid=".$prevThread["uid"];
-                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                               }
-                               $wrappedSubpartContentArray["###LINK_PREV_THREAD###"]=$this->local_cObj->typolinkWrap($temp_conf);
-
-                                       // Link to first !!
-                               $this->local_cObj->setCurrentVal($this->pid);
-                               $temp_conf=$this->typolink_conf;
-                               $temp_conf["additionalParams"].= "&tt_board_uid=".$rootParent["uid"];
-                               $temp_conf["useCacheHash"]=$this->allowCaching;
-                               $temp_conf["no_cache"]=!$this->allowCaching;
-                               $wrappedSubpartContentArray["###LINK_FIRST_POST###"]=$this->local_cObj->typolinkWrap($temp_conf);
-
-                                       // Substitute:
-                               $templateCode=$this->local_cObj->substituteMarkerArrayCached($templateCode,$markerArray,array(),$wrappedSubpartContentArray);
-
-                                       // Getting subpart for items:
-                               $postHeader=$this->getLayouts($templateCode,$this->alternativeLayouts,"POST");
-
-                               reset($recentPosts);
-                               $c_post=0;
-                               while(list(,$recentPost)=each($recentPosts))    {
-                                       $out=$postHeader[$c_post%count($postHeader)];
-                                       $c_post++;
-                                       
-                                               // Clear
-                                       $markerArray=array();
-                                       $wrappedSubpartContentArray=array();
-                                               
-                                               // Markers
-                                       $markerArray["###POST_THREAD_CODE###"] = $this->local_cObj->stdWrap($recentPost["treeIcons"], $lConf["post_thread_code_stdWrap."]);
-                                       $markerArray["###POST_TITLE###"] = $this->local_cObj->stdWrap($this->formatStr($recentPost["subject"]), $lConf["post_title_stdWrap."]);
-                                       $markerArray["###POST_CONTENT###"] = $this->substituteEmoticons($this->local_cObj->stdWrap($this->formatStr($recentPost["message"]), $lConf["post_content_stdWrap."]));
-                                       $markerArray["###POST_REPLIES###"] = $this->local_cObj->stdWrap($this->getNumReplies($recentPost["pid"],$recentPost["uid"]), $lConf["post_replies_stdWrap."]);
-                                       $markerArray["###POST_AUTHOR###"] = $this->local_cObj->stdWrap($this->formatStr($recentPost["author"]), $lConf["post_author_stdWrap."]);
-                                       $markerArray["###POST_AUTHOR_EMAIL###"] = $recentPost["email"];
-                                       $markerArray["###POST_DATE###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["date_stdWrap."]);
-                                       $markerArray["###POST_TIME###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["time_stdWrap."]);
-                                       $markerArray["###POST_AGE###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["age_stdWrap."]);
-
-                                               // Link to the post
-                                       $this->local_cObj->setCurrentVal($recentPost["pid"]);
-                                       $temp_conf=$this->typolink_conf;
-                                       $temp_conf["additionalParams"].= "&tt_board_uid=".$recentPost["uid"];
-                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                                       $wrappedSubpartContentArray["###LINK###"]=$this->local_cObj->typolinkWrap($temp_conf);
-
-                                               // Link to next thread
-                                       $this->local_cObj->setCurrentVal($recentPost["pid"]);
-                                       $temp_conf=$this->typolink_conf;
-                                       $temp_conf["additionalParams"].= "&tt_board_uid=".($recentPost["nextUid"]?$recentPost["nextUid"]:$nextThread["uid"]);
-                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                                       $wrappedSubpartContentArray["###LINK_NEXT_POST###"]=$this->local_cObj->typolinkWrap($temp_conf);
-
-                                               // Link to prev thread
-                                       $this->local_cObj->setCurrentVal($recentPost["pid"]);
-                                       $temp_conf=$this->typolink_conf;
-                                       $temp_conf["additionalParams"].= "&tt_board_uid=".($recentPost["prevUid"]?$recentPost["prevUid"]:$prevThread["uid"]);
-                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                                       $wrappedSubpartContentArray["###LINK_PREV_POST###"]=$this->local_cObj->typolinkWrap($temp_conf);
-                                       
-                                               // Substitute:
-                                       $subpartContent.=$this->local_cObj->substituteMarkerArrayCached($out,$markerArray,array(),$wrappedSubpartContentArray);
-                               }
-                                       // Substitution:
-                               $content.= $this->local_cObj->substituteSubpart($templateCode,"###CONTENT###",$subpartContent);
-                       } else {
-                               debug("No template code for "); 
-                       }
-               } else {
-                       if ($theCode=="THREAD_TREE")    {
-                               if (!$this->tt_board_uid)       {break;}
-                               $lConf= $this->conf["thread_tree."];
-                       } else {
-                               $lConf= $this->conf["list_threads."];
-                       }
-               
-                       $templateCode = $this->local_cObj->getSubpart($this->orig_templateCode, "###TEMPLATE_FORUM###");
-
-                       if ($templateCode)      {
-                                       // Getting the specific parts of the template
-                               $templateCode = $this->local_cObj->substituteMarker($templateCode,"###FORUM_TITLE###",$this->local_cObj->stdWrap($GLOBALS["TSFE"]->page["title"],$lConf["forum_title_stdWrap."]));
-                               $postHeader=$this->getLayouts($templateCode,$this->alternativeLayouts,"POST");
-                                       // Template code used if tt_board_uid matches...
-                               $postHeader_active = $this->getLayouts($templateCode,1,"POST_ACTIVE");
-                               
-                               $subpartContent="";
-                               
-                               if ($theCode=="THREAD_TREE")    {
-                                       $rootParent = $this->getRootParent($this->tt_board_uid);
-                                       $recentPosts = $this->getSingleThread($rootParent["uid"],1);
-                               } else {
-                                       $recentPosts = $this->getThreads($this->config["pid_list"],$this->conf["tree"], $lConf["thread_limit"]?$lConf["thread_limit"]:"50", t3lib_div::GPvar("tt_board_sword"));
-                               }
-                               reset($recentPosts);
-                               $c_post=0;
-                               while(list(,$recentPost)=each($recentPosts))    {
-                                       $GLOBALS["TT"]->push("/Post/");
-                                       $out=$postHeader[$c_post%count($postHeader)];
-                                       if ($recentPost["uid"]==$this->tt_board_uid && $postHeader_active[0])   {
-                                               $out = $postHeader_active[0];
-                                       }
-                                       $c_post++;
-                                       
-                                               // Clear
-                                       $markerArray=array();
-                                       $wrappedSubpartContentArray=array();
-
-                                               // Markers
-                                       $GLOBALS["TT"]->push("/postMarkers/");
-                                       $markerArray["###POST_THREAD_CODE###"] = $this->local_cObj->stdWrap($recentPost["treeIcons"], $lConf["post_thread_code_stdWrap."]);
-                                       $markerArray["###POST_TITLE###"] = $this->local_cObj->stdWrap($this->formatStr($recentPost["subject"]), $lConf["post_title_stdWrap."]);
-                                       $markerArray["###POST_CONTENT###"] = $this->substituteEmoticons($this->local_cObj->stdWrap($this->formatStr($recentPost["message"]), $lConf["post_content_stdWrap."]));
-                                       $markerArray["###POST_REPLIES###"] = $this->local_cObj->stdWrap($this->getNumReplies($recentPost["pid"],$recentPost["uid"]), $lConf["post_replies_stdWrap."]);
-                                       $markerArray["###POST_AUTHOR###"] = $this->local_cObj->stdWrap($this->formatStr($recentPost["author"]), $lConf["post_author_stdWrap."]);
-                                       $markerArray["###POST_DATE###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["date_stdWrap."]);
-                                       $markerArray["###POST_TIME###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["time_stdWrap."]);
-                                       $markerArray["###POST_AGE###"] = $this->local_cObj->stdWrap($this->recentDate($recentPost),$this->conf["age_stdWrap."]);
-
-                                               // Link to the post
-                                       $this->local_cObj->setCurrentVal($recentPost["pid"]);
-                                       $temp_conf=$this->typolink_conf;
-                                       $temp_conf["additionalParams"].= "&tt_board_uid=".$recentPost["uid"];
-                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                                       $wrappedSubpartContentArray["###LINK###"]=$this->local_cObj->typolinkWrap($temp_conf);
-                                       $GLOBALS["TT"]->pull();
-
-                                               // Last post processing:
-                                       $GLOBALS["TT"]->push("/last post info/");
-                                       $lastPostInfo = $this->getLastPostInThread($recentPost["pid"],$recentPost["uid"]);
-                                       $GLOBALS["TT"]->pull();
-                                       if (!$lastPostInfo)     $lastPostInfo=$recentPost;
-
-                                       $GLOBALS["TT"]->push("/lastPostMarkers/");
-                                       $markerArray["###LAST_POST_DATE###"]=$this->local_cObj->stdWrap($this->recentDate($lastPostInfo),$this->conf["date_stdWrap."]);
-                                       $markerArray["###LAST_POST_TIME###"]=$this->local_cObj->stdWrap($this->recentDate($lastPostInfo),$this->conf["time_stdWrap."]);
-                                       $markerArray["###LAST_POST_AGE###"]=$this->local_cObj->stdWrap($this->recentDate($lastPostInfo),$this->conf["age_stdWrap."]);
-                                       $markerArray["###LAST_POST_AUTHOR###"]=$this->local_cObj->stdWrap($this->formatStr($lastPostInfo["author"]), $lConf["last_post_author_stdWrap."]);
-
-                                               // Link to the last post
-                                       $this->local_cObj->setCurrentVal($lastPostInfo["pid"]);
-                                       $temp_conf=$this->typolink_conf;
-                                       $temp_conf["additionalParams"].= "&tt_board_uid=".$lastPostInfo["uid"];
-                                       $temp_conf["useCacheHash"]=$this->allowCaching;
-                                       $temp_conf["no_cache"]=!$this->allowCaching;
-                                       $wrappedSubpartContentArray["###LINK_LAST_POST###"]=$this->local_cObj->typolinkWrap($temp_conf);
-                                       $GLOBALS["TT"]->pull();
-                                       
-                                               // Substitute:
-                                       $subpartContent.=$this->local_cObj->substituteMarkerArrayCached($out,$markerArray,array(),$wrappedSubpartContentArray);
-                                       $GLOBALS["TT"]->pull();
-                               }
-                                       // Substitution:
-                               $markerArray=array();
-                               $subpartContentArray=array();
-                                       // Fill in array
-                               $markerArray["###SEARCH_WORD###"]=$GLOBALS["TSFE"]->no_cache ? t3lib_div::GPvar("tt_board_sword") : "";         // Setting search words in field if cache is disabled.
-                                       // Set FORM_URL
-                               $this->local_cObj->setCurrentVal($GLOBALS["TSFE"]->id);
-                               $temp_conf=$this->typolink_conf;
-                               $temp_conf["no_cache"]=1;
-                               $markerArray["###FORM_URL###"]=$this->local_cObj->typoLink_URL($temp_conf);
-                               
-                                       // Substitute CONTENT-subpart
-                               $subpartContentArray["###CONTENT###"]=$subpartContent;
-                               $content.= $this->local_cObj->substituteMarkerArrayCached($templateCode,$markerArray,$subpartContentArray);
-                       } else {
-                               debug("No template code for "); 
-                       }
-               }
-               return $content;
-       }
-       
-       /**
-        * Get a record tree of forum items
-        */
-       function getRecordTree($theRows,$parent,$pid,$treeIcons="") {
-               $query = "SELECT * FROM tt_board WHERE pid=".$pid." and parent=".$parent.$this->enableFields." ".$this->orderBy();
-               $GLOBALS["TT"]->setTSselectQuery($query,"getRecordTree");
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $c=0;
-               $rc = mysql_num_rows($res);
-
-               $theRows[count($theRows)-1]["treeIcons"].= mysql_num_rows($res) ? $this->treeIcons["thread"] : $this->treeIcons["end"];
-
-               while($row = mysql_fetch_assoc($res))   {
-                       $c++;
-                       $row["treeIcons"] = $treeIcons.($rc==$c ? $this->treeIcons["joinBottom"] : $this->treeIcons["join"]);
-                               // prev/next item:
-                       $theRows[count($theRows)-1]["nextUid"] = $row["uid"];
-                       $row["prevUid"] = $theRows[count($theRows)-1]["uid"];
-                       
-                       $theRows[]=$row;
-                               // get the branch
-                       $theRows = $this->getRecordTree($theRows,$row["uid"],$row["pid"],$treeIcons.($rc==$c ? $this->treeIcons["blank"] : $this->treeIcons["line"]));
-               }
-               return $theRows;        
-       }
-
-       /**
-        * Get subpages
-        *
-        * This function returns an array a pagerecords from the page-uid's in the pid_list supplied. 
-        * Excludes pages, that would normally not enter a regular menu. That means hidden, timed or deleted pages + pages with another doktype than "standard" or "advanced"
-        */
-       function getPagesInPage($pid_list)      {
-               $thePids = t3lib_div::intExplode(",",$pid_list);
-               $theMenu = array();
-               while(list(,$p_uid)=each($thePids))     {
-                       $theMenu = array_merge($theMenu, $GLOBALS["TSFE"]->sys_page->getMenu($p_uid));
-               }
-                       // Exclude pages not of doktype "Standard" or "Advanced"
-               reset($theMenu);
-               while(list($key,$data)=each($theMenu))  {
-                       if (!t3lib_div::inList("1,2,5",$data["doktype"]))       {unset($theMenu[$key]);} // All pages including pages 'not in menu'
-               }
-               return $theMenu;
-       }
-
-       /**
-        * Returns number of post in a forum.
-        */
-       function getNumPosts($pid)      {
-               $query = "SELECT count(*) FROM tt_board WHERE pid IN (".$pid.")".$this->enableFields;
-               $GLOBALS["TT"]->setTSselectQuery($query,"getNumPosts");
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $row = mysql_fetch_row($res);
-               return $row[0];
-       }
-
-       /**
-        * Returns number of threads.
-        */
-       function getNumThreads($pid)    {
-               $query = "SELECT count(*) FROM tt_board WHERE pid IN (".$pid.") AND parent=0".$this->enableFields;
-               $GLOBALS["TT"]->setTSselectQuery($query,"getNumThreads");
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $row = mysql_fetch_row($res);
-               return $row[0];
-       }
-
-       /**
-        * Returns number of replies.
-        */
-       function getNumReplies($pid,$uid)       {
-               $query = "SELECT count(*) FROM tt_board WHERE pid IN (".$pid.") AND parent=".$uid.$this->enableFields;
-               $GLOBALS["TT"]->setTSselectQuery($query,"getNumReplies");
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $row = mysql_fetch_row($res);
-               return $row[0];
-       }
-
-       /**
-        * Returns last post.
-        */
-       function getLastPost($pid)      {
-               $query = "SELECT * FROM tt_board WHERE pid IN (".$pid.")".$this->enableFields.$this->orderBy("DESC")." LIMIT 1";
-               $GLOBALS["TT"]->setTSselectQuery($query,"getLastPost");
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $row = mysql_fetch_assoc($res);
-               return $row;
-       }
-
-       /**
-        * Returns last post in thread.
-        */
-       function getLastPostInThread($pid,$uid) {
-               $query = "SELECT * FROM tt_board WHERE pid IN (".$pid.") AND parent=".$uid.$this->enableFields.$this->orderBy("DESC")." LIMIT 1";
-               $GLOBALS["TT"]->setTSselectQuery($query,"getLastPostInThread");
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $row = mysql_fetch_assoc($res);
-               return $row;
-       }
-
-       /**
-        * Most recent posts.
-        *
-        * Returns an array with records
-        */
-       function getMostRecentPosts($pid,$number)       {
-               $query = "SELECT * FROM tt_board WHERE pid IN (".$pid.")".$this->enableFields.$this->orderBy("DESC")." LIMIT ".$number;
-               $GLOBALS["TT"]->setTSselectQuery($query,"getMostRecentPosts");
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $out=array();
-               while($row = mysql_fetch_assoc($res))   {
-                       $out[]=$row;
-               }
-               return $out;
-       }
-
-       /**
-        * Returns an array with threads
-        */
-       function getThreads($pid,$decend=0,$limit=100,$searchWord)      {
-               $out=array();
-               if ($searchWord)        {
-                       $where=$this->cObj->searchWhere($searchWord,$this->searchFieldList);
-                       $query = "SELECT * FROM tt_board WHERE pid IN (".$pid.") ".$where.$this->enableFields.$this->orderBy("DESC")." limit ".intval($limit);
-                       $GLOBALS["TT"]->setTSselectQuery($query,"getThreads");
-                       $res = mysql(TYPO3_db,$query);
-                       $set=array();
-                       while($row = mysql_fetch_assoc($res))   {
-                               $rootRow = $this->getRootParent($row["uid"]);
-                               if (is_array($rootRow) && !isset($set[$rootRow["uid"]]))        {
-                                       $set[$rootRow["uid"]]=1;
-                                       $out[]=$rootRow;
-                                       if ($decend)    {
-                                               $out=$this->getRecordTree($out,$rootRow["uid"],$rootRow["pid"]);                        
-                                       }
-                               }
-                       }
-               } else {
-                       $query = "SELECT * FROM tt_board WHERE pid IN (".$pid.") AND parent=0".$this->enableFields.$this->orderBy("DESC")." limit ".intval($limit);
-                       $GLOBALS["TT"]->setTSselectQuery($query,"getThreads: No search Word");
-                       $res = mysql(TYPO3_db,$query);
-                       while($row = mysql_fetch_assoc($res))   {
-                               $out[]=$row;
-                               if ($decend)    {
-                                       $out=$this->getRecordTree($out,$row["uid"],$row["pid"]);                        
-                               }
-                       }
-               }
-               return $out;
-       }
-
-       /**
-        * Returns records in a thread
-        */
-       function getSingleThread($uid,$decend=0)        {
-               $hash = md5($uid."|".$decend);
-               if ($this->cache_thread[$hash]) {return $this->cache_thread[$hash]; debug("!");}
-       
-               $out=array();
-               if ($uid)       {
-                       $query = "SELECT * FROM tt_board WHERE uid=".$uid.$this->enableFields;
-                       $GLOBALS["TT"]->setTSselectQuery($query,"getSingleThread");
-                       $res = mysql(TYPO3_db,$query);
-                       if      ($row = mysql_fetch_assoc($res))        {
-                               $out[]=$row;
-                               if ($decend)    {
-                                       $out=$this->getRecordTree($out,$row["uid"],$row["pid"]);                        
-                               }
-                       }
-               }
-               return $out;
-       }
-
-       /**
-        * Get root parent of a tt_board record.
-        */
-       function getRootParent($uid,$limit=20)  {
-               $query = "SELECT * FROM tt_board WHERE uid=".$uid.$this->enableFields;
-               $GLOBALS["TT"]->setTSselectQuery($query,"getRootParent");
-               $res = mysql(TYPO3_db,$query);
-               if($row=mysql_fetch_assoc($res))        {
-                       if ($limit>0)   {
-                               if ($row["parent"])     {
-                                       return $this->getRootParent($row["parent"],$limit-1);
-                               } else {
-                                       return $row;
-                               }
-                       }
-               }
-       }
-       
-       /**
-        * Returns next or prev thread in a tree
-        */
-       function getThreadRoot($pid,$rootParent,$type="next")   {
-               $datePart = " and crdate".($type!="next"?">":"<").intval($rootParent["crdate"]);
-               $query = "SELECT * FROM tt_board WHERE pid IN (".$pid.") AND parent=0".$datePart.$this->enableFields.$this->orderBy($type!="next"?"":"DESC");
-               $GLOBALS["TT"]->setTSselectQuery($query,"getThreadRoot");
-//             debug($query);
-               $res = mysql(TYPO3_db,$query);
-               return mysql_fetch_assoc($res);
-       }
-
-       /**
-        * Format string with nl2br and htmlspecialchars()
-        */
-       function formatStr($str)        {
-               if (!$this->dontParseContent)   {
-                       return nl2br(htmlspecialchars($str));
-               } else {
-                       return $str;
-               }
-       }
-
-       /**
-        * Emoticons substitution
-        */
-       function substituteEmoticons($str)      {       
-               if ($this->emoticons)   {
-                       reset($this->emoticonsSubst);
-                       while(list($source,$dest)=each($this->emoticonsSubst))  {
-                               $str = str_replace($source, str_replace("{}", $this->emoticonsPath.$dest, $this->emoticonsTag), $str);
-                       }
-               }
-               return $str;
-       }
-
-       /**
-        * Returns alternating layouts
-        */
-       function getLayouts($templateCode,$alternativeLayouts,$marker)  {
-               $out=array();
-               for($a=0;$a<$alternativeLayouts;$a++)   {
-                       $m= "###".$marker.($a?"_".$a:"")."###";
-                       if(strstr($templateCode,$m))    {
-                               $out[]=$GLOBALS["TSFE"]->cObj->getSubpart($templateCode, $m);
-                       } else {
-                               break;
-                       }
-               }
-               return $out;
-       }
-       
-       /**
-        * Returns a message, formatted
-        */
-       function outMessage($string,$content="")        {
-               $msg= '
-               <HR>
-               <h3>'.$string.'</h3>
-               '.$content.'
-               <HR>
-               ';
-               
-               return $msg;
-       }
-       
-       /**
-        * Returns ORDER BY parts.
-        */
-       function orderBy($desc="")      {
-               return " ORDER BY crdate ".$desc;
-//             return " ORDER BY datetime ".$desc.",crdate ".$desc;
-       }
-
-       /**
-        * Returns recent date from a tt_board record
-        */
-       function recentDate($rec)       {
-               return $rec["crdate"];
-//             return $rec["datetime"] ? $rec["datetime"] : $rec["crdate"];
-       }
-}
-
-
-
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["media/scripts/boardLib.inc"])     {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["media/scripts/boardLib.inc"]);
-}
-
-?>
\ No newline at end of file
diff --git a/misc/3.0.0/oldscripts/board_help.tmpl b/misc/3.0.0/oldscripts/board_help.tmpl
deleted file mode 100755 (executable)
index 3b0f692..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--###TEMPLATE_DEFAULT### begin
-       Help template for the default language, english
--->
-<table border=1 cellpadding=4 cellspacing=1 bgcolor="#eeeeee"> 
-<tr>
-       <td colspan=2>
-       
-       <div align="center"><h3>Board Codes</h3></div>
-       <font face=verdana size=2>
-       You must insert a code in the CODE field of the "List" content element before the board will work. The code tells the board module what to do. You can insert multiple codes by separating them by a comma.<br>
-       Here is an example:<br><BR>
-       <div align="center"><img src="media/scripts/board_help1.gif" width="375" height="226" border="2" alt=""></div>
-
-       
-       <HR>
-       Current CODE = "<b>###CODE###</b>"
-       </font>
-       </td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>LIST_CATEGORIES</strong></font></td>
-       <td><font face=verdana size=2>Lists the categories and forums in categories.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>LIST_FORUMS</strong></font></td>
-       <td><font face=verdana size=2>Lists the forums.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>FORUM</strong></font></td>
-       <td><font face=verdana size=2>Lists the content of a forum. If tt_board_uid is set as GET/POST var, that board-item/list is displayed instead.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>POSTFORM</strong></font></td>
-       <td><font face=verdana size=2>Displays a submit-form used to post replies/new threads.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>POSTFORM_REPLY</strong></font></td>
-       <td><font face=verdana size=2>As above, but only if it is a reply.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>POSTFORM_THREAD</strong></font></td>
-       <td><font face=verdana size=2>As above, but only if it is a new thread.</font></td>
-</tr>
-</table>
-<!--###TEMPLATE_DEFAULT### end -->
-
diff --git a/misc/3.0.0/oldscripts/board_help1.gif b/misc/3.0.0/oldscripts/board_help1.gif
deleted file mode 100755 (executable)
index 95169a8..0000000
Binary files a/misc/3.0.0/oldscripts/board_help1.gif and /dev/null differ
diff --git a/misc/3.0.0/oldscripts/board_notify.txt b/misc/3.0.0/oldscripts/board_notify.txt
deleted file mode 100755 (executable)
index 3bae038..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-###SUBJECT_PREFIX### '###HOST###'
-Hello,
-
-###AUTHOR### (###AUTHOR_EMAIL###) ###DID_WHAT### ###HOST###.
-
-This thread is located at:
-
-###URL###
-
-Text Snippet:
-
-~~~
-Subject: ###SUBJECT###
-Content:
-###BODY###
-~~~
diff --git a/misc/3.0.0/oldscripts/board_submit.inc b/misc/3.0.0/oldscripts/board_submit.inc
deleted file mode 100755 (executable)
index 0ee15f3..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@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!
-***************************************************************/
-/**
- * board_submit.inc
- * 
- * See TSref document: boardLib.inc / FEDATA section for details on how to use this script.
- * The static template 'plugin.tt_board' provides a working example of configuration.
- * 
- * @author     Kasper Skårhøj <kasper@typo3.com>
- */
-
-if (is_object($this))  {
-       if (is_array($this->newData["tt_board"]["NEW"]))        {
-                       // Plain insert of record:
-//             $this->newData["tt_board"]["NEW"]["datetime"]=time();
-               $query = $this->getNEWinsert("tt_board", $this->newData["tt_board"]["NEW"]);
-//debug($query);
-               $res = mysql(TYPO3_db,$query);
-               $newId = mysql_insert_id();
-               echo mysql_error();
-               $this->clear_cacheCmd(intval($this->newData["tt_board"]["NEW"]["pid"]));
-
-               $conf = $this->getConf("tt_board");
-                       // Clear specific cache:
-               if ($conf["clearCacheForPids"]) {
-                       $ccPids=t3lib_div::intExplode(",",$conf["clearCacheForPids"]);
-                       reset($ccPids);
-                       while(list(,$pid)=each($ccPids))        {
-                               if ($pid > 0)   {$this->clear_cacheCmd($pid);}
-                       }
-               }
-               
-//debug($conf);
-
-                       // Send post to Mailing list ...
-               if ($conf["sendToMailingList"] && $conf["sendToMailingList."]["email"]) {
-/*
-       TypoScript for this section (was used for the Typo3 mailing list.
-
-    sendToMailingList=1
-    sendToMailingList {
-      email = typo3@netfielders.de
-      reply = submitmail@typo3.com
-      namePrefix = Typo3Forum/
-      altSubject = Post from www.typo3.com
-    }
-*/
-                       $mConf = $conf["sendToMailingList."];
-                       $maillist_data = $this->newData["tt_board"]["NEW"];
-                       $maillist_recip = $mConf["email"];
-
-                       $maillist_header='From: '.$mConf["namePrefix"].$maillist_data["author"].' <'.$mConf["reply"].'>'.chr(10);
-                       $maillist_header.='Reply-To: '.$mConf["reply"];
-
-
-                               //  Subject
-                       if ($maillist_data["parent"])   {       // RE:
-                               $query = "SELECT * FROM tt_board WHERE uid=".intval($maillist_data["parent"]);
-                               $res = mysql(TYPO3_db,$query);
-                               $row = mysql_fetch_assoc($res);
-                               $maillist_subject = "Re: ".$row["subject"]." [#".$maillist_data["parent"]."]";
-                       } else {        // New:
-                               $maillist_subject =  (trim($maillist_data["subject"]) ? trim(stripslashes($maillist_data["subject"])) : $mConf["altSubject"])." [#".$newId."]";
-                       }
-               
-                               // Message
-                       $maillist_msg = stripslashes($maillist_data["subject"]).chr(10).chr(10).stripslashes($maillist_data["message"])."
---
-".$maillist_data["author"];
-                               // Send
-                               
-                       if ($conf["debug"])     {
-                               debug($maillist_recip,1);
-                               debug($maillist_subject,1);
-                               echo nl2br($maillist_msg.chr(10));
-                               debug($maillist_header,1);
-                       } else {
-                               mail ($maillist_recip, $maillist_subject, $maillist_msg, $maillist_header);
-                       }
-               }
-               
-               
-               // Notify me...
-               if (t3lib_div::GPvar("notify_me") && $conf["notify"])   {
-                       $thescript = parse_url($GLOBALS["HTTP_SERVER_VARS"]["REQUEST_URI"]);
-                       $notifyMe = t3lib_div::uniqueList(str_replace(",".$maillist_data["email"].",", ",", ",".t3lib_div::GPvar("notify_me").","));
-                       
-                       $markersArray=array();
-                       $markersArray["###AUTHOR###"] = trim(stripslashes($this->newData["tt_board"]["NEW"][author]));
-                       $markersArray["###AUTHOR_EMAIL###"] = trim(stripslashes($this->newData["tt_board"]["NEW"][email]));
-                       $markersArray["###HOST###"] = t3lib_div::getIndpEnv("HTTP_HOST");
-                       $markersArray["###URL###"] = 'http://'.t3lib_div::getIndpEnv("HTTP_HOST").$thescript["path"].'?id='.$GLOBALS["TSFE"]->id.'&type='.$GLOBALS["TSFE"]->type.'&no_cache=1&tt_board_uid='.$newId;
-                       
-                       if ($maillist_data["parent"])   {               // If reply and not new thread:
-                               $msg = t3lib_div::getUrl($GLOBALS["TSFE"]->tmpl->getFileName($conf["newReply."]["msg"]));
-                               $markersArray["###DID_WHAT###"]= $conf["newReply."]["didWhat"];
-                               $markersArray["###SUBJECT_PREFIX###"]=$conf["newReply."]["subjectPrefix"];
-                       } else {        // If new thread:
-                               $msg = t3lib_div::getUrl($GLOBALS["TSFE"]->tmpl->getFileName($conf["newThread."]["msg"]));
-                               $markersArray["###DID_WHAT###"]= $conf["newThread."]["didWhat"];
-                               $markersArray["###SUBJECT_PREFIX###"]=$conf["newThread."]["subjectPrefix"];
-                       }
-                       $markersArray["###SUBJECT###"] = stripslashes(strtoupper($this->newData["tt_board"]["NEW"][subject]));
-                       $markersArray["###BODY###"] = t3lib_div::fixed_lgd(stripslashes($this->newData["tt_board"]["NEW"][message]),1000);
-                       
-                       reset($markersArray);
-                       while(list($marker,$markContent)=each($markersArray))   {
-                               $msg=str_replace($marker,$markContent,$msg);
-                       }
-
-                       $headers=array();
-                       if ($conf["notify_from"])       {$headers[]="FROM: ".$conf["notify_from"];}
-
-                       $msgParts = split(chr(10),$msg,2);
-                       if ($conf["debug"])     {
-                               debug($notifyMe,1);
-                               debug($headers,1);
-                               debug($msgParts);
-                       } else {
-                               mail ($notifyMe, $msgParts[0], $msgParts[1], implode($headers,chr(10)));
-                       }
-               }
-       }
-}
-               
-?>     
-
-
-
-
diff --git a/misc/3.0.0/oldscripts/board_template1.tmpl b/misc/3.0.0/oldscripts/board_template1.tmpl
deleted file mode 100755 (executable)
index 7c96bfa..0000000
+++ /dev/null
@@ -1,314 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Board example template</TITLE>
-</head>
-
-<body>
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<H1>BOARD TEMPLATES</H1>
-<h2>EXAMPLE 1 - LIST style</h2>
-
-
-
-<br>
-<br>
-<br>
-<pre>
-<strong>Global markers, as set up in TypoScript:</strong>
-These are substituted throughout the whole template.
-
-GW1B / GW1E
-GW2B / GW2E
-GW3B / GW3E
-
-GC1
-GC2
-GC3
-GC4
-</pre>
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_OVERVIEW</h3>
-<em>This is the template for the overview of categories and forums.</em><br>
-<pre>
-
-// Category Markers:
-CATEGORY_TITLE
-CATEGORY_DESCRIPTION 
-CATEGORY_FORUMNUMBER
-
-// Category subparts:
-LINK
-
-
-// Forum Markers:
-FORUM_POSTS
-FORUM_THREADS
-FORUM_TITLE
-FORUM_DESCRIPTION
-
-LAST_POST_DATE,
-LAST_POST_TIME
-LAST_POST_AUTHOR
-LAST_POST_AGE
-
-// Forum subparts:
-LINK
-LINK_LAST_POST
-
-
-// Post Markers:
-POST_TITLE  // include link
-POST_CONTENT
-POST_REPLIES
-POST_AUTHOR
-
-POST_DATE,
-POST_TIME
-POST_AGE
-
-// Post Subparts:
-LINK
-</pre>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_OVERVIEW### begin 
-       This is the template for the overview of categories and forums.
--->
-<TABLE cellpadding="4" cellspacing="1" border="0" width="98%">
-       <TR bgcolor="###GC3###">
-               <TD>&nbsp;</TD>
-               <TD valign="bottom">###GW3B### <B>Forum</B> ###GW3E###
-               </TD><TD nowrap valign="bottom" align="center"><B>###GW3B### Posts ###GW3E###</B></TD>
-               <TD nowrap valign="bottom" align="center"><B>###GW3B### Threads ###GW3E###</B></TD>
-               <TD nowrap valign="bottom" align="center">###GW3B### <B>Last Post</B>###GW3E###</TD>
-       </TR>
-       <!-- ###CONTENT###  begin
-               This is the part of the template substituted with the list of categories and forums: 
-       -->
-               <!-- ###CATEGORY### begin
-                       Template for the category title 
-               -->
-                       <TR bgcolor="###GC4###">
-                               <TD colspan="5"><B>###GW2B###<font color="#FFFFFF"><!--###LINK###-->###CATEGORY_TITLE###<!--###LINK###--></FONT>###GW2E###</B></TD>
-                       </TR>
-               <!-- ###CATEGORY###  end -->
-               <!-- ###FORUM### begin
-                       Template for the display of forum information 
-               -->
-                       <TR>
-                               <TD bgcolor="###GC2###" align="center" valign="top"><IMG src="clear.gif" width=20 height=1 border="0"></TD>
-                               <TD bgcolor="###GC2###" valign="top">###GW1B### <B><!--###LINK###-->###FORUM_TITLE###<!--###LINK###--></B>###GW1E###<BR>###GW2B### ###FORUM_DESCRIPTION### ###GW2E###</TD>
-                               <TD bgcolor="###GC1###" align="center" valign="top" nowrap>###GW1B### ###FORUM_POSTS### ###GW1E###</TD>
-                               <TD bgcolor="###GC2###" align="center" valign="top" nowrap>###GW1B### ###FORUM_THREADS### ###GW1E###</TD>
-                               <TD bgcolor="###GC1###" nowrap valign="top" align="center">###GW2B### <!--###LINK_LAST_POST###-->Last Post!<!--###LINK_LAST_POST###--> ###LAST_POST_DATE### ###LAST_POST_TIME###<BR>###LAST_POST_AUTHOR### - ###LAST_POST_AGE### ###GW2E###</TD>
-                       </TR>
-               <!-- ###FORUM### end-->
-               <!-- ###POST### begin
-                       Template for the display of latest posts of a forum 
-               -->
-                       <TR>
-                               <TD align="center" valign="top">NEW!</TD>
-                               <TD valign="top"><!--###LINK###-->###GW1B### <B>###POST_TITLE###</B>###GW1E###<!--###LINK###--><BR>###GW2B### ###POST_CONTENT### ###GW2E###</TD>
-                               <TD align="center" valign="top" nowrap>###GW1B### ###POST_REPLIES### ###GW1E###</TD>
-                               <TD align="center" valign="top" nowrap>###GW1B### &nbsp; ###GW1E###</TD>
-                               <TD nowrap valign="top" align="center">###GW2B### ###POST_DATE###  ###POST_TIME###<BR>###POST_AUTHOR### ###GW2E###</TD>
-                       </TR>
-               <!-- ###POST### end-->
-       <!-- ###CONTENT###  end -->
-</TABLE>
-<!-- ###TEMPLATE_OVERVIEW### end -->
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_FORUM</h3>
-<em>Template for listing of items in a single forum.</em><br>
-<pre>
-
-
-// Post Markers
-POST_THREAD_CODE
-POST_TITLE 
-POST_CONTENT
-POST_REPLIES
-POST_AUTHOR
-
-POST_DATE
-POST_TIME
-POST_AGE
-
-LAST_POST_DATE
-LAST_POST_TIME
-LAST_POST_AUTHOR
-LAST_POST_AGE
-
-
-// Post Subparts
-LINK
-LINK_LAST_POST 
-
-</pre>
-<br>
-<br>
-
-<!-- ###TEMPLATE_FORUM### begin
-       Template for listing of items in a single forum.
--->
-<TABLE border="0" cellpadding="4" border="0" cellspacing="1" width="98%">
-       <TR bgcolor="###GC3###">
-               <TD colspan="3"></TD>
-               <TD align="center" nowrap>###GW3B### <B>Thread Starter</B> ###GW3E###</TD>
-               <TD align="center">###GW3B### <B>Replies</B> ###GW3E###</TD>
-               <TD align="center" nowrap>###GW3B### <B>Last Post</A></B> ###GW3E###</TD>
-       </TR>
-       <!-- ###CONTENT### begin -->
-               <!--###POST### begin -->
-                       <TR>
-                               <TD align="center" bgcolor="###GC2###">(icon?)</TD>
-                               <TD align="center" bgcolor="###GC2###" width="0" height="0"></TD>
-                               <TD bgcolor="###GC2###" width="100%">###GW1B### <!--###LINK###-->###POST_TITLE###<!--###LINK###--><BR>###GW1E###</TD>
-                               <TD align="center" bgcolor="###GC1###" nowrap>###GW1B### ###POST_AUTHOR### ###GW1E###</TD>
-                               <TD align="center" bgcolor="###GC2###">###GW1B### ###POST_REPLIES### ###GW1E###</TD>
-                               <TD bgcolor="###GC2###" nowrap>###GW2B### <!--###LINK_LAST_POST###-->Last post<!--###LINK_LAST_POST###--> ###LAST_POST_DATE### ###LAST_POST_TIME### by ###LAST_POST_AUTHOR### - age: ###LAST_POST_AGE### ###GW2E###</TD>
-                       </TR>
-               <!--###POST### end -->
-       <!-- ###CONTENT###  end -->
-<form action="###FORM_URL###" method="POST">
-       <TR bgcolor="###GC1###">
-               <TD colspan=6 nowrap>###GW1B###<B>Searching: </B>###GW1E###<input type="text" name="tt_board_sword" value="###SEARCH_WORD###">  <input type="submit" value="Search in the board">
-               </TD>
-       </TR>
-</form>        
-</TABLE>
-<!-- ###TEMPLATE_FORUM### end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_THREAD</h3>
-<em>Template for the listing of a the posts in a thread.</em><br>
-<pre>
-
-// General subparts
-LINK_BACK_TO_FORUM
-LINK_FIRST_POST
-LINK_PREV_THREAD
-LINK_NEXT_THREAD
-
-// General markers
-FORUM_TITLE
-
-// Post Markers
-POST_THREAD_CODE
-POST_TITLE 
-POST_CONTENT
-POST_REPLIES
-POST_AUTHOR
-POST_AUTHOR_EMAIL
-
-POST_DATE,
-POST_TIME
-POST_AGE
-
-// Post subparts
-LINK
-LINK_PREV_POST
-LINK_NEXT_POST
-
-</pre>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_THREAD### begin
-       Template for the listing of a the posts in a thread.
--->
-<TABLE width="98%" border="0" cellspacing="1" cellpadding="4">
-       <TR bgcolor="###GC3###">
-               <TD valign="middle" width="175" nowrap>###GW3B###<B>Author</B>###GW3E###</TD>
-               <TD valign="middle" width="100%">&nbsp;</TD>
-       </TR>
-       <!-- ###CONTENT###  begin -->
-               <!--###POST### begin -->
-                       <TR bgcolor="###GC1###">
-                               <TD width="175" valign="middle" height="16" nowrap>###GW2B### ###POST_DATE### ###POST_TIME### ###GW2E###</TD>
-                               <TD valign="middle">###GW1B### ###POST_TITLE### ###GW1E###</TD>
-                       </TR>
-                       <TR bgcolor="###GC1###">
-                               <TD width="175" valign="top" nowrap>
-                                       ###GW1B### <B>###POST_AUTHOR###</B>###GW1E###<BR>
-                               </TD>
-                               <TD valign="top">
-                                       ###GW1B### ###POST_CONTENT### ###GW1E###
-                               </TD>
-                       </TR>
-               <!--###POST### end -->
-               <!--###POST_1### begin -->
-                       <TR bgcolor="###GC2###">
-                               <TD width="175" valign="middle" height="16" nowrap>###GW2B### ###POST_DATE### ###POST_TIME### ###GW2E###</TD>
-                               <TD valign="middle">###GW1B### ###POST_TITLE### ###GW1E###</TD>
-                       </TR>
-                       <TR bgcolor="###GC2###">
-                               <TD width="175" valign="top" nowrap>
-                                       ###GW1B### <B>###POST_AUTHOR###</B>###GW1E###<BR>
-                               </TD>
-                               <TD valign="top">
-                                       ###GW1B### ###POST_CONTENT### ###GW1E###
-                               </TD>
-                       </TR>
-               <!--###POST_1### end -->
-       <!-- ###CONTENT###  end -->
-       <TR>
-               <TD colspan=2><!--###LINK_BACK_TO_FORUM###-->###GW2B### <B>< BACK TO FORUM</B> ###GW2E###<!--###LINK_BACK_TO_FORUM###--></TD>
-       </TR>
-</TABLE>
-<!-- ###TEMPLATE_THREAD### end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</BODY>
-</HTML>
diff --git a/misc/3.0.0/oldscripts/board_template2.tmpl b/misc/3.0.0/oldscripts/board_template2.tmpl
deleted file mode 100755 (executable)
index 2429b3a..0000000
+++ /dev/null
@@ -1,200 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Board example template</TITLE>
-</head>
-
-<body>
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<H1>BOARD TEMPLATES</H1>
-<h2>EXAMPLE 2 - TREE style</h2>
-
-<strong>Notice:</strong> <br>
-For the full list of markers/subparts, see board_template1.tmpl<br>
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_OVERVIEW</h3>
-<em>This is the template for the overview of categories and forums.</em><br>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_OVERVIEW### begin 
-       This is the template for the overview of categories and forums.
--->
-<TABLE width="100%" cellspacing="0" cellpadding="2" border="0">
-       <!-- ###CONTENT###  begin
-               This is the part of the template substituted with the list of categories and forums: 
-       -->
-               <!-- ###FORUM### begin
-                       Template for the display of forum information 
-               -->
-       <TR bgcolor="###GC4###">
-               <TD width="60%"><!--###LINK###-->###GW3B###<B>###FORUM_TITLE###</A></B>###GW3E###<!--###LINK###-->&nbsp;&nbsp;###GW3B###&nbsp;&nbsp;Posts: <B>###FORUM_POSTS###</B>###GW3E###
-               </TD>
-       </TR>
-       <TR bgcolor="###GC2###">
-               <TD>###GW1B### ###FORUM_DESCRIPTION### ###GW1E###
-               </TD>
-       </TR>
-               <!-- ###FORUM### end -->
-               <!-- ###POST### begin
-                       Template for the display of latest posts of a forum 
-               -->
-       <TR bgcolor="###GC1###">
-               <TD><IMG src="media/scripts/new.gif" height="10" width="35"><!--###LINK###-->###GW1B### ###POST_TITLE### ###GW1E###<!--###LINK###--></TD>
-       </TR>
-               <!-- ###POST### end -->
-               <!-- ###POST_1### begin
-                       See POST marker, this is the alternative layout used every second time.
-               -->
-       <TR bgcolor="###GC2###">
-               <TD><IMG src="media/scripts/new.gif" height="10" width="35"><!--###LINK###-->###GW1B### ###POST_TITLE### ###GW1E###<!--###LINK###--></TD>
-       </TR>
-               <!-- ###POST_1### end -->
-       <TR>
-               <TD>&nbsp;
-               </TD>
-       </TR>
-       <!-- ###CONTENT### end -->
-</TABLE>
-<!-- ###TEMPLATE_OVERVIEW### end -->
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_FORUM</h3>
-<em>Template for listing of items in a single forum.</em><br>
-<br>
-<br>
-<br>
-
-
-
-
-<!-- ###TEMPLATE_FORUM### begin -->
-<TABLE width="100%" cellspacing="0" cellpadding="0" border="0">
-       <TR>
-               <TD height="21" bgcolor="###GC3###" width="90%">###GW3B### <b>&nbsp;TOPICS:</b>###GW3E###</TD>
-               <TD height="21" bgcolor="###GC3###">###GW3B###<b>AUTHOR:</b>###GW3E###</TD>
-               <TD height="21" bgcolor="###GC3###">###GW3B###<b>DATE:</b>###GW3E###</TD>
-       </TR>
-       <!-- ###CONTENT###  begin -->
-               <!--###POST### begin -->
-                       <TR>
-                               <TD bgcolor="###GC1###" nowrap>###POST_THREAD_CODE###<!--###LINK###-->###GW1B###<b>###POST_TITLE###</b>###GW1E###<!--###LINK###--></TD>
-                               <TD bgcolor="###GC1###" nowrap>###GW2B### ###POST_AUTHOR### ###GW2E###</TD>
-                               <TD bgcolor="###GC1###" nowrap>###GW2B### &nbsp;###POST_DATE### - ###POST_AGE### ###GW2E###</TD>
-                       </TR>
-               <!--###POST### end -->
-               <!--###POST_1### begin -->
-                       <TR>
-                               <TD bgcolor="###GC2###" nowrap>###POST_THREAD_CODE###<!--###LINK###-->###GW1B###<b>###POST_TITLE###</b>###GW1E###<!--###LINK###--></TD>
-                               <TD bgcolor="###GC2###" nowrap>###GW2B### ###POST_AUTHOR### ###GW2E###</TD>
-                               <TD bgcolor="###GC2###" nowrap>###GW2B### &nbsp;###POST_DATE### - ###POST_AGE### ###GW2E###</TD>
-                       </TR>
-               <!--###POST_1### end -->
-               <!--###POST_ACTIVE### begin -->
-                       <TR>
-                               <TD bgcolor="olive" nowrap>###POST_THREAD_CODE###<!--###LINK###-->###GW1B###<b>###POST_TITLE###</b>###GW1E###<!--###LINK###--></TD>
-                               <TD bgcolor="olive" nowrap>###GW2B### ###POST_AUTHOR### ###GW2E###</TD>
-                               <TD bgcolor="olive" nowrap>###GW2B### &nbsp;###POST_DATE### - ###POST_AGE### ###GW2E###</TD>
-                       </TR>
-               <!--###POST_ACTIVE### end -->
-       <!-- ###CONTENT###  end -->
-<form action="###FORM_URL###" method="POST">
-       <TR bgcolor="###GC1###">
-               <TD colspan=3 nowrap>###GW1B###<B>Searching: </B>###GW1E###<input type="text" name="tt_board_sword" value="###SEARCH_WORD###">  <input type="submit" value="Search in the board">
-               </TD>
-       </TR>
-</form>        
-       
-</TABLE>
-<!-- ###TEMPLATE_FORUM### end -->
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_THREAD</h3>
-<em>Template for the listing of a the posts in a thread.</em><br><br>
-<br>
-<br>
-
-
-
-
-<!-- ###TEMPLATE_THREAD### begin
-       Template for the listing of a the posts in a thread 
--->
-###GW1B### <b>###FORUM_TITLE###</b>###GW1E### 
-       <!-- ###CONTENT###  begin -->
-               <!--###POST### begin -->
-                       <TABLE width="100%" cellspacing="0" cellpadding="3" border="0">
-                               <TR>
-                                       <TD width="60%" align="left" nowrap>
-                                               ###GW2B### <b><!--###LINK_BACK_TO_FORUM###-->Forum List<!--###LINK_BACK_TO_FORUM###-->&nbsp;&nbsp;|&nbsp;&nbsp;<!--###LINK_FIRST_POST###-->Go to Top<!--###LINK_FIRST_POST###-->&nbsp;&nbsp;&nbsp;</b>###GW2E### 
-                                       </TD>
-                                       <TD width="40%" align="right" nowrap>###GW2B### <b>
-                                               <!--###LINK_PREV_POST###-->Previous Message<!--###LINK_PREV_POST###-->&nbsp;&nbsp;|
-                                               &nbsp;&nbsp;<!--###LINK_NEXT_POST###-->Next Message<!--###LINK_NEXT_POST###--></b>###GW2E### 
-                                       </TD>
-                               </TR>
-                       </TABLE>
-                       <TABLE width="100%" cellspacing="0" cellpadding="2" border="0">
-                               <TR>
-                                       <TD bgcolor="###GC3###">###GW3B### &nbsp;Subject:&nbsp;###POST_TITLE### ###GW3E### 
-                                       </TD>
-                               </TR>
-                               <TR>
-                                       <TD bgcolor="###GC1###" valign="TOP">
-                                               <TABLE width="100%" cellspacing="0" cellpadding="5" border="0">
-                                                       <TR>
-                                                               <TD bgcolor="###GC1###" width="100%" valign="top"><TT><FONT color="#000000">
-                       Author:&nbsp;###POST_AUTHOR###&nbsp;<BR>Date:&nbsp;&nbsp;&nbsp;###POST_DATE### ###POST_TIME###<BR><BR>###POST_CONTENT###</FONT></TT>
-                                                               </TD>
-                                                       </TR>
-                                               </TABLE>
-                                       </TD>
-                               </TR>
-                       </TABLE>
-                       <TABLE width="100%" cellspacing="0" cellpadding="3" border="0">
-                               <TR>
-                                       <TD valign="TOP" width="50%">
-                                       </TD>
-                                       <TD valign="TOP" width="50%" align="RIGHT" nowrap>###GW2B### <b>&nbsp;<!--###LINK_PREV_THREAD###-->Previous Topic<!--###LINK_PREV_THREAD###-->&nbsp;&nbsp;|&nbsp;&nbsp;<!--###LINK_NEXT_THREAD###-->Next Topic<!--###LINK_NEXT_THREAD###--></b>###GW2E### </TD>
-                               </TR>
-                       </TABLE>
-               <!--###POST### end -->
-       <!-- ###CONTENT###  end -->
-<!-- ###TEMPLATE_THREAD### end -->
-
-
-
-
-</BODY>
-</HTML>
diff --git a/misc/3.0.0/oldscripts/board_template3.tmpl b/misc/3.0.0/oldscripts/board_template3.tmpl
deleted file mode 100755 (executable)
index 123c197..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Board example template</TITLE>
-</head>
-
-<body>
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<H1>BOARD TEMPLATES</H1>
-<h2>EXAMPLE 3 - LIST style</h2>
-
-<strong>Notice:</strong> <br>
-For the full list of markers/subparts, see board_template1.tmpl<br>
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_OVERVIEW</h3>
-<em>This is the template for the overview of categories and forums.</em><br>
-<br>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_OVERVIEW### begin 
-       This is the template for the overview of categories and forums.
--->
-<TABLE cellpadding="4" cellspacing="1" border="0" width="98%">
-       <TR bgcolor="#7C848C">
-               <TD><FONT face="verdana,arial,helvetica" size="1">&nbsp;</font></TD>
-               <TD><FONT face="verdana,arial,helvetica" size="1" color="#FFFFFF">&nbsp;</FONT></TD>
-               <TD nowrap align="center"><B><FONT face="verdana,arial,helvetica" size="1" color="#FFFFFF">Posts</FONT></B></TD>
-               <TD nowrap align="center"><B><FONT face="verdana,arial,helvetica" size="1" color="#FFFFFF">Threads</FONT></B></TD>
-               <TD nowrap align="center"><FONT face="verdana,arial,helvetica" size="1" color="#FFFFFF"><B>Last Post</B></FONT></TD>
-       </TR>
-       <!-- ###CONTENT###  begin
-               This is the part of the template substituted with the list of categories and forums: 
-       -->
-               <!-- ###CATEGORY### begin
-                       Template for the category title 
-               -->
-                       <TR bgcolor="#05437E">
-                               <TD colspan="5"><!--###LINK###--><B><FONT face="arial, helvetica" size="2" color="#FFFFFF">###CATEGORY_TITLE###</FONT></B><!--###LINK###--><BR><FONT face="arial, helvetica" size="1" color="#FFFFFF">###CATEGORY_DESCRIPTION###</font></TD>
-                       </TR>
-               <!-- ###CATEGORY###  end -->
-               <!-- ###FORUM### begin
-                       Template for the display of forum information 
-               -->
-                       <TR>
-                               <TD bgcolor="#CECAC3" align="center" valign="top"><IMG src="clear.gif" width=20 height=1 border="0"></TD>
-                               <TD bgcolor="#CECAC3" valign="top"><FONT face="arial, helvetica" size="2"><B><!--###LINK###-->###FORUM_TITLE###<!--###LINK###--></B></FONT><BR><FONT face="verdana,arial,helvetica" size="1">###FORUM_DESCRIPTION###</FONT></TD>
-                               <TD bgcolor="#CECAC3" align="center" valign="top" nowrap><FONT face="arial, helvetica" size="2">###FORUM_POSTS###</FONT></TD>
-                               <TD bgcolor="#CECAC3" align="center" valign="top" nowrap><FONT face="arial, helvetica" size="2">###FORUM_THREADS###</FONT></TD>
-                               <TD bgcolor="#CECAC3" valign="top" align="center"><!--###LINK_LAST_POST###--><FONT face="verdana,arial, helvetica" size="1" color="black">###LAST_POST_DATE### ###LAST_POST_TIME###<BR>###LAST_POST_AUTHOR###</FONT><!--###LINK_LAST_POST###--></TD>
-                       </TR>
-               <!-- ###FORUM### end-->
-               <!-- ###POST### begin
-                       Template for the display of latest posts of a forum 
-               -->
-                       <TR>
-                               <TD bgcolor="#E7E3DB" align="center" valign="top"></TD>
-                               <TD bgcolor="#E7E3DB" valign="top"><!--###LINK###--><FONT face="verdana,arial, helvetica" size="1" color="black"><B>###POST_TITLE###</B></FONT><!--###LINK###--><BR><FONT face="verdana,arial,helvetica" size="1">###POST_CONTENT###</FONT></TD>
-                               <TD bgcolor="#E7E3DB" align="center" valign="top" nowrap><FONT face="verdana,arial, helvetica" size="1">###POST_REPLIES###</FONT></TD>
-                               <TD bgcolor="#E7E3DB" align="center" valign="top" nowrap><FONT face="verdana,arial, helvetica" size="1">&nbsp;</FONT></TD>
-                               <TD bgcolor="#E7E3DB" valign="top" align="center"><FONT face="verdana,arial, helvetica" size="1">###POST_AGE### ago </font><br><FONT face="arial, helvetica" size="1">by ###POST_AUTHOR###</FONT></TD>
-                       </TR>
-               <!-- ###POST### end-->
-       <!-- ###CONTENT###  end -->
-</TABLE>
-<!-- ###TEMPLATE_OVERVIEW### end -->
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_THREAD</h3>
-<em>Template for listing of items in a single forum.</em><br>
-<br>
-<br>
-<br>
-
-
-
-<!-- ###TEMPLATE_FORUM### begin -->
-<TABLE border="0" cellpadding="4" border="0" cellspacing="1" width="98%">
-       <TR bgcolor="#7C848C">
-               <TD align="center" width="100%"><FONT face="verdana,arial" size="1" color="white"><B>Subject</B></FONT></TD>
-               <TD align="center" nowrap><FONT face="verdana,arial" size="1" color="white"><B>Thread Starter</B></FONT></TD>
-               <TD align="center"><FONT face="verdana,arial" size="1" color="white"><B>Replies</B></FONT></TD>
-               <TD align="center" nowrap><FONT face="verdana,arial" size="1" color="white"><B>Last Post</B></FONT></TD>
-       </TR>
-       <!-- ###CONTENT### begin -->
-       <!--###POST### begin -->
-               <TR>
-                       <TD bgcolor="#E7E3DB" valign="top"><FONT face="verdana,arial" size="1"><!--###LINK###--><b>###POST_TITLE###</b><!--###LINK###--><br>###POST_CONTENT###</FONT></TD>
-                       <TD bgcolor="#E7E3DB" align="center" valign="top"><FONT face="verdana,arial" size="1">###POST_AUTHOR###</FONT></TD>
-                       <TD bgcolor="#E7E3DB" align="center" valign="top"><FONT face="verdana,arial" size="1">###POST_REPLIES###</FONT></TD>
-                       <TD bgcolor="#E7E3DB" align="center" valign="top"><FONT face="verdana,arial" size="1"><!--###LINK_LAST_POST###-->###LAST_POST_AGE###<!--###LINK_LAST_POST###--></FONT></TD>
-               </TR>
-       <!--###POST### end -->
-       <!-- ###CONTENT###  end -->
-</TABLE>
-<!-- ###TEMPLATE_FORUM### end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_FORUM</h3>
-<em>Template for the listing of a the posts in a thread.</em><br>
-
-
-
-
-
-
-<!-- ###TEMPLATE_THREAD### begin
-       Template for the listing of a the posts in a thread 
--->
-<TABLE width="98%" border="0" cellspacing="1" cellpadding="4">
-       <TR>
-               <TD colspan=2><!--###LINK_BACK_TO_FORUM###--><FONT face="verdana,arial" size="1" color="black"><B>< BACK TO FORUM</B></FONT><!--###LINK_BACK_TO_FORUM###--></TD>
-       </TR>
-       <TR bgcolor="#7C848C">
-               <TD align="center" nowrap><FONT face="verdana,arial" size="1" color="white"><B>Author:</B></FONT></TD>
-               <TD align="center" nowrap><FONT face="verdana,arial" size="1" color="white"><B>Content:</B></FONT></TD>
-       </TR>
-       <!-- ###CONTENT###  begin -->
-               <!--###POST### begin -->
-                       <TR bgcolor="#E7E3DB">
-                               <TD nowrap valign="top"><FONT face="verdana,arial,helvetica" size="1">###POST_DATE### ###POST_TIME### &nbsp;&nbsp;</FONT></TD>
-                               <TD width="80%"><FONT face="verdana,arial,helvetica" size="2"><b>###POST_TITLE###</b></font></TD>
-                       </TR>
-                       <TR bgcolor="#E7E3DB">
-                               <TD valign="top"><FONT face="verdana,arial,helvetica" size="1">Author:<br><b><a href="mailto:###POST_AUTHOR_EMAIL###">###POST_AUTHOR###</A></b></FONT></TD>
-                               <TD valign="top" width="80%"><FONT face="verdana,arial,helvetica" size="1">###POST_CONTENT###</font></TD>
-                       </TR>
-               <!--###POST### end -->
-               <!--###POST_1### begin -->
-                       <TR bgcolor="#CECAC3">
-                               <TD nowrap valign="top"><FONT face="verdana,arial,helvetica" size="1">###POST_DATE### ###POST_TIME### &nbsp;&nbsp;</FONT></TD>
-                               <TD width="80%"><FONT face="verdana,arial,helvetica" size="2"><b>###POST_TITLE###</b></font></TD>
-                       </TR>
-                       <TR bgcolor="#CECAC3">
-                               <TD valign="top"><FONT face="verdana,arial,helvetica" size="1">Author:<br><b><a href="mailto:###POST_AUTHOR_EMAIL###">###POST_AUTHOR###</a></b></FONT></TD>
-                               <TD valign="top" width="80%"><FONT face="verdana,arial,helvetica" size="1">###POST_CONTENT###</font></TD>
-                       </TR>
-               <!--###POST_1### end -->
-       <!-- ###CONTENT###  end -->
-       <TR>
-               <TD colspan=2><!--###LINK_BACK_TO_FORUM###--><FONT face="verdana,arial" size="1" color="black"><B>< BACK TO FORUM</B></FONT><!--###LINK_BACK_TO_FORUM###--></TD>
-       </TR>
-</TABLE>
-<!-- ###TEMPLATE_THREAD### end -->
-
-
-
-
-
-
-
-
-
-</BODY>
-</HTML>
diff --git a/misc/3.0.0/oldscripts/calendar.inc b/misc/3.0.0/oldscripts/calendar.inc
deleted file mode 100755 (executable)
index 5740e83..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@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!
-***************************************************************/
-/**
- * calendar.inc
- *
- * Creates a calendar
- * 
- * NOTICE: This script does not represent the most effective way to insert custom functionality in Typo3 page. Please use the USER object with a class instead.
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- */
-
-$content="";
-
-// *************************************
-// *** getting configuration values:
-// *************************************
-
-               // getting configuration values:
-       $config["pid_list"] = trim($this->stdWrap($conf["pid_list"],$conf["pid_list."]));
-       $config["pid_list"] = $config[pid_list] ? $config["pid_list"] : $GLOBALS["TSFE"]->id;
-
-       $config["recursive"] = $this->stdWrap($conf["recursive"],$conf["recursive."]);
-
-       $config["font"] = $this->stdWrap($conf["fontFace"],$conf["fontFace."]);
-       $config["font"] = $config["font"] ? $config["font"] : "verdana";
-
-               // If the current record should be displayed.
-       $config["displayCurrentRecord"] = $conf["displayCurrentRecord"];
-
-       
-       $templateCode = $this->fileResource($conf["templateFile"]);
-
-               // Fetching catagories:
-       $categories = Array();
-       $query = "select * from tt_calender_cat where 1=1".$this->enableFields("tt_calender_cat");
-       $res = mysql(TYPO3_db,$query);
-       echo mysql_error();
-       while($row = mysql_fetch_assoc($res))   {
-               $categories[$row[uid]] = $row[title];
-       }       
-
-       
-               // making query:
-       $selectConf = Array();
-       if ($config[recursive]) {               // get pid-list if recursivity is enabled
-               $pid_list_arr = explode(",",$config[pid_list]);
-               $orig_pids = $config[pid_list];
-               $config[pid_list]="";
-               while(list(,$val)=each($pid_list_arr))  {
-                       $config[pid_list].=$this->getTreeList($val,intval($config["recursive"]));
-               }
-               $config[pid_list].=$orig_pids;
-       }
-       $selectConf["pidInList"] = $config[pid_list];
-       $selectConf["orderBy"] = "date,time";
-       $selectConf["where"] = "type=0";
-       if (intval($conf["maxAge"]))    {
-               $selectConf["where"].= " AND date>".(time()-(3600*24*intval($conf["maxAge"])));
-       }
-
-               // performing query:
-       $query = $this->getQuery("tt_calender",$selectConf);
-       $res = mysql(TYPO3_db,$query);
-       echo mysql_error();
-       
-               // traversing the data.
-       $tableRows = "";
-       $day_base = mktime (0,0,0,date("m"),date("d"),date("Y"));
-
-               // config af template:
-       $tConf["template"] ="HTML";
-       $tConf["template."]["value"] = $templateCode;
-       
-       while($config["displayCurrentRecord"] || $row = mysql_fetch_assoc($res))        {
-               if ($config["displayCurrentRecord"])    {$row = $this->data;}
-                       // Insering date header:                        
-               $tConf["workOnSubpart"] = "DATE_HEADER";
-               $tConf["marks."] = Array ();
-               $tConf["marks."]["DATE"]="HTML";
-               $tConf["marks."]["DATE."]["value"]=date("d/m Y",$row[date]);
-               $tConf["marks."]["HEADER"]="HTML";
-               $tConf["marks."]["HEADER."]["value"]=$row[title];
-               $tConf["marks."]["FONT"]="HTML";
-               $tConf["marks."]["FONT."]["value"]=$config[font];
-               $tableRows.=$this->TEMPLATE($tConf);
-
-               
-               $parts = explode(chr(10)."---".chr(10), str_replace(chr(13),"",$row[note]));
-               while(list(,$pcon)=each($parts))        {
-                       $pcon=trim($pcon);
-                       $pcon_arr=split(chr(10),$pcon,2);
-                       $theTime = "";
-
-                       $hP=explode(" ",$pcon_arr[0],2);
-                       if (ereg("[^0-9,.:;-]",$hP[0])) {
-                               $title = trim($pcon_arr[0]);
-                       } else {
-                               $title = trim($hP[1]);
-                               $theTime = trim($hP[0]);
-                       }
-                       if ($conf["parseFunc."]) {
-                               $title = $this->parseFunc($title,$conf["parseFunc."]);
-                               $pcon_arr[1] = $this->parseFunc($pcon_arr[1],$conf["parseFunc."]);
-                       }
-                       $theContent = "<b>".$title."</b><BR>".nl2br($pcon_arr[1]);
-
-                               // Insering date header:                        
-                       $tConf["workOnSubpart"] = "DATE_CONTENT";
-                       $tConf["marks."] = Array ();
-                       $tConf["marks."]["TIME"]="HTML";
-                       $tConf["marks."]["TIME."]["value"]= $theTime;
-                       $tConf["marks."]["CONTENT"]="HTML";
-                       $tConf["marks."]["CONTENT."]["value"]=$theContent;
-                       $tConf["marks."]["FONT"]="HTML";
-                       $tConf["marks."]["FONT."]["value"]=$config[font];
-                       $tableRows.=$this->TEMPLATE($tConf);
-       
-               }
-
-               $this->lastChanged($row[tstamp]);
-
-               if ($config["displayCurrentRecord"])    {break;}        // Must exit forcibly or we'll have an eternal loop.
-       }
-
-       $tConf["workOnSubpart"] = "TEMPLATE_CALENDAR";
-       $tConf["marks."] = Array ();
-       $tConf["subparts."] = Array ();
-       $tConf["subparts."]["TABLE_CONTENT"]="HTML";
-       $tConf["subparts."]["TABLE_CONTENT."]["value"]= $tableRows;
-
-
-       $content = $this->TEMPLATE($tConf);
-
-
-$RESTORE_OLD_DATA = 1;         // secures a restore of the original ->data-array
-
-?>
\ No newline at end of file
diff --git a/misc/3.0.0/oldscripts/calendar_template.tmpl b/misc/3.0.0/oldscripts/calendar_template.tmpl
deleted file mode 100755 (executable)
index a288efc..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Calendar example template</TITLE>
-</head>
-
-<body>
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<H1>CALENDAR TEMPLATE</H1>
-<h2>EXAMPLE</h2>
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template features:<br>
-- Subparts: date header and date content<br>
-- Markers, data: Date, Header, Time, Content<br>
-- Markers, layout: font<br>
-(See the source code for subparts and markers)<br>
-</em>
-<br>
-<br>
-<br>
-<br>
-
-<!-- ###TEMPLATE_CALENDAR### -->
-       <table border=0 cellpadding=2 cellspacing=2>
-       <!-- ###TABLE_CONTENT### -->
-               <!-- ###DATE_HEADER### -->
-               <tr>
-                       <td NOWRAP><font face="###FONT###" size=2 color="black"> ###DATE### </font></td>
-                       <td><font face="###FONT###" size=2 color="black"><b> ###HEADER### </b></font></td>
-               </tr>
-               <!-- ###DATE_HEADER### -->
-               <!-- ###DATE_CONTENT### -->
-               <tr>
-                       <td align="right" valign="top"><font face="###FONT###" size=1 color="black">###TIME###</font></td>
-                       <td valign="top"><font face="###FONT###" size=2 color="black">###CONTENT###</font></td>
-               </tr>
-               <!-- ###DATE_CONTENT### -->
-       <!-- ###TABLE_CONTENT### -->
-       </table>
-<!-- ###TEMPLATE_CALENDAR### -->
-
-
-</body>
-</html>
diff --git a/misc/3.0.0/oldscripts/fe_admin_dmailsubscrip.tmpl b/misc/3.0.0/oldscripts/fe_admin_dmailsubscrip.tmpl
deleted file mode 100755 (executable)
index 8bc50ce..0000000
+++ /dev/null
@@ -1,674 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Direct Mail subscription Template</TITLE>
-</head>
-<body>
-
-
-
-
-<br>
-<br>
-<br>
-<H1>DIRECT MAIL SUBSCRIPTION/ADMINISTRATION TEMPLATES</H1>
-<h2>EXAMPLE</h2>
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   Form for creation of a new newsletter recipient:</em>
-<br>
-<br>
-
-
-
-<!-- ###TEMPLATE_CREATE### begin
-       Form for creation of a new newsletter recipient
--->
-<FORM name="tt_address_form" method="post" action="###FORM_URL###">
-###GW1B###Subscribe to our newletter###GW1E###<br>
-<br>
-###GW2B###
-
-
-<b>Your name:</b><BR>
-<!--###SUB_REQUIRED_FIELD_name### begin
-       This is shown only if the form is submitted and the field is configured to be "required" and at the same time not filled in.
-       The syntax is of the comment 'name' is:         SUB_REQUIRED_FIELD_[enter-the-field-name-here]
--->
-       <font color=red><strong>You must fill in this field!</strong></font><BR>
-<!--###SUB_REQUIRED_FIELD_name### end -->
-<input type="text" name="FE[tt_address][name]">
-<BR>
-
-
-
-<br>
-<b>Email:</b><BR>
-<!--###SUB_REQUIRED_FIELD_email### begin
-       Same as above...
-       EVAL_ERROR_FIELD_email is in addition an error message defined in TypoScript in case an email address does not verify to be of correct syntax.
--->
-       <font color=red><strong>You must fill in this field!</strong></font><BR>
-       ###EVAL_ERROR_FIELD_email###<BR>
-<!--###SUB_REQUIRED_FIELD_email### end-->
-<input type="text" name="FE[tt_address][email]">
-<BR>
-
-
-
-
-<br>
-<b>Select Special Categories:</b><BR>
-<table>
-<tr>
-       <td>###GW2B###Food###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][0]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Books###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][1]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Sport###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][2]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Religion###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][3]"></td>
-</tr>
-</table>
-
-<BR>
-<b>HTML emails?</b><BR>
-<input type="checkbox" name="FE[tt_address][module_sys_dmail_html]" value=1>
-<BR>
-
-
-
-<input type="submit" name="whatever" value="Subscribe">
-<input type="submit" name="whatever" value="Cancel" onClick="document.forms[0].action='###BACK_URL###';">
-###HIDDENFIELDS###
-</FORM>
-<BR>
-Are you subscribed already and wishes to <a href="###FORM_URL###&cmd=infomail&backURL=###FORM_URL_ENC###">unsubscribe or edit your profile, click here.</a>
-<BR>  ###GW2E###
-<!-- ###TEMPLATE_CREATE### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   This is the code shown when a new newsletter recipient is created:</em>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_CREATE_SAVED### begin
-       This is the code shown when a new newsletter recipient is created.
-
-       You can use the newly created record as markers on the format ###FIELD_[fieldname]###
--->
-###GW1B###Subscription recieved.###GW1E###<br>
-<br>
-###GW2B###
-You're now subscribed to our newsletter. An email has been sent to your email address, ###FIELD_email###, with a link to the administration of your profile.<BR>Please notice that your subscription is not active until you've clicked a link in that email!
-###GW2E###
-<!-- ###TEMPLATE_CREATE_SAVED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   This is the form used to edit the existing users.</em>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_EDIT### begin
-       This is the form used to edit the existing users.
-       
-       The form works with non-logged in users based on email-verification     
--->
-<FORM name="tt_address_form" method="post" action="###FORM_URL###">
-###GW1B###Edit profile###GW1E###<br>
-<br>
-###GW2B###
-
-
-<!-- ###SUB_REQUIRED_FIELDS_WARNING### begin 
-       This is a general warning about incorrectly filled in fields.
--->
-<B>Some of the required fields are not correctly filled in! Please do that!</B><br>
-<br>
-<!-- ###SUB_REQUIRED_FIELDS_WARNING### end -->
-
-
-
-
-<b>Your name:</b><BR>
-<!--###SUB_REQUIRED_FIELD_name### begin
-       This is shown only if the form is submitted and the field is configured to be "required" and at the same time not filled in.
-       The syntax is of the comment 'name' is:         SUB_REQUIRED_FIELD_[enter-the-field-name-here]
--->
-       <font color=red><strong>You must fill in this field!</strong></font><BR>
-<!--###SUB_REQUIRED_FIELD_name### end -->
-<input type="text" name="FE[tt_address][name]">
-<BR>
-
-
-
-
-<br>
-<b>Email:</b><BR>
-<!--###SUB_REQUIRED_FIELD_email### begin
-       Same as above...
-       EVAL_ERROR_FIELD_email is in addition an error message defined in TypoScript in case an email address does not verify to be of correct syntax.
--->
-       <font color=red><strong>You must fill in this field!</strong></font><BR>
-       ###EVAL_ERROR_FIELD_email###<BR>
-<!--###SUB_REQUIRED_FIELD_email### end-->
-<input type="text" name="FE[tt_address][email]">
-<BR>
-
-
-
-
-
-
-<br>
-<b>Select Special Categories:</b><BR>
-<table>
-<tr>
-       <td>###GW2B###Food###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][0]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Books###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][1]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Sport###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][2]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Religion###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][3]"></td>
-</tr>
-</table>
-
-<BR>
-<b>HTML emails?</b><BR>
-<input type="checkbox" name="FE[tt_address][module_sys_dmail_html]" value=1>
-<BR>
-
-
-
-       ###HIDDENFIELDS###
-       <input type="Submit" name="whatever" value="Update">
-</FORM>
-<br>
-Click here to <a href="###FORM_URL###&rU=###REC_UID###&aC=###AUTH_CODE###&cmd=delete"><strong>delete (!)</strong></a> your registration!
-###GW2E###
-<br>
-<!-- ###TEMPLATE_EDIT### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   This is displayed when a user has updated his profile:</em>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_EDIT_SAVED### begin
-       This is displayed when a user has updated his profile:
-
-       You can use the newly updated record as markers on the format ###FIELD_[fieldname]###
--->
-
-###GW1B###Profile changed###GW1E###<br>
-<br>
-###GW2B###
-
-You've updated your profile. <BR>
-<BR>
-The new informations is:<BR>
-Name: ###FIELD_name###<BR>
-Email: ###FIELD_email###<BR>
-<BR>
-
-<a href="###FORM_URL###&cmd=edit&rU=###FIELD_uid###&aC=###AUTH_CODE###">Go back to edit.</a>
-###GW2E###
-<!-- ###TEMPLATE_EDIT_SAVED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This form is used to send the infomails.</em>
-<br>
-<br>
-
-
-
-<!-- ###TEMPLATE_INFOMAIL### begin
-       This form is used to send the infomails.
-       You could also use this as a "did you forget your password?" service form.
--->
-###GW1B###Do you wish to edit your profile?###GW1E###<br>
-<br>
-###GW2B###
-Enter the email address <em>by which you're registered</em> here, and a link to the administration will be sent to your account:<br>
-
-<FORM name="tt_address_form" method="post" action="###FORM_URL###">
-<input type="text" name="fetch"><br>
-<input type="submit" name="whatever" value="Send">
-       ###HIDDENFIELDS###
-</FORM>
-###GW2E###
-<!-- ###TEMPLATE_INFOMAIL### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This template is the response page when a users has requested his password send to his email.</em>
-<br>
-<br>
-
-<!-- ###TEMPLATE_INFOMAIL_SENT### begin
-       This template is the response page when a users has requested his password send to his email.
--->
-###GW1B###An email has been sent to your account with the required information###GW1E###<br>
-<br>
-###GW2B###
-
-<a href="###BACK_URL###"><strong>Go back...</strong></a><BR>
-###GW2E###
-
-<!-- ###TEMPLATE_INFOMAIL_SENT### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This template is the response page when a users has delete his subscription.</em>
-<br>
-<br>
-
-<!-- ###TEMPLATE_DELETE_SAVED### begin
-       This is the message displayed if you have just deleted your subscription
--->
-###GW1B###You're now unsubscribed!###GW1E###<br>
-<br>
-###GW2B###
-
-Name: ###FIELD_name###<BR>
-Email: ###FIELD_email###<BR>
-
-###GW2E###
-<!-- ###TEMPLATE_DELETE_SAVED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<h2>'Setfixed' templates:</h2>
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is the response page when a users has clicked a setfixed link.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_SETFIXED_OK### begin
-       This is the message displayed if you have just deleted your subscription
--->
-###GW1B###Your subscription was approved###GW1E###<br>
-<br>
-###GW2B###
-
-Name: ###FIELD_name###<br>
-Email: ###FIELD_email###
-
-###GW2E###
-<!-- ###TEMPLATE_SETFIXED_OK### end-->
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is the response page when a users has clicked a setfixed link.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_SETFIXED_OK_DELETE### begin
-       This is the message displayed if you have just deleted your subscription
--->
-###GW1B###Your subscription was DELETED!###GW1E###<br>
-<br>
-###GW2B###
-Name: ###FIELD_name###<br>
-Email: ###FIELD_email###
-###GW2E###
-<!-- ###TEMPLATE_SETFIXED_OK_DELETE### end-->
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is the response page when a users has clicked a setfixed link.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_SETFIXED_FAILED### begin
-       This is the message displayed if you have just deleted your subscription
--->
-
-###GW1B###Sorry, setting subscription options failed!###GW1E###<br>
-<br>
-###GW2B###
-May happen if you click the setfixed link a second time (if the record has changed since the setfixed link was generated this error will happen!)
-###GW2E###
-<!-- ###TEMPLATE_SETFIXED_FAILED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   Authentication failed message.</em>
-<br>
-<br>
-
-<!-- ###TEMPLATE_AUTH### begin
-       Authentication failed message
--->
-###GW1B###Authentication failed!###GW1E###<br>
-<br>
-###GW2B###
-For some reason the authentication failed. 
-###GW2E###
-<!-- ###TEMPLATE_AUTH### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<H1>EMAIL TEMPLATES:</H1>
-In these plain text email templates the first line with content is used as subject in the mails.<br>
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is used to notify a person by email that he is subscribed to the newsletter.<br>
-You can use the newly created record as markers on the format ###FIELD_[fieldname]###
-</em>
-<br>
-<br>
-
-
-<pre>
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED### begin
-       This template is used to notify a person by email that he is subscribed to the newsletter.
-       You can use the newly created record as markers on the format ###FIELD_[fieldname]###
--->
-<!--###SUB_RECORD###-->
-Typo3 Direct Mailer
-
-Dear ###FIELD_name###
-
-You're now subscribed to a Typo3 Testsite newsletter.
-
-IMPORTANT:
-
-Before your subscriptions is fully enabled, you must click this link:
-###THIS_URL######FORM_URL######SYS_SETFIXED_approve###
-
-If you cannot accept the subscription (eg. if somebody else subscribed you!) just click this link and you're deleted from the database:
-###THIS_URL######FORM_URL######SYS_SETFIXED_DELETE###
-
-If you wish to edit your personal data, click this link:
-###THIS_URL######FORM_URL###&cmd=edit&aC=###SYS_AUTHCODE###&rU=###FIELD_uid###
-
-<!--###SUB_RECORD###-->
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED### end-->
-</pre>
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This is the template used for the administrator notifycation email upon a new subscription.<br>
-You can use the newly created record as markers on the format ###FIELD_[fieldname]###
-</em>
-<br>
-<br>
-
-
-<pre>
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED-ADMIN### begin
-       This is the template used for the administrator notifycation email upon a new subscription.
-       You can use the newly created record as markers on the format ###FIELD_[fieldname]###
--->
-<!--###SUB_RECORD###-->
-Admin: New subscription
-
-Name: ###FIELD_name###
-Email: ###FIELD_email###
-<!--###SUB_RECORD###-->
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED-ADMIN### end-->
-</pre>
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>The template for forgotten passwords (infomail 'FORGOTPASSWORD' template!)</em>
-<br>
-<br>
-<pre>
-<!-- ###EMAIL_TEMPLATE_FORGOTPASSWORD### begin
-       The template for forgotten passwords (infomail 'FORGOTPASSWORD' template!)
--->
-<!--###SUB_RECORD###-->
-Typo3 Testsite Newsletter, Admin link
-
-Dear ###FIELD_name###
-
-Click here to edit your personal data
-###THIS_URL######FORM_URL###&cmd=edit&aC=###SYS_AUTHCODE###&rU=###FIELD_uid###
-
-Click here to DELETE (!) your subscription
-###THIS_URL######FORM_URL###&cmd=delete&aC=###SYS_AUTHCODE###&rU=###FIELD_uid###
-<!--###SUB_RECORD###-->
-<!-- ###EMAIL_TEMPLATE_FORGOTPASSWORD### end-->
-</pre>
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Template used if the infomail was empty!</em>
-<br>
-<br>
-<pre>
-<!-- ###EMAIL_TEMPLATE_NORECORD### begin
-       Template used if the infomail was empty!
--->
-Record not found.
-
-You have requested information about a subscription, but nothing was found.
-
-Sorry.
-
-<!-- ###EMAIL_TEMPLATE_NORECORD### end-->
-</pre>
-
-
-
-
-
-
-
-
-
-</body>
-</html>
diff --git a/misc/3.0.0/oldscripts/fe_admin_dmailsubscrip_dk.tmpl b/misc/3.0.0/oldscripts/fe_admin_dmailsubscrip_dk.tmpl
deleted file mode 100755 (executable)
index 389e197..0000000
+++ /dev/null
@@ -1,675 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Direct Mail subscription Template</TITLE>
-</head>
-<body>
-
-
-
-
-<br>
-<br>
-<br>
-<H1>DIRECT MAIL SUBSCRIPTION/ADMINISTRATION TEMPLATES</H1>
-<h2>EXAMPLE</h2>
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   Form for creation of a new newsletter recipient:</em>
-<br>
-<br>
-
-
-
-<!-- ###TEMPLATE_CREATE### begin
-       Form for creation of a new newsletter recipient
--->
-<FORM name="tt_address_form" method="post" action="###FORM_URL###">
-###GW1B###Tilmeld dig nyhedsbrevet###GW1E###<br>
-<br>
-###GW2B###
-
-
-<b>Dit navn:</b><BR>
-<!--###SUB_REQUIRED_FIELD_name### begin
-       This is shown only if the form is submitted and the field is configured to be "required" and at the same time not filled in.
-       The syntax is of the comment 'name' is:         SUB_REQUIRED_FIELD_[enter-the-field-name-here]
--->
-       <font color=red><strong>Du skal udfylde dette felt!</strong></font><BR>
-<!--###SUB_REQUIRED_FIELD_name### end -->
-<input type="text" name="FE[tt_address][name]">
-<BR>
-
-
-
-<br>
-<b>Email adresse:</b><BR>
-<!--###SUB_REQUIRED_FIELD_email### begin
-       Same as above...
-       EVAL_ERROR_FIELD_email is in addition an error message defined in TypoScript in case an email address does not verify to be of correct syntax.
--->
-       <font color=red><strong>Du skal udfylde dette felt!</strong></font><BR>
-       ###EVAL_ERROR_FIELD_email###<BR>
-<!--###SUB_REQUIRED_FIELD_email### end-->
-<input type="text" name="FE[tt_address][email]">
-<BR>
-
-
-
-
-<br>
-<b>Vælg specielle kategorier:</b><BR>
-<table>
-<tr>
-       <td>###GW2B###Food###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][0]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Books###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][1]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Sport###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][2]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Religion###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][3]"></td>
-</tr>
-</table>
-
-<BR>
-<b>Modtag HTML emails?</b><BR>
-<input type="checkbox" name="FE[tt_address][module_sys_dmail_html]" value=1>
-<BR>
-
-
-
-<input type="submit" name="whatever" value="Tilmeld dig">
-<input type="submit" name="whatever" value="Annuller" onClick="document.forms[0].action='###BACK_URL###';">
-###HIDDENFIELDS###
-</FORM>
-<BR>
-Er du allerede tilmeldt og ønsker at <a href="###FORM_URL###&cmd=infomail&backURL=###FORM_URL_ENC###">ændre din profil, så klik her.</a>
-<BR>  ###GW2E###
-<!-- ###TEMPLATE_CREATE### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   This is the code shown when a new newsletter recipient is created:</em>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_CREATE_SAVED### begin
-       This is the code shown when a new newsletter recipient is created.
-
-       You can use the newly created record as markers on the format ###FIELD_[fieldname]###
--->
-###GW1B###Tilmelding modtaget###GW1E###<br>
-<br>
-###GW2B###
-Du er nu tilmeldt nyhedsbrevet. Der er blevet sendt en email til din email adresse, ###FIELD_email###, med et link til administrationssiden for din tilmelding.<br>
-Vær opmærksom på, at din tilmelding ikke er aktiv før du har klikket på linket i denne email!
-###GW2E###
-<!-- ###TEMPLATE_CREATE_SAVED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   This is the form used to edit the existing users.</em>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_EDIT### begin
-       This is the form used to edit the existing users.
-       
-       The form works with non-logged in users based on email-verification     
--->
-<FORM name="tt_address_form" method="post" action="###FORM_URL###">
-###GW1B###Rediger profil###GW1E###<br>
-<br>
-###GW2B###
-
-
-<!-- ###SUB_REQUIRED_FIELDS_WARNING### begin 
-       This is a general warning about incorrectly filled in fields.
--->
-<B>Nogle krævede felter er ikke udfyldt korrekt!</B><br>
-<br>
-<!-- ###SUB_REQUIRED_FIELDS_WARNING### end -->
-
-
-
-
-<b>Dit navn:</b><BR>
-<!--###SUB_REQUIRED_FIELD_name### begin
-       This is shown only if the form is submitted and the field is configured to be "required" and at the same time not filled in.
-       The syntax is of the comment 'name' is:         SUB_REQUIRED_FIELD_[enter-the-field-name-here]
--->
-       <font color=red><strong>Du skal udfylde dette felt!</strong></font><BR>
-<!--###SUB_REQUIRED_FIELD_name### end -->
-<input type="text" name="FE[tt_address][name]">
-<BR>
-
-
-
-
-<br>
-<b>Email address:</b><BR>
-<!--###SUB_REQUIRED_FIELD_email### begin
-       Same as above...
-       EVAL_ERROR_FIELD_email is in addition an error message defined in TypoScript in case an email address does not verify to be of correct syntax.
--->
-       <font color=red><strong>Du skal udfylde dette felt!</strong></font><BR>
-       ###EVAL_ERROR_FIELD_email###<BR>
-<!--###SUB_REQUIRED_FIELD_email### end-->
-<input type="text" name="FE[tt_address][email]">
-<BR>
-
-
-
-
-
-
-<br>
-<b>Vælg kategorier:</b><BR>
-<table>
-<tr>
-       <td>###GW2B###Food###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][0]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Books###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][1]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Sport###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][2]"></td>
-</tr>
-<tr>
-       <td>###GW2B###Religion###GW2E###</td><td><input type="checkbox" name="FE[tt_address][module_sys_dmail_category][3]"></td>
-</tr>
-</table>
-
-<BR>
-<b>Modtag HTML emails?</b><BR>
-<input type="checkbox" name="FE[tt_address][module_sys_dmail_html]" value=1>
-<BR>
-
-
-
-       ###HIDDENFIELDS###
-       <input type="Submit" name="whatever" value="Opdater profil">
-</FORM>
-<br>
-Klik her for at <a href="###FORM_URL###&rU=###REC_UID###&aC=###AUTH_CODE###&cmd=delete"><strong>slette (!)</strong></a> din tilmelding!
-###GW2E###
-<br>
-<!-- ###TEMPLATE_EDIT### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   This is displayed when a user has updated his profile:</em>
-<br>
-<br>
-
-
-<!-- ###TEMPLATE_EDIT_SAVED### begin
-       This is displayed when a user has updated his profile:
-
-       You can use the newly updated record as markers on the format ###FIELD_[fieldname]###
--->
-
-###GW1B###Profil ændret###GW1E###<br>
-<br>
-###GW2B###
-
-Du har opdateret din profil. <BR>
-<BR>
-Den nye information er:<BR>
-Navn: ###FIELD_name###<BR>
-Email: ###FIELD_email###<BR>
-<BR>
-
-<a href="###FORM_URL###&cmd=edit&rU=###FIELD_uid###&aC=###AUTH_CODE###">Gå tilbage til rediger.</a>
-###GW2E###
-<!-- ###TEMPLATE_EDIT_SAVED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This form is used to send the infomails.</em>
-<br>
-<br>
-
-
-
-<!-- ###TEMPLATE_INFOMAIL### begin
-       This form is used to send the infomails.
-       You could also use this as a "did you forget your password?" service form.
--->
-###GW1B###Ønsker du at redigere din profil?###GW1E###<br>
-<br>
-###GW2B###
-Skriv den email adresse <em>som du er registreret med</em> her. Så sender vi et link til administrationssiden til din email adresse:<br>
-
-<FORM name="tt_address_form" method="post" action="###FORM_URL###">
-<input type="text" name="fetch"><br>
-<input type="submit" name="whatever" value="Send email">
-       ###HIDDENFIELDS###
-</FORM>
-###GW2E###
-<!-- ###TEMPLATE_INFOMAIL### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This template is the response page when a users has requested his password send to his email.</em>
-<br>
-<br>
-
-<!-- ###TEMPLATE_INFOMAIL_SENT### begin
-       This template is the response page when a users has requested his password send to his email.
--->
-###GW1B###Der er nu sendt en email til din email adresse med den ønskede information.###GW1E###<br>
-<br>
-###GW2B###
-
-<a href="###BACK_URL###"><strong>Gå tilbage...</strong></a><BR>
-###GW2E###
-
-<!-- ###TEMPLATE_INFOMAIL_SENT### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This template is the response page when a users has delete his subscription.</em>
-<br>
-<br>
-
-<!-- ###TEMPLATE_DELETE_SAVED### begin
-       This is the message displayed if you have just deleted your subscription
--->
-###GW1B###Du er nu afmeldt!###GW1E###<br>
-<br>
-###GW2B###
-
-Navn: ###FIELD_name###<BR>
-Email: ###FIELD_email###<BR>
-
-###GW2E###
-<!-- ###TEMPLATE_DELETE_SAVED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<h2>'Setfixed' templates:</h2>
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is the response page when a users has clicked a setfixed link.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_SETFIXED_OK### begin
-       This is the message displayed if you have just deleted your subscription
--->
-###GW1B###Din tilmelding er godkendt###GW1E###<br>
-<br>
-###GW2B###
-
-Navn: ###FIELD_name###<br>
-Email: ###FIELD_email###
-
-###GW2E###
-<!-- ###TEMPLATE_SETFIXED_OK### end-->
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is the response page when a users has clicked a setfixed link.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_SETFIXED_OK_DELETE### begin
-       This is the message displayed if you have just deleted your subscription
--->
-###GW1B###Din tilmelding er slettet!###GW1E###<br>
-<br>
-###GW2B###
-Navn: ###FIELD_name###<br>
-Email: ###FIELD_email###
-###GW2E###
-<!-- ###TEMPLATE_SETFIXED_OK_DELETE### end-->
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is the response page when a users has clicked a setfixed link.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_SETFIXED_FAILED### begin
-       This is the message displayed if you have just deleted your subscription
--->
-
-###GW1B###Beklager, men forsøget på at ændre din profil mislykkedes!###GW1E###<br>
-<br>
-###GW2B###
-Dette kan hænde at ske, hvis du har klikket linket før eller hvis de er gået nogen tid siden du modtog linket i en email.
-###GW2E###
-<!-- ###TEMPLATE_SETFIXED_FAILED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   Authentication failed message.</em>
-<br>
-<br>
-
-<!-- ###TEMPLATE_AUTH### begin
-       Authentication failed message
--->
-###GW1B###Identifikation fejlede###GW1E###<br>
-<br>
-###GW2B###
-Af en eller anden grund kunne vi ikke identificere dig. 
-###GW2E###
-<!-- ###TEMPLATE_AUTH### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<H1>EMAIL TEMPLATES:</H1>
-In these plain text email templates the first line with content is used as subject in the mails.<br>
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is used to notify a person by email that he is subscribed to the newsletter.<br>
-You can use the newly created record as markers on the format ###FIELD_[fieldname]###
-</em>
-<br>
-<br>
-
-
-<pre>
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED### begin
-       This template is used to notify a person by email that he is subscribed to the newsletter.
-       You can use the newly created record as markers on the format ###FIELD_[fieldname]###
--->
-<!--###SUB_RECORD###-->
-Typo3 Direct Mailer
-
-Kære ###FIELD_name###
-
-Du er nu tilmeldt Typo3 Testsite nyhedsbrev.
-
-VIGTIGT:
-
-Før din tilmelding er fuldstændig aktiveret, så skal du klikke dette link:
-###THIS_URL######FORM_URL######SYS_SETFIXED_approve###
-
-Hvis du ikke kan godkende din tilmelding (fx. hvis nogle andre har tilmeldt dig!), så klik blot dette link og du er slettet fra databasen:
-###THIS_URL######FORM_URL######SYS_SETFIXED_DELETE###
-
-Hvis du ønsker at ændre dine personlige data, så klik dette link:
-###THIS_URL######FORM_URL###&cmd=edit&aC=###SYS_AUTHCODE###&rU=###FIELD_uid###
-
-<!--###SUB_RECORD###-->
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED### end-->
-</pre>
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This is the template used for the administrator notifycation email upon a new subscription.<br>
-You can use the newly created record as markers on the format ###FIELD_[fieldname]###
-</em>
-<br>
-<br>
-
-
-<pre>
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED-ADMIN### begin
-       This is the template used for the administrator notifycation email upon a new subscription.
-       You can use the newly created record as markers on the format ###FIELD_[fieldname]###
--->
-<!--###SUB_RECORD###-->
-Admin: Ny tilmelding
-
-Navn: ###FIELD_name###
-Email: ###FIELD_email###
-<!--###SUB_RECORD###-->
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED-ADMIN### end-->
-</pre>
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>The template for forgotten passwords (infomail 'FORGOTPASSWORD' template!)</em>
-<br>
-<br>
-<pre>
-<!-- ###EMAIL_TEMPLATE_FORGOTPASSWORD### begin
-       The template for forgotten passwords (infomail 'FORGOTPASSWORD' template!)
--->
-<!--###SUB_RECORD###-->
-Typo3 Testsite Nyhedsbrev, Admin link
-
-Kære ###FIELD_name###
-
-Klik her for at ændre din profil:
-###THIS_URL######FORM_URL###&cmd=edit&aC=###SYS_AUTHCODE###&rU=###FIELD_uid###
-
-Klik her for at slette(!) din tilmelding
-###THIS_URL######FORM_URL###&cmd=delete&aC=###SYS_AUTHCODE###&rU=###FIELD_uid###
-<!--###SUB_RECORD###-->
-<!-- ###EMAIL_TEMPLATE_FORGOTPASSWORD### end-->
-</pre>
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Template used if the infomail was empty!</em>
-<br>
-<br>
-<pre>
-<!-- ###EMAIL_TEMPLATE_NORECORD### begin
-       Template used if the infomail was empty!
--->
-Tilmelding ikke fundet 
-
-Du har bedt om information om tilmelding, men der var ikke registreret nogen tilmelding til denne email adresse. 
-
-Beklager.
-
-<!-- ###EMAIL_TEMPLATE_NORECORD### end-->
-</pre>
-
-
-
-
-
-
-
-
-
-</body>
-</html>
diff --git a/misc/3.0.0/oldscripts/fe_admin_fe_users.tmpl b/misc/3.0.0/oldscripts/fe_admin_fe_users.tmpl
deleted file mode 100755 (executable)
index 723f03c..0000000
+++ /dev/null
@@ -1,793 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Frond End User Registration Template</TITLE>
-</head>
-<body>
-
-
-
-
-<br>
-<br>
-<br>
-<H1>FRONTEND USER REGISTRATION/ADMINISTRATION TEMPLATES</H1>
-<h2>EXAMPLE</h2>
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<h2>'Create' templates:</h2>
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Form for creation of a new fe_users record:</em>
-<br>
-<br>
-<!-- ###TEMPLATE_CREATE### begin
-       Form for creation of a new fe_users record
-
-       In this case, you can only create this record if you're not already logged in. That means the record will NOT get any fe_uid attached.
-       You're totally free to choose whether TEMPLATE_CREATE or TEMPLATE_CREATE_LOGIN is used to display the form. If you use LOGIN then users must be logged in in order to create the records and thus the records will be tagged with the fe_uid so they can be re-edited.
--->
-<h3>Create new user</h3>
-
-<FORM name="fe_users_form" method="post" action="###FORM_URL###">
-       
-Preferred username (lowercase):<br>
-<!--###SUB_REQUIRED_FIELD_username###--><font color=red><strong>Invalid username.</strong></font><BR>
-###EVAL_ERROR_FIELD_username### <br>
-<!--###SUB_REQUIRED_FIELD_username###-->
-<input type="text" name="FE[fe_users][username]"><br>
-
-Password  (lowercase):<br>
-<!--###SUB_REQUIRED_FIELD_password###--><font color=red><strong>Invalid password.</strong></font><BR>
-###EVAL_ERROR_FIELD_password### <br>
-<!--###SUB_REQUIRED_FIELD_password###-->
-<input size=10 type="password" name="FE[fe_users][password]"> Repeat: <input size=10 type="password" name="FE[fe_users][password_again]"><br>
-<br>
-
-<br>
-<strong>Personal information:</strong><br>
-<br>
-
-Name: (*)<br>
-<!--###SUB_REQUIRED_FIELD_name###--><font color=red><strong>You MUST enter a name!</strong></font><!--###SUB_REQUIRED_FIELD_name###-->
-<input type="text" name="FE[fe_users][name]"><br>
-
-Address:<br>
-<input type="text" name="FE[fe_users][address]"><br>
-
-Telephone:<br>
-<input type="text" name="FE[fe_users][telephone]"><br>
-
-Fax:<br>
-<input type="text" name="FE[fe_users][fax]"><br>
-
-Email: (*)<br>
-<!--###SUB_REQUIRED_FIELD_email###--><font color=red><strong>You MUST enter a valid email address!!</strong></font><BR>
-###EVAL_ERROR_FIELD_email### <br>
-<!--###SUB_REQUIRED_FIELD_email###-->
-<input type="text" name="FE[fe_users][email]"><br>
-
-Title:<br>
-<input type="text" name="FE[fe_users][title]"><br>
-
-Company:<br>
-<input type="text" name="FE[fe_users][company]"><br>
-
-Zipcode/City:<br>
-<input type="text" name="FE[fe_users][zip]" size=5>-<input type="text" name="FE[fe_users][city]"><br>
-
-Country:<br>
-<input type="text" name="FE[fe_users][country]"><br>
-
-Homepage:<br>
-<input type="text" name="FE[fe_users][www]"><br>
-
-###HIDDENFIELDS###
-<input type="Submit" name="submit" value="Create user">
-</FORM>
-
-<BR>
-<a href="###FORM_URL###&cmd=infomail&backURL=###FORM_URL_ENC###">Forgot your password?</a>
-<BR>  
-<!-- ###TEMPLATE_CREATE### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Here the user information is preview before final submission:</em>
-<br>
-<br>
-<!-- ###TEMPLATE_CREATE_PREVIEW### begin
-       Form for preview before creation of a new fe_users record
--->
-<h3>Preview information</h3>
-
-Please verify that everything is correct before the user is created:<br>
-<br>
-
-<table>
-<tr>
-       <td>Username:</td>
-       <td>###FIELD_username###</td>
-</tr>
-<tr>
-       <td>Name:</td>
-       <td>###FIELD_name###</td>
-</tr>
-<tr>
-       <td>Email:</td>
-       <td>###FIELD_email###</td>
-</tr>
-<tr>
-       <td>Title:</td>
-       <td>###FIELD_title###</td>
-</tr>
-<tr>
-       <td>Company:</td>
-       <td>###FIELD_company###</td>
-</tr>
-<tr>
-       <td>Address:</td>
-       <td>###FIELD_address###</td>
-</tr>
-<tr>
-       <td>Zip/City:</td>
-       <td>###FIELD_zip###-###FIELD_city###</td>
-</tr>
-<tr>
-       <td>Country:</td>
-       <td>###FIELD_country###</td>
-</tr>
-<tr>
-       <td>Telephone:</td>
-       <td>###FIELD_telephone###</td>
-</tr>
-<tr>
-       <td>Fax:</td>
-       <td>###FIELD_fax###</td>
-</tr>
-<tr>
-       <td>Homepage:</td>
-       <td>###FIELD_www###</td>
-</tr>
-</table>
-       <FORM name="fe_users_form" method="post" action="###FORM_URL###">
-       <input type="hidden" name="FE[fe_users][username]">
-       <input type="hidden" name="FE[fe_users][password]">
-       <input type="hidden" name="FE[fe_users][password_again]">
-       <input type="hidden" name="FE[fe_users][name]">
-       <input type="hidden" name="FE[fe_users][address]">
-       <input type="hidden" name="FE[fe_users][telephone]">
-       <input type="hidden" name="FE[fe_users][fax]">
-       <input type="hidden" name="FE[fe_users][email]">
-       <input type="hidden" name="FE[fe_users][title]">
-       <input type="hidden" name="FE[fe_users][zip]">
-       <input type="hidden" name="FE[fe_users][city]">
-       <input type="hidden" name="FE[fe_users][country]">
-       <input type="hidden" name="FE[fe_users][www]">
-       <input type="hidden" name="FE[fe_users][company]">
-       ###HIDDENFIELDS###
-       <input type="Submit" name="doNotSave" value="Back to form">
-       <input type="Submit" name="submit" value="Create user">
-       </FORM>
-       <br>
-       
-<!-- ###TEMPLATE_CREATE_PREVIEW### end-->
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Template, displayed if the user is already logged in.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_CREATE_LOGIN### begin
-       Template, displayed if the user is already logged in
-       
-       In this case it redirects to the same page but with the cmd set to edit
--->
-<a href="###FORM_URL###&cmd=edit">Click here to edit your user profile.</a>
-
-<script>
-//  document.location='###FORM_URL###&cmd=edit';
-</script>
-<!-- ###TEMPLATE_CREATE_LOGIN### end-->
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This is shown when the user is created:</em>
-<br>
-<br>
-<!-- ###TEMPLATE_CREATE_SAVED### begin
-       This is shown when the user is created
-
-       You can use the newly created record as markers on the format ###FIELD_[fieldname]###
-       The cObject named LOGIN is inserted.
--->
-
-<h3>User registration complete</h3>
-Now, login with your new username (###FIELD_username###) and password:<br>
-<br>
-
-###CE_LOGIN###<BR>
-
-<br>
-or <a href="###FORM_URL###&logintype=login&user=###FIELD_username###&pass=###FIELD_password###&pid=###THE_PID###">just click here!</a>
-<br>
-<br>
-
-<!-- ###TEMPLATE_CREATE_SAVED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<h2>'Edit' templates:</h2>
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Menu of available fe_users records:</em>
-<br>
-<br>
-<!-- ###TEMPLATE_EDITMENU### begin
-       This template is used to generate a menu that displays the items from the actual table that the user has administration access to
-       For each item you can use the regular record markers formatted like this: ###FIELD_[fielname]### plus ###FORM_URL###
--->
-       Select a user to edit:
-       <HR>
-               <!-- ###ALLITEMS### begin -->
-                       <!-- ###ITEM### begin -->
-                               <a href="###FORM_URL###&rU=###FIELD_uid###&cmd=edit">###FIELD_username### (###FIELD_name###)</a><br>
-                       <!-- ###ITEM### end -->
-               <!-- ###ALLITEMS### end -->
-       <HR>
-<a href="###FORM_URL###&cmd=">Create a new user...</a><br>
-<!-- ###TEMPLATE_EDITMENU### -->
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Menu of available fe_users records:</em>
-<br>
-<br>
-<!-- ###TEMPLATE_EDITMENU_NOITEMS### begin
-       This is shown if the user has no items!
--->
-You have currently no editable user - which is not possible as you're logged in as one! Strange error.
-<!-- ###TEMPLATE_EDITMENU_NOITEMS### -->
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Form for editing of a fe_users record:</em>
-<br>
-<br>
-<!-- ###TEMPLATE_EDIT### begin
-       Form for editing of a fe_users record:
--->
-<h3>Edit user '###FIELD_username###'</h3>
-
-<FORM name="fe_users_form" method="post" action="###FORM_URL###">
-       
-Password  (lowercase):<br>
-<!--###SUB_REQUIRED_FIELD_password###--><font color=red><strong>Invalid password.</strong></font><BR>
-###EVAL_ERROR_FIELD_password### <br>
-<!--###SUB_REQUIRED_FIELD_password###-->
-<input size=10 type="password" name="FE[fe_users][password]"> Repeat: <input size=10 type="password" name="FE[fe_users][password_again]"><br>
-<br>
-
-<br>
-<strong>Personal information:</strong><br>
-<br>
-
-Name: (*)<br>
-<!--###SUB_REQUIRED_FIELD_name###--><font color=red><strong>You MUST enter a name!</strong></font><!--###SUB_REQUIRED_FIELD_name###-->
-<input type="text" name="FE[fe_users][name]"><br>
-
-Address:<br>
-<input type="text" name="FE[fe_users][address]"><br>
-
-Telephone:<br>
-<input type="text" name="FE[fe_users][telephone]"><br>
-
-Fax:<br>
-<input type="text" name="FE[fe_users][fax]"><br>
-
-Email: (*)<br>
-<!--###SUB_REQUIRED_FIELD_email###--><font color=red><strong>You MUST enter a valid email address!!</strong></font><BR>
-###EVAL_ERROR_FIELD_email### <br>
-<!--###SUB_REQUIRED_FIELD_email###-->
-<input type="text" name="FE[fe_users][email]"><br>
-
-Title:<br>
-<input type="text" name="FE[fe_users][title]"><br>
-
-Company:<br>
-<input type="text" name="FE[fe_users][company]"><br>
-
-Zipcode/City:<br>
-<input type="text" name="FE[fe_users][zip]" size=5>-<input type="text" name="FE[fe_users][city]"><br>
-
-Country:<br>
-<input type="text" name="FE[fe_users][country]"><br>
-
-Homepage:<br>
-<input type="text" name="FE[fe_users][www]"><br>
-
-###HIDDENFIELDS###
-<input type="Submit" name="submit" value="Update user information">
-</FORM>
-
-<BR>
-<a href="###FORM_URL###&cmd=delete&backURL=###FORM_URL_ENC###&rU=###REC_UID###&preview=1">DELETE THIS USER!</a>
-<BR>  
-<BR>
-<a href="###FORM_URL###&cmd=infomail&backURL=###FORM_URL_ENC###">Forgot your password?</a>
-<BR>  
-<!-- ###TEMPLATE_EDIT### end-->
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>Here the user information is preview before final submission:</em>
-<br>
-<br>
-<!-- ###TEMPLATE_EDIT_PREVIEW### begin
-       Form for preview before changing the fe_users record
--->
-<h3>Preview information</h3>
-
-Please verify that everything is correct before the user is created:<br>
-<br>
-
-<table>
-<tr>
-       <td>Name:</td>
-       <td>###FIELD_name###</td>
-</tr>
-<tr>
-       <td>Email:</td>
-       <td>###FIELD_email###</td>
-</tr>
-<tr>
-       <td>Title:</td>
-       <td>###FIELD_title###</td>
-</tr>
-<tr>
-       <td>Company:</td>
-       <td>###FIELD_company###</td>
-</tr>
-<tr>
-       <td>Address:</td>
-       <td>###FIELD_address###</td>
-</tr>
-<tr>
-       <td>Zip/City:</td>
-       <td>###FIELD_zip###-###FIELD_city###</td>
-</tr>
-<tr>
-       <td>Country:</td>
-       <td>###FIELD_country###</td>
-</tr>
-<tr>
-       <td>Telephone:</td>
-       <td>###FIELD_telephone###</td>
-</tr>
-<tr>
-       <td>Fax:</td>
-       <td>###FIELD_fax###</td>
-</tr>
-<tr>
-       <td>Homepage:</td>
-       <td>###FIELD_www###</td>
-</tr>
-</table>
-       <FORM name="fe_users_form" method="post" action="###FORM_URL###">
-       <input type="hidden" name="FE[fe_users][password]">
-       <input type="hidden" name="FE[fe_users][password_again]">
-       <input type="hidden" name="FE[fe_users][name]">
-       <input type="hidden" name="FE[fe_users][address]">
-       <input type="hidden" name="FE[fe_users][telephone]">
-       <input type="hidden" name="FE[fe_users][fax]">
-       <input type="hidden" name="FE[fe_users][email]">
-       <input type="hidden" name="FE[fe_users][title]">
-       <input type="hidden" name="FE[fe_users][zip]">
-       <input type="hidden" name="FE[fe_users][city]">
-       <input type="hidden" name="FE[fe_users][country]">
-       <input type="hidden" name="FE[fe_users][www]">
-       <input type="hidden" name="FE[fe_users][company]">
-       ###HIDDENFIELDS###
-       <input type="Submit" name="doNotSave" value="Back to form">
-       <input type="Submit" name="submit" value="Update user information">
-       </FORM>
-       <br>
-       
-<!-- ###TEMPLATE_EDIT_PREVIEW### end-->
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This is shown when the user is created:</em>
-<br>
-<br>
-<!-- ###TEMPLATE_EDIT_SAVED### begin
-       This is shown when the user is edited
--->
-
-<h3>User profile edited</h3>
-You have updated the information for the user, ###FIELD_username###.<br>
-
-<!-- ###TEMPLATE_EDIT_SAVED### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<h2>'Delete' templates:</h2>
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This template is the response page when a users has delete him self.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_DELETE_SAVED### begin
-       This is the message displayed if you have just deleted your subscription
--->
-<h3>You've deleted your registration</h3>
-
-Username: ###FIELD_username###<BR>
-<!-- ###TEMPLATE_DELETE_SAVED### end-->
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is the verification page before the user finally deletes him self.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_DELETE_PREVIEW### begin
-       This is the message displayed if you have just deleted your subscription
--->
-<h3>Do you really wish to delete this user, '###FIELD_username###' ?</h3>
-
-<FORM name="fe_users_form" method="post" action="###FORM_URL###">
-###HIDDENFIELDS###
-<input type="Submit" name="doNotSave" value="No, Cancel" onClick="document.location='###BACK_URL###'; return false;">
-<input type="Submit" name="submit" value="Yes, Delete user">
-</FORM>
-<br>
-<!-- ###TEMPLATE_DELETE_PREVIEW### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<h2>'Info mail' templates:</h2>
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This form is used to send the infomails.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_INFOMAIL### begin
-       This form is used to send the infomails.
-       You could also use this as a "did you forget your password?" service form.
--->
-<h3>Forgot your password?</h3>
-
-Enter the email address <em>by which you're registered</em> here, and your password will be sent to you by email.<br>
-
-<FORM name="fe_users_form" method="post" action="###FORM_URL###">
-<input type="text" name="fetch"><br>
-<input type="submit" name="whatever" value="Send">
-       ###HIDDENFIELDS###
-</FORM>
-<!-- ###TEMPLATE_INFOMAIL### end-->
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>           This template is the response page when a users has requested his password send to his email.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_INFOMAIL_SENT### begin
-       This template is the response page when a users has requested his password send to his email.
--->
-<h3>An email has been sent to your account with the required information</h3>
-
-<a href="###BACK_URL###"><strong>Go back...</strong></a><BR>
-<!-- ###TEMPLATE_INFOMAIL_SENT### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<h2>'Authentication' templates:</h2>
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>   Authentication failed message.</em>
-<br>
-<br>
-<!-- ###TEMPLATE_AUTH### begin
-       Authentication failed message
--->
-<h3>Authentication failed</h3>
-Of some reason the authentication failed. 
-<!-- ###TEMPLATE_AUTH### end-->
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>No permission template</em>
-<br>
-<br>
-<!-- ###TEMPLATE_NO_PERMISSIONS### begin
-       Authentication failed message
--->
-<h3>No permissions to edit record</h3>
-Sorry, you did not have permissions to edit the record.
-<!-- ###TEMPLATE_NO_PERMISSIONS### end-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<H1>EMAIL TEMPLATES:</H1>
-In these plain text email templates the first line with content is used as subject in the mails.<br>
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template is used to notify a person by email that he is subscribed to the newsletter.<br>
-You can use the newly created record as markers on the format ###FIELD_[fieldname]###
-</em>
-<br>
-<br>
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This is the template used for the administrator notification email upon a new user registration.<br>
-You can use the newly created record as markers on the format ###FIELD_[fieldname]###
-</em>
-<br>
-<br>
-<pre>
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED-ADMIN### begin
-       This is the template used for the administrator notifycation email upon a new user registration.
-       You can use the newly created record as markers on the format ###FIELD_[fieldname]###
--->
-<!--###SUB_RECORD###-->
-Admin: New user registration
-
-Name: ###FIELD_name###
-Email: ###FIELD_email###
-
-Username: ###FIELD_username###
-Password: ###FIELD_password###
-
-- kind regards.
-<!--###SUB_RECORD###-->
-<!-- ###EMAIL_TEMPLATE_CREATE_SAVED-ADMIN### end-->
-</pre>
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>The template for forgotten passwords (infomail 'FORGOTPASSWORD' template!)</em>
-<br>
-<br>
-<pre>
-<!-- ###EMAIL_TEMPLATE_FORGOTPASSWORD### begin
-       The template for forgotten passwords (infomail 'FORGOTPASSWORD' template!)
--->
-<!--###SUB_RECORD###-->
-Typo3 testsite user password
-
-Dear ###FIELD_name###
-
-You username is ###FIELD_username###
-You password is ###FIELD_password###
-
-<!--###SUB_RECORD###-->
-<!-- ###EMAIL_TEMPLATE_FORGOTPASSWORD### end-->
-</pre>
-
-
-
-
-
-
-
-</body>
-</html>
diff --git a/misc/3.0.0/oldscripts/guestLib.inc b/misc/3.0.0/oldscripts/guestLib.inc
deleted file mode 100755 (executable)
index 85584df..0000000
+++ /dev/null
@@ -1,237 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@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!
-***************************************************************/
-/**
- * guestLib.inc
- * 
- * Creates a guestbook/comment-list.
- * 
- * TypoScript config:
- * - See static_template "plugin.tt_guest"
- * - See TS_ref.pdf
- *
- * Other resources:
- * 'guest_submit.inc' is used for submission of the guest book entries to the database. This is done through the FEData TypoScript object. See the static_template 'plugin.tt_guest' for an example of how to set this up.
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- */
-
-class user_guest {
-       var $cObj;              // The backReference to the mother cObj object set at call time
-
-       var $enableFields ="";          // The enablefields of the tt_board table.
-       var $dontParseContent=0;        
-       
-       var $orig_templateCode="";
-
-       /**
-        * Main guestbook function.
-        * Call it from a USER cObject with 'userFunc = user_guest->main_guestbook'
-        */
-       function main_guestbook($content,$conf) {
-               $content="";
-               
-               // *************************************
-               // *** getting configuration values:
-               // *************************************
-               $alternativeLayouts = intval($conf["alternatingLayouts"])>0 ? intval($conf["alternatingLayouts"]) : 2;
-                       
-                       // pid_list is the pid/list of pids from where to fetch the guest items.
-               $config["pid_list"] = trim($this->cObj->stdWrap($conf["pid_list"],$conf["pid_list."]));
-               $config["pid_list"] = $config["pid_list"] ? implode(t3lib_div::intExplode(",",$config["pid_list"]),",") : $GLOBALS["TSFE"]->id;
-               list($pid) = explode(",",$config["pid_list"]);
-       
-                       // "CODE" decides what is rendered:
-               $config["code"] = $this->cObj->stdWrap($conf["code"],$conf["code."]);
-       
-                       // template is read.
-               $this->orig_templateCode = $this->cObj->fileResource($conf["templateFile"]);
-       
-
-                       // globally substituted markers, fonts and colors.      
-               $splitMark = md5(microtime());
-               $globalMarkerArray=array();
-               list($globalMarkerArray["###GW1B###"],$globalMarkerArray["###GW1E###"]) = explode($splitMark,$this->cObj->stdWrap($splitMark,$conf["wrap1."]));
-               list($globalMarkerArray["###GW2B###"],$globalMarkerArray["###GW2E###"]) = explode($splitMark,$this->cObj->stdWrap($splitMark,$conf["wrap2."]));
-               $globalMarkerArray["###GC1###"] = $this->cObj->stdWrap($conf["color1"],$conf["color1."]);
-               $globalMarkerArray["###GC2###"] = $this->cObj->stdWrap($conf["color2"],$conf["color2."]);
-               $globalMarkerArray["###GC3###"] = $this->cObj->stdWrap($conf["color3"],$conf["color3."]);
-
-                       // Substitute Global Marker Array
-               $this->orig_templateCode= $this->cObj->substituteMarkerArray($this->orig_templateCode, $globalMarkerArray);
-
-                       // If the current record should be displayed.
-               $config["displayCurrentRecord"] = $conf["displayCurrentRecord"];
-               if ($config["displayCurrentRecord"])    {
-                       $config["code"]="GUESTBOOK";
-               }
-                       
-
-               // *************************************
-               // *** doing the things...:
-               // *************************************
-               $this->init($this->cObj->enableFields("tt_guest"));
-               $this->dontParseContent = $conf["dontParseContent"];
-               $cObj =t3lib_div::makeInstance("tslib_cObj");   // Initiate new cObj, because we're loading the data-array
-               
-               $codes=t3lib_div::trimExplode(",", $config["code"]?$config["code"]:$conf["defaultCode"],1);
-               if (!count($codes))     $codes=array("");
-               while(list(,$theCode)=each($codes))     {
-                       $theCode = (string)strtoupper(trim($theCode));
-                       switch($theCode)        {
-                               case "POSTFORM":
-                                       $lConf = $conf["postform."];
-                                       $content.=$cObj->FORM($lConf);
-                               break;
-                               case "GUESTBOOK":
-                                       $lConf=$conf;
-                               
-                                       if (!$lConf["subpartMarker"])   {
-                                               $lConf["subpartMarker"]="TEMPLATE_GUESTBOOK";
-                                       }
-       
-                                               // Getting template subpart from file.
-                                       $templateCode = $cObj->getSubpart($this->orig_templateCode, "###".$lConf["subpartMarker"]."###");
-                                       if ($templateCode)      {
-                                                       // Getting the specific parts of the template
-                                               $postHeader=$this->getLayouts($templateCode,$alternativeLayouts,"POST");
-
-                                                       // Fetching the guest book item(s) to display:
-                                               if ($config["displayCurrentRecord"])    {
-                                                       $recentPosts=array();
-                                                       $recentPosts[] = $this->cObj->data;     
-                                               } else {
-                                                       $recentPosts = $this->getItems($pid);
-                                               }
-                                                       // Traverse the items and display them:
-                                               reset($recentPosts);
-                                               $c_post=0;
-                                               $subpartContent="";
-                                               while(list(,$recentPost)=each($recentPosts))    {
-                                                               // Passing data through stdWrap and into the markerArray
-                                                       $cObj->start($recentPost);              // Set this->data to the current record tt_guest record.
-                                                       $markerArray=array();
-                                                       $markerArray["###POST_TITLE###"] = $cObj->stdWrap($this->formatStr($recentPost["title"]), $conf["title_stdWrap."]);
-                                                       $markerArray["###POST_CONTENT###"] = $cObj->stdWrap($this->formatStr($recentPost["note"]), $conf["note_stdWrap."]);
-                                                       $markerArray["###POST_AUTHOR###"] = $cObj->stdWrap($this->formatStr($recentPost["cr_name"]), $conf["author_stdWrap."]);
-                                                       $markerArray["###POST_EMAIL###"] = $cObj->stdWrap($this->formatStr($recentPost["cr_email"]), $conf["email_stdWrap."]);
-                                                       $markerArray["###POST_WWW###"] = $cObj->stdWrap($this->formatStr($recentPost["www"]), $conf["www_stdWrap."]);
-                                                       $markerArray["###POST_DATE###"] = $cObj->stdWrap($recentPost["crdate"],$conf["date_stdWrap."]);
-                                                       $markerArray["###POST_TIME###"] = $cObj->stdWrap($recentPost["crdate"],$conf["time_stdWrap."]);
-                                                       $markerArray["###POST_AGE###"] = $cObj->stdWrap($recentPost["crdate"],$conf["age_stdWrap."]);
-                                                               // Substitute the markerArray in the proper template code (POST subparts, alternating)
-                                                       $out=$postHeader[$c_post%count($postHeader)];
-                                                       $c_post++;
-                                                       $subpartContent.=$cObj->substituteMarkerArrayCached($out,$markerArray);
-                                               }
-                                               
-                                                       // Total Substitution:
-                                               if ($lConf["requireRecords"] && !count($recentPosts))   {
-                                                       $content.= "";
-                                               } else {
-                                                       $content.= $cObj->substituteSubpart($templateCode,"###CONTENT###",$subpartContent) ;
-                                               }
-                                       } else {
-                                               debug("No template code for the subpart maker ###".$lConf["subpartMarker"]."###"); 
-                                       }
-                       
-                               break;
-                               default:
-                                       $langKey = strtoupper($GLOBALS["TSFE"]->config["config"]["language"]);
-                                       $helpTemplate = $this->cObj->fileResource("media/scripts/guest_help.tmpl");
-
-                                               // Get language version
-                                       $helpTemplate_lang="";
-                                       if ($langKey)   {$helpTemplate_lang = $this->cObj->getSubpart($helpTemplate,"###TEMPLATE_".$langKey."###");}
-                                       $helpTemplate = $helpTemplate_lang ? $helpTemplate_lang : $this->cObj->getSubpart($helpTemplate,"###TEMPLATE_DEFAULT###");
-
-                                               // Markers and substitution:
-                                       $markerArray["###CODE###"] = $theCode;
-                                       $content.=$this->cObj->substituteMarkerArray($helpTemplate,$markerArray);
-                               break;
-                       }
-               }
-               return $content;
-       }
-       
-       /**
-        * Main guestbook function.
-        * Call it from a USER cObject with 'userFunc = user_guest->guestbook'
-        */
-       function init($enableFields)    {
-               $this->enableFields = $enableFields;
-       }
-
-       /**
-        * Main guestbook function.
-        * Call it from a USER cObject with 'userFunc = user_guest->guestbook'
-        */
-       function getLayouts($templateCode,$alternativeLayouts,$marker)  {
-               $out=array();
-               for($a=0;$a<$alternativeLayouts;$a++)   {
-                       $m= "###".$marker.($a?"_".$a:"")."###";
-                       if(strstr($templateCode,$m))    {
-                               $out[]=$GLOBALS["TSFE"]->cObj->getSubpart($templateCode, $m);
-                       } else {
-                               break;
-                       }
-               }
-               return $out;
-       }
-
-       /**
-        * Main guestbook function.
-        * Call it from a USER cObject with 'userFunc = user_guest->guestbook'
-        */
-       function getItems($pid) {
-               $query = "SELECT * FROM tt_guest WHERE pid IN (".$pid.")".$this->enableFields." ORDER BY crdate DESC";
-               $res = mysql(TYPO3_db,$query);
-               $out=array();
-               while($row = mysql_fetch_assoc($res))   {
-                       $out[]=$row;
-               }
-               return $out;
-       }
-
-       /**
-        * Main guestbook function.
-        * Call it from a USER cObject with 'userFunc = user_guest->guestbook'
-        */
-       function formatStr($str)        {
-               if (!$this->dontParseContent)   {
-                       return nl2br(htmlspecialchars($str));
-               } else {
-                       return $str;
-               }
-       }
-}
-
-
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["media/scripts/guestLib.inc"])     {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["media/scripts/guestLib.inc"]);
-}
-
-?>
\ No newline at end of file
diff --git a/misc/3.0.0/oldscripts/guest_help.tmpl b/misc/3.0.0/oldscripts/guest_help.tmpl
deleted file mode 100755 (executable)
index 4db1a2f..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<!--###TEMPLATE_DEFAULT### begin
-       Help template for the default language, english
--->
-<table border=1 cellpadding=4 cellspacing=1 bgcolor="#eeeeee"> 
-<tr>
-       <td colspan=2>
-       
-       <div align="center"><h3>Guestbook Codes</h3></div>
-       <font face=verdana size=2>
-       You must insert a code in the CODE field of the "List" content element before the guestbook will work. The code tells the guestbook module what to do. You can insert multiple codes by separating them by a comma.<br>
-       Here is an example:<br><BR>
-       <div align="center"><img src="media/scripts/guest_help1.gif" width="370" height="220" border="2" alt=""></div>
-
-       
-       <HR>
-       Current CODE = "<b>###CODE###</b>"
-       </font>
-       </td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>GUESTBOOK</strong></font></td>
-       <td><font face=verdana size=2>Lists the content of a the guestbook.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>POSTFORM</strong></font></td>
-       <td><font face=verdana size=2>Displays a submit-form used to post comments.</font></td>
-</tr>
-</table>
-<!--###TEMPLATE_DEFAULT### end -->
-
-
-<!--###TEMPLATE_DK### begin
-       Danish version
--->
-<table border=1 cellpadding=4 cellspacing=1 bgcolor="#eeeeee"> 
-<tr>
-       <td colspan=2>
-       
-       <div align="center"><h3>Gæstebogskoder</h3></div>
-       <font face=verdana size=2>
-       Du skal indsætte en kode i KODE feltet på "Liste" indholdselementet før gæstebogen kan fungere. Koden fortæller gæstebogsfunktionen, hvad der skal vises. Du kan indsætte flere koder ved adskillelse med et komma.<br>
-       Her er et eksempel:<br><BR>
-       <div align="center"><img src="media/scripts/guest_help1.gif" width="370" height="220" border="2" alt=""></div>
-
-       <HR>
-       Nuværende KODE = "<b>###CODE###</b>"
-       </font>
-       </td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>GUESTBOOK</strong></font></td>
-       <td><font face=verdana size=2>Viser indholdet af gæstebogen.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>POSTFORM</strong></font></td>
-       <td><font face=verdana size=2>Viser en formular til at sende indlæg til gæstebogen.</font></td>
-</tr>
-</table>
-<!--###TEMPLATE_DK### end -->
-
diff --git a/misc/3.0.0/oldscripts/guest_help1.gif b/misc/3.0.0/oldscripts/guest_help1.gif
deleted file mode 100755 (executable)
index f10f71a..0000000
Binary files a/misc/3.0.0/oldscripts/guest_help1.gif and /dev/null differ
diff --git a/misc/3.0.0/oldscripts/guest_submit.inc b/misc/3.0.0/oldscripts/guest_submit.inc
deleted file mode 100755 (executable)
index 5587562..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@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!
-***************************************************************/
-/**
- * guest_submit.inc
- * 
- * .notifyEmail =      email address that should be notified of submissions.
- * See TSref document / FEDATA section for details on how to use this script.
- * The static template 'plugin.tt_guest' provides a working example of configuration.
- * 
- * @author     Kasper Skårhøj <kasper@typo3.com>
- */
-
-if (is_object($this))  {
-       if (is_array($this->newData["tt_guest"]["NEW"]))        {
-               $query = $this->getNEWinsert("tt_guest", $this->newData["tt_guest"]["NEW"]);
-//             debug($query);
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $this->clear_cacheCmd(intval($this->newData["tt_guest"]["NEW"]["pid"]));
-
-               $conf = $this->getConf("tt_guest");
-               if ($conf["notifyEmail"])       {
-                       $name = $this->newData["tt_guest"]["NEW"]["cr_name"];
-                       $email = $this->newData["tt_guest"]["NEW"]["cr_email"];
-               
-                       mail ($conf["notifyEmail"], "tt_guest item submitted at ".t3lib_div::getIndpEnv("HTTP_HOST"), '
-Page-id, tt_guest: '.$this->newData["tt_guest"]["NEW"][pid].'
-Current page uid/title: '.$GLOBALS["TSFE"]->page[title].'/'.$GLOBALS["TSFE"]->page[uid].'
-Name: '.$name.'
-Email: '.$email.'
-Message: '.$this->newData["tt_guest"]["NEW"]["title"].'
-'.$this->newData["tt_guest"]["NEW"]["note"].'
-                       
-                       ','From: '.$name.' <'.$email.'>');
-               }
-       }
-}
-
-?>
\ No newline at end of file
diff --git a/misc/3.0.0/oldscripts/guest_template1.tmpl b/misc/3.0.0/oldscripts/guest_template1.tmpl
deleted file mode 100755 (executable)
index 72e01dc..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Guestbook example template</TITLE>
-</head>
-
-<body>
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<H1>GUESTBOOK TEMPLATES</H1>
-<h2>EXAMPLE 1</h2>
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template for the guestbook features:<br>
-- A header section (the orange table cell)<br>
-- A content section, which is where the guest book items go:<br>
-- The content section has two alternative designs: One with a light background and one with an olive background. When listing the guestbook items, Typo3 will alternate between using the one or the other design.<br>
-(See the source code for subparts and markers)<br>
-</em>
-<br>
-<br>
-<br>
-<br>
-
-
-
-<!-- ###TEMPLATE_GUESTBOOK### begin
-       This is the template for the guest book or comment items 
--->
-<TABLE cellpadding="4" cellspacing="1" border="0" width="98%">
-       <TR bgcolor="###GC3###">
-               <TD colspan=2 valign="bottom">###GW2B### <font color="#FFFFFF"><B>Comments:</B></FONT>###GW2E###</TD>
-       </TR>
-       <!-- ###CONTENT### begin
-                 This is the part of the template substituted with the list of comments/entries: 
-       -->
-               <!-- ###POST### begin 
-                       Template for a single item 
-               -->
-                       <TR>
-                               <TD bgcolor="###GC2###" valign="top">
-                                       ###GW2B### ###POST_DATE### - ###POST_TIME### - ###POST_AGE### ###GW2E###
-                               </TD>
-                               <TD bgcolor="###GC2###" valign="top">
-                                       ###GW2B### <B>###POST_AUTHOR###</B> - ###POST_EMAIL###<BR>###POST_WWW### ###GW2E###
-                               </TD>
-                       </TR>
-                       <TR>
-                               <TD bgcolor="###GC2###" valign="top">
-                               </TD>
-                               <TD bgcolor="###GC2###" valign="top">
-                                       ###GW1B###<B>###POST_TITLE###</B>###GW1E###<BR>
-                                       ###GW2B### ###POST_CONTENT### ###GW2E###
-                               </TD>
-                       </TR>
-               <!-- ###POST### end-->
-               <!-- ###POST_1### begin 
-                       Template for an alternative single item 
-               -->
-                       <TR>
-                               <TD bgcolor="###GC1###" valign="top">
-                                       ###GW2B### ###POST_DATE### - ###POST_TIME### - ###POST_AGE### ###GW2E###
-                               </TD>
-                               <TD bgcolor="###GC1###" valign="top">
-                                       ###GW2B### <B>###POST_AUTHOR###</B> - ###POST_EMAIL###<BR>###POST_WWW### ###GW2E###
-                               </TD>
-                       </TR>
-                       <TR>
-                               <TD bgcolor="###GC1###" valign="top">
-                               </TD>
-                               <TD bgcolor="###GC1###" valign="top">
-                                       ###GW1B###<B>###POST_TITLE###</B>###GW1E###<BR>
-                                       ###GW2B### ###POST_CONTENT### ###GW2E###
-                               </TD>
-                       </TR>
-               <!-- ###POST_1### end-->
-       <!-- ###CONTENT###  end -->
-</TABLE><BR>
-<!-- ###TEMPLATE_GUESTBOOK### end -->
-
-
-</BODY>
-</HTML>
diff --git a/misc/3.0.0/oldscripts/guest_template2.tmpl b/misc/3.0.0/oldscripts/guest_template2.tmpl
deleted file mode 100755 (executable)
index f122a20..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>Guestbook example template</TITLE>
-</head>
-
-<body>
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<H1>GUESTBOOK TEMPLATES</H1>
-<h2>EXAMPLE 2</h2>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<em>This template for the guestbook features:<br>
-- A header section (the gray table cell with title)<br>
-- A content section with only one design for an element (as opposed to Example 1 where there are two alternating designs).<BR>
-(See the source code for subparts and markers)<br>
-</em>
-<br>
-<br>
-<br>
-<br>
-
-
-
-
-
-<!-- ###TEMPLATE_GUESTBOOK###  begin 
-       This is the template for the guest book or comment items
--->
-<TABLE cellpadding="4" cellspacing="1" border="0" width="98%">
-       <TR bgcolor="#999999"><TD colspan=2 valign="bottom"><FONT face="verdana,arial,helvetica" size="2" color="#FFFFFF"><div align="center"><B>The Guestbook</B></div></FONT></TD></TR>
-       <!-- ###CONTENT### begin
-                 This is the part of the template substituted with the list of comments/entries: 
-       -->
-               <!-- ###POST### begin 
-                       Template for a single item 
-               -->
-                       <TR>
-                               <TD nowrap width="10%" bgColor="#cccccc"><FONT face="arial, helvetica" size="1"><B>###POST_DATE###</B></FONT></TD>
-                               <TD valign="top" bgColor="#cccccc"><FONT face="arial, helvetica" size="2"><B>###POST_TITLE###</B></FONT></TD>
-                       </TR>
-                       <TR>
-                               <TD valign="top">
-                               </TD>
-                               <TD valign="top">
-                                       <FONT face="verdana,arial,helvetica" size="1">
-                                               ###POST_CONTENT###<br><br>
-                                               
-                                       -----------<br>
-                                       Name: <B>###POST_AUTHOR###</B><br>
-                                       Email: <a href="mailto:###POST_EMAIL###">###POST_EMAIL###</a>
-                                       </FONT>
-                               </TD>
-                       </TR>
-               <!-- ###POST### end-->
-       <!-- ###CONTENT###  end -->
-</TABLE><BR>
-<!-- ###TEMPLATE_GUESTBOOK### end -->
-
-
-
-</BODY>
-</HTML>
diff --git a/misc/3.0.0/oldscripts/meta.php b/misc/3.0.0/oldscripts/meta.php
deleted file mode 100755 (executable)
index 9c7cada..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@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!
-***************************************************************/
-/**
- * Creates meta tags. 
- * See static_template 'plugin.meta'
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- */
-
-
-if (!is_object($this)) die("Not called from cObj!");
-
-$globalMeta = $conf["global."];
-$local = $conf["local."];
-$regular = array();
-$DC = array();
-
-$localDescription = trim($this->stdWrap($local["description"],$local["description."]));
-$localKeywords = trim($this->stdWrap($local["keywords"],$local["keywords."]));
-
-// Unsetting secondary description and keywords if constant is not substituted!
-if (substr($globalMeta["description_2"],0,2)=='{$')            {$globalMeta["description_2"] = "";}
-if (substr($globalMeta["keywords_2"],0,2)=='{$')               {$globalMeta["keywords_2"] = "";}
-if (!$conf["flags."]["useSecondaryDescKey"])   {
-       unset($globalMeta["keywords_2"]);
-       unset($globalMeta["description_2"]);
-}
-
-// Process them:
-if ($globalMeta["description"] || $globalMeta["description_2"] || $localDescription)   {
-       $val = trim($globalMeta["description"]);
-       if ($globalMeta["description_2"])       {
-               $val = ($val?ereg_replace("\.$","",$val).". ":"").$globalMeta["description_2"];
-       }
-       if ($localDescription)  {
-               if ($conf["flags."]["alwaysGlobalDescription"] )        {
-                       $val = ereg_replace("\.$","",$localDescription).". ".$val;
-               } else {
-                       $val = $localDescription;
-               }
-       }
-       $val=trim($val);
-       $regular[] = '<META NAME="Description" CONTENT="'.htmlspecialchars($val).'">';
-       $DC[] = '<META NAME="DC.Description" CONTENT="'.htmlspecialchars($val).'">';
-}
-if ($globalMeta["keywords"] || $globalMeta["keywords_2"] || $localKeywords)    {
-       $val = trim($globalMeta["keywords"]);
-       if ($globalMeta["keywords_2"])  {
-               $val = ereg_replace(",$","",$val).",".$globalMeta["keywords_2"];
-       }
-       if ($localKeywords)     {
-               if ($conf["flags."]["alwaysGlobalKeywords"] )   {
-                       $val = ereg_replace(",$","",$localKeywords).",".$val;
-               } else {
-                       $val = $localKeywords;
-               }
-       }
-       $val=trim(ereg_replace(",$","",trim($val)));
-       $val=implode(",",t3lib_div::trimExplode(",",$val,1));
-       $regular[] = '<META NAME="Keywords" CONTENT="'.htmlspecialchars($val).'">';
-       $DC[] = '<META NAME="DC.Subject" CONTENT="'.htmlspecialchars($val).'">';
-}
-if ($globalMeta["robots"])     {
-       $regular[] = '<META NAME="Robots" CONTENT="'.htmlspecialchars($globalMeta["robots"]).'">';
-}
-if ($globalMeta["copyright"])  {
-       $regular[] = '<META NAME="Copyright" CONTENT="'.htmlspecialchars($globalMeta["copyright"]).'">';
-       $DC[] = '<META NAME="DC.Rights" CONTENT="'.htmlspecialchars($globalMeta["copyright"]).'">';
-}
-if ($globalMeta["language"])   {
-       $regular[] = '<META HTTP-EQUIV="Content-language" CONTENT="'.htmlspecialchars($globalMeta["language"]).'">';
-       $DC[] = '<META NAME="DC.Language" scheme="NISOZ39.50" CONTENT="'.htmlspecialchars($globalMeta["language"]).'">';
-}
-if ($globalMeta["email"])      {
-       $regular[] = '<LINK REV=made href="mailto:'.htmlspecialchars($globalMeta["email"]).'">';
-       $regular[] = '<META HTTP-EQUIV="Reply-to" CONTENT="'.htmlspecialchars($globalMeta["email"]).'">';
-}
-if ($globalMeta["author"])     {
-       $regular[] = '<META NAME="Author" CONTENT="'.htmlspecialchars($globalMeta["author"]).'">';
-       $DC[] = '<META NAME="DC.Creator" CONTENT="'.htmlspecialchars($globalMeta["author"]).'">';
-}
-if ($globalMeta["distribution"])       {
-       $regular[] = '<META NAME="Distribution" CONTENT="'.htmlspecialchars($globalMeta["distribution"]).'">';
-}
-if ($globalMeta["rating"])     {
-       $regular[] = '<META NAME="Rating" CONTENT="'.htmlspecialchars($globalMeta["rating"]).'">';
-}
-if ($globalMeta["revisit"])    {
-       $regular[] = '<META NAME="Revisit-after" CONTENT="'.htmlspecialchars($globalMeta["revisit"]).'">';
-}
-
-$DC[] = '<LINK REL="schema.dc" HREF="http://purl.org/metadata/dublin_core_elements">';
-
-
-if (!$conf["flags."]["DC"])    {$DC=array();}
-
-$content ="";
-$content.= implode($regular,chr(10)).chr(10);
-$content.= implode($DC,chr(10)).chr(10);
-
-?>
\ No newline at end of file
diff --git a/misc/3.0.0/oldscripts/new.gif b/misc/3.0.0/oldscripts/new.gif
deleted file mode 100755 (executable)
index 1e0cc3f..0000000
Binary files a/misc/3.0.0/oldscripts/new.gif and /dev/null differ
diff --git a/misc/3.0.0/oldscripts/newsLib.inc b/misc/3.0.0/oldscripts/newsLib.inc
deleted file mode 100755 (executable)
index 4b8f88b..0000000
+++ /dev/null
@@ -1,722 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@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!
-***************************************************************/
-/**
- * newsLib.inc
- * 
- * Creates a news system.
- * 
- * TypoScript config:
- * - See static_template "plugin.tt_news"
- * - See TS_ref.pdf
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- */
-
-require_once (PATH_t3lib."class.t3lib_xml.php");
-class user_news {
-       var $cObj;              // The backReference to the mother cObj object set at call time
-
-       var $tt_news_uid;
-       var $conf;
-       var $config;
-       var $alternativeLayouts;
-       var $pid;
-       var $allowCaching;
-       var $catExclusive;
-       var $searchFieldList="short,bodytext,author,keywords,links,imagecaption,title";
-       var $theCode="";
-       
-       var $categories=array();                        // Is initialized with the categories of the shopping system
-       var $pageArray=array();                         // Is initialized with an array of the pages in the pid-list
-
-       /**
-        * Main news function for XML news feed
-        */
-       function main_xmlnewsfeed($content,$conf)       {
-               $className=t3lib_div::makeInstanceClassName("t3lib_xml");
-               $xmlObj = new $className("typo3_xmlnewsfeed");
-               $xmlObj->setRecFields("tt_news","title,datetime");      // More fields here...
-               $xmlObj->renderHeader();
-               $xmlObj->renderRecords("tt_news",$this->getStoriesResult());
-               $xmlObj->renderFooter();
-               return $xmlObj->getResult();
-       }
-       function getStoriesResult() {
-               $query = "SELECT * FROM tt_news WHERE pid=".$GLOBALS["TSFE"]->id.$this->cObj->enableFields("tt_news")." ORDER BY datetime DESC";
-               $res = mysql(TYPO3_db,$query);
-               return $res;
-       }
-       
-
-
-
-       /**
-        * Main news function.
-        * Call it from a USER cObject with 'userFunc = user_guest->main_news'
-        */
-       function main_news($content,$conf)      {
-
-
-               $GLOBALS["TSFE"]->set_no_cache();
-
-       
-               // *************************************
-               // *** getting configuration values:
-               // *************************************
-               $this->conf = $conf;
-               $this->tt_news_uid = intval(t3lib_div::GPvar("tt_news"));
-               $this->alternativeLayouts = intval($this->conf["alternatingLayouts"])>0 ? intval($this->conf["alternatingLayouts"]) : 2;
-                       
-                       // pid_list is the pid/list of pids from where to fetch the news items.
-               $this->config["pid_list"] = trim($this->cObj->stdWrap($this->conf["pid_list"],$this->conf["pid_list."]));
-               $this->config["pid_list"] = $this->config["pid_list"] ? implode(t3lib_div::intExplode(",",$this->config["pid_list"]),",") : $GLOBALS["TSFE"]->id;
-               $this->config["recursive"] = $this->cObj->stdWrap($conf["recursive"],$conf["recursive."]);
-               list($pid) = explode(",",$this->config["pid_list"]);
-               $this->pid = $pid;
-
-                       // "CODE" decides what is rendered:
-               $this->config["code"] = $this->cObj->stdWrap($this->conf["code"],$this->conf["code."]);
-               $this->config["limit"] = t3lib_div::intInRange($conf["limit"],0,1000);
-               $this->config["limit"] = $this->config["limit"] ? $this->config["limit"] : 50;
-               $this->allowCaching = $this->conf["allowCaching"]?1:0;
-               
-                       // If the current record should be displayed.
-               $this->config["displayCurrentRecord"] = $this->conf["displayCurrentRecord"];
-               if ($this->config["displayCurrentRecord"])      {
-                       $this->config["code"]="LIST";
-                       $this->tt_news_uid=$this->cObj->data["uid"];
-               }
-
-                       // template is read.
-               $this->templateCode = $this->cObj->fileResource($this->conf["templateFile"]);
-
-                       // globally substituted markers, fonts and colors.      
-               $splitMark = md5(microtime());
-               $globalMarkerArray=array();
-               list($globalMarkerArray["###GW1B###"],$globalMarkerArray["###GW1E###"]) = explode($splitMark,$this->cObj->stdWrap($splitMark,$conf["wrap1."]));
-               list($globalMarkerArray["###GW2B###"],$globalMarkerArray["###GW2E###"]) = explode($splitMark,$this->cObj->stdWrap($splitMark,$conf["wrap2."]));
-               $globalMarkerArray["###GC1###"] = $this->cObj->stdWrap($conf["color1"],$conf["color1."]);
-               $globalMarkerArray["###GC2###"] = $this->cObj->stdWrap($conf["color2"],$conf["color2."]);
-               $globalMarkerArray["###GC3###"] = $this->cObj->stdWrap($conf["color3"],$conf["color3."]);
-
-                       // Substitute Global Marker Array
-               $this->templateCode= $this->cObj->substituteMarkerArray($this->templateCode, $globalMarkerArray);
-
-       
-               // *************************************
-               // *** doing the things...:
-               // *************************************
-               $this->enableFields = $this->cObj->enableFields("tt_news");
-               $this->dontParseContent = $this->conf["dontParseContent"];
-               $this->local_cObj =t3lib_div::makeInstance("tslib_cObj");               // Local cObj.
-
-               $codes=t3lib_div::trimExplode(",", $this->config["code"]?$this->config["code"]:$this->conf["defaultCode"],1);
-               if (!count($codes))     $codes=array("");
-               while(list(,$theCode)=each($codes))     {
-                       list($theCode,$cat,$aFlag) = explode("/",$theCode);
-                       $this->catExclusive = intval($cat);
-                       $this->arcExclusive     = intval($aFlag);
-                       $theCode = (string)strtoupper(trim($theCode));
-                       $this->theCode = $theCode;
-                       switch($theCode)        {
-                               case "LATEST":
-                               case "LIST":
-                               case "SINGLE":
-                               case "SEARCH":
-                                       $content.= $this->news_list();
-                               break;
-                               case "AMENU":
-                                       $content.= $this->news_archiveMenu();
-                               break;
-                               default:
-                                       $langKey = strtoupper($GLOBALS["TSFE"]->config["config"]["language"]);
-                                       $helpTemplate = $this->cObj->fileResource("media/scripts/news_help.tmpl");
-
-                                               // Get language version
-                                       $helpTemplate_lang="";
-                                       if ($langKey)   {$helpTemplate_lang = $this->cObj->getSubpart($helpTemplate,"###TEMPLATE_".$langKey."###");}
-                                       $helpTemplate = $helpTemplate_lang ? $helpTemplate_lang : $this->cObj->getSubpart($helpTemplate,"###TEMPLATE_DEFAULT###");
-
-                                               // Markers and substitution:
-                                       $markerArray["###CODE###"] = $this->theCode;
-                                       $content.=$this->cObj->substituteMarkerArray($helpTemplate,$markerArray);
-                               break;
-                       }
-               }
-               return $content;
-       }
-
-       /**
-        * News archive menu
-        */
-       function news_archiveMenu()     {
-               $this->arcExclusive=1;
-               $selectConf = $this->getSelectConf($where,1);
-
-                       // Get plain Query:
-               $query = trim(eregi_replace("^[\t ]*SELECT.+FROM", "", $this->cObj->getQuery("tt_news",$selectConf)));
-                       // FInding maximum and minimum values:
-               $q2 = "SELECT max(datetime) as maxval, min(datetime) as minval FROM ".$query;
-               $res = mysql(TYPO3_db,$q2); 
-               $row=mysql_fetch_assoc($res);
-
-               if ($row["minval"])     {
-                       $dateArr = array();
-                       $arcMode = $this->conf["archiveMode"] ? $this->conf["archiveMode"] : "month";
-                       $c=0;
-                       do {
-                               switch($arcMode)        {
-                                       case "month":
-                                               $theDate = mktime (0,0,0,date("m",$row["minval"])+$c,1,date("Y",$row["minval"]));
-                                       break;
-                                       case "quarter":
-                                               $theDate = mktime (0,0,0,floor(date("m",$row["minval"])/3)+1+(3*$c),1,date("Y",$row["minval"]));
-                                       break;
-                                       case "year":
-                                               $theDate = mktime (0,0,0,1,1,date("Y",$row["minval"])+$c);
-                                       break;
-                               }
-                               $dateArr[]=$theDate;
-                               $c++;
-                               if ($c>1000)    break;
-                       } while ($theDate<$GLOBALS["SIM_EXEC_TIME"]);
-       //              array_pop($dateArr);
-       
-                       reset($dateArr);
-                       $periodAccum=array();
-                       while(list($k,$v)=each($dateArr))       {
-                               if (!isset($dateArr[$k+1]))     {break;}
-                               $periodInfo=array();
-                               $periodInfo["start"] = $dateArr[$k];
-                               $periodInfo["stop"] = $dateArr[$k+1]-1;
-                               $periodInfo["HRstart"] = date("d-m-Y",$periodInfo["start"]);
-                               $periodInfo["HRstop"] = date("d-m-Y",$periodInfo["stop"]);
-                               $periodInfo["quarter"] = floor(date("m",$dateArr[$k])/3)+1;
-       
-                                       // FInding maximum and minimum values:
-                               $q2 = "SELECT count(*) FROM ".$query." AND datetime>=".$periodInfo["start"]." AND datetime<".$periodInfo["stop"];
-                               $res = mysql(TYPO3_db,$q2); 
-                               $row=mysql_fetch_row($res);
-                               $periodInfo["count"]=$row[0];
-                               
-                               if (!$this->conf["archiveMenuNoEmpty"] || $periodInfo["count"]) {
-                                       $periodAccum[] = $periodInfo;
-                               }
-                       }
-                       
-                       
-                       
-       
-                       $t["total"] = $this->cObj->getSubpart($this->templateCode,$this->spMarker("###TEMPLATE_ARCHIVE###"));
-                       $t["item"]= $this->getLayouts($t["total"],$this->alternativeLayouts,"MENUITEM");
-                       $cc=0;
-       
-                       $veryLocal_cObj =t3lib_div::makeInstance("tslib_cObj");         // Local cObj.
-                       reset($periodAccum);
-                       $itemsOut="";
-                       while(list(,$pArr)=each($periodAccum))          {
-                                       // Print Item Title
-                               $wrappedSubpartArray=array();
-                               $wrappedSubpartArray["###LINK_ITEM###"]= array('<A href="'.$this->getLinkUrl(0).'&pS='.$pArr["start"].'&pL='.($pArr["stop"]-$pArr["start"]).'&arc=1">','</A>'); 
-       
-                               $markerArray = array();
-                               $veryLocal_cObj->start($pArr,"");
-                               $markerArray["###ARCHIVE_TITLE###"]=$veryLocal_cObj->cObjGetSingle($this->conf["archiveTitleCObject"],$this->conf["archiveTitleCObject."],"archiveTitle");
-                               $markerArray["###ARCHIVE_COUNT###"]=$pArr["count"];
-       
-                               $itemsOut.= $this->cObj->substituteMarkerArrayCached($t["item"][($cc%count($t["item"]))],$markerArray,array(),$wrappedSubpartArray);
-                       }
-                       
-                                               // Reset:
-                       $subpartArray=array();
-                       $wrappedSubpartArray=array();
-                       $markerArray=array();
-                               // Set content
-                       $subpartArray["###CONTENT###"]=$itemsOut;
-                       $content = $this->cObj->substituteMarkerArrayCached($t["total"],$markerArray,$subpartArray,$wrappedSubpartArray);
-               } else {
-                       $content = $this->cObj->getSubpart($this->templateCode,$this->spMarker("###TEMPLATE_ARCHIVE_NOITEMS###"));
-               }
-               return $content;
-       }
-       
-       /**
-        * Displaying single news/ the news list / searching
-        */
-       function news_list()    {
-               $theCode = $this->theCode;
-/*             $this->setPidlist($this->config["pid_list"]);                           // The list of pid's we're operation on. All tt_products records must be in the pidlist in order to be selected.
-               $this->initRecursive($this->config["recursive"]);
-               $this->initCategories();
-               $this->generatePageArray();
-               
-               debug($this->pageArray);
-               debug($this->categories);
-
-*/
-
-               $this->initCategories();
-               switch($theCode)        {
-                       case "LATEST":  
-                               $prefix_display="displayLatest"; 
-                               $templateName = "TEMPLATE_LATEST";
-                               $this->arcExclusive=-1; // Only latest, non archive news
-                               if (intval($this->conf["latestLimit"]))         $this->config["limit"] = intval($this->conf["latestLimit"]);
-                       break;
-                       case "LIST": 
-                       case "SEARCH":  
-                               $prefix_display="displayList"; 
-                               $templateName = "TEMPLATE_LIST";
-                       break;
-                       default:                
-                               $prefix_display="displaySingle"; 
-                               $templateName = "TEMPLATE_SINGLE";
-                       break;
-               }
-               
-               if ($this->tt_news_uid) {
-                               // performing query:
-                       $query = "SELECT * FROM tt_news WHERE uid=".intval($this->tt_news_uid)." AND type=0".$this->enableFields;       // type=0 -> only real news.
-                       $res = mysql(TYPO3_db,$query);
-                       echo mysql_error();
-
-                       $row=mysql_fetch_assoc($res);
-                       if($this->config["displayCurrentRecord"] || is_array($row))             {
-                               $this->setPidlist(intval($row["pid"]));
-                               $this->generatePageArray();
-
-                                       // Get the subpart code
-                               $item ="";
-                               if ($this->config["displayCurrentRecord"])      {
-                                       $row=$this->cObj->data;
-                                       $item = trim($this->cObj->getSubpart($this->templateCode,$this->spMarker("###TEMPLATE_SINGLE_RECORDINSERT###")));
-                               }
-                               if (!$item)     {$item = $this->cObj->getSubpart($this->templateCode,$this->spMarker("###TEMPLATE_SINGLE###"));}
-
-                                       // Fill marker arrays
-                               $wrappedSubpartArray=array();
-                               $wrappedSubpartArray["###LINK_ITEM###"]= array('<A href="'.$this->getLinkUrl($this->conf["backPid"]?$this->conf["backPid"]:t3lib_div::GPvar("backPID")).'">','</A>');
-                               $markerArray = $this->getItemMarkerArray($row,"displaySingle");
-                                       // Substitute
-                               $content= $this->cObj->substituteMarkerArrayCached($item,$markerArray,array(),$wrappedSubpartArray);
-                       }
-               } elseif ($theCode=="SINGLE") {         
-                       $content.="Wrong parameters, GET/POST var 'tt_news' was missing.";
-               } elseif ($this->arcExclusive>0 && !t3lib_div::GPvar("pS") && $theCode!="SEARCH") {                     // periodStart must be set when listing from the archive.
-                       $content.="";
-               } else {                
-                       $content="";
-       // List news:
-                       $where="";                      
-                       if ($theCode=="SEARCH") {
-                                       // Get search subpart
-                               $t["search"] = $this->cObj->getSubpart($this->templateCode,$this->spMarker("###TEMPLATE_SEARCH###"));
-                                       // Substitute a few markers
-                               $out=$t["search"];                              
-                               $out=$this->cObj->substituteMarker($out, "###FORM_URL###", $this->getLinkUrl($this->conf["PIDsearch"]));
-                               $out=$this->cObj->substituteMarker($out, "###SWORDS###", htmlspecialchars(t3lib_div::GPvar("swords")));
-                                       // Add to content
-                               $content.=$out;
-                               if (t3lib_div::GPvar("swords")) {
-                                       $where = $this->searchWhere(trim(t3lib_div::GPvar("swords")));
-                               }
-                       }
-                       $begin_at=t3lib_div::intInRange(t3lib_div::GPvar("begin_at"),0,100000);
-                       if (($theCode!="SEARCH" && !t3lib_div::GPvar("swords")) || $where)      {
-
-                               $selectConf = $this->getSelectConf($where);
-
-                                       // performing query to count all news (we need to know it for browsing):
-                               $query = eregi_replace("^[\t ]*SELECT.+FROM", "SELECT count(*) FROM", $this->cObj->getQuery("tt_news",$selectConf));
-                               $res = mysql(TYPO3_db,$query); 
-                               echo mysql_error();
-                               $row = mysql_fetch_row($res);
-                               $newsCount = $row[0];
-
-                                       // range check to current newsCount
-                               $begin_at = t3lib_div::intInRange(($begin_at >= $newsCount) ? ($newsCount-$this->config["limit"]) : $begin_at,0); 
-
-                                       // performing query for display:
-                               $selectConf["orderBy"] = "datetime DESC"; 
-
-                               $query = $this->cObj->getQuery("tt_news",$selectConf);
-                               $query.=" LIMIT ".$begin_at.",".($this->config["limit"]+1);
-
-//                             debug($query);
-                               $res = mysql(TYPO3_db,$query);
-                               echo mysql_error();
-
-                                       // Getting elements
-                               $itemsOut="";
-                               $t=array();
-                               $t["total"] = $this->cObj->getSubpart($this->templateCode,$this->spMarker("###".$templateName."###"));
-                               $t["item"]= $this->getLayouts($t["total"],$this->alternativeLayouts,"NEWS");
-                               $cc=0;
-
-                               while($row=mysql_fetch_assoc($res))             {
-                                               // Print Item Title
-                                       $wrappedSubpartArray=array();
-                                       if ($row["type"]==1 || $row["type"]==2) {
-                                               $this->local_cObj->setCurrentVal($row["type"]==1 ? $row["page"] : $row["ext_url"]);
-                                               $wrappedSubpartArray["###LINK_ITEM###"]= $this->local_cObj->typolinkWrap($this->conf["pageTypoLink."]);
-                                       } else {
-                                               $wrappedSubpartArray["###LINK_ITEM###"]= array('<A href="'.$this->getLinkUrl($this->conf["PIDitemDisplay"]).'&tt_news='.$row["uid"].'">','</A>'); 
-                                       }
-                                       $markerArray = $this->getItemMarkerArray($row,$prefix_display);
-
-                                       $itemsOut.= $this->cObj->substituteMarkerArrayCached($t["item"][($cc%count($t["item"]))],$markerArray,array(),$wrappedSubpartArray);
-                                       $cc++;
-                                       if ($cc==$this->config["limit"])        {break;}
-                               }
-                               $out=$itemsOut;
-                       }
-                       if ($out)       {
-                               // next / prev:
-                               $url = $this->getLinkUrl("","begin_at");
-                                       // Reset:
-                               $subpartArray=array();
-                               $wrappedSubpartArray=array();
-                               $markerArray=array();
-                                       
-                               if ($newsCount > $begin_at+$this->config["limit"])      {
-                                       $next = ($begin_at+$this->config["limit"] > $newsCount) ? $newsCount-$this->config["limit"] : $begin_at+$this->config["limit"];
-                                       $wrappedSubpartArray["###LINK_NEXT###"]=array('<A href="'.$url.'&begin_at='.$next.'">','</A>');
-                               } else {
-                                       $subpartArray["###LINK_NEXT###"]="";
-                               }
-                               if ($begin_at)  {
-                                       $prev = ($begin_at-$this->config["limit"] < 0) ? 0 : $begin_at-$this->config["limit"];
-                                       $wrappedSubpartArray["###LINK_PREV###"]=array('<A href="'.$url.'&begin_at='.$prev.'">','</A>');
-                               } else {
-                                       $subpartArray["###LINK_PREV###"]="";
-                               }
-                               $markerArray["###BROWSE_LINKS###"]="";
-                               if ($newsCount > $this->config["limit"] )       { // there is more than one page, so let's browse
-                                       for ($i = 0 ; $i < ($newsCount/$this->config["limit"]); $i++)   {
-                                               if (($begin_at >= $i*$this->config["limit"]) && ($begin_at < $i*$this->config["limit"]+$this->config["limit"]))         {
-                                                       $markerArray["###BROWSE_LINKS###"].= ' <b>'.(string)($i+1).'</b> ';
-                                                       //      you may use this if you want to link to the current page also
-                                                       //      $markerArray["###BROWSE_LINKS###"].= ' <A href="'.$url.'&begin_at='.(string)($i * $this->config["limit"]).'"><b>'.(string)($i+1).'</b></A> ';
-                                               } else {
-                                                       $markerArray["###BROWSE_LINKS###"].= ' <A href="'.$url.'&begin_at='.(string)($i * $this->config["limit"]).'">'.(string)($i+1).'</A> ';
-                                               }
-                                       }
-                               }
-
-                               $subpartArray["###CONTENT###"]=$out;
-                               $markerArray["###CATEGORY_TITLE###"]="";        // Something here later...
-                               $wrappedSubpartArray["###LINK_ARCHIVE###"]=$this->local_cObj->typolinkWrap($this->conf["archiveTypoLink."]);
-
-                               $content.= $this->cObj->substituteMarkerArrayCached($t["total"],$markerArray,$subpartArray,$wrappedSubpartArray);
-                       } elseif ($where)       {
-                               $content.=$this->cObj->getSubpart($this->templateCode,$this->spMarker("###ITEM_SEARCH_EMPTY###"));
-                       }
-               }
-               return $content;
-       }
-       
-       function getSelectConf($where,$noPeriod=0)      {
-               $this->setPidlist($this->config["pid_list"]);
-               $this->initRecursive($this->config["recursive"]);
-               $this->generatePageArray();
-
-                       // Get news
-               $selectConf = Array();
-               $selectConf["pidInList"] = $this->pid_list;
-               $selectConf["where"] = "1=1 ".$where;
-
-
-                       // Archive
-               if (intval(t3lib_div::GPvar("arc")))    {
-                       $this->arcExclusive = intval(t3lib_div::GPvar("arc"));
-               }
-               if ($this->arcExclusive)        {
-                       if ($this->conf["enableArchiveDate"])   {
-                               if ($this->arcExclusive<0)      {       // latest
-                                       $selectConf["where"].=' AND (archivedate=0 OR archivedate>'.$GLOBALS["SIM_EXEC_TIME"].')';
-                               } elseif ($this->arcExclusive>0)        {
-                                       $selectConf["where"].=' AND archivedate<'.$GLOBALS["SIM_EXEC_TIME"];
-                               }
-                       }
-                       if ($this->conf["datetimeDaysToArchive"])       {
-                               $theTime = $GLOBALS["SIM_EXEC_TIME"]-intval($this->conf["datetimeDaysToArchive"])*3600*24;
-                               if ($this->arcExclusive<0)      {       // latest
-                                       $selectConf["where"].=' AND (datetime=0 OR datetime>'.$theTime.')';
-                               } elseif ($this->arcExclusive>0)        {
-                                       $selectConf["where"].=' AND datetime<'.$theTime;
-                               }
-                       }
-               }
-                       // Category
-               if (intval(t3lib_div::GPvar("cat")))    {
-                       $this->catExclusive = intval(t3lib_div::GPvar("cat"));
-               }
-               if ($this->catExclusive)        {
-                       $selectConf["where"].=" AND category=".$this->catExclusive;
-               }
-                       // Period
-               if (!$noPeriod && intval(t3lib_div::GPvar("pS")))       {
-                       $selectConf["where"].=' AND datetime>'.intval(t3lib_div::GPvar("pS"));
-                       if (intval(t3lib_div::GPvar("pL")))     {
-                               $selectConf["where"].=' AND datetime<'.(intval(t3lib_div::GPvar("pS"))+intval(t3lib_div::GPvar("pL")));
-                       }
-               }
-               return $selectConf;
-       }
-       
-       
-       
-       
-       
-       
-       
-       
-       
-       
-       
-       
-
-
-       /**
-        * Sets the pid_list internal var
-        */
-       function setPidlist($pid_list)  {
-               $this->pid_list = $pid_list;
-       }
-
-       /**
-        * Extends the internal pid_list by the levels given by $recursive
-        */
-       function initRecursive($recursive)      {
-               if ($recursive) {               // get pid-list if recursivity is enabled
-                       $pid_list_arr = explode(",",$this->pid_list);
-                       $this->pid_list="";
-                       while(list(,$val)=each($pid_list_arr))  {
-                               $this->pid_list.=$val.",".$this->cObj->getTreeList($val,intval($recursive));
-                       }
-                       $this->pid_list = ereg_replace(",$","",$this->pid_list);
-               }
-       }
-
-       /**
-        * Getting all tt_news_cat categories into internal array
-        */
-       function initCategories()       {
-                       // Fetching catagories:
-               $query = "select * from tt_news_cat where 1=1".$this->cObj->enableFields("tt_news_cat");
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $this->categories=array();
-               while($row = mysql_fetch_assoc($res))   {
-                       $this->categories[$row["uid"]] = $row["title"];
-               }       
-       }
-
-       /**
-        * Generates an array, ->pageArray of the pagerecords from ->pid_list
-        */
-       function generatePageArray()    {
-                       // Get pages (for category titles)              
-               $query="SELECT title,uid,author,author_email FROM pages WHERE uid IN(".$this->pid_list.")";
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $this->pageArray=array();
-               while($row=mysql_fetch_assoc($res))             {
-                       $this->pageArray[$row["uid"]] = $row;
-               }
-       }
-
-       /**
-        * Fills in the markerArray with data for a product
-        */
-       function getItemMarkerArray ($row,$textRenderObj="displaySingle")       {
-                       // Returns a markerArray ready for substitution with information for the tt_producst record, $row
-                       // config to use:
-               $lConf = $this->conf[$textRenderObj."."];
-               $this->local_cObj->start($row,"tt_news");
-               $imageNum = isset($lConf["imageCount"]) ? $lConf["imageCount"] : 1;
-               $imageNum = t3lib_div::intInRange($imageNum,0,100);
-               $markerArray=array();
-
-
-                       // Get and set image:
-               $theImgCode="";
-               $imgs = t3lib_div::trimExplode(",",$row["image"],1);
-               $imgsCaptions = explode(chr(10),$row["imagecaption"]);
-               reset($imgs);
-               $cc=0;
-               while(list(,$val)=each($imgs))  {
-                       if ($cc==$imageNum)     break;
-                       if ($val)       {
-                               $lConf["image."]["file"] = "uploads/pics/".$val;
-                       }
-                       $theImgCode.=$this->local_cObj->IMAGE($lConf["image."]).$this->local_cObj->stdWrap($imgsCaptions[$cc],$lConf["caption_stdWrap."]);
-                       $cc++;
-               }
-               $markerArray["###NEWS_IMAGE###"]="";
-               if ($cc)        {
-                       $markerArray["###NEWS_IMAGE###"] = $this->local_cObj->wrap(trim($theImgCode),$lConf["imageWrapIfAny"]); 
-               }
-
-                       // Title
-               $markerArray["###NEWS_UID###"] = $row["uid"];
-               $markerArray["###NEWS_TITLE###"] = $this->local_cObj->stdWrap($row["title"],$lConf["title_stdWrap."]);
-               $markerArray["###NEWS_AUTHOR###"] = $this->local_cObj->stdWrap($row["author"],$lConf["author_stdWrap."]);
-               $markerArray["###NEWS_EMAIL###"] = $this->local_cObj->stdWrap($row["author_email"],$lConf["email_stdWrap."]);
-               $markerArray["###NEWS_DATE###"] = $this->local_cObj->stdWrap($row["datetime"],$lConf["date_stdWrap."]);
-               $markerArray["###NEWS_TIME###"] = $this->local_cObj->stdWrap($row["datetime"],$lConf["time_stdWrap."]);
-               $markerArray["###NEWS_AGE###"] = $this->local_cObj->stdWrap($row["datetime"],$lConf["age_stdWrap."]);
-               $markerArray["###NEWS_SUBHEADER###"] = $this->formatStr($this->local_cObj->stdWrap($row["short"],$lConf["subheader_stdWrap."]));
-               $markerArray["###NEWS_CONTENT###"] = $this->formatStr($this->local_cObj->stdWrap($row["bodytext"],$lConf["content_stdWrap."]));
-               $markerArray["###NEWS_LINKS###"] = $this->formatStr($this->local_cObj->stdWrap($row["links"],$lConf["links_stdWrap."]));
-                       // Category fields:
-               $markerArray["###NEWS_CATEGORY###"] = $this->local_cObj->stdWrap($this->categories[$row["category"]],$lConf["category_stdWrap."]);
-               
-                       // related
-               $markerArray["###NEWS_RELATED###"] = $this->getRelated($row["uid"]);
-
-                       // Page fields:
-               $markerArray["###PAGE_UID###"] = $row["pid"];
-               $markerArray["###PAGE_TITLE###"] = $this->pageArray[$row["pid"]]["title"];
-               $markerArray["###PAGE_AUTHOR###"] = $this->local_cObj->stdWrap($this->pageArray[$row["pid"]]["author"],$lConf["author_stdWrap."]);
-               $markerArray["###PAGE_AUTHOR_EMAIL###"] = $this->local_cObj->stdWrap($this->pageArray[$row["pid"]]["author_email"],$lConf["email_stdWrap."]);
-               
-                       // Pass to user defined function
-               if ($this->conf["itemMarkerArrayFunc"]) {
-                       $markerArray = $this->userProcess("itemMarkerArrayFunc",$markerArray);
-               }
-//             debug(array_keys($markerArray));
-               return $markerArray;
-       }
-
-       /**
-        * Gets related news.
-        */
-       function getRelated($uid)       {
-               $veryLocal_cObj =t3lib_div::makeInstance("tslib_cObj");         // Local cObj.
-               $query = "SELECT uid,title,short,datetime,archivedate FROM tt_news,tt_news_related_mm AS M WHERE tt_news.uid=M.uid_foreign AND M.uid_local=".$uid;
-               $res = mysql(TYPO3_db,$query);
-
-               $lines = array();
-               while($row = mysql_fetch_assoc($res))   {
-                       $veryLocal_cObj->start($row,"tt_news");
-                       $lines[] = $veryLocal_cObj->cObjGetSingle($this->conf["getRelatedCObject"],$this->conf["getRelatedCObject."],"getRelated");
-               }
-               return implode("",$lines);
-       }
-
-       /**
-        * Calls user function
-        */
-       function userProcess($mConfKey,$passVar)        {
-               if ($this->conf[$mConfKey])     {
-                       $funcConf = $this->conf[$mConfKey."."];
-                       $funcConf["parentObj"]=&$this;
-                       $passVar = $GLOBALS["TSFE"]->cObj->callUserFunction($this->conf[$mConfKey], $funcConf, $passVar);
-               }
-               return $passVar;
-       }
-
-       /**
-        * Returning template subpart marker
-        */
-       function spMarker($subpartMarker)       {
-               $sPBody = substr($subpartMarker,3,-3);
-               $altSPM = "";
-               if (isset($this->conf["altMainMarkers."]))      {
-                       $altSPM = trim($this->cObj->stdWrap($this->conf["altMainMarkers."][$sPBody],$this->conf["altMainMarkers."][$sPBody."."]));
-                       $GLOBALS["TT"]->setTSlogMessage("Using alternative subpart marker for '".$subpartMarker."': ".$altSPM,1);
-               }
-               return $altSPM ? $altSPM : $subpartMarker;
-       }
-
-       /**
-        * Returns a url for use in forms and links
-        */
-       function getLinkUrl($id="",$excludeList="")     {
-               $queryString=array();
-               $queryString["id"] = ($id ? $id : $GLOBALS["TSFE"]->id);
-               $queryString["type"]= $GLOBALS["TSFE"]->type ? 'type='.$GLOBALS["TSFE"]->type : "";
-               $queryString["backPID"]= 'backPID='.$GLOBALS["TSFE"]->id;
-               $queryString["begin_at"]= t3lib_div::GPvar("begin_at") ? 'begin_at='.t3lib_div::GPvar("begin_at") : "";
-               $queryString["swords"]= t3lib_div::GPvar("swords") ? "swords=".rawurlencode(t3lib_div::GPvar("swords")) : "";
-               $queryString["pS"]= t3lib_div::GPvar("pS") ? "pS=".intval(t3lib_div::GPvar("pS")) : ""; // period start
-               $queryString["pL"]= t3lib_div::GPvar("pL") ? "pL=".intval(t3lib_div::GPvar("pL")) : ""; // Period length
-               $queryString["arc"]= t3lib_div::GPvar("arc") ? "arc=".intval(t3lib_div::GPvar("arc")) : ""; // Archive flag: 0 = don't care, -1 = latest, 1 = archive
-               $queryString["cat"]= t3lib_div::GPvar("cat") ? "cat=".intval(t3lib_div::GPvar("cat")) : ""; // Category uid, 0 = any
-
-               reset($queryString);
-               while(list($key,$val)=each($queryString))       {
-                       if (!$val || ($excludeList && t3lib_div::inList($excludeList,$key)))    {
-                               unset($queryString[$key]);
-                       }
-               }
-               return $GLOBALS["TSFE"]->absRefPrefix.'index.php?'.implode($queryString,"&");
-       }
-
-       /**
-        * Generates a search where clause.
-        */
-       function searchWhere($sw)       {
-               $where=$this->cObj->searchWhere($sw,$this->searchFieldList);
-               return $where;
-       }
-
-       /**
-        * Format string with nl2br and htmlspecialchars()
-        */
-       function formatStr($str)        {
-               if (is_array($this->conf["general_stdWrap."]))  {
-                       $str = $this->local_cObj->stdWrap($str,$this->conf["general_stdWrap."]);
-               }
-               return $str;
-       }
-
-       /**
-        * Returns alternating layouts
-        */
-       function getLayouts($templateCode,$alternativeLayouts,$marker)  {
-               $out=array();
-               for($a=0;$a<$alternativeLayouts;$a++)   {
-                       $m= "###".$marker.($a?"_".$a:"")."###";
-                       if(strstr($templateCode,$m))    {
-                               $out[]=$GLOBALS["TSFE"]->cObj->getSubpart($templateCode, $m);
-                       } else {
-                               break;
-                       }
-               }
-               return $out;
-       }
-}
-
-
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["media/scripts/newsLib.inc"])      {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["media/scripts/newsLib.inc"]);
-}
-
-?>
\ No newline at end of file
diff --git a/misc/3.0.0/oldscripts/news_help.tmpl b/misc/3.0.0/oldscripts/news_help.tmpl
deleted file mode 100755 (executable)
index 3b74166..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--###TEMPLATE_DEFAULT### begin
-       Help template for the default language, english
--->
-<table border=1 cellpadding=4 cellspacing=1 bgcolor="#eeeeee"> 
-<tr>
-       <td colspan=2>
-       
-       <div align="center"><h3>News Codes</h3></div>
-       <font face=verdana size=2>
-       You must insert a code in the CODE field of the "List" content element before the news module will work. The code tells the news module what to do. You can insert multiple codes by separating them by a comma.<br>
-       Here is an example:<br><BR>
-       <div align="center"><img src="media/scripts/news_help1.gif" width="370" height="220" border="2" alt=""></div>
-<br>
-       Starting point: If you don't insert a page as starting point the current page is used. Notice that the recursive function <i>do work</i> with news and thus you can select news from multiple pages and subpages.
-       
-       <HR>
-       Current CODE = "<b>###CODE###</b>"
-       </font>
-       </td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>LATEST</strong></font></td>
-       <td><font face=verdana size=2>List the latests non-archive news</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>AMENU</strong></font></td>
-       <td><font face=verdana size=2>Displays a menu of the archive divided into time periods.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>LIST</strong></font></td>
-       <td><font face=verdana size=2>Displays all news by default or news from a given time interval defined with a URL parameter (eg. used by the ARCHIVE function)</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>SEARCH</strong></font></td>
-       <td><font face=verdana size=2>Displays a search box and result listing for searching the archive.</font></td>
-</tr>
-<tr>
-       <td><font face=verdana size=2><strong>SINGLE</strong></font></td>
-       <td><font face=verdana size=2>Displays a single news item if tt_news is set as a GET var.</font></td>
-</tr>
-<tr>
-       <td colspan=2><font face=verdana size=2><strong>Special: </strong> You can specify any of these codes prepended with a slash and a number, which indicates which category to use. If no category is defined all categories are used by default. If you enter two slashes (parameter number 2) you specify whether the listing is from archive (1), non-archive (-1) or don't-care (0).
-       <BR>Example: 'LIST/2/-1' - displays all news not in archive from the category with id '2'.</font></td>
-</tr>
-</table>
-<!--###TEMPLATE_DEFAULT### end -->
-
diff --git a/misc/3.0.0/oldscripts/news_help1.gif b/misc/3.0.0/oldscripts/news_help1.gif
deleted file mode 100755 (executable)
index 0829f8f..0000000
Binary files a/misc/3.0.0/oldscripts/news_help1.gif and /dev/null differ
diff --git a/misc/3.0.0/oldscripts/news_template.tmpl b/misc/3.0.0/oldscripts/news_template.tmpl
deleted file mode 100755 (executable)
index d345a52..0000000
+++ /dev/null
@@ -1,315 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <TITLE>News example template</TITLE>
-</head>
-
-<body>
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<H1>NEWS TEMPLATES</H1>
-<h2>EXAMPLE</h2>
-
-
-
-
-
-
-<br>
-<br>
-<br>
-<pre>
-<strong>Global markers, as set up in TypoScript:</strong>
-These are substituted throughout the whole template.
-
-<em>Markers:</em>
-GW1B / GW1E
-GW2B / GW2E
-GW3B / GW3E
-
-GC1
-GC2
-GC3
-GC4
-
-
-<strong>Common markers:</strong>
-These are substituted in all news item displaying templates:
-
-<em>Markers:</em>
-NEWS_UID - ID number (uid) of the news item
-NEWS_TITLE - News item title
-NEWS_AUTHOR - name of author
-NEWS_EMAIL - email of author
-NEWS_DATE - date
-NEWS_TIME - time
-NEWS_AGE - age of news item in minutes, hours, days or years
-NEWS_SUBHEADER - subheader, if empty main content is inserted here in LIST and LATEST
-NEWS_CONTENT - main content
-NEWS_LINKS - news links
-NEWS_CATEGORY - news item category
-NEWS_RELATED - links to related news
-NEWS_IMAGE - news item images
-
-PAGE_UID - Page id of the parent page (pid)
-PAGE_TITLE - Title of the parent page of the news item
-PAGE_AUTHOR - Page author, if any
-PAGE_AUTHOR_EMAIL - Page author email, if any
-
-<em>Wrapped Subparts:</em>
-LINK_ITEM - link to the news item single display
-</pre>
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_LATEST</h3>
-<em>This is the template for the latest news, typically displayed on a frontpage.</em>
-<br>
-<br>
-<br>
-<br>
-
-
-
-<!-- ###TEMPLATE_LATEST### begin
-       This is the template for the latest news, typically displayed on a frontpage 
--->
-<TABLE cellpadding="4" cellspacing="1" border="0" width="1" align="right">
-       <TR bgcolor="###GC3###">
-               <TD valign="bottom">###GW2B### <font color="#FFFFFF"><B>BREAKING NEWS:</B></FONT>###GW2E###</TD>
-       </TR>
-       <!-- ###CONTENT### begin
-                 This is the part of the template substituted with the list of news: 
-       -->
-               <!-- ###NEWS### begin 
-                       Template for a single item 
-               -->
-                       <TR>
-                               <TD bgcolor="###GC2###" valign="top">
-                               ###GW2B### ###NEWS_DATE### ###NEWS_TIME### <br>
-                               <!--###LINK_ITEM###--><B>###NEWS_TITLE###</B><!--###LINK_ITEM###--><BR>
-                               ###NEWS_IMAGE### ###NEWS_SUBHEADER### <!--###LINK_ITEM###-->[more]<!--###LINK_ITEM###--><BR>(Cat: ###NEWS_CATEGORY###) ###GW2E###<BR>
-                               </TD>
-                       </TR>
-               <!-- ###NEWS### end-->
-               <!-- ###NEWS_1### begin 
-                       Template for an alternative item 
-               -->
-                       <TR>
-                               <TD bgcolor="###GC1###" valign="top">
-                               ###GW2B### ###NEWS_DATE### ###NEWS_TIME### <br>
-                               <!--###LINK_ITEM###--><B>###NEWS_TITLE###</B><!--###LINK_ITEM###--><BR>
-                               ###NEWS_IMAGE### ###NEWS_SUBHEADER### <!--###LINK_ITEM###-->[more]<!--###LINK_ITEM###--><BR>(Cat: ###NEWS_CATEGORY###) ###GW2E###<BR>
-                               </TD>
-                       </TR>
-               <!-- ###NEWS_1### end-->
-       <!-- ###CONTENT###  end -->
-       <TR bgcolor="###GC3###">
-               <TD valign="bottom"><!--###LINK_ARCHIVE###-->###GW2B###<font color="#FFFFFF"><B>Go to archive</B></FONT>###GW2E###<!--###LINK_ARCHIVE###--></TD>
-       </TR>
-       <TR>
-               <TD><img src=clear.gif width=150 height=1></TD>
-       </TR>
-</TABLE>
-<!-- ###TEMPLATE_LATEST### end -->
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_LIST</h3>
-<em>This is the template for the list of news in the archive or news page or search.</em>
-<br>
-<br>
-<br>
-<br>
-<!-- ###TEMPLATE_LIST### begin
-       This is the template for the list of news in the archive or news page or search
--->
-<TABLE cellpadding="4" cellspacing="1" border="0" width="98%">
-       <!-- ###CONTENT### begin
-                 This is the part of the template substituted with the list of news: 
-       -->
-               <!-- ###NEWS### begin 
-                       Template for a single item 
-               -->
-                       <TR bgcolor="###GC1###">
-                               <TD valign="top" colspan=3>
-                                       ###GW1B### <strong><!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></strong> ###GW1E### ###GW2B### - ###NEWS_DATE### ###GW2E###
-                               </TD>
-                       </TR>
-                       <TR>
-                               <TD valign="top">
-                                       ###GW1B### ###NEWS_SUBHEADER### ###GW1E###<BR>
-                                       <BR>
-                                       ###GW2B###By ###NEWS_AUTHOR###, ###NEWS_TIME### <br>
-                                       Category: ###NEWS_CATEGORY###
-                                       ###GW2E###
-                               </TD>
-                               <TD><img src=clear.gif height=1 width=10></TD>
-                               <TD width=1%>###NEWS_IMAGE###</TD>
-                       </TR>
-                       <TR>
-                               <TD valign="top" colspan=3><img src=clear.gif height=5 width=1></TD>
-                       </TR>
-               <!-- ###NEWS### end-->
-       <!-- ###CONTENT###  end -->
-       <TR>
-               <TD align="center" colspan=3>###GW2B###<!--###LINK_PREV###-->Prev<!--###LINK_PREV###--> ###BROWSE_LINKS### <!--###LINK_NEXT###-->Next<!--###LINK_NEXT###-->###GW2E###</TD>
-       </TR>
-</TABLE><BR>
-<!-- ###TEMPLATE_LIST### end -->
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_SINGLE</h3>
-<em>This subpart is used to display single news items</em><br>
-<br>
-<br>
-
-<!-- ###TEMPLATE_SINGLE### begin
-       This subpart is used to display single news items
--->
-<TABLE border="0" cellspacing="0" cellpadding="1" width=98%>
-       <TR>
-               <TD valign="top">
-                       ###GW2B### ###NEWS_DATE### ###NEWS_TIME### ###GW2E###<br>
-                       ###GW1B###<B>###NEWS_TITLE###</B>###GW1E###<BR>
-                       <img src=clear.gif width=1 height=5><BR>
-                       ###GW2B### By ###NEWS_AUTHOR### ###GW2E###<br><br>
-                       
-                       
-                       ###GW1B### <em>###NEWS_SUBHEADER###</em> <br> <br>
-                       
-                       ###NEWS_IMAGE### 
-                       ###NEWS_CONTENT### <br>
-                       <br>
-                       <strong>Links:</strong><br>
-                       ###NEWS_LINKS###<br>
-                       <br>
-                       <br>
-                       <strong>Related news:</strong><br>
-                       ###NEWS_RELATED###
-                       
-                       ###GW1E###<BR>
-               </TD>
-       </TR>
-</TABLE>
-<br>
-<br>
-
-###GW2B###     
-<!--###LINK_ITEM###-->
-<b><- Back to the news list</b>
-<!--###LINK_ITEM###-->
-###GW2E###                                             
-<!-- ###TEMPLATE_SINGLE### end -->
-
-
-
-
-
-
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_ARCHIVE</h3>
-<em>Subpart for the news archive menu.</em><br>
-<br>
-<br>
-<!-- ###TEMPLATE_ARCHIVE### begin
-       Subpart for the news archive menu
--->
-<TABLE cellpadding="4" cellspacing="1" border="0" width="1">
-       <TR bgcolor="###GC3###">
-               <TD valign="bottom">###GW2B### <font color="#FFFFFF"><B>ARCHIVE:</B></FONT>###GW2E###</TD>
-       </TR>
-       <!-- ###CONTENT### begin
-                 This is the part of the template substituted with the list of items: 
-       -->
-               <!-- ###MENUITEM### begin 
-                       Template for a single item 
-               -->
-                       <TR>
-                               <TD bgcolor="###GC2###" valign="top" nowrap>###GW2B###<!--###LINK_ITEM###-->###ARCHIVE_TITLE###<!--###LINK_ITEM###--> - (###ARCHIVE_COUNT### items)###GW2E###</TD>
-                       </TR>
-               <!-- ###MENUITEM### end-->
-       <!-- ###CONTENT###  end -->
-       <TR>
-               <TD><img src=clear.gif width=150 height=1></TD>
-       </TR>
-</TABLE>
-<!-- ###TEMPLATE_ARCHIVE### end -->
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_ARCHIVE_NOITEMS</h3>
-<em>Shown if the archive has no items!</em><br>
-<br>
-<br>
-<!-- ###TEMPLATE_ARCHIVE_NOITEMS### begin
-       Shown if the archive has no items!
--->
-<TABLE cellpadding="4" cellspacing="1" border="0" width="1">
-       <TR bgcolor="###GC3###">
-               <TD valign="bottom">###GW2B### <font color="#FFFFFF"><B>ARCHIVE:</B></FONT>###GW2E###</TD>
-       </TR>
-       <TR>
-               <TD bgcolor="###GC2###" valign="top">###GW2B### The archive is empty! ###GW2E###</TD>
-       </TR>
-       <TR>
-               <TD><img src=clear.gif width=150 height=1></TD>
-       </TR>
-</TABLE>
-<!-- ###TEMPLATE_ARCHIVE_NOITEMS### end -->
-
-
-
-
-
-
-<BR><BR><BR><BR><HR><BR><BR><BR>
-<h3>TEMPLATE_SEARCH</h3>
-<em>Subpart for the search-form.</em><br>
-<br>
-<br>
-
-<!-- ###TEMPLATE_SEARCH### begin
-       Subpart for the search-form
--->
-<FORM method="post" action="###FORM_URL###">
-       <INPUT size="30" maxlength="100" type="text" name="swords" value="###SWORDS###">
-       <input type="Submit" name="order" value="Search">
-</form>
-<!-- ###TEMPLATE_SEARCH### end -->
-
-
-
-
-
-</BODY>
-</HTML>
diff --git a/misc/3.0.0/oldscripts/payment_DIBS.php b/misc/3.0.0/oldscripts/payment_DIBS.php
deleted file mode 100755 (executable)
index 7b2a45e..0000000
+++ /dev/null
@@ -1,190 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@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!
-***************************************************************/
-/**
- * payment_DIBS.php
- *
- * This script handles payment via the danish payment gateway, DIBS.
- * Support: DIBS premium with Credit-cards  and Unibank Solo-E
- *
- * This script is used as a "handleScript" with the default productsLib.inc shopping system.
- *
- * DIBS:       http://www.dibs.dk
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- */
-
-
-if (!is_object($this) || !is_object($this->cObj))      die('$this and $this->cObj must be objects!');
-
-
-// $lConf = $this->basketExtra["payment."]["handleScript."];           // Loads the handleScript TypoScript into $lConf.
-$lConf = $conf;
-$localTemplateCode = $this->cObj->fileResource($lConf[templateFile] ? $lConf[templateFile] : "media/scripts/payment_DIBS_template.tmpl");              // Fetches the DIBS template file
-$localTemplateCode = $this->cObj->substituteMarkerArrayCached($localTemplateCode, $this->globalMarkerArray);
-
-$orderUid = $this->getBlankOrderUid();         // Gets an order number, creates a new order if no order is associated with the current session
-
-switch(t3lib_div::GPvar("products_cmd"))       {
-       case "cardno":
-               $tSubpart = $lConf["soloe"] ? "###DIBS_SOLOE_TEMPLATE###" : "###DIBS_CARDNO_TEMPLATE###";               // If solo-e is selected, use different subpart from template
-               $content=$this->getBasket($tSubpart,$localTemplateCode);                // This not only gets the output but also calculates the basket total, so it's NECESSARY!
-
-               $markerArray=array();
-               $markerArray["###HIDDEN_FIELDS###"] = '
-<input type=hidden name=merchant value="'.$lConf["merchant"].'">
-<input type=hidden name=amount value="'.round($this->calculatedSums_tax["total"]*100).'">
-<input type=hidden name=currency value="'.$lConf["currency"].'">               <!--Valuta som angivet i ISO4217, danske kroner=208-->
-<input type=hidden name=orderid value="'.$this->getOrderNumber($orderUid).'">          <!--Butikkens ordrenummer der skal knyttes til denne transaktion-->
-<input type=hidden name=uniqueoid value="1">
-<input type=hidden name="accepturl" value="https://payment.architrade.com/cgi-ssl/relay.cgi/'.$lConf["relayURL"].'&products_cmd=accept&products_finalize=1&HTTP_COOKIE='.rawurlencode("fe_typo_user=".$GLOBALS["TSFE"]->fe_user->id).'">
-<input type=hidden name="declineurl" value="https://payment.architrade.com/cgi-ssl/relay.cgi/'.$lConf["relayURL"].'&products_cmd=decline&products_finalize=1&HTTP_COOKIE='.rawurlencode("fe_typo_user=".$GLOBALS["TSFE"]->fe_user->id).'">';   
-               if ($lConf["soloe"])    {
-               $markerArray["###HIDDEN_FIELDS###"].= '
-<input type=hidden name="cancelurl" value="https://payment.architrade.com/cgi-ssl/relay.cgi/'.$lConf["relayURL"].'&products_cmd=cancel&products_finalize=1&HTTP_COOKIE='.rawurlencode("fe_typo_user=".$GLOBALS["TSFE"]->fe_user->id).'">';
-               }
-               if ($lConf["test"])     {
-                       $markerArray["###HIDDEN_FIELDS###"].= '
-                               <input type=hidden name=test value="foo">
-                       ';
-               }
-               if ($lConf["cardType"] && !$lConf["soloe"])     {
-                               /*
-                               Examples:
-                                       DK                      Dankort
-                                       V-DK            Visa-Dankort
-                                       MC(DK)          Mastercard/Eurocard udstedt i Danmark
-                                       VISA            Visakort udstedt i udlandet
-                                       MC                      Mastercard/Eurocard udstedt i udlandet
-                                       DIN(DK)         Diners Club, Danmark
-                                       DIN             Diners Club, international
-                               */
-               
-                       $markerArray["###HIDDEN_FIELDS###"].= '
-                               <input type=hidden name=cardtype value="'.$lConf["cardType"].'">
-                       ';
-               }
-               if ($lConf["account"])  {               // DIBS account feature
-                       $markerArray["###HIDDEN_FIELDS###"].= '
-                               <input type=hidden name=account value="'.$lConf["account"].'">
-                       ';
-               }
-               
-               
-                               // Adds order info to hiddenfields.
-               if ($lConf["addOrderInfo"])     {       
-                       $theFields="";
-                               // Delivery info
-                       reset($this->deliveryInfo);
-                       $cc=0;
-                       while(list($field,$value)=each($this->deliveryInfo))            {
-                               $value = trim($value);
-                               if ($value)     {
-                                       $cc++;
-                                       $theFields.=chr(10).'<input type=hidden name="delivery'.$cc.'.'.$field.'" value="'.htmlspecialchars($value).'">';
-                               }
-                       }
-                       
-                               // Order items
-                       reset($this->calculatedBasket);
-                       $theFields.='
-<input type=hidden name="ordline1-1" value="Varenummer">
-<input type=hidden name="ordline1-2" value="Beskrivelse">
-<input type=hidden name="ordline1-3" value="Antal">
-<input type=hidden name="ordline1-4" value="Pris">
-';                             
-                       $cc=1;
-                       while(list(,$rec)=each($this->calculatedBasket))                {
-                               $cc++;
-                               $theFields.='
-<input type=hidden name="ordline'.$cc.'-1" value="'.htmlspecialchars($rec["rec"]["itemnumber"]).'">
-<input type=hidden name="ordline'.$cc.'-2" value="'.htmlspecialchars($rec["rec"]["title"]).'">
-<input type=hidden name="ordline'.$cc.'-3" value="'.$rec["count"].'">
-<input type=hidden name="ordline'.$cc.'-4" value="'.$this->priceFormat($rec["totalTax"]).'">';
-                       }
-               
-                       $theFields.='
-<input type=hidden name="priceinfo1.Shipping" value="'.$this->priceFormat($this->calculatedSums_tax["shipping"]).'">';
-                       $theFields.='
-<input type=hidden name="priceinfo2.Payment" value="'.$this->priceFormat($this->calculatedSums_tax["payment"]).'">';
-                       $theFields.='
-<input type=hidden name="priceinfo3.Tax" value="'.$this->priceFormat($this->calculatedSums_tax["total"]-$this->calculatedSums_no_tax["total"]).'">';
-                       $markerArray["###HIDDEN_FIELDS###"].=$theFields;
-               }
-               $content= $this->cObj->substituteMarkerArrayCached($content, $markerArray);
-       break;          
-       case "decline":
-               $markerArray=array();
-               $markerArray["###REASON_CODE###"] = t3lib_div::GPvar("reason");
-               $content=$this->getBasket("###DIBS_DECLINE_TEMPLATE###",$localTemplateCode, $markerArray);              // This not only gets the output but also calculates the basket total, so it's NECESSARY!
-       break;
-       case "cancel":
-               $content=$this->getBasket("###DIBS_SOLOE_CANCEL_TEMPLATE###",$localTemplateCode, $markerArray);         // This not only gets the output but also calculates the basket total, so it's NECESSARY!
-       break;
-       case "accept":
-               $content=$this->getBasket("###DIBS_ACCEPT_TEMPLATE###",$localTemplateCode);             // This is just done to calculate stuff
-
-                       // DIBS md5 keys
-               $k1=$lConf["k1"];
-               $k2=$lConf["k2"];
-       
-                       // Checking transaction
-               $amount=round($this->calculatedSums_tax["total"]*100);
-               $currency="208";
-               $transact=t3lib_div::GPvar("transact");
-               $md5key= md5($k2.md5($k1."transact=".$transact."&amount=".$amount."&currency=".$currency));
-               $authkey=t3lib_div::GPvar("authkey");
-               if ($md5key != $authkey)        {
-                       $content=$this->getBasket("###DIBS_DECLINE_MD5_TEMPLATE###",$localTemplateCode);                // This not only gets the output but also calculates the basket total, so it's NECESSARY!
-               } elseif (t3lib_div::GPvar("orderid")!=$this->getOrderNumber($orderUid)) {
-                       $content=$this->getBasket("###DIBS_DECLINE_ORDERID_TEMPLATE###",$localTemplateCode);            // This not only gets the output but also calculates the basket total, so it's NECESSARY!
-               } else {
-                       $markerArray=array();
-                       $markerArray["###TRANSACT_CODE###"] = t3lib_div::GPvar("transact");
-
-                       $content=$this->getBasket("###BASKET_ORDERCONFIRMATION_TEMPLATE###","",$markerArray);
-                       $this->finalizeOrder($orderUid,$markerArray);   // Important: finalizeOrder MUST come after the call of prodObj->getBasket, because this function, getBasket, calculates the order! And that information is used in the finalize-function
-               }
-/*
-               debug($md5key,1);
-               debug($authkey,1);
-               debug("transact");
-               debug(t3lib_div::GPvar("transact"));
-               debug($GLOBALS["TSFE"]->fe_user->id);
-//                             echo phpinfo(); 
-*/
-       break;
-       default:        
-               if ($lConf["relayURL"]) {
-                       $markerArray=array();
-                       $markerArray["###REDIRECT_URL###"] = 'https://payment.architrade.com/cgi-ssl/relay.cgi/'.$lConf["relayURL"].'&products_cmd=cardno&products_finalize=1&HTTP_COOKIE='.rawurlencode("fe_typo_user=".$GLOBALS["TSFE"]->fe_user->id);
-                       $content=$this->getBasket("###DIBS_REDIRECT_TEMPLATE###",$localTemplateCode, $markerArray);             // This not only gets the output but also calculates the basket total, so it's NECESSARY!
-               } else {
-                       $content = "NO .relayURL given!!";
-               }
-       break;
-}
-?>
\ No newline at end of file
diff --git a/misc/3.0.0/oldscripts/payment_DIBS_template.tmpl b/misc/3.0.0/oldscripts/payment_DIBS_template.tmpl
deleted file mode 100755 (executable)
index 775ec8e..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <title>Untitled</title>
-</head>
-
-<body>
-
-
-
-<!-- ###DIBS_CARDNO_TEMPLATE### 
-
-This subpart is used to display the card number information dialog
-
-
-Has the standard fields of the normal BASKET-templates 
-+  ###HIDDEN_FIELDS###  (mandatory for the DIBS hidden fields)
-
--->
-
-
-<TABLE border="0" cellspacing="0" cellpadding="1" width=1>
-       <tr>
-               <td><img src="clear.gif" width=100 height=1></td>
-               <td><img src="clear.gif" width=5 height=1></td>
-               <td><img src="clear.gif" width=100 height=1></td>
-               <td colspan=3><img src="clear.gif" width=200 height=1></td>
-       </tr>
-       <tr>
-               <td colspan=6 bgcolor="###GC2###">###GW2B###<b>TOTAL:</b>###GW2E###</td>
-       </tr>
-       <TR>
-               <td valign=top colspan=3>###GW1B###
-                       <strong>Total beløb i DKR:</strong>                             
-               ###GW1E###</td>
-               
-               <td valign=top align=right colspan=3 nowrap>###GW1B###
-               <b>Kr. ###PRICE_TOTAL_TAX###</b><br>
-               ###GW1E###</td>
-       </TR>
-</TABLE>
-
-
-
-<form action="https://payment.architrade.com/cgi-ssl/auth.cgi" method=POST autocomplete="off">
-
-       
-       
-       <table width=400>
-               <tr>
-                       <td nowrap>###GW1B###Kortnummer:###GW1E###</td>
-                       <td nowrap>&nbsp; &nbsp; &nbsp;</td>
-                       <td valign=top><input type=text name=cardno size=20></td>
-               </tr>
-               <tr>
-                       <td nowrap>###GW1B###Udløbsdato (mm/åå):###GW1E###</td>
-                       <td nowrap>&nbsp; &nbsp; &nbsp;</td>
-                       <td valign=top><input type=text name=expmon size=2 maxlength=2> / 
-       <input type=text name=expyear size=2 maxlength=2></td>
-               </tr>
-               <tr>
-                       <td>###GW1B###Kontrolcifre:###GW1E###</td>
-                       <td nowrap>&nbsp; &nbsp; &nbsp;</td>
-                       <td valign=top><input type=text name=cvc size=3 maxlength=4></td>
-               </tr>
-               <tr>
-                       <td></td>
-                       <td>&nbsp; &nbsp; &nbsp;</td>
-                       <td valign=top nowrap><input type="submit" name="betal" value="Betal">&nbsp;&nbsp; ###PAYMENT_IMAGE###</td>
-               </tr>
-       </table>
-
-       ###HIDDEN_FIELDS###
-</form>
-
-
-
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="5">
-<TR>
-<TD><A HREF="http://www.dibs.dk/" TARGET="_blank"><IMG SRC="/images/DIBS.gif" BORDER="0"></A></TD>
-<TD><FONT FACE="Verdana, Arial, Helvetica" SIZE=1>Denne butik anvender DIBS <A HREF="http://www.dibs.dk/" TARGET="_blank">(Dansk Internet Betalingssystem)</A>
-<BR>
-Betalingen med kreditkort i denne butik er derfor sikkert og godkendt af <A HREF="http://www.pbs.dk/" TARGET="_blank">PBS</A>.
-<BR>
-Er De i tvivl, har De har mulighed for at se en <A HREF="http://www.dibs.dk/butikker.pml" TARGET="_blank">liste over godkendte butikker</A>.</FONT></TD>
-</TR>
-</TABLE>
-
-
-
-
-###GW1B###
-<br>
-<br>
-<br>
-Inter-Photo's butik er helt sikker at handle i. Det skyldes, at vi benytter Danmarks mest udbredte og gennemtestede e-handels system, DIBS.<br>
-<br>
-For at handle med Dankort skal du opgive følgende oplysninger fra dit kort:<br>
-<br>
-<B>Kortnummer:</B><br>
-Findes på kortets forside og er de 16 cifre, som er præget ind i kortet.<br>
-<br>
-<B>Udløbsdato:</B><br>
-Findes også på forsiden lige under kortnummeret. Der står muligvis "Expires", "Gyldig til" eller lign.<br>
-<br>
-<B>Kontrolcifrene</B><br>
-findes på bagsiden af dit kreditkort som 3 cifre lige efter kortnummeret i nederste højre hjørne (se billedet herunder). <br>
-Det er <i>frivilligt</i> at benytte dem, men det giver os hos Inter-Photo en ekstra sikkerhed for, at der ikke snydes med dit kort. Så hvis du angiver kontrolcifrene, er vi alle ekstra trygge ved handelen.<br>
-<br>
-<img src="media/logos/creditcard_control_numbers_mini.gif" width="52" height="95" border="0" alt="">
-
-###GW1E###
-<!-- ###DIBS_CARDNO_TEMPLATE###         end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_SOLOE_TEMPLATE### 
-
-This subpart is used to display the card number information dialog FOR Unibank SOLO-E payment. It differs because this dialog does not use any
-
--->
-
-
-<TABLE border="0" cellspacing="0" cellpadding="1" width=1>
-       <tr>
-               <td><img src="clear.gif" width=100 height=1></td>
-               <td><img src="clear.gif" width=5 height=1></td>
-               <td><img src="clear.gif" width=100 height=1></td>
-               <td colspan=3><img src="clear.gif" width=200 height=1></td>
-       </tr>
-       <tr>
-               <td colspan=6 bgcolor="###GC2###">###GW2B###<b>TOTAL:</b>###GW2E###</td>
-       </tr>
-       <TR>
-               <td valign=top colspan=3>###GW1B###
-                       <strong>Total beløb i DKR:</strong>                             
-               ###GW1E###</td>
-               
-               <td valign=top align=right colspan=3 nowrap>###GW1B###
-               <b>Kr. ###PRICE_TOTAL_TAX###</b><br>
-               ###GW1E###</td>
-       </TR>
-</TABLE>
-
-###GW1B###
-Du har valgt Unibanks e-betaling. Tryk derfor på nedenstående knap og din PC-bank vil blive startet op. Betalingen foregår direkte via Unibanks software.
-
-###GW1E###
-
-
-<form action="https://payment.architrade.com/cgi-ssl/solo_payment.cgi" method=POST autocomplete="off">
-<input type="submit" name="betal" value="Gå til Unibank e-betaling">&nbsp;&nbsp;<img src="tslib/media-00/logos/soloe.gif" width="53" height="33" hspace=10 border="0" alt="" align=absmiddle>
-       ###HIDDEN_FIELDS###
-</form>
-
-
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="5">
-<TR>
-<TD><A HREF="http://www.dibs.dk/" TARGET="_blank"><IMG SRC="/images/DIBS.gif" BORDER="0"></A></TD>
-<TD><FONT FACE="Verdana, Arial, Helvetica" SIZE=1>Denne butik anvender DIBS <A HREF="http://www.dibs.dk/" TARGET="_blank">(Dansk Internet Betalingssystem)</A>
-<BR>
-Betalingen med kreditkort i denne butik er derfor sikkert og godkendt af <A HREF="http://www.pbs.dk/" TARGET="_blank">PBS</A>.
-<BR>
-Er De i tvivl, har De har mulighed for at se en <A HREF="http://www.dibs.dk/butikker.pml" TARGET="_blank">liste over godkendte butikker</A>.</FONT></TD>
-</TR>
-</TABLE>
-
-<!-- ###DIBS_SOLOE_TEMPLATE###  end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_DECLINE_TEMPLATE### 
-
-This subpart is used to display information IF the payment was declined!
-
-Has the standard fields of the normal BASKET-templates 
-+  ###REASON_CODE###  which is the global var, $reason
-
--->
-###GW1B###
-
-<strong>Transaktionen blev desværre afvist!</strong><br>
-<br>
-
-Der kan være flere grunde til dette. <br>
-Koden for afvisningen var <strong>###REASON_CODE###</strong>. I tabellen herunder kan du se, hvad denne kode betyder:<br>
-<br>
-
-<table cellpadding=4>
-<tr>
-       <td>###GW2B###<strong>10</strong>###GW2E###</td>
-       <td>###GW2B###Ugyldig korttype###GW2E###</td>
-</tr>
-<tr>
-       <td>###GW2B###<strong>5</strong>###GW2E###</td>
-       <td>###GW2B###Korttype understøttes ikke af butikken###GW2E###</td>
-</tr>
-<tr>
-       <td>###GW2B###<strong>4</strong>###GW2E###</td>
-       <td>###GW2B###Kortet er udløbet###GW2E###</td>
-</tr>
-<tr>
-       <td>###GW2B###<strong>1,2,3</strong>###GW2E###</td>
-       <td>###GW2B###Kommunikationsfejl mellem DIBS og PBS###GW2E###</td>
-</tr>
-<tr>
-       <td>###GW2B###<strong>0</strong>###GW2E###</td>
-       <td>###GW2B###Anden fejl (f.eks. spærret eller ugyldigt kort)###GW2E###</td>
-</tr>
-</table>
-<br>
-               
-Din ordre er i midlertid ikke slettet, så du kan <a href="http://www.inter-photo.dk/?butik">gå tilbage til butikken</a> og vælge en anden betalingsform.
-<br>
-<br>
-                
-
-###GW1E###
-
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="5">
-<TR>
-<TD><A HREF="http://www.dibs.dk/" TARGET="_blank"><IMG SRC="/images/DIBS.gif" BORDER="0"></A></TD>
-<TD><FONT FACE="Verdana, Arial, Helvetica" SIZE=1>Denne butik anvender DIBS <A HREF="http://www.dibs.dk/" TARGET="_blank">(Dansk Internet Betalingssystem)</A>
-<BR>
-Betalingen med kreditkort i denne butik er derfor sikkert og godkendt af <A HREF="http://www.pbs.dk/" TARGET="_blank">PBS</A>.
-<BR>
-Er De i tvivl, har De har mulighed for at se en <A HREF="http://www.dibs.dk/butikker.pml" TARGET="_blank">liste over godkendte butikker</A>.</FONT></TD>
-</TR>
-</TABLE>
-
-<!-- ###DIBS_DECLINE_TEMPLATE###        end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_DECLINE_MD5_TEMPLATE### 
-
-This subpart is used to display information IF the payment was declined!
-
-Has the standard fields of the normal BASKET-templates 
-
--->
-###GW1B###
-
-<strong>Transaktionen blev godkendt, men returkoden var ikke korrekt!</strong><br>
-<br>
-Du bør øjeblikkeligt rette henvendelse til <a href="mailto:kasper@curbysoft.dk">kasper@curbysoft.dk</a> og gøre opmærksom på problemet, der ikke burde forekomme medmindre man forsøger at snyde systemet til at godtage en betaling. Opgiv venligst dit ordrenummer, ###ORDER_UID###.
-<br>
-<br>
-               
-Din ordre er i midlertid ikke slettet, så du kan <a href="http://www.inter-photo.dk/?butik">gå tilbage til butikken</a> og vælge en anden betalingsform.
-<br>
-<br>
-                
-
-###GW1E###
-
-<!-- ###DIBS_DECLINE_MD5_TEMPLATE###    end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_SOLOE_CANCEL_TEMPLATE### 
-
-This subpart is used to display information IF the payment was cancel by Unibank Solo-E software
-
-Has the standard fields of the normal BASKET-templates 
-
--->
-###GW1B###
-
-<strong>Du har afbrudt transaktionen med Unibank e-betaling.</strong><br>
-<br>
-               
-Din ordre er i midlertid ikke slettet, så du kan <a href="http://www.inter-photo.dk/?butik">gå tilbage til butikken</a> og vælge en anden betalingsform.
-<br>
-<br>
-
-###GW1E###
-
-<!-- ###DIBS_SOLOE_CANCEL_TEMPLATE###   end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_DECLINE_ORDERID_TEMPLATE### 
-
-This subpart is used to display information IF the payment was declined!
-
-Has the standard fields of the normal BASKET-templates 
-
--->
-###GW1B###
-
-<strong>Transaktionen blev godkendt, men ordrenummeret, ###ORDER_UID### passer ikke!</strong><br>
-<br>
-Du bør øjeblikkeligt rette henvendelse til <a href="mailto:kasper@curbysoft.dk">kasper@curbysoft.dk</a> og gøre opmærksom på problemet, der ikke burde forekomme medmindre man forsøger at snyde systemet til at godtage en betaling. Opgiv venligst dit ordrenummer, ###ORDER_UID###.
-<br>
-<br>
-               
-Din ordre er i midlertid ikke slettet, så du kan <a href="http://www.inter-photo.dk/?butik">gå tilbage til butikken</a> og vælge en anden betalingsform.
-<br>
-<br>
-                
-
-###GW1E###
-
-<!-- ###DIBS_DECLINE_ORDERID_TEMPLATE###        end -->
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_REDIRECT_TEMPLATE### 
-
-This subpart is used to display information IF the payment was declined!
-
-Has the standard fields of the normal BASKET-templates 
-+ ###REDIRECT_URL###
-
--->
-###GW1B###
-       Du omdirigeres nu til en sikker betalingsserver. 
-       <script>
-               document.location = '###REDIRECT_URL###';
-       </script>
-###GW1E###
-
-<!-- ###DIBS_REDIRECT_TEMPLATE###       end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_ACCEPT_TEMPLATE### 
-Used for dummy purpose onlu
--->
-DUMMY
-<!-- ###DIBS_ACCEPT_TEMPLATE###         end -->
-
-
-
-
-</body>
-</html>
diff --git a/misc/3.0.0/oldscripts/payment_DIBS_template_uk.tmpl b/misc/3.0.0/oldscripts/payment_DIBS_template_uk.tmpl
deleted file mode 100755 (executable)
index f9df334..0000000
+++ /dev/null
@@ -1,422 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
-       <title>Untitled</title>
-</head>
-
-<body>
-
-
-
-<!-- ###DIBS_CARDNO_TEMPLATE### 
-
-This subpart is used to display the card number information dialog
-
-
-Has the standard fields of the normal BASKET-templates 
-+  ###HIDDEN_FIELDS###  (mandatory for the DIBS hidden fields)
-
--->
-
-
-<TABLE border="0" cellspacing="0" cellpadding="1" width=1>
-       <tr>
-               <td><img src="clear.gif" width=100 height=1></td>
-               <td><img src="clear.gif" width=5 height=1></td>
-               <td><img src="clear.gif" width=100 height=1></td>
-               <td colspan=3><img src="clear.gif" width=200 height=1></td>
-       </tr>
-       <tr>
-               <td colspan=6 bgcolor="###GC2###">###GW2B###<b>TOTAL:</b>###GW2E###</td>
-       </tr>
-       <TR>
-               <td valign=top colspan=3>###GW1B###
-                       <strong>Total amount in DKR:</strong>                           
-               ###GW1E###</td>
-               
-               <td valign=top align=right colspan=3 nowrap>###GW1B###
-               <b>Kr. ###PRICE_TOTAL_TAX###</b><br>
-               ###GW1E###</td>
-       </TR>
-</TABLE>
-
-
-
-<form action="https://payment.architrade.com/cgi-ssl/auth.cgi" method=POST autocomplete="off">
-
-       
-       
-       <table width=400>
-               <tr>
-                       <td nowrap>###GW1B###Cardnumber:###GW1E###</td>
-                       <td nowrap>&nbsp; &nbsp; &nbsp;</td>
-                       <td valign=top><input type=text name=cardno size=20></td>
-               </tr>
-               <tr>
-                       <td nowrap>###GW1B###Expiry date (MM/YY):###GW1E###</td>
-                       <td nowrap>&nbsp; &nbsp; &nbsp;</td>
-                       <td valign=top><input type=text name=expmon size=2 maxlength=2> / 
-       <input type=text name=expyear size=2 maxlength=2></td>
-               </tr>
-               <tr>
-                       <td>###GW1B###Control-numbers:###GW1E###</td>
-                       <td nowrap>&nbsp; &nbsp; &nbsp;</td>
-                       <td valign=top><input type=text name=cvc size=3 maxlength=4></td>
-               </tr>
-               <tr>
-                       <td></td>
-                       <td>&nbsp; &nbsp; &nbsp;</td>
-                       <td valign=top nowrap><input type="submit" name="betal" value="Betal">&nbsp;&nbsp; ###PAYMENT_IMAGE###</td>
-               </tr>
-       </table>
-
-       ###HIDDEN_FIELDS###
-</form>
-
-
-
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="5">
-<TR>
-<TD><A HREF="http://www.dibs.dk/" TARGET="_blank"><IMG SRC="/images/DIBS.gif" BORDER="0"></A></TD>
-<TD><FONT FACE="Verdana, Arial, Helvetica" SIZE=1>This shop uses DIBS <A HREF="http://www.dibs.dk/" TARGET="_blank">(Dansk Internet Betalingssystem)</A>
-<BR>
-Payment with credit cards in this shop is therefore secure and approved by <A HREF="http://www.pbs.dk/" TARGET="_blank">PBS</A> (Danish Payment Authority).
-<BR>
-Are you in doubt, please see <A HREF="http://www.dibs.dk/butikker.pml" TARGET="_blank">this list of approved shops</A>.</FONT></TD>
-</TR>
-</TABLE>
-
-
-
-
-###GW1B###
-<br>
-<br>
-<br>
-Typo3 Shop (subsidery of Inter-Photo) is secure. This is due to the fact that we're using the most prevalent and tested e-commerce system in Denmark, DIBS.<br>
-<br>
-In order to pay with credit cards, you must enter the following information from your card:<br>
-<br>
-<B>Card number:</B><br>
-Printed on the front of your credit card. It's a 16 figure number embossed into the card.<br>
-<br>
-<B>Expiry Date:</B><br>
-Also printed on the front of your card.<br>
-<br>
-<B>Control figures</B><br>
-is found on the back of your credit card as three figures right after the card number in the lower right corner (see picture below). <br>
-<br>
-<img src="media/logos/creditcard_control_numbers_mini.gif" width="52" height="95" border="0" alt="">
-
-###GW1E###
-<!-- ###DIBS_CARDNO_TEMPLATE###         end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_SOLOE_TEMPLATE### 
-
-This subpart is used to display the card number information dialog FOR Unibank SOLO-E payment. It differs because this dialog does not use any
-
--->
-
-
-<TABLE border="0" cellspacing="0" cellpadding="1" width=1>
-       <tr>
-               <td><img src="clear.gif" width=100 height=1></td>
-               <td><img src="clear.gif" width=5 height=1></td>
-               <td><img src="clear.gif" width=100 height=1></td>
-               <td colspan=3><img src="clear.gif" width=200 height=1></td>
-       </tr>
-       <tr>
-               <td colspan=6 bgcolor="###GC2###">###GW2B###<b>TOTAL:</b>###GW2E###</td>
-       </tr>
-       <TR>
-               <td valign=top colspan=3>###GW1B###
-                       <strong>Total amount in DKR:</strong>                           
-               ###GW1E###</td>
-               
-               <td valign=top align=right colspan=3 nowrap>###GW1B###
-               <b>Kr. ###PRICE_TOTAL_TAX###</b><br>
-               ###GW1E###</td>
-       </TR>
-</TABLE>
-
-###GW1B###
-You have chosen Unibank e_payment. Press the button below and your PC-bank will be started. Payment is done directly with Unibank's software.
-
-###GW1E###
-
-
-<form action="https://payment.architrade.com/cgi-ssl/solo_payment.cgi" method=POST autocomplete="off">
-<input type="submit" name="betal" value="Gå til Unibank e-betaling">&nbsp;&nbsp;<img src="tslib/media-00/logos/soloe.gif" width="53" height="33" hspace=10 border="0" alt="" align=absmiddle>
-       ###HIDDEN_FIELDS###
-</form>
-
-
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="5">
-<TR>
-<TD><A HREF="http://www.dibs.dk/" TARGET="_blank"><IMG SRC="/images/DIBS.gif" BORDER="0"></A></TD>
-<TD><FONT FACE="Verdana, Arial, Helvetica" SIZE=1>This shop uses DIBS <A HREF="http://www.dibs.dk/" TARGET="_blank">(Dansk Internet Betalingssystem)</A>
-<BR>
-Payment with credit cards in this shop is therefore secure and approved by <A HREF="http://www.pbs.dk/" TARGET="_blank">PBS</A> (Danish Payment Authority).
-<BR>
-Are you in doubt, please see <A HREF="http://www.dibs.dk/butikker.pml" TARGET="_blank">this list of approved shops</A>.</FONT></TD>
-</TR>
-</TABLE>
-
-<!-- ###DIBS_SOLOE_TEMPLATE###  end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_DECLINE_TEMPLATE### 
-
-This subpart is used to display information IF the payment was declined!
-
-Has the standard fields of the normal BASKET-templates 
-+  ###REASON_CODE###  which is the global var, $reason
-
--->
-###GW1B###
-
-<strong>The transaction was rejected!</strong><br>
-<br>
-
-There may be a lot of reasons. <br>
-The code was <strong>###REASON_CODE###</strong>. In this table you can see what this code means:<br>
-<br>
-
-<table cellpadding=4>
-<tr>
-       <td>###GW2B###<strong>10</strong>###GW2E###</td>
-       <td>###GW2B###Non-allowed card type.###GW2E###</td>
-</tr>
-<tr>
-       <td>###GW2B###<strong>5</strong>###GW2E###</td>
-       <td>###GW2B###Card type is not supported in this shop.###GW2E###</td>
-</tr>
-<tr>
-       <td>###GW2B###<strong>4</strong>###GW2E###</td>
-       <td>###GW2B###Card has expired.###GW2E###</td>
-</tr>
-<tr>
-       <td>###GW2B###<strong>1,2,3</strong>###GW2E###</td>
-       <td>###GW2B###Communication error between DIBS and PBS###GW2E###</td>
-</tr>
-<tr>
-       <td>###GW2B###<strong>0</strong>###GW2E###</td>
-       <td>###GW2B###Other error (eg. a banned card)###GW2E###</td>
-</tr>
-</table>
-<br>
-               
-<br>
-                
-
-###GW1E###
-
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="5">
-<TR>
-<TD><A HREF="http://www.dibs.dk/" TARGET="_blank"><IMG SRC="/images/DIBS.gif" BORDER="0"></A></TD>
-<TD><FONT FACE="Verdana, Arial, Helvetica" SIZE=1>This shop uses DIBS <A HREF="http://www.dibs.dk/" TARGET="_blank">(Dansk Internet Betalingssystem)</A>
-<BR>
-Payment with credit cards in this shop is therefore secure and approved by <A HREF="http://www.pbs.dk/" TARGET="_blank">PBS</A> (Danish Payment Authority).
-<BR>
-Are you in doubt, please see <A HREF="http://www.dibs.dk/butikker.pml" TARGET="_blank">this list of approved shops</A>.</FONT></TD>
-</TR>
-</TABLE>
-
-<!-- ###DIBS_DECLINE_TEMPLATE###        end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_DECLINE_MD5_TEMPLATE### 
-
-This subpart is used to display information IF the payment was declined!
-
-Has the standard fields of the normal BASKET-templates 
-
--->
-###GW1B###
-
-<strong>The transaction was approved, but the return code was not correct!</strong><br>
-<br>
-Please notify <a href="mailto:kasper@curbysoft.dk">kasper@curbysoft.dk</a> about this problem!
-<br>
-<br>
-               
-<br>
-                
-
-###GW1E###
-
-<!-- ###DIBS_DECLINE_MD5_TEMPLATE###    end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_SOLOE_CANCEL_TEMPLATE### 
-
-This subpart is used to display information IF the payment was cancel by Unibank Solo-E software
-
-Has the standard fields of the normal BASKET-templates 
-
--->
-###GW1B###
-
-<strong>You have cancelled the transaction with Unibank e-payment.</strong><br>
-<br>
-               
-<br>
-
-###GW1E###
-
-<!-- ###DIBS_SOLOE_CANCEL_TEMPLATE###   end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_DECLINE_ORDERID_TEMPLATE### 
-
-This subpart is used to display information IF the payment was declined!
-
-Has the standard fields of the normal BASKET-templates 
-
--->
-###GW1B###
-
-<strong>The transaction was approved, but the order number, ###ORDER_UID### is incorrect!</strong><br>
-<br>
-Please notify <a href="mailto:kasper@curbysoft.dk">kasper@curbysoft.dk</a> about this problem!
-<br>
-<br>
-                
-
-###GW1E###
-
-<!-- ###DIBS_DECLINE_ORDERID_TEMPLATE###        end -->
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_REDIRECT_TEMPLATE### 
-
-This subpart is used to display information IF the payment was declined!
-
-Has the standard fields of the normal BASKET-templates 
-+ ###REDIRECT_URL###
-
--->
-###GW1B###
-       You're now transferred to a secure payment server. 
-       <script>
-               document.location = '###REDIRECT_URL###';
-       </script>
-###GW1E###
-
-<!-- ###DIBS_REDIRECT_TEMPLATE###       end -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<!-- ###DIBS_ACCEPT_TEMPLATE### 
-Used for dummy purpose onlu
--->
-DUMMY
-<!-- ###DIBS_ACCEPT_TEMPLATE###         end -->
-
-
-
-
-</body>
-</html>
diff --git a/misc/3.0.0/oldscripts/pollLib.inc b/misc/3.0.0/oldscripts/pollLib.inc
deleted file mode 100755 (executable)
index 0f0dc44..0000000
+++ /dev/null
@@ -1,279 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 2001 René Fritz (r.fritz@colorcube.de)
-*  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!
-***************************************************************/
-/**
- * pollLib.inc
- *
- * version 0.91
- *
- * Creates a poll object
- *
- * TypoScript config:
- * - See static_template "plugin.tt_poll"
- * - See TS_ref.pdf
- *
- * Other resources:
- * 'poll_submit.inc' is used for submission of the poll value to the database. This is done through the FEData TypoScript object. See the static_template 'plugin.tt_poll' for an example of how to set this up.
- *
- * @author     René Fritz <r.fritz@colorcube.de>
- */
-
-/***************************************************************
-TODO
-
----
-show message if user tried to vote twice
----
-check double votes with IPs - are we paranoid?
----
-
-****************************************************************/
-
-
-
-class user_poll {
-
-       var $cObj;              // The backReference to the mother cObj object set at call time
-
-       var $cObj="";
-
-       var $enableFields ="";          // The enablefields of the tt_poll table.
-
-       var $config=array();
-       var $conf=array();
-
-       var $pollTable = "";
-       var $pollTableUid = "";
-       var $pollTablePid = "";
-
-       /**
-        * Main method. Call this from TypoScript by a USER cObject.
-        */
-       function main_poll($content,$conf)      {
-
-                       // getting configuration values:
-
-               $this->conf=$conf;
-
-               $this->enableFields = $this->cObj->enableFields("tt_poll");
-
-                       // "CODE" decides what will be rendered:
-               $this->config["code"] = $this->cObj->stdWrap($this->conf["code"],$this->conf["code."]);
-               if (!$this->config["code"]) { $this->config["code"]="SHOWHELP"; } // dummy code to display help
-
-                       //  we decide if we are in another object or in content.shortcut
-               $items=array();
-               if ( $this->conf["pollTable"] ) {
-                       $this->pollTable = $this->conf["pollTable"];
-                       $this->pollTablePid = intval($this->cObj->stdWrap($this->conf["pollTablePid"],$this->conf["pollTablePid."]));
-                       $this->pollTablePid = $this->pollTablePid ? $this->pollTablePid : $GLOBALS["TSFE"]->id;
-                       $this->pollTableUid = intval($this->cObj->stdWrap($this->conf["pollTableUid"],$this->conf["pollTableUid."]));
-                       if (!$this->pollTableUid) {
-                               list (,$this->pollTableUid) = explode(":",$this->cObj->currentRecord);
-                       }
-                       $item = $this->getItempollLink($this->pollTable."_".$this->pollTableUid, $this->pollTablePid);
-                       if (is_array($item)) {
-                               $items[] = $item;
-                       }
-               } else {
-                       $items[] = $this->cObj->data;
-               }
-
-               $afterBegin = $this->cObj->data["starttime"] ? ($this->cObj->data["starttime"] <= time()) : TRUE;
-               $inProgress = ($afterBegin AND $this->cObj->data["endtime"]) ? (($this->cObj->data["starttime"] <= time()) AND (time() <=$this->cObj->data["endtime"])) : $afterBegin;
-               $openEnd = ($afterBegin AND !$this->cObj->data["endtime"]);
-
-               // $items[] as array is not neccessary but I didn't change it from previous code
-               // maybe used later to create poll verview lists
-
-
-                       // *************************************
-                       // *** Let's go
-                       // *************************************
-
-               $codes=t3lib_div::trimExplode(",", strtoupper($this->config["code"]),1);
-
-               $content="";
-               reset($items);
-               while(list(,$item)=each($items))        {
-
-                       $answers = explode("\n",$item["answers"]);
-
-                               // look for a submitted user vote
-                       unset($submittedVoteKey);
-                       if($GLOBALS["HTTP_COOKIE_VARS"]["t3_tt_poll_voted_".$itema["uid"]]){
-                               $submittedVoteKey = $GLOBALS["HTTP_COOKIE_VARS"]["t3_tt_poll_voted_".$itema["uid"]];
-                       }else{
-                               $datakeys = explode(":",$GLOBALS["HTTP_POST_VARS"]["locationData"]);
-                               $submittedVoteKey = $GLOBALS["HTTP_POST_VARS"]["data"][$datakeys[1]][$datakeys[2]]["vote"];
-                       }
-                       $submittedVoteText = "";
-                       $submittedVote = "";
-                       $voteMsg = "";
-
-                               // searching for the vote text of the submitted vote
-                       if ( $submittedVoteKey ) {
-                               reset($answers);
-                               while(list(,$value)=each($answers))     {
-                                       list(,$answer) = explode("|",$value);
-                                       $answer=trim($answer);
-                                       if ($submittedVoteKey == md5($answer)) {
-                                               $submittedVoteText = $answer;
-                                       }
-                               }
-                       }
-
-                       reset($codes);
-                       while(list(,$theCode)=each($codes))     {
-                               $theCode = (string)trim($theCode);
-                               switch($theCode)        {
-                                       case "VOTEFORM":
-                                               if ($inProgress) {
-                                                       $lConf = $this->conf["voteform."];
-
-                                                       list ($submitButton) = array_values($lConf["dataArray."]);
-
-                                                       unset($lConf["dataArray."]);
-                                                       $count = 10;
-                                                       reset($answers);
-                                                       while(list(,$value)=each($answers))     {
-                                                               list(,$answer) = explode("|",$value);
-                                                               $answer=trim($answer);
-                                                               $lConf["dataArray."][$count."."]["type"] = "*data[tt_poll][".$item["uid"]."][vote]=radio";
-                                                               $lConf["dataArray."][$count."."]["value"] = $answer."=".md5($answer);
-                                                               $count += 10;
-                                                       }
-                                                       $lConf["dataArray."]["9990."] = $submitButton;
-
-                                                       $lConf["dataArray."]["9998."] = array(
-                                                               "type" => "clearCachePid=hidden",
-                                                               "value" => $GLOBALS["TSFE"]->id
-                                                       );
-                                                       $target_id = intval($this->cObj->stdWrap($lConf["redirect"],$lConf["redirect."]));
-                                                       $target_id = $target_id ? $target_id : intval($this->cObj->stdWrap($lConf["type"],$lConf["type."]));
-                                                       if ($target_id AND ($target_id != $GLOBALS["TSFE"]->id)) {
-                                                               $lConf["dataArray."]["9999."] = array(
-                                                                       "type" => "clearCacheTargetPid=hidden",
-                                                                       "value" => $target_id
-                                                               );
-                                                       }
-//debug($lConf);
-                                                       $content .= $this->cObj->FORM($lConf);
-                                               }
-                                       break;
-
-                                       case "RESULT":
-                                               if ($afterBegin) {
-                                                       $content .= $this->cObj->cObjGetSingle ($this->conf["resultObj"], $this->conf["resultObj."]);
-
-                                                       if (isset ($this->conf["resultItemObj."])) {
-                                                               $contentItems = "";
-                                                               $answers = explode("\n",$item["answers"]);
-                                                               reset($answers);
-                                                               while(list(,$value)=each($answers))     {
-                                                                       if (trim($value)) {
-                                                                               $lConf = $this->conf["resultItemObj."];
-                                                                               list($votes,$answer) = explode("|",$value);
-                                                                               $markContentArray = array();
-                                                                               $markContentArray["###ITEMVOTES###"] = $votes;
-                                                                               $markContentArray["###PERCENT###"] = $item["votes"]?(string)(round((double)($votes * 100.0 / (double)$item["votes"]),1)):0;
-                                                                               $markContentArray["###ANSWER###"] = $answer;
-                                                                               $markContentArray["###POLLFULLWIDTH###"] = $this->conf["pollOutputWidth"];
-                                                                               $markContentArray["###POLLWIDTH###"] = $item["votes"]?(int)((double)$this->conf["pollOutputWidth"]*($votes / (double)$item["votes"])):0;
-                                                                               $markContentArray["###POLLREMAINWIDTH###"] = (int)$markContentArray["###POLLFULLWIDTH###"] - (int)$markContentArray["###POLLWIDTH###"];
-                                                                               $this->cObj->substituteMarkerInObject ($lConf, $markContentArray);
-                                                                               $contentItems .= $this->cObj->cObjGetSingle ($this->conf["resultItemObj"], $lConf);
-                                                                       }
-                                                               }
-                                                       }
-                                               }
-                                       break;
-
-                                       case "SUBMITTEDVOTE":
-                                               if (($inProgress OR $openEnd) AND $submittedVoteText AND $GLOBALS["no_cache"]) {
-                                                       $voteMsg = $this->cObj->cObjGetSingle ($conf["submittedVoteObj"], $conf["submittedVoteObj."]);
-                                                       $submittedVote = $submittedVoteText;
-                                               }
-                                       break;
-
-                                       default:
-                                               $langKey = strtoupper($GLOBALS["TSFE"]->config["config"]["language"]);
-                                               $helpTemplate = $this->cObj->fileResource("media/scripts/poll_help.tmpl");
-
-                                                       // Get language version
-                                               $helpTemplate_lang="";
-                                               if ($langKey)   {$helpTemplate_lang = $this->cObj->getSubpart($helpTemplate,"###TEMPLATE_".$langKey."###");}
-                                               $helpTemplate = $helpTemplate_lang ? $helpTemplate_lang : $this->cObj->getSubpart($helpTemplate,"###TEMPLATE_DEFAULT###");
-
-                                                       // Markers and substitution:
-                                               $markerArray["###CODE###"] = ($theCode=="SHOWHELP") ? "" : $theCode;
-                                               $content.=$this->cObj->substituteMarkerArray($helpTemplate,$markerArray);
-                                       break;
-                               }
-                       }
-               $markContentArray = array();
-               $markContentArray["###RESULTITEMS###"] = $contentItems;
-               $markContentArray["###TITLE###"] = $item["title"];
-               $markContentArray["###QUESTION###"] = $item["question"];
-               $markContentArray["###TOTALVOTES###"] = $item["votes"];
-               $markContentArray["###VOTEMSG###"] = $voteMsg;
-               $markContentArray["###SUBMITTEDVOTE###"] = $submittedVote;
-               $markContentArray["###PROGRESSMSG###"] = "";
-               if ($inProgress) {
-                       if (!$openEnd) {
-                               $markContentArray["###PROGRESSMSG###"] = $this->cObj->cObjGetSingle ($this->conf["inProgressObj"], $this->conf["inProgressObj."]);
-                       }
-               } else {
-                       $markContentArray["###PROGRESSMSG###"] = $this->cObj->cObjGetSingle ($this->conf["finishedObj"], $this->conf["finishedObj."]);
-               }
-               $markContentArray["###STARTTIME###"] = $this->cObj->stdWrap($this->cObj->data["starttime"],$conf["date_stdWrap."]);
-               $markContentArray["###ENDTIME###"] = $this->cObj->stdWrap($this->cObj->data["endtime"],$conf["date_stdWrap."]);
-               $content = $this->cObj->substituteMarkerArray ($content, $markContentArray);
-               }
-
-               return $this->cObj->wrap($content,$conf["wrap."]);
-       }
-
-
-
-               // get a 'linked' poll record
-       function getItemPollLink($recordlink, $pid)             {
-               $query = "SELECT * FROM tt_poll WHERE recordlink = ('".$recordlink."') AND pid = (".$pid.")".$this->enableFields;
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               return mysql_fetch_assoc($res);
-       }
-
-
-}
-
-
-
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["media/scripts/pollLib.inc"])      {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["media/scripts/pollLib.inc"]);
-}
-
-?>
diff --git a/misc/3.0.0/oldscripts/poll_extTables.inc b/misc/3.0.0/oldscripts/poll_extTables.inc
deleted file mode 100755 (executable)
index eec1ea9..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-<?php
-// ******************************************************************
-// This is the TypoScript polls table, tt_poll
-// ******************************************************************
-
-t3lib_div::loadTCA("tt_content");
-$TCA["tt_content"]["columns"]["records"]["config"]["allowed"] .= ",tt_poll";
-
-$PAGES_TYPES["default"]["allowedTables"] .= ",tt_poll";
-
-
-$TCA[tt_poll] = Array (
-       "ctrl" => Array (
-               "label" => "title",
-               "default_sortby" => "ORDER BY title",
-               "tstamp" => "tstamp",
-               "delete" => "deleted",
-               "crdate" => "crdate",
-               "enablecolumns" => Array (
-                       "disabled" => "hidden",
-                       "starttime" => "starttime"
-//                     "endtime" => "endtime"
-// this is handled through the script - voteform with endtime, result without endtime
-               ),
-               "title" => "Poll|Afstemning|Abstimmung||Sondaggio|Qestionnaire|Encuesta|Poll|||Anketa||Anket"
-       ),
-       "interface" => Array (
-               "showRecordFieldList" => "title,question,hidden,votes"
-       ),
-       "columns" => Array (
-               "title" => Array (
-                       "label" => $LANG_GENERAL_LABELS["title"],
-                       "config" => Array (
-                               "type" => "input",
-                               "size" => "40",
-                               "max" => "256"
-                       )
-               ),
-               "question" => Array (
-                       "label" => "Question:|Spørgsmål:|Frage:||Domanda:|Question:|Pregunta:|Vraag:|||Vpra\9aanje:||Soru:",
-                       "config" => Array (
-                               "type" => "text",
-                               "cols" => "40",
-                               "rows" => "2"
-                       )
-               ),
-               "answers" => Array (
-                       "label" => "Answers:|Svar:|Antworten:||Risposte:|Réponses:|Respuestas:|Antwoorden:|||Odgovori:||Cevaplar:",
-                       "config" => Array (
-                               "type" => "text",
-                               "cols" => "40",
-                               "rows" => "5"
-                       )
-               ),
-               "votes" => Array (
-                       "label" => "Votes:|Stemmer:|Anzahl Stimmen:||Voti:|Votes:|Votos:|Stemmen:|||Glasov:||Oylar:",
-                       "config" => Array (
-                               "type" => "input",
-                               "size" => "8",
-                               "max" => "12",
-                               "eval" => "int",
-                               "default" => 0
-                       )
-               ),
-               "recordlink" => Array (
-                       "label" => "Link to Record:|Reference til element:|Verknüpfung:||Link to Record:|Liens vers un enregistrement:|Ligar al registro:|Link naar Record:|||Povezava do zapisa:||Kayýta link:",
-                       "config" => Array (
-                               "type" => "group",
-                               "internal_type" => "db",
-                               "allowed" => $TCA[tt_content]["columns"]["records"]["config"]["allowed"],
-                                 &nbs