<?xml version="1.0" encoding="utf-8"?>
	
		<feed xmlns="http://www.w3.org/2005/Atom">
			<title type="text">Codebase -   </title>
			<updated>2010-09-09T14:34:53+02:00</updated>
			<id>http://petergasser.com/codebase/</id>
			<link rel="alternate" type="text/html" hreflang="en"
				href="http://petergasser.com/codebase/search.php?PostBackAction=Search&amp;Type=Comments"/>
			<link rel="self" type="application/atom+xml"
				href="http://petergasser.com/codebase/search.php?PostBackAction=Search&amp;Type=Comments&amp;Feed=ATOM"/>
			<generator
				uri="http://getvanilla.com/"
				version="1.1.5a">
				Lussumo Vanilla &amp; Feed Publisher
			</generator>
			<entry>
		<title>typo3 templates switcher , layout pro page definieren</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=46&amp;Focus=52#Comment_52" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=46&amp;Focus=52#Comment_52</id>
		<published>2009-11-02T15:47:13+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
#TSconfig rootpage
TCEFORM.pages.layout.altLabels.0 = Template Blau
TCEFORM.pages.layout.altLabels.1 = Template Rot

#setup
page.10 = TEMPLATE
page.10.template = ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>srfeuserregister,sr_feuser_register setup</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=45&amp;Focus=51#Comment_51" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=45&amp;Focus=51#Comment_51</id>
		<published>2009-10-29T11:39:29+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
## nur eu länder
plugin.tx_srfeuserregister_pi1.where.static_countries = cn_eu_member = 1
## default ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Get image pic from tt_news_cat record</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=44&amp;Focus=50#Comment_50" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=44&amp;Focus=50#Comment_50</id>
		<published>2009-09-19T09:58:44+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]

temp.pic = CONTENT
temp.pic {
  table = tt_news_cat
  select {
    pidInList = XX
    andWhere {
      data = GPVar:tx_ttnews|cat
      stdWrap.wrap = uid=|
    ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Multiple Firefox</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=43&amp;Focus=49#Comment_49" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=43&amp;Focus=49#Comment_49</id>
		<published>2009-05-24T12:19:43+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			Multiple Firefox Instances
WIN:
Start -&gt; 
[code lang=&quot;php&quot;]
&quot;%ProgramFiles%\Mozilla Firefox\firefox.exe&quot; -no-remote -P dev
[/code]
create a ...
		</summary>
		<content type="html">
			<![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]]>
		</content>
	</entry>
	<entry>
		<title>tt_news image crop : manipulate tt_news images GIFBUILDER</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=42&amp;Focus=48#Comment_48" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=42&amp;Focus=48#Comment_48</id>
		<published>2009-05-18T09:40:45+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			tt_news image crop : manipulate tt_news images GIFBUILDER

[code lang=&quot;php&quot;]
plugin.tt_news.displayLatest {
  image &gt;
  image.stdWrap.cObject = IMAGE
  image.stdWrap.cObject.file = ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Plesk 8.x.x backup files to Plesk 9.x xml files, Error: This file is not a valid backup file</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=41&amp;Focus=47#Comment_47" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=41&amp;Focus=47#Comment_47</id>
		<published>2009-02-17T16:15:14+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			Plesk Backup /Restore - 8.3 8.6 -&gt; 9.0 - psa convert
Error: This file is not a valid backup file

[code lang=&quot;php&quot;]
/usr/local/psa/bin/pre9-backup-convert -v convert -d ...
		</summary>
		<content type="html">
			<![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]]>
		</content>
	</entry>
	<entry>
		<title>Convert String (from array)</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=40&amp;Focus=46#Comment_46" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=40&amp;Focus=46#Comment_46</id>
		<published>2009-02-02T15:15:30+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]

		</summary>
		<content type="html">
			<![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]]>
		</content>
	</entry>
	<entry>
		<title>User-agent Disallow Robots.txt</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=39&amp;Focus=45#Comment_45" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=39&amp;Focus=45#Comment_45</id>
		<published>2008-12-02T14:05:18+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			User-agent: grub-client, grub, looksmart, WebZip, larbin, b2w/0.1, psbot, Python-urllib, NetMechanic, URL_Spider_Pro, CherryPicker, EmailCollector, EmailSiphon, WebBandit, EmailWolf, ExtractorPro, ...
		</summary>
		<content type="html">
			<![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]]>
		</content>
	</entry>
	<entry>
		<title>allow specific ip address ( .htaccess,  htaccess)</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=38&amp;Focus=44#Comment_44" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=38&amp;Focus=44#Comment_44</id>
		<published>2008-11-27T09:22:36+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
