<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gabriel Crowe &#187; Uncategorized</title>
	<atom:link href="http://www.gabrielcrowe.co.uk/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gabrielcrowe.co.uk</link>
	<description>Web Designer, Ecommerce, Wordpress and Design for Print In Bishop Auckland</description>
	<lastBuildDate>Thu, 27 Oct 2011 12:05:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>The simplest php login script.</title>
		<link>http://www.gabrielcrowe.co.uk/2011/03/27/the-simplest-php-login-script/</link>
		<comments>http://www.gabrielcrowe.co.uk/2011/03/27/the-simplest-php-login-script/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 15:17:39 +0000</pubDate>
		<dc:creator>Gabriel Crowe</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gabrielcrowe.co.uk/?p=284</guid>
		<description><![CDATA[If you are making simple projects with custom code for clients in php then you may want to password protect that page from unwanted access. Please be aware that this isn&#8217;t super secure but its enough to stop the mainstay of data predators. 1 file, paste in your code in the area provided and set [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>If you are making simple projects with custom code for clients in php then you may want to password protect that page from unwanted access. Please be aware that this isn&#8217;t super secure but its enough to stop the mainstay of data predators.</p>
<p>1 file, paste in your code in the area provided and set the password in the variables provided. Simples.</p></blockquote>
<p>&lt;?php</p>
<p>$username = &quot;admin&quot;;<br />
$password = &quot;password&quot;;</p>
<p>//get a session<br />
session_start();<br />
//login<br />
$login=false;<br />
if ($_POST[&#39;txtUsername&#39;] != $username || $_POST[&#39;txtPassword&#39;] != $password)<br />
{<br />
	$login=false; //unset($_SESSION[&#39;username&#39;]);<br />
} else {<br />
	$login=true; $_SESSION[&#39;username&#39;]=$username;<br />
}<br />
//log out<br />
if (isset($_GET[&#39;logout&#39;])) { unset($_SESSION[&#39;username&#39;]); $login=false;}<br />
//stay logged in<br />
if (isset($_SESSION[&#39;username&#39;])){ $login=true; }</p>
<p>?&gt;<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;<br />
&lt;html&gt;<br />
	&lt;head&gt;<br />
		&lt;title&gt;Very Simple Secure Page&lt;/title&gt;<br />
	&lt;/head&gt;</p>
<p>	&lt;body&gt;</p>
<p>	&lt;?php<br />
	if ($login==true) {<br />
	?&gt;<br />
	&lt;a href=&quot;?logout=true&quot;&gt;Log-out&lt;/a&gt;<br />
	&lt;?php<br />
	}<br />
	?&gt;	</p>
<p>&lt;?php<br />
if ($login==false) {<br />
?&gt;<br />
&lt;h2&gt;Login&lt;/h2&gt; </p>
<p>&lt;form name=&quot;form&quot; method=&quot;post&quot; action=&quot;&lt;?php echo $_SERVER[&#39;PHP_SELF&#39;]; ?&gt;&quot;&gt;<br />
    &lt;p&gt;&lt;label for=&quot;txtUsername&quot;&gt;Username:&lt;/label&gt;<br />
    &lt;br /&gt;&lt;input type=&quot;text&quot; title=&quot;Enter your Username&quot; name=&quot;txtUsername&quot; /&gt;&lt;/p&gt; </p>
<p>    &lt;p&gt;&lt;label for=&quot;txtpassword&quot;&gt;Password:&lt;/label&gt;<br />
    &lt;br /&gt;&lt;input type=&quot;password&quot; title=&quot;Enter your password&quot; name=&quot;txtPassword&quot; /&gt;&lt;/p&gt; </p>
<p>    &lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Login&quot; /&gt;&lt;/p&gt; </p>
<p>&lt;/form&gt; </p>
<p>&lt;?php </p>
<p>}<br />
else { </p>
<p>?&gt; 	</p>
<p>&lt;!&#8211; ###### THIS IS WHERE YOUR PROTECTED CONTENT GOES ##### &#8211;&gt;<br />
&lt;h1&gt;This is protected&lt;/h1&gt;<br />
&lt;p&gt;Edit this file to change the password&lt;/p&gt;</p>
<p>&lt;?php<br />
}<br />
?&gt;<br />
	&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gabrielcrowe.co.uk/2011/03/27/the-simplest-php-login-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPad 2 and blogging</title>
		<link>http://www.gabrielcrowe.co.uk/2011/03/26/ipad-2-and-blogging/</link>
		<comments>http://www.gabrielcrowe.co.uk/2011/03/26/ipad-2-and-blogging/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 13:26:51 +0000</pubDate>
		<dc:creator>Gabriel Crowe</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[first post]]></category>
		<category><![CDATA[iPad 2]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.gabrielcrowe.co.uk/2011/03/26/ipad-2-and-blogging/</guid>
		<description><![CDATA[The wordpress app for iPad 2 is working just fine as you can all see. Oe thing which may help pele is that you&#8217;ll need to use a recent version of the wordpress software. I installed 3.1 after the version I had refused to authenticate with the latest version of the iOS app from the [...]]]></description>
			<content:encoded><![CDATA[<p>The wordpress app for iPad 2 is working just fine as you can all see. Oe thing which may help pele is that you&#8217;ll need to use a recent version of the wordpress software. I installed 3.1 after the version I had refused to authenticate with the latest version of the iOS app from the apple app store.</p>
<p>I&#8217;ve never really played on an iPad until yesterday when I picked this one up. What a handy gadget. I already added my RSS and my favourite websites and I can see my MacBook getting a lot less love. I can see dead space and pants versus zombies getting a lot more love.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gabrielcrowe.co.uk/2011/03/26/ipad-2-and-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed a #youtube video in #prestashop</title>
		<link>http://www.gabrielcrowe.co.uk/2011/03/17/embed-a-youtube-video-in-prestashop/</link>
		<comments>http://www.gabrielcrowe.co.uk/2011/03/17/embed-a-youtube-video-in-prestashop/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 10:13:40 +0000</pubDate>
		<dc:creator>Gabriel Crowe</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gabrielcrowe.co.uk/?p=273</guid>
		<description><![CDATA[Here is a cheeky hack that lets you embed a single youtube vid in your prestashop products. No plugins or hacks are necessary. Just find your product.tpl (located in your current template folder), find where you&#8217;d like the video (I like just after the description works well) and paste this code: {if $product-&#62;supplier_reference} &#60;iframe title="YouTube [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a cheeky hack that lets you embed a single youtube vid in your prestashop products. No plugins or hacks are necessary. Just find your product.tpl (located in your current template folder), find where you&#8217;d like the video (I like just after the description works well) and paste this code:</p>
<pre>{if $product-&gt;supplier_reference}
&lt;iframe title="YouTube video player" class="youtube-player" type="text/html" width="570" height="520" src="http://www.youtube.com/embed/{$product-&gt;supplier_reference}" frameborder="0" allowFullScreen&gt;&lt;/iframe&gt;
{/if}</pre>
<p>supplier_reference? well, what we did was reused a field that we never use. If you don&#8217;t use it either, then help yourself to a free video plugin.</p>
<p>In the supplier reference in your product, paste the youtube video code, found in the url like this one: EK2tWVj6lXw from this video:</p>
<p>http://www.youtube.com/watch?v=EK2tWVj6lXw</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gabrielcrowe.co.uk/2011/03/17/embed-a-youtube-video-in-prestashop/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

