<?xml version="1.0" encoding="utf-8"?>
	
	<rss version="2.0">
		<channel>
			<title>Codebase -   </title>
			<lastBuildDate>Thu, 09 Sep 2010 14:16:46 +0200</lastBuildDate>
			<link>http://petergasser.com/codebase/</link>
			<description></description>
			<generator>
				Lussumo Vanilla 1.1.5a &amp; Feed Publisher
			</generator>
			<item>
		<title>typo3 templates switcher , layout pro page definieren</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=46&amp;Focus=52#Comment_52</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=46&amp;Focus=52#Comment_52</guid>
		<pubDate>Mon, 02 Nov 2009 15:47:13 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
#TSconfig rootpage
TCEFORM.pages.layout.altLabels.0 = Template Blau
TCEFORM.pages.layout.altLabels.1 = Template Rot

#setup
page.10 = TEMPLATE
page.10.template = FILE

[globalVar=TSFE:page|layout=0]
page.10.template.file = fileadmin/templates/template.html
page.includeCSS.file1 = fileadmin/templates/styleb.css
[global]
[globalVar=TSFE:page|layout=1]
page.10.template.file = fileadmin/templates/template.html
page.includeCSS.file1 = fileadmin/templates/styler.css

[global]
</pre> ]]>
		</description>
	</item>
	<item>
		<title>srfeuserregister,sr_feuser_register setup</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=45&amp;Focus=51#Comment_51</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=45&amp;Focus=51#Comment_51</guid>
		<pubDate>Thu, 29 Oct 2009 11:39:29 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
## nur eu länder
plugin.tx_srfeuserregister_pi1.where.static_countries = cn_eu_member = 1
## default land
plugin.tx_srfeuserregister_pi1.create.defaultValues.static_info_country = ITA

</pre> ]]>
		</description>
	</item>
	<item>
		<title>Get image pic from tt_news_cat record</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=44&amp;Focus=50#Comment_50</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=44&amp;Focus=50#Comment_50</guid>
		<pubDate>Sat, 19 Sep 2009 09:58:44 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">

temp.pic = CONTENT
temp.pic {
  table = tt_news_cat
  select {
    pidInList = XX
    andWhere {
      data = GPVar:tx_ttnews|cat
      stdWrap.wrap = uid=|
      stdWrap.ifEmpty = XX
    }
    max = 1
  }
  renderObj = IMAGE
  renderObj.file {
    import.field = image
    import = uploads/pics/ 
    width = XXXc
    height= XXXc-0
  }
}
</pre> ]]>
		</description>
	</item>
	<item>
		<title>Multiple Firefox</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=43&amp;Focus=49#Comment_49</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=43&amp;Focus=49#Comment_49</guid>
		<pubDate>Sun, 24 May 2009 12:19:43 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ Multiple Firefox Instances<br />WIN:<br />Start -&gt; <br /><pre title="code" class="php">
"%ProgramFiles%\Mozilla Firefox\firefox.exe" -no-remote -P dev
</pre><br />create a profile!<br /><br />https://developer.mozilla.org/en/Setting_up_extension_development_environment ]]>
		</description>
	</item>
	<item>
		<title>tt_news image crop : manipulate tt_news images GIFBUILDER</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=42&amp;Focus=48#Comment_48</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=42&amp;Focus=48#Comment_48</guid>
		<pubDate>Mon, 18 May 2009 09:40:45 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ tt_news image crop : manipulate tt_news images GIFBUILDER<br /><br /><pre title="code" class="php">
plugin.tt_news.displayLatest {
  image &gt;
  image.stdWrap.cObject = IMAGE
  image.stdWrap.cObject.file = GIFBUILDER
  image.stdWrap.cObject.file {
  XY = 208,150
  10 = IMAGE
  10 {
    offset = 0,0
    file {
      import=uploads/pics/
      import.data = field:image
      import.listNum = 0
      import.override.field = image
      maxW = 208
      maxH = 150
      width = 208c
      height = 150c-0
    }
  }
 }   
}
</pre> ]]>
		</description>
	</item>
	<item>
		<title>Plesk 8.x.x backup files to Plesk 9.x xml files, Error: This file is not a valid backup file</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=41&amp;Focus=47#Comment_47</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=41&amp;Focus=47#Comment_47</guid>
		<pubDate>Tue, 17 Feb 2009 16:15:14 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ Plesk Backup /Restore - 8.3 8.6 -&gt; 9.0 - psa convert<br />Error: This file is not a valid backup file<br /><br /><pre title="code" class="php">
/usr/local/psa/bin/pre9-backup-convert -v convert -d /var/lib/psa/dumps/ /var/lib/psa/dumps/0/2/ THUMBFILE