AuthName &quot;bla&quot;
AuthType Basic

order deny,allow
deny from all
allow from 10.10.10.10 #IP

[/code]
apache allow from
Protecting Content With .htaccess ...
		</summary>
		<content type="html">
			<![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]]>
		</content>
	</entry>
	<entry>
		<title>Horizontale list Navigation mit Css</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=35&amp;Focus=41#Comment_41" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=35&amp;Focus=41#Comment_41</id>
		<published>2008-11-25T10:02:08+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>tt_news clear cache für eingeschränkte Benutzer</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=34&amp;Focus=40#Comment_40" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=34&amp;Focus=40#Comment_40</id>
		<published>2008-11-24T13:04:52+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			Für eingeschränke Benutzer tt_news Cache leeren.
Für die Root Seite TSconfig

[code lang=&quot;php&quot;]
#id der betroffenen Seiten alternativ/ all
TCEMAIN.clearCacheCmd = ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>mysqldump</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=33&amp;Focus=39#Comment_39" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=33&amp;Focus=39#Comment_39</id>
		<published>2008-11-24T10:04:19+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			/usr/local/bin/mysqldump -u XXX -pXXX nameBackup &gt; /usr/home/mysql/nameBackup.sql
/usr/bin/mysqldump -u XXX -pXXX nameBackup &gt; /var/lib/mysql/nameBackup.sql
		</summary>
		<content type="html">
			<![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]]>
		</content>
	</entry>
	<entry>
		<title>[PIDinRootline=193]</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=2&amp;Focus=38#Comment_38" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=2&amp;Focus=38#Comment_38</id>
		<published>2008-11-19T13:15:05+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[globalVar = TSFE:id = 32]
# bla
[global]
		</summary>
		<content type="html">
			<![CDATA[[globalVar = TSFE:id = 32]<br /># bla<br />[global]]]>
		</content>
	</entry>
	<entry>
		<title>stdWrap</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=31&amp;Focus=37#Comment_37" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=31&amp;Focus=37#Comment_37</id>
		<published>2008-11-17T14:56:01+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			Content Elemente verschieden wrapen (Adsense im p.bodytext mit CSS Float)

[code lang=&quot;php&quot;]

tt_content.stdWrap.innerWrap.cObject {
	10 = TEXT
	10.value = ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Ajax Image Editor</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=32&amp;Focus=36#Comment_36" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=32&amp;Focus=36#Comment_36</id>
		<published>2008-11-14T09:41:07+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			Der AIE (Ajax Image Editor) ist eine Rich Interne Applikation um Bilder online zu manipulieren. Das ganze funktioniert mit Javascript, PHP &amp; ImageMagick.
Lizenztechnisch ist alles unter der GNU ...
		</summary>
		<content type="html">
			<![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...]]>
		</content>
	</entry>
	<entry>
		<title>stdWrap</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=31&amp;Focus=35#Comment_35" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=31&amp;Focus=35#Comment_35</id>
		<published>2008-10-31T15:05:38+01:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
lib.spalte_links = CONTENT
lib.spalte_links {
table = tt_content
select.orderBy = sorting
select.where = colPos = 1
select.languageField = ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>userFunc</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=30&amp;Focus=34#Comment_34" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=30&amp;Focus=34#Comment_34</id>
		<published>2008-10-23T11:49:33+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
[userFunc = user_meinefunction(var1,var2)]

[end]



[/code]
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>body tag mit &quot;getenv : HTTP_REFERER&quot;</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=29&amp;Focus=33#Comment_33" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=29&amp;Focus=33#Comment_33</id>
		<published>2008-10-17T12:21:11+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
### HTTP_REFERER
page.bodyTagCObject = TEXT
 page.bodyTagCObject {
 data = getenv : HTTP_REFERER
 wrap = 
}
[/code]
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Bild skalieren GifBuilder</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=28&amp;Focus=32#Comment_32" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=28&amp;Focus=32#Comment_32</id>
		<published>2008-10-16T14:16:06+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
file {
  XY = 75,50
  format = jpg
  quality = 100
  10 = IMAGE     
  10.file.import {
  cObject = TEXT
  cObject.value = fileadmin/bla.jpg
  cObject.override ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Upload / Edit &quot;php&quot; files in TYPO3 backend</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=27&amp;Focus=31#Comment_31" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=27&amp;Focus=31#Comment_31</id>
		<published>2008-10-15T14:31:00+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			backend file upload error 

[code lang=&quot;php&quot;]
$TYPO3_CONF_VARS['BE']['fileExtensions']['webspace']['allow'] = 'php';
$TYPO3_CONF_VARS['BE']['fileExtensions']['webspace']['deny'] = ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>removes hrefs or whatever</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=25&amp;Focus=29#Comment_29" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=25&amp;Focus=29#Comment_29</id>
		<published>2008-10-04T17:26:21+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]

[/code]
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>simple mail sender script php</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=24&amp;Focus=28#Comment_28" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=24&amp;Focus=28#Comment_28</id>
		<published>2008-09-11T13:04:41+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]



[/code]
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>simple file caching script</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=23&amp;Focus=27#Comment_27" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=23&amp;Focus=27#Comment_27</id>
		<published>2008-09-10T13:18:36+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]

[/code]
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Weiterleitung einer alten Domain auf eine neue mit und ohne &quot;www&quot;</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=22&amp;Focus=26#Comment_26" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=22&amp;Focus=26#Comment_26</id>
		<published>2008-09-01T08:59:45+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
RewriteEngine on
RewriteBase /
### Umleitung www [start]
RewriteCond %{HTTP_HOST} ^([^.]+)\.bla\.com$ [NC]
RewriteRule ^(.*)$ http://bla.com/$1 ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>[PIDinRootline=193]</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=2&amp;Focus=25#Comment_25" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=2&amp;Focus=25#Comment_25</id>
		<published>2008-08-11T12:44:45+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[PIDinRootline = 71] &amp;&amp; [globalVar=GP:L=0]
# bla
[global]
		</summary>
		<content type="html">
			<![CDATA[[PIDinRootline = 71] &amp;&amp; [globalVar=GP:L=0]<br /># bla<br />[global]]]>
		</content>
	</entry>
	<entry>
		<title>cache dateien schreiben</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=21&amp;Focus=24#Comment_24" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=21&amp;Focus=24#Comment_24</id>
		<published>2008-08-05T20:10:06+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]

[/code]
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>TCA max_size umstellen</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=20&amp;Focus=23#Comment_23" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=20&amp;Focus=23#Comment_23</id>
		<published>2008-08-01T15:23:31+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			in &quot;typo3conf/extTables.php&quot;
[code lang=&quot;php&quot;]
$GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Mimachen bei Googleguide?</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=19&amp;Focus=22#Comment_22" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=19&amp;Focus=22#Comment_22</id>
		<published>2008-07-31T20:07:14+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			einfach Anmelden und los gehts!
		</summary>
		<content type="html">
			<![CDATA[einfach Anmelden und los gehts!]]>
		</content>
	</entry>
	<entry>
		<title>RTE</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=17&amp;Focus=21#Comment_21" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=17&amp;Focus=21#Comment_21</id>
		<published>2008-07-29T08:28:34+02:00</published>
		<updated>2010-09-09T14:34:52+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			Justify
[code lang=&quot;php&quot;]

Im Constant Feld des Template:
# Activates RTE
content.RTE_compliant = 1

In der css Datei:
.justify { text-align: justify; }

im TSConfig der root ...
		</summary>
		<content type="html">
			<![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>]]>
		</content>
	</entry>
	<entry>
		<title>Header Comment</title>
		<link rel="alternate" href="http://petergasser.com/codebase/comments.php?DiscussionID=18&amp;Focus=20#Comment_20" type="application/xhtml+xml" hreflang="en"/>
		<id>http://petergasser.com/codebase/comments.php?DiscussionID=18&amp;Focus=20#Comment_20</id>
		<published>2008-07-28T10:10:55+02:00</published>
		<updated>2010-09-09T14:34:53+02:00</updated>
		<author>
			<name>Peter</name>
			<uri>http://petergasser.com/codebase/account.php?u=1</uri>
		</author>
		<summary type="text" xml:lang="en">
			[code lang=&quot;php&quot;]
page.config {
headerComment (    
bla
)
}
[/code]
		</summary>
		<content type="html">
			<![CDATA[<pre title="code" class="php">
page.config {
headerComment (    
bla
)
}
</pre>]]>
		</content>
	</entry>
	
		</feed>