<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Style Switcher</title>
	<atom:link href="http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/</link>
	<description>Helping others learn JavaScript and web development in general.</description>
	<lastBuildDate>Wed, 11 Aug 2010 13:44:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Drew Jones</title>
		<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/comment-page-1/#comment-5561</link>
		<dc:creator>Drew Jones</dc:creator>
		<pubDate>Wed, 07 Apr 2010 12:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.javascriptworkshop.com/?p=247#comment-5561</guid>
		<description>Thank you.

This is precisely what I&#039;ve been looking for, It&#039;s worked a charm!

I have recently fumbled along trying to find a script as straight forward as yours.

Many thanks
Drew</description>
		<content:encoded><![CDATA[<p>Thank you.</p>
<p>This is precisely what I&#8217;ve been looking for, It&#8217;s worked a charm!</p>
<p>I have recently fumbled along trying to find a script as straight forward as yours.</p>
<p>Many thanks<br />
Drew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fox</title>
		<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/comment-page-1/#comment-1270</link>
		<dc:creator>Fox</dc:creator>
		<pubDate>Mon, 13 Jul 2009 20:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.javascriptworkshop.com/?p=247#comment-1270</guid>
		<description>I use a style switcher from &lt;a href=&quot;http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm&quot; rel=&quot;nofollow&quot;&gt;Dynamic Drive&lt;/a&gt;. I want my header image to change when my style switches. e.g. &quot;picture-a.jpg&quot; in &quot;default.css&quot; and &quot;picture-b.jpg&quot; in &quot;style-b.css&quot;.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I use a style switcher from <a href="http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm" rel="nofollow">Dynamic Drive</a>. I want my header image to change when my style switches. e.g. &#8220;picture-a.jpg&#8221; in &#8220;default.css&#8221; and &#8220;picture-b.jpg&#8221; in &#8220;style-b.css&#8221;.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victar</title>
		<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/comment-page-1/#comment-1088</link>
		<dc:creator>Victar</dc:creator>
		<pubDate>Sat, 20 Jun 2009 09:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.javascriptworkshop.com/?p=247#comment-1088</guid>
		<description>I had to make a few changes to switcher.php for it work on my server.

setcookie(&quot;sitestyle&quot;, $_GET[&#039;set&#039;], time()+31536000, &quot;/&quot;, &quot;.domain.com&quot;);
header(&quot;Location: $_SERVER[HTTP_REFERER]&quot;);</description>
		<content:encoded><![CDATA[<p>I had to make a few changes to switcher.php for it work on my server.</p>
<p>setcookie(&#8220;sitestyle&#8221;, $_GET['set'], time()+31536000, &#8220;/&#8221;, &#8220;.domain.com&#8221;);<br />
header(&#8220;Location: $_SERVER[HTTP_REFERER]&#8220;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victar</title>
		<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/comment-page-1/#comment-1086</link>
		<dc:creator>Victar</dc:creator>
		<pubDate>Sat, 20 Jun 2009 09:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.javascriptworkshop.com/?p=247#comment-1086</guid>
		<description>I had to make a modification to switcher.php for it work on my server.

</description>
		<content:encoded><![CDATA[<p>I had to make a modification to switcher.php for it work on my server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Stepanski</title>
		<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/comment-page-1/#comment-474</link>
		<dc:creator>Frank Stepanski</dc:creator>
		<pubDate>Sun, 03 May 2009 02:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.javascriptworkshop.com/?p=247#comment-474</guid>
		<description>Hi,

Did you make any changes to the code? Nothing happens? hmmm..

How would you want to change images? Within a different style sheet? A separate style sheet (.css) could be used with a different path to the image(s) that need to be changed.

Frank</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Did you make any changes to the code? Nothing happens? hmmm..</p>
<p>How would you want to change images? Within a different style sheet? A separate style sheet (.css) could be used with a different path to the image(s) that need to be changed.</p>
<p>Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alidad</title>
		<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/comment-page-1/#comment-473</link>
		<dc:creator>Alidad</dc:creator>
		<pubDate>Sun, 03 May 2009 01:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.javascriptworkshop.com/?p=247#comment-473</guid>
		<description>hi, this is nice code I tried your code for some reason is not working, i was wondering if this switch css also allow to switch images too! becuase most of my css are using with images path, and trying to switch between two color of same images, does is works with your code! becuase i have tried that myself and is not working.

any idea!

AM</description>
		<content:encoded><![CDATA[<p>hi, this is nice code I tried your code for some reason is not working, i was wondering if this switch css also allow to switch images too! becuase most of my css are using with images path, and trying to switch between two color of same images, does is works with your code! becuase i have tried that myself and is not working.</p>
<p>any idea!</p>
<p>AM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Stepanski</title>
		<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/comment-page-1/#comment-82</link>
		<dc:creator>Frank Stepanski</dc:creator>
		<pubDate>Tue, 21 Apr 2009 13:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.javascriptworkshop.com/?p=247#comment-82</guid>
		<description>You’re absolutely right, I forgot to add code to prevent that type of vulnerability.

Thanks Chris!</description>
		<content:encoded><![CDATA[<p>You’re absolutely right, I forgot to add code to prevent that type of vulnerability.</p>
<p>Thanks Chris!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Heilmann</title>
		<link>http://www.javascriptworkshop.com/2009/02/12/php-style-switcher/comment-page-1/#comment-80</link>
		<dc:creator>Chris Heilmann</dc:creator>
		<pubDate>Tue, 21 Apr 2009 13:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.javascriptworkshop.com/?p=247#comment-80</guid>
		<description>Nice code, but you don&#039;t do any filtering on the name of the style, which means I could inject any javascript into the page, steal people&#039;s cookies, log in as them and so on... 

Would be good to filter with a regular expression to check that the name is only a word and doesn&#039;t contain any tags or %3f and all the other nasties: 

&lt;a target=&quot;_blank&quot; href=&quot;https://www.owasp.org/index.php?title=XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet&quot; rel=&quot;nofollow&quot;&gt;Cross Site Scripting Cheat Sheet&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Nice code, but you don&#8217;t do any filtering on the name of the style, which means I could inject any javascript into the page, steal people&#8217;s cookies, log in as them and so on&#8230; </p>
<p>Would be good to filter with a regular expression to check that the name is only a word and doesn&#8217;t contain any tags or %3f and all the other nasties: </p>
<p><a target="_blank" href="https://www.owasp.org/index.php?title=XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet" rel="nofollow">Cross Site Scripting Cheat Sheet</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