/usr/local/psa/bin/pre9-backup-convert -v convert -d /var/lib/psa/dumps/ /var/lib/psa/dumps/3/43/test.com_2009.02.11_11.43

/*
Command line parsing error: option --help not recognized

Usage: pre9-backup-convert &lt;global-options&gt; &lt;command&gt; &lt;command-arguments&gt; &lt;backup-file&gt;
Global options:

-v|--verbose  Enables verbose processing.

Commands:

convert       Converts backups of Plesk version &lt; 9.0
help          Shows help message

Command arguments:

-d &lt;output-directory&gt;|--directory=&lt;output-directory&gt;
  Explicitly sets the directory for extracting the backup content.
  By default directory named after backup file will be created
  in current directory.
*/
</pre><br /><br />More information:<br />http://kb.parallels.com/en/5969<br />http://snipurl.com/c1tnc ]]>
		</description>
	</item>
	<item>
		<title>Convert String (from array)</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=40&amp;Focus=46#Comment_46</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=40&amp;Focus=46#Comment_46</guid>
		<pubDate>Mon, 02 Feb 2009 15:15:30 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
&lt;?php
function convert($string) {
    // variables
    $search = array("~","`","!","@","#","\$","%","^","&amp;","*","(",")","_","-","+","=","{",
"[","}","]","|","\\",":",";",'"',"'","&lt;",",","&gt;",".","?","/");
    $replace = array("&amp;#126;","&amp;#96;","&amp;#33;","&amp;#64;","&amp;#35;","&amp;#36;","&amp;#37;","&amp;#94;",
"&amp;#38;","&amp;#42;","&amp;#40;","&amp;#41;","&amp;#95;","&amp;#45;","&amp;#43;","&amp;#61;","&amp;#123;",
"&amp;#91;","&amp;#125;","&amp;#93;","&amp;#124;","&amp;#92;","&amp;#58;","&amp;#59;","&amp;#34;","&amp;#39;",
"&amp;#60;","&amp;#44;","&amp;#62;","&amp;#46;","&amp;#63;","&amp;#47;");
    
    return strtr($string, convertArray($search, $replace));
}

function convertArray($search, $replace){
    $return = array();
    foreach ($search as $key=&gt;$val){
        $return[$val] = $replace[$key];
    }
    return $return;
}
?&gt;
usage: convert('@');
</pre><br /><br />snippet from jpadie: http://www.tek-tips.com/viewthread.cfm?qid=1444349&amp;page=10 ]]>
		</description>
	</item>
	<item>
		<title>User-agent Disallow Robots.txt</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=39&amp;Focus=45#Comment_45</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=39&amp;Focus=45#Comment_45</guid>
		<pubDate>Tue, 02 Dec 2008 14:05:18 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ User-agent: grub-client, grub, looksmart, WebZip, larbin, b2w/0.1, psbot, Python-urllib, NetMechanic, URL_Spider_Pro, CherryPicker, EmailCollector, EmailSiphon, WebBandit, EmailWolf, ExtractorPro, CopyRightCheck, Crescent, SiteSnagger, ProWebWalker, CheeseBot, LNSpiderguy, ia_archiver, ia_archiver/1.6, Teleport, TeleportPro, MIIxpc, Telesoft, Website Quester, moget/2.1, WebZip/4.0, WebStripper, WebSauger, WebCopier, NetAnts, Mister PiX, WebAuto, TheNomad, WWW-Collector-E, RMA, libWeb/clsHTTP, asterias, httplib, turingos, spanner, InfoNaviRobot, Harvest/1.5, Bullseye/1.0, Mozilla/4.0 (compatible; BullsEye; Windows 95), Crescent Internet ToolPak HTTP OLE Control v.1.0, CherryPickerSE/1.0, CherryPickerElite/1.0, WebBandit/3.50, NICErsPRO, Microsoft URL Control - 5.01.4511, DittoSpyder, Foobot, WebmasterWorldForumBot, SpankBot, BotALot, lwp-trivial/1.34, lwp-trivial, BunnySlippers, Microsoft URL Control - 6.00.8169, URLy Warning, Wget/1.6, Wget/1.5.3, Wget, LinkWalker, cosmos, moget, hloader, humanlinks, LinkextractorPro, Offline Explorer, Mata Hari, LexiBot, Web Image Collector, The Intraformant, True_Robot/1.0, True_Robot, BlowFish/1.0, JennyBot, MIIxpc/4.2, BuiltBotTough, ProPowerBot/2.14, BackDoorBot/1.0, toCrawl/UrlDispatcher, WebEnhancer, suzuran, VCI WebViewer VCI WebViewer Win32, VCI, Szukacz/1.4, QueryN Metasearch, Openfind data gathere, Openfind, Xenu’s Link Sleuth 1.1c, Xenu’s, Zeus, RepoMonkey Bait &amp; Tackle/v1.01, RepoMonkey, Microsoft URL Control, Openbot, URL Control, Zeus Link Scout, Zeus 32297 Webster Pro V2.9 Win32, Webster Pro, EroCrawler, LinkScan/8.1a Unix, Keyword Density/0.9, Kenjin Spider, Iron33/1.0.2, Bookmark search tool, GetRight/4.2, FairAd Client, Gaisbot, Aqua_Products, Radiation Retriever 1.1, Flaming AttackBot, Oracle Ultra Search, MSIECrawler, PerMan, searchpreview ]]>
		</description>
	</item>
	<item>
		<title>allow specific ip address ( .htaccess,  htaccess)</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=38&amp;Focus=44#Comment_44</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=38&amp;Focus=44#Comment_44</guid>
		<pubDate>Thu, 27 Nov 2008 09:22:36 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
AuthName "bla"
AuthType Basic
&lt;Limit GET POST&gt;
order deny,allow
deny from all
allow from 10.10.10.10 #IP
&lt;/Limit&gt;
</pre><br />apache allow from<br />Protecting Content With .htaccess Files<br /><br />.htaccess files are very versitile, and can easily become very complex.  This document contains enough information to set simple access restrictions/limits on a directory in your web space.<br /><br />Remember to upload .htaccess files, and .htpasswd files using ASCII mode. This is an option is available in most FTP clients.<br /><br />Username/Password Protection<br /><br />This schema will prompt web users to enter a CASE SENSITIVE username/password pair before serving any content within the directory containing the .htaccess file.  In the simplest of cases there are two files involved, the .htaccess file, and the password file.<br /><br />The password file is a text file containing a username and an encrypted password, seperated by a colon.  You can use one password file for many .htaccess files.  The entries can be generated here.<br /><br />The .htaccess file would be placed in the directory that needs password protection, and would look something like this:<br />AuthUserFile /usr/home/lee/htpasswd 	- FULL path to the password file.  This file doesn't have to be in your public_html.<br />AuthName "Lee's Secret Area" 	- This description will appear in the login screen. Multiple words require quotes.<br />AuthType Basic 	- Just a line that is required.<br />&lt;Limit GET POST&gt; 	- Start of the limit tag.  This will set limits on GET's and POST's.<br />require valid-user 	- Sets area restrictions such that the user must have a valid login.<br />&lt;/Limit&gt; 	- End of the limit tag.<br /><br />If you are using one password file for multiple .htaccess files, and would like certain users to have access to some areas, but not others, you may want to try one of the following:<br /><br />a) specify the users by using require user userid:<br /><br />&lt;Limit GET POST&gt;<br />require user cisco<br />require user bob<br />require user tim<br />&lt;/Limit&gt;<br /><br />b) setup a group file. This requires you to specify AuthGroupFile.   You can now require group whatever.<br /><br />.htaccess example<br /><br />AuthUserFile /usr/home/lee/htpasswd<br />AuthGroupFile /usr/home/lee/htgroup<br />AuthName "Lee's Secret Area"<br />AuthType Basic<br />&lt;Limit GET POST&gt;<br />require group managers<br />&lt;/Limit&gt;<br /><br />AuthGroupFile example:<br /><br />managers: cisco bob tim jeff kari<br />systems: lee joe cisco<br />sales: kari tonja<br /><br />Restricting by IP Address<br /><br /> <br /><br />This only requires the .htaccess file.  There are two approaches to restricting by IP address:<br /><br />a) deny everyone access, then allow certain hosts/IP addresses<br /><br />AuthName "Lee's Secret Area"<br />AuthType Basic<br />&lt;Limit GET POST&gt;<br />order deny,allow<br />deny from all<br />allow from 199.166.210.<br />allow from .golden.net<br />allow from proxy.aol.com<br />allow from fish.wiretap.net<br />&lt;/Limit&gt;<br /><br />b) allow everyone except for certain hosts/IP addresses<br /><br />AuthName "Lee's Secret Area"<br />AuthType Basic<br />&lt;Limit GET POST&gt;<br />order allow,deny<br />allow from all<br />deny from .microsoft.com<br />deny from .evil-hackers.org<br />deny from 24.112.106.235<br />deny from morphine.wiretap.net<br />&lt;/Limit&gt;<br /><br />More Examples<br /><br />Try crunching the above together into one:<br /><br />a) only managers can view this page from a .golden.net IP address:<br /><br />htaccess:<br />AuthUserFile /usr/home/lee/htpasswd<br />AuthGroupFile /usr/home/lee/htgroup<br />AuthName "Lee's Secret Area"<br />AuthType Basic<br />&lt;Limit GET POST&gt;<br />order deny,allow<br />deny from all<br />allow from .golden.net<br />require group managers<br />&lt;/Limit&gt;<br /><br />AuthGroupFile:<br />managers: cisco bob tim jeff kari<br />systems: lee joe cisco<br />sales: kari tonja<br /><br />b) managers can view this page from anywhere, everyone else must be from a golden.net IP address:<br /><br />htaccess:<br />AuthUserFile /usr/home/lee/htpasswd<br />AuthGroupFile /usr/home/lee/htgroup<br />AuthName "Lee's Secret Area"<br />AuthType Basic<br />Satisfy Any                        Default is Satisfy ALL<br />&lt;Limit GET POST&gt;<br />order deny,allow<br />deny from all<br />allow from .golden.net<br />require group managers<br />&lt;/Limit&gt;<br /><br />AuthGroupFile:<br />managers: cisco bob tim jeff kari<br />systems: lee joe cisco<br />sales: kari tonja ]]>
		</description>
	</item>
	<item>
		<title>Horizontale list Navigation mit Css</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=35&amp;Focus=41#Comment_41</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=35&amp;Focus=41#Comment_41</guid>
		<pubDate>Tue, 25 Nov 2008 10:02:08 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
temp.menu=HMENU
temp.menu.1=TMENU
temp.menu.1.expAll=1
temp.menu.1.wrap=&lt;ul id="nav"&gt;|&lt;/ul&gt;
temp.menu.1.NO.wrapItemAndSub=&lt;li&gt;|&lt;/li&gt;
temp.menu.1.NO.ATagBeforeWrap=1
temp.menu.1.IFSUB&lt;temp.menu.1.NO
temp.menu.1.IFSUB=1
temp.menu.1.IFSUB.linkWrap=|&lt;!--[if IE 7]&gt;&lt;!--&gt;
temp.menu.1.IFSUB.wrapItemAndSub=&lt;li&gt;|&lt;/li&gt;
[version= &lt; 7] AND [browser= msie]
[else]
temp.menu.1.IFSUB.ATagParams=onClick="return false;"
[global]
temp.menu.1.IFSUB.ATagParams=class="a01"||class="a02"||class="a03"||class="a04"||class="a05"||class="a06"||class="a07"||class="a08"
temp.menu.1.IFSUB.allWrap(
|&lt;!--&lt;![endif]--&gt;
&lt;!--[if lte IE 6]&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;![endif]--&gt;
)
temp.menu.2=TMENU
temp.menu.2&lt;temp.menu.1
temp.menu.2.wrap=&lt;ul&gt;|&lt;/ul&gt;&lt;!--[if lte IE 6]&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/a&gt;&lt;![endif]--&gt;
temp.menu.2.NO.wrapItemAndSub=&lt;li&gt;|&lt;/li&gt;
temp.menu.2.IFSUB.wrapItemAndSub=&lt;li class="submen"&gt;|&lt;/li&gt;
temp.menu.2.IFSUB.ATagParams=
temp.menu.3&lt;temp.menu.2

#einbinden der CSS datei
page.includeCSS{
  menu=fileadmin/templates/menu.css
  menu.media=screen
}
#NAV&lt;temp.menu

#TEMPLATE
&lt;div class="s_menu"&gt;&lt;!--###NAV### --&gt;NAV&lt;!--###NAV### --&gt;&lt;/div&gt;










</pre> ]]>
		</description>
	</item>
	<item>
		<title>tt_news clear cache für eingeschränkte Benutzer</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=34&amp;Focus=40#Comment_40</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=34&amp;Focus=40#Comment_40</guid>
		<pubDate>Mon, 24 Nov 2008 13:04:52 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ Für eingeschränke Benutzer tt_news Cache leeren.<br />Für die Root Seite TSconfig<br /><br /><pre title="code" class="php">
#id der betroffenen Seiten alternativ/ all
TCEMAIN.clearCacheCmd = 224,325,223,324,179,194,330,316
</pre><br /><br />Berechtigung für die Gruppe in User TSconfig:<br /><pre title="code" class="php">
options.clearCache.pages = 1
options.clearCache.all = 1
</pre> ]]>
		</description>
	</item>
	<item>
		<title>mysqldump</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=33&amp;Focus=39#Comment_39</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=33&amp;Focus=39#Comment_39</guid>
		<pubDate>Mon, 24 Nov 2008 10:04:19 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ /usr/local/bin/mysqldump -u XXX -pXXX nameBackup &gt; /usr/home/mysql/nameBackup.sql<br />/usr/bin/mysqldump -u XXX -pXXX nameBackup &gt; /var/lib/mysql/nameBackup.sql ]]>
		</description>
	</item>
	<item>
		<title>[PIDinRootline=193]</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=2&amp;Focus=38#Comment_38</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=2&amp;Focus=38#Comment_38</guid>
		<pubDate>Wed, 19 Nov 2008 13:15:05 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ [globalVar = TSFE:id = 32]<br /># bla<br />[global] ]]>
		</description>
	</item>
	<item>
		<title>stdWrap</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=31&amp;Focus=37#Comment_37</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=31&amp;Focus=37#Comment_37</guid>
		<pubDate>Mon, 17 Nov 2008 14:56:01 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ Content Elemente verschieden wrapen (Adsense im p.bodytext mit CSS Float)<br /><br /><pre title="code" class="php">

tt_content.stdWrap.innerWrap.cObject {
	10 = TEXT
	10.value = &lt;div&gt;|&lt;/div&gt;
}

lib.stdheader.stdWrap.innerWrap.cObject = CASE
lib.stdheader.stdWrap.innerWrap.cObject {
	10 = TEXT
	10.value = &lt;div&gt;|&lt;/div&gt;
	key.field = section_frame
}

tt_content.text.20.innerWrap.cObject = CASE
tt_content.text.20.innerWrap.cObject {
	10 = TEXT
	10.value = &lt;div&gt;|&lt;/div&gt;
	key.field = section_frame
}
</pre> ]]>
		</description>
	</item>
	<item>
		<title>Ajax Image Editor</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=32&amp;Focus=36#Comment_36</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=32&amp;Focus=36#Comment_36</guid>
		<pubDate>Fri, 14 Nov 2008 09:41:07 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ Der AIE (<a href="http://www.ajax-image-editor.com" title="Ajax Image Editor" >Ajax Image Editor</a>) ist eine Rich Interne Applikation um Bilder online zu manipulieren. Das ganze funktioniert mit Javascript, PHP & ImageMagick.<br />Lizenztechnisch ist alles unter der GNU General Public License (GPL) 2007 verfügbar und somit einsetzbar.<br /><br />(Ajax Image Editor) is a rich internet application for manipulating images online. It's works with Mozilla Firefox and Internet Explorer. It uses HTML, JavaScript and Ext JS on client side and ImageMagick and PHP on server side.<br />AIE (Ajax Image Editor), formely known as Akoie was released as open source under the GNU General Public License (GPL) in 2007.<br /><br />auf jedenfall MEHR als einen Blick wert... ]]>
		</description>
	</item>
	<item>
		<title>stdWrap</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=31&amp;Focus=35#Comment_35</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=31&amp;Focus=35#Comment_35</guid>
		<pubDate>Fri, 31 Oct 2008 15:05:38 +0100</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
lib.spalte_links = CONTENT
lib.spalte_links {
table = tt_content
select.orderBy = sorting
select.where = colPos = 1
select.languageField = sys_language_uid
}


temp.inhalt = COA
temp.inhalt {
  stdWrap.required = 1
  stdWrap.wrap &lt;div&gt;|&lt;/div&gt;
)

  20 = COA
  20 {
    stdWrap.required = 1
    stdWrap.outerWrap.cObject = TEXT
    stdWrap.outerWrap.cObject {
      value &lt;div id="sidebar-a"&gt;|&lt;/div&gt;
      if.isTrue.numRows &lt; styles.content.get
    }
     10 &lt; lib.spalte_links
  }
  30 = COA
  30 {
    stdWrap.required = 1
    stdWrap.outerWrap.cObject = TEXT
    stdWrap.outerWrap.cObject {
      value = &lt;div id="content"&gt;|&lt;/div&gt;
      if.isTrue.numRows &lt; lib.spalte_links
    }
    10 &lt; styles.content.get
  }
}
</pre> ]]>
		</description>
	</item>
	<item>
		<title>userFunc</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=30&amp;Focus=34#Comment_34</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=30&amp;Focus=34#Comment_34</guid>
		<pubDate>Thu, 23 Oct 2008 11:49:33 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
[userFunc = user_meinefunction(var1,var2)]

[end]


&lt;?php
#localconf.php
function user_meinefunction($searchwords){
  $searchwordsarr=explode(",",$searchwords);
			foreach($searchwordsarr as $searchw){      
        $content .= $searchw;
      }
  }
  return false;
}
?&gt;
</pre> ]]>
		</description>
	</item>
	<item>
		<title>body tag mit &quot;getenv : HTTP_REFERER&quot;</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=29&amp;Focus=33#Comment_33</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=29&amp;Focus=33#Comment_33</guid>
		<pubDate>Fri, 17 Oct 2008 12:21:11 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
### HTTP_REFERER
page.bodyTagCObject = TEXT
 page.bodyTagCObject {
 data = getenv : HTTP_REFERER
 wrap = &lt;body id="whatever" onload="whatever('|')"&gt;
}
</pre> ]]>
		</description>
	</item>
	<item>
		<title>Bild skalieren GifBuilder</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=28&amp;Focus=32#Comment_32</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=28&amp;Focus=32#Comment_32</guid>
		<pubDate>Thu, 16 Oct 2008 14:16:06 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
file {
  XY = 75,50
  format = jpg
  quality = 100
  10 = IMAGE     
  10.file.import {
  cObject = TEXT
  cObject.value = fileadmin/bla.jpg
  cObject.override {
    required = 1
    field = media
    wrap = uploads/media/ |
    listNum = 0
  }
}
  10.file.quality = 76
  10.file.width = 75c # max 75px breit
  10.file.height = 50c-0 # max 50px hoch + ausrichtung 0=mitte
}
</pre> ]]>
		</description>
	</item>
	<item>
		<title>Upload / Edit &quot;php&quot; files in TYPO3 backend</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=27&amp;Focus=31#Comment_31</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=27&amp;Focus=31#Comment_31</guid>
		<pubDate>Wed, 15 Oct 2008 14:31:00 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ backend file upload error <br /><br /><pre title="code" class="php">
$TYPO3_CONF_VARS['BE']['fileExtensions']['webspace']['allow'] = 'php';
$TYPO3_CONF_VARS['BE']['fileExtensions']['webspace']['deny'] = '';
$TYPO3_CONF_VARS['BE']['fileDenyPattern'] = '';
</pre> ]]>
		</description>
	</item>
	<item>
		<title>removes hrefs or whatever</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=25&amp;Focus=29#Comment_29</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=25&amp;Focus=29#Comment_29</guid>
		<pubDate>Sat, 04 Oct 2008 17:26:21 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
&lt;?php
function remove_link($text){
        $strip_lchrs = “[^\s\(\)\[\]\{\}\.\,\;\:\?\!]”;
        $strip_rchrs = “[^\s\(\)\[\]\{\}\.\,\;\:\?\!\d]”;
        $prot_pat = $strip_lchrs . “[\S]*\:\/\/[\S]*\.[\S]*” . $strip_rchrs;
        $email_pat = $strip_lchrs . “[\S]*@[\S]*\.[\S]*” . $strip_rchrs;
        $general_pat = $strip_lchrs . “[\S]*\.[\S]*” . $strip_rchrs;
        $preg_pattern = “/(” . $prot_pat . “|” . $email_pat . “|” . $general_pat . “)/ei”;
        $text = preg_replace(“/&amp;lt;a[^&amp;gt;]*&amp;gt;.*&amp;lt;\/a&amp;gt;/iU”,“”,$text);
        $text = preg_replace($preg_pattern,“”, $text);
        return($text);
}
?&gt;
</pre> ]]>
		</description>
	</item>
	<item>
		<title>simple mail sender script php</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=24&amp;Focus=28#Comment_28</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=24&amp;Focus=28#Comment_28</guid>
		<pubDate>Thu, 11 Sep 2008 13:04:41 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">

&lt;?php
//print_r($GLOBALS);
?&gt;
&lt;?php
/***********************************************
* Description: simple mailsender script
* @author 
* http://petergasser.com
************************************************/


echo  "Vielen Dank Herr/Frau &lt;strong&gt;".$_REQUEST['nname']." ".$_REQUEST['vname']."&lt;/strong&gt; für Ihre Bestellung! &lt;br&gt;
			Wir werden Ihre Anfrage schnellstmöglich behandeln und Ihnen die Daten&lt;br&gt;
			per &lt;strong&gt;".$_REQUEST['vart']."&lt;/strong&gt; zuschicken.&lt;br&gt;
			Wenn Sie noch Fragen haben, informieren Sie sich bitte über die &lt;a href=\"Hilfe.html\" target=\"_blank\"&gt;Hilfe&lt;/a&gt; oder die &lt;a href=\"AGB.htm\" target=\"_blank\"&gt;AGB&lt;/a&gt;,&lt;br&gt;
			oder z&amp;ouml;gern sie nicht, uns pers&amp;ouml;nlich zu kontaktieren!&lt;br&gt;";

# mailer

#Empfänger
$hauptempf="bla@bla.com";
$sitename="*******";
$betreff="Bestellung bei";
$bestaetigung="BESTELLUNG: von Webseite: ".$sitename;
$empfaenger = "bla@bla.com,bla2@bla.com";

$line="*********************************************** \n";
$inhalt = "BESTELLUNG, ".$sitename." Folgende Daten wurden erfasst:\n";
$inhalt.= $line;
if ($_REQUEST['vname']!=''){$inhalt.= "Name: ".$_REQUEST['vname']."\n";}
if ($_REQUEST['nname']!=''){$inhalt.= "Nachname: ".$_REQUEST['nname']."\n";}
if ($_REQUEST['nname']!=''){$inhalt.= "Nachname: ".$_REQUEST['nname']."\n";}
if ($_REQUEST['firma']!=''){$inhalt.= "Firma: ".$_REQUEST['firma']."\n";}
if ($_REQUEST['land']!=''){$inhalt.= "Land: ".$_REQUEST['land']."\n";}
if ($_REQUEST['tel']!=''){$inhalt.= "Telefon: ".$_REQUEST['tel']."\n";}
if ($_REQUEST['fax']!=''){$inhalt.= "Telefax: ".$_REQUEST['fax']."\n";}
if ($_REQUEST['email']!=''){$inhalt.= "E-Mail: ".$_REQUEST['email']."\n";}
if ($_REQUEST['vart']!=''){$inhalt.= "Versandart: ".$_REQUEST['vart']."\n";}
if ($_REQUEST['isdn']!=''){$inhalt.= "ISDN-Nummer: ".$_REQUEST['isdn']."\n";}
if ($_REQUEST['uid']!=''){$inhalt.= "U.I.D Nummer: ".$_REQUEST['uid']."\n";}
if ($_REQUEST['mwst']!=''){$inhalt.= "MWST Nummer: ".$_REQUEST['mwst']."\n";}
if ($_REQUEST['mitteilung']!=''){$inhalt.= "Mitteilung: ".$_REQUEST['mitteilung']."\n";}
$inhalt.= $line;
if ($_REQUEST['bestellung']!=''){$inhalt.= "Bestellung: \n".strip_tags($_REQUEST['bestellung'])."\n";}
$inhalt.= $line;


$empfaenger=urlencode($empfaenger);
$betreff=urlencode($betreff);
$inhalt=urlencode($inhalt);
file('http://www.petergasser.com/mail.php?hauptempf='.$hauptempf.'&amp;empfaenger='.$empfaenger.'&amp;betreff='.$betreff.'&amp;inhalt='.$inhalt.'&amp;from='.$_REQUEST['email']);



$ccListe = explode(',', $empfaenger);		
foreach($ccListe as $k){
	mail($k,$betreff,$inhalt,"from: ".$_REQUEST['email']);
}

?&gt;
</pre> ]]>
		</description>
	</item>
	<item>
		<title>simple file caching script</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=23&amp;Focus=27#Comment_27</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=23&amp;Focus=27#Comment_27</guid>
		<pubDate>Wed, 10 Sep 2008 13:18:36 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
&lt;?php

function checkTheDate($file) {
$jetzt = mktime();
$erstellungs_datum = filemtime($file);
$ablaufzeit = $erstellungs_datum + 3600;
if ($jetzt &lt; $ablaufzeit){
return TRUE;
}
else {
return FALSE;
}
}
$datum = date("dmY");
$lang = ""; //deutsch leer lassen, für italienisch "it".
$filename="/usr/local/www/bla.bla/fileadmin/templates/news-".$datum."-".$lang.".html";
if (file_exists($filename)&amp;&amp; checkTheDate($filename)) {
//echo "cache file";
echo '&lt;div id=""&gt;';
include_once($filename);
echo '&lt;/div&gt;';
}
else{
$string = file_get_contents('http://bla.bla/rss/*****/index.php');
//nofollows
$suchmuster = '!internal-link!i'; 
$patternNeu ='internal-link" rel="nofollow';
$text = preg_replace($suchmuster, $patternNeu, $string);

$suchmuster2 = '!href="#!i'; 
$patternNeu2 ='href="index.php?id=48#';
$text2 = preg_replace($suchmuster2, $patternNeu2, $text);

$handle = fopen($filename, 'w');
fwrite($handle, $text2);
fclose($handle);
//echo "nuier cache file";
echo '&lt;div id=""&gt;'.$text2.'&lt;/div&gt;';
}
?&gt;
</pre> ]]>
		</description>
	</item>
	<item>
		<title>Weiterleitung einer alten Domain auf eine neue mit und ohne &quot;www&quot;</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=22&amp;Focus=26#Comment_26</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=22&amp;Focus=26#Comment_26</guid>
		<pubDate>Mon, 01 Sep 2008 08:59:45 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
RewriteEngine on
RewriteBase /
### Umleitung www [start]
RewriteCond %{HTTP_HOST} ^([^.]+)\.bla\.com$ [NC]
RewriteRule ^(.*)$ http://bla.com/$1 [R=301,L]

#RewriteCond %{HTTP_HOST} !^www\.bla\.com$ [NC]
#RewriteRule ^(.*)$ http://www.bla.com/$1 [R=301,L]
### Umleitung www [stop]
</pre> ]]>
		</description>
	</item>
	<item>
		<title>[PIDinRootline=193]</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=2&amp;Focus=25#Comment_25</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=2&amp;Focus=25#Comment_25</guid>
		<pubDate>Mon, 11 Aug 2008 12:44:45 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ [PIDinRootline = 71] &amp;&amp; [globalVar=GP:L=0]<br /># bla<br />[global] ]]>
		</description>
	</item>
	<item>
		<title>cache dateien schreiben</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=21&amp;Focus=24#Comment_24</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=21&amp;Focus=24#Comment_24</guid>
		<pubDate>Tue, 05 Aug 2008 20:10:06 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
&lt;?php  

$t_thema="";
$t_sHomeLink="";
$t_lPageNumber=t3lib_div::GPvar('lPageNumber');
$t_lang="0"; // 0=deu, 1=ita
if (!isset($t_lPageNumber)){$t_lPageNumber="1";}


function checkTheDate($file) {
	$jetzt = mktime();
	$erstellungs_datum = filemtime($file);
	$ablaufzeit = $erstellungs_datum + 3600;
	if ($jetzt &lt; $ablaufzeit){		
		return TRUE;
	} 
	else {
		return FALSE;
	}
}

$filename="/var/bla/html/fileadmin/template/curl_cache/".$t_thema."-".$t_lPageNumber."-".$aktueller_Zeit."-".$t_lang.".html";

if (file_exists($filename)&amp;&amp; checkTheDate($filename)) {
//echo "cache file";
include_once($filename);
}
else{
$ch = curl_init(); 
													curl_setopt($ch, CURLOPT_URL,"http://bla-curl.asp?sContentTypeListValueKey=$t_thema"); 
curl_setopt($ch, CURLOPT_POST, 1); 
curl_setopt($ch, CURLOPT_POSTFIELDS,"lPageNumber=$t_lPageNumber&amp;L=$t_lang&amp;sHomeLink=$t_sHomeLink"); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$tmp = curl_exec ($ch);
curl_close ($ch);
$handle = fopen($filename, 'w');
fwrite($handle, $tmp);
fclose($handle);
//echo "nuier cache file";
echo $tmp;
}
?&gt;
</pre> ]]>
		</description>
	</item>
	<item>
		<title>TCA max_size umstellen</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=20&amp;Focus=23#Comment_23</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=20&amp;Focus=23#Comment_23</guid>
		<pubDate>Fri, 01 Aug 2008 15:23:31 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ in "typo3conf/extTables.php"<br /><pre title="code" class="php">
$GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10485760;
$GLOBALS['TCA']['tt_content']['columns']['media']['config']['max_size'] = 10485760;
$GLOBALS['TCA']['tt_content']['columns']['multimedia']['config']['max_size'] = '10485760';
</pre> ]]>
		</description>
	</item>
	<item>
		<title>Mimachen bei Googleguide?</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=19&amp;Focus=22#Comment_22</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=19&amp;Focus=22#Comment_22</guid>
		<pubDate>Thu, 31 Jul 2008 20:07:14 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ einfach Anmelden und los gehts! ]]>
		</description>
	</item>
	<item>
		<title>RTE</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=17&amp;Focus=21#Comment_21</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=17&amp;Focus=21#Comment_21</guid>
		<pubDate>Tue, 29 Jul 2008 08:28:34 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ Justify<br /><pre title="code" class="php">

Im Constant Feld des Template:
# Activates RTE
content.RTE_compliant = 1

In der css Datei:
.justify { text-align: justify; }

im TSConfig der root Seite:
# General configuration of the available classes:
RTE.classes {
   justify {
   name = Justified
   value = text-align: justify;
   }
}
RTE.default.classesParagraph = justify
RTE.default.classesCharacter = justify
RTE.config.tt_content.bodytext.proc.allowedClasses = justify
</pre> ]]>
		</description>
	</item>
	<item>
		<title>Header Comment</title>
		<link>http://petergasser.com/codebase/comments.php?DiscussionID=18&amp;Focus=20#Comment_20</link>
		<guid isPermaLink="false">http://petergasser.com/codebase/comments.php?DiscussionID=18&amp;Focus=20#Comment_20</guid>
		<pubDate>Mon, 28 Jul 2008 10:10:55 +0200</pubDate>
		<author>Peter</author>
		<description>
			<![CDATA[ <pre title="code" class="php">
page.config {
headerComment (    
bla
)
}
</pre> ]]>
		</description>
	</item>
	
		</channel>
	</rss>