<?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>Lair360 Blog &#187; PHP &amp; HTML Script</title>
	<atom:link href="http://lair360.co.uk/blog/category/php-html-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://lair360.co.uk/blog</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 07:14:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Random Password GEN (PHP Format)</title>
		<link>http://lair360.co.uk/blog/1129/random-password-gen-php-format/</link>
		<comments>http://lair360.co.uk/blog/1129/random-password-gen-php-format/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 16:56:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=1129</guid>
		<description><![CDATA[This little PHP script, yet powerful, was programmed months ago, just to generate random &#8211; password and nothing else. But, to be truthful, this project does give me physical stress and nearly drive me against the wall! I am not joking&#8230; Now have fun and don’t get addicted. It may hook you like a fishing [...]]]></description>
			<content:encoded><![CDATA[<p>This little PHP script, yet powerful, was programmed months ago, just to generate random &#8211; password and nothing else. But, to be truthful, this project does give me physical stress and nearly drive me against the wall! I am not joking&#8230;</p>
<p>Now have fun and don’t get addicted. It may hook you like a fishing rod!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>What You Need:</strong> <a href="http://notepad-plus-plus.org/" target="_blank">Notepad Plus</a> &#038; Cpanel Hosting</p>
<p>1.] Execute ‘Notepad Plus’ and copy this script. But, don’t forget to save it as ‘php’ format. Here is an example: ‘pass-generator.php’</p>
<pre class="brush: plain; title: ; notranslate">
&lt;META HTTP-EQUIV=Refresh CONTENT=&quot;5&quot;&gt;
&lt;?php
function GenPassCK($minLength = '16', $maxLength = '16', $maxSymbols = '6')
/* Please Do NOT Modify Any Of The Settings Beyond This Comment! */
{
    $symbolCount = 0;
    srand((double)microtime() * 1000003);
    for ($i = 0; $i &lt; rand($minLength, $maxLength); $i++) { do {
            $char = rand(35, 124);
            	$symbolCount += $isSymbol = (!in_array($char, range(48, 57)) &amp;&amp; !in_array($char, range(65, 90)) &amp;&amp; !in_array($char, range(97, 122)));
            		if ($symbolCount &lt;= $maxSymbols || !$isSymbol) { break; }
        } while (true);
	$passwd = sprintf('%s%c', isset($passwd) ? $passwd : NULL, $char);
    } return $passwd; }
?&gt;

&lt;?php echo GenPassCK(); ?&gt;
</pre>
<p><strong>Tips:</strong> look for this line (below) and change your password configuration: “minLength, maxLenght, maxSymbol”. But, if you want your ‘password’ to generate equal &#8211; length, all you need to do is provide the same digits for these function: “maxLenght, maxSymbol”.</p>
<pre class="brush: plain; title: ; notranslate">
function GenPassCK($minLength = '16', $maxLength = '16', $maxSymbols = '6')
</pre>
<p>2.] Upload your PHP script and look for it on your server!</p>
<p><strong>Example:</strong> &#8220;myserver.com/my-files.php&#8221;</p>
<p><strong>“PHP programming is similar to maths, like DNA, like Einstein”</strong></p>
<p><strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/1129/random-password-gen-php-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Implement ‘@font-face’ Attribute For Beginners</title>
		<link>http://lair360.co.uk/blog/1126/how-to-implement-font-face-attribute-for-beginners/</link>
		<comments>http://lair360.co.uk/blog/1126/how-to-implement-font-face-attribute-for-beginners/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 18:34:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=1126</guid>
		<description><![CDATA[According to research from various designers and web developers, there is a great number of arguments regarding FONTS which are NOT supported by Windows &#038; Mac OS. So, to achieve something different which is not pre-installed by the operating system, the user must integrate CSS and move away from ‘Web-safe fonts’. However, this may seem [...]]]></description>
			<content:encoded><![CDATA[<p>According to research from various designers and web developers, there is a great number of arguments regarding FONTS which are NOT supported by Windows &#038; Mac OS. So, to achieve something different which is not pre-installed by the operating system, the user must integrate CSS and move away from ‘Web-safe fonts’. However, this may seem crazy for those who like to keep their website friendly for crawlers. But, to be truthful, it does make a BIG difference to your webpage and attract potential visitors!</p>
<p>Now here is a short tutorial for anyone who likes to give their webpage a little makeup. But, don’t forget to convert your chosen fonts for individual browser!</p>
<p><strong>IE7+ (All Version) –</strong> EOT Format<br />
<strong>Safari 3.2 &#038; Above –</strong> TTF / OTF<br />
<strong>Google Chrome (All Version) -</strong> SVG / TTF / OTF<br />
<strong>FireFox 3.6 &#038; Above –</strong> TTF / OTF<br />
<strong>Opera 10 &#038; Above –</strong> TTF / OTF</p>
<p><strong>What You Need:</strong> <a href="http://notepad-plus-plus.org/" target="_blank">Notepad Plus</a>, GPL / Free Non-Commercial / Licensed Fonts (Which is purchased by YOU!)</p>
<p>1.] Convert your chosen fonts and drop them into your ‘project’ directory or root directory (hosting server). But, for those who would rather look online and convert it directly, please look into Google and find a service to convert it.</p>
<p>2.] Execute ‘Notepad Plus’ and copy these&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
@font-face {
font-family: AGENCYB01;
src: url(&quot;EurostileLTStd-Bold.eot&quot;);
src: local(&quot;AGENCYB01&quot;),
url(&quot;EurostileLTStd-Bold.otf&quot;),
url(&quot;EurostileLTStd-Bold.ttf&quot;),
url(&quot;EurostileLTStd-Bold.woff&quot;);
}
</pre>
<p>2.] Give your Fonts a different name. Look at my example if you don’t understand. See any difference?</p>
<pre class="brush: plain; title: ; notranslate">
@font-face {
font-family: AGENTSX;
src: url(&quot;EurostileLTStd-Bold.eot&quot;);
src: local(&quot;AGENTSX&quot;),
url(&quot;EurostileLTStd-Bold.otf&quot;),
url(&quot;EurostileLTStd-Bold.ttf&quot;),
url(&quot;EurostileLTStd-Bold.woff&quot;);
}
</pre>
<p>If your webpage is located under another directory, such as one level deep, then take a look at this example. It’s not that complicated. Also, to keep everything simple, please don’t move your Fonts under another directory. Please keep them in your ‘root’ directory.</p>
<pre class="brush: plain; title: ; notranslate">
@font-face {
font-family: AGENTSX;
src: url(&quot;../EurostileLTStd-Bold.eot&quot;),
src: local(&quot;AGENTSX&quot;),
url(&quot;../EurostileLTStd-Bold.otf&quot;),
url(&quot;../EurostileLTStd-Bold.ttf&quot;),
url(&quot;../EurostileLTStd-Bold.woff&quot;);
}
</pre>
<p>For those who doesn&#8217;t support &#8216;Internet Explorer&#8217;, please use this alternate method. The only difference, it doesn&#8217;t have EOT format (Fonts).</p>
<pre class="brush: plain; title: ; notranslate">
@font-face {
font-family: AGENCYB01;
src: url(&quot;EurostileLTStd-Bold.otf&quot;);
src: local(&quot;AGENCYB01&quot;),
url(&quot;EurostileLTStd-Bold.ttf&quot;),
url(&quot;EurostileLTStd-Bold.woff&quot;);
}
</pre>
<p><strong>Notes:</strong> from my point of view, ‘Internet Explorer’ is considered ‘Fussy, Troublesome &#038; Resource Hogging’. I also NEVER use IE as my default browser. I only support FireFox, Chrome &#038; Opera. They perform better and render my webpage, WAY BETTER!</p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/1126/how-to-implement-font-face-attribute-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript – Disable Right Click!</title>
		<link>http://lair360.co.uk/blog/1080/javascript-%e2%80%93-disable-right-click/</link>
		<comments>http://lair360.co.uk/blog/1080/javascript-%e2%80%93-disable-right-click/#comments</comments>
		<pubDate>Tue, 03 May 2011 22:38:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=1080</guid>
		<description><![CDATA[For years, I had been using this script just to stop other user from stealing my design and precious artwork. However, this script may not be useful for webmaster. But, it does encourage various user to become self-aware and telling them not to steal / copy without permission. 1.] Copy this script and save everything [...]]]></description>
			<content:encoded><![CDATA[<p>For years, I had been using this script just to stop other user from stealing my design and precious artwork. However, this script may not be useful for webmaster. But, it does encourage various user to become self-aware and telling them not to steal / copy without permission.</p>
<p>1.] Copy this script and save everything as “right-click-disable.js” (without the quotes).</p>
<pre class="brush: plain; title: ; notranslate">
//Disable Right-Click Script
//Copyrighted By Lair360 2008
var message=&quot;You are forbidden to copy my work!&quot;;
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&amp;&amp;!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function(&quot;alert(message);return false&quot;)
</pre>
<p>2.] Upload the given – script and place this script in-between your ‘HEAD’ tags.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;right-click-disable.js&quot;&gt;&lt;/script&gt;
</pre>
<p>3.] Save your changes and enjoy!</p>
<p><strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/1080/javascript-%e2%80%93-disable-right-click/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Source – Simple ADS Rotator!</title>
		<link>http://lair360.co.uk/blog/1067/php-source-%e2%80%93-simple-ads-rotator/</link>
		<comments>http://lair360.co.uk/blog/1067/php-source-%e2%80%93-simple-ads-rotator/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 18:23:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=1067</guid>
		<description><![CDATA[For those who is against “Adsense” and other advertised agency, then why don’t you try this script on your own site? It’s also simple and very easy to implement &#8211; if your server has “parsing – enabled” for HTML WebPages. Notes: this script will only work on webpages which utilize PHP source. Nevertheless, it will [...]]]></description>
			<content:encoded><![CDATA[<p>For those who is against “Adsense” and other advertised agency, then why don’t you try this script on your own site? It’s also simple and very easy to implement &#8211; if your server has “parsing – enabled” for HTML WebPages.</p>
<p><strong>Notes:</strong> this script will only work on webpages which utilize PHP source. Nevertheless, it will also work on hybrid &#8211; website which deploys PHP parsing for HTML.</p>
<p>1.] Copy this script and save it as: “ads-block.php”. But, don’t forget to integrate this file on your server.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$fcontents = join ('', file ('../ads-block/ads-block.txt'));
$s_con = split(&quot;#&quot;,$fcontents);

$banner_no = rand(0,(count($s_con)-1));
echo $s_con[$banner_no];
?&gt;
</pre>
<p>2.] Create a new ‘text’ file (*.txt) and give it a name. After that, you must integrate these sources and modify it to your hearth’s content. However, you must keep this ‘#’ symbol. This is basically used as a ‘break’ for each advert, instead of spacing.</p>
<pre class="brush: php; title: ; notranslate">
&lt;a href=&quot;Link01&quot; target=&quot;_blank&quot; &gt;
&lt;img src=&quot;/ad-sponsor/468x60_ads.jpg&quot; width=&quot;468&quot; height=&quot;60&quot; alt=&quot;Adverts Here!&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
#
&lt;a href=&quot;Link02&quot; target=&quot;_blank&quot; &gt;
&lt;img src=&quot;/ad-sponsor/468x60_ads.jpg&quot; width=&quot;468&quot; height=&quot;60&quot; alt=&quot;Adverts Here!&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
#
&lt;a href=&quot;Link03&quot; target=&quot;_blank&quot; &gt;
&lt;img src=&quot;/ad-sponsor/468x60_ads.jpg&quot; width=&quot;468&quot; height=&quot;60&quot; alt=&quot;Adverts Here!&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
#
&lt;a href=&quot;Link04&quot; target=&quot;_blank&quot; &gt;
&lt;img src=&quot;/ad-sponsor/468x60_ads.jpg&quot; width=&quot;468&quot; height=&quot;60&quot; alt=&quot;Adverts Here!&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
</pre>
<p>3.] Grab this script and place them anywhere on your webpage. However, you will need to replace &#8220;php_include&#8221; directory and point it to this file: &#8220;ads-block.php&#8221;. But, don&#8217;t forget to check your server if you want to use these within HTML environment.</p>
<p>WordPress</p>
<pre class="brush: php; title: ; notranslate">&lt;?php include (TEMPLATEPATH . '/ads-block.php'); ?&gt;</pre>
<p>HTML Webpage</p>
<pre class="brush: php; title: ; notranslate">&lt;?php include(&quot;../directory/ads-block.php&quot;); ?&gt;</pre>
<p>WordPress / HTML</p>
<pre class="brush: php; title: ; notranslate">&lt;?php include $_SERVER['DOCUMENT_ROOT'] . &quot;/directory/ads-block.php&quot;; ?&gt;</pre>
<p>4.] You are done!</p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/1067/php-source-%e2%80%93-simple-ads-rotator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JScript &#8211; Digital Clock</title>
		<link>http://lair360.co.uk/blog/1041/jscript-digital-clock/</link>
		<comments>http://lair360.co.uk/blog/1041/jscript-digital-clock/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 17:48:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=1041</guid>
		<description><![CDATA[If you have a website and you want some distraction, then take a look at this script. It&#8217;s basically a &#8216;digital clock&#8217; project written in JScript / HTML encoding. Have FUN! Copyrighted By Lair360]]></description>
			<content:encoded><![CDATA[<p>If you have a website and you want some distraction, then take a look at this script. It&#8217;s basically a &#8216;digital clock&#8217; project written in JScript / HTML encoding.</p>
<p>Have FUN!</p>
<pre class="brush: plain; title: ; notranslate">
&lt;head&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
#digital-clock.styling {
width: 90px;
min-width: 90px;
color: red;
background-color: black;
text-align: center;
font-size: 12px;
font-weight: normal;
font-family: BankGothic Md BT, Helvetica, Arial, Geneva;
border-width: 2px;
border-style: ridge;
border-color: red;
padding: 2px;
}
--&gt;
&lt;/style&gt;
&lt;script&gt;
&lt;!--
/*LCD Clock v2*/
/*http://lair360.co.uk*/
/*Copyrighted By Lair360*/

function show1(){
if (!document.all&amp;&amp;!document.getElementById)
return
thelement=document.getElementById? document.getElementById(&quot;digital-clock&quot;): document.all.digital-clock
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn=&quot;PM&quot;
if (hours&lt;12)
dn=&quot;AM&quot;
if (hours&gt;12)
hours=hours-12
if (hours==0)
hours=12
if (minutes&lt;=9)
minutes=&quot;0&quot;+minutes
if (seconds&lt;=9)
seconds=&quot;0&quot;+seconds
var ctime=hours+&quot;:&quot;+minutes+&quot;:&quot;+seconds+&quot; &quot;+dn
thelement.innerHTML=&quot;&quot;+ctime+&quot;&quot;
setTimeout(&quot;show1()&quot;,1000)
}
window.onload=show1
//--&gt;
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;span id=&quot;digital-clock&quot; class=&quot;styling&quot;&gt;&lt;/span&gt;
&lt;/body&gt;
</pre>
<p><strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/1041/jscript-digital-clock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free CSS Sidebar Vol 3</title>
		<link>http://lair360.co.uk/blog/1034/free-css-sidebar-vol-3/</link>
		<comments>http://lair360.co.uk/blog/1034/free-css-sidebar-vol-3/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 12:39:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=1034</guid>
		<description><![CDATA[For the last weeks, I was busy coding another website for my College assignment. It was a pain in the neck and I&#8217;ve managed to complete most of it. For now, I would like you to have fun and download this project. However, please don&#8217;t sell my work / script for money. They are only [...]]]></description>
			<content:encoded><![CDATA[<p>For the last weeks, I was busy coding another website for my College assignment. It was a pain in the neck and I&#8217;ve managed to complete most of it. For now, I would like you to have fun and download this project. However, please don&#8217;t sell my work / script for money. They are only for educational purposes.</p>
<p>1.] Copy these script and save it as a CSS file: &#8220;sidebar-style.css.&#8221; But, for the other parts, just save it as a HTML format. However, you will need this to make it work! Please add this line in-between your headers.</p>
<pre class="brush: xml; title: ; notranslate">&lt;style type=&quot;text/css&quot;&gt;@import url(&quot;sidebar-style.css&quot;);&lt;/style&gt;</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<strong>Part 01 &#8211; CSS</strong></p>
<pre class="brush: css; title: ; notranslate">
#css_sidebar {
}
#css_sidebar ul {
 width: 150px;
 letter-spacing: 2px;
 font-weight: bold;
 font-style: normal;
 font-family: Arial, Helvetica, sans-serif;
 font-size: 12px;
 border-top: 1px solid #000000;
 border-right: 2px solid #000000;
 border-bottom: 3px solid #000000;
 border-left: 1px solid #000000;
 margin:0;
 padding:0;
 list-style:none;
}
#css_sidebar li a {
 font-family: Arial, Helvetica, sans-serif;
 font-size: 12px;
 font-weight: normal;
 font-style: normal;
 text-decoration: none;
 padding-left: 6px;
 padding-bottom: 4px;
 color: #FFFFFF;
 padding-top: 4px;
 padding-right: 12px;
 text-align: left;
 background: #FF8000;
 border-top: 1px #84C184;
 border-right: 1px #000000;
 border-bottom: 1px solid #000000;
 border-left: 6px solid #FF8000;
 display:block;
 width:100%;
}
#css_sidebar li a:hover {
 background: #E87400;
 border-bottom: 1px solid #000000;
 border-left: 6px solid #000000;
}
#css_sidebar li.menucurrent a {
 text-align: right;
}
#css_sidebar li.menucaption {
 color: #FFFFFF;
 font-style: normal;
 padding-left: 5px;
 font-size: 14px;
 padding-bottom: 4px;
 padding-top: 4px;
 font-family: Courier New, Courier, mono;
 letter-spacing: 1px;
 text-align: left;
 background: #000000;
 display:block;
}
html&gt;body #css_sidebar li a {
 width: auto;
}
</pre>
<p><strong>Part 02 &#8211; HTML</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;css_sidebar&quot;&gt;&lt;ul&gt;
&lt;li class=&quot;menucaption&quot;&gt;Primary02&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link01&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link02&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link03&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link04&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link05&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;menucaption&quot;&gt;Primary01&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link01&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link02&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link03&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link04&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;&quot;&gt;link05&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
</pre>
<p><strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/1034/free-css-sidebar-vol-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My little iconic image from the web!</title>
		<link>http://lair360.co.uk/blog/913/my-little-iconic-image-from-the-web/</link>
		<comments>http://lair360.co.uk/blog/913/my-little-iconic-image-from-the-web/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 20:34:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mini - Tutorials]]></category>
		<category><![CDATA[PHP & HTML Script]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=913</guid>
		<description><![CDATA[Version: 32 Build 11 My little iconic image from the web! Designing your very own icons is really fun and easy! But, wait a minute&#8230; what type of strings should I use for my website? Well, the main &#8211; philosophy is not hard. The basic strings is totally similar to &#8216;CSS import&#8217; script. But, don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Version: 32 Build 11</p>
<p>My little iconic image from the web!</strong></p>
<p>Designing your very own icons is really fun and easy! But, wait a minute&#8230; what type of strings should I use for my website?</p>
<p>Well, the main &#8211; philosophy is not hard. The basic strings is totally similar to &#8216;CSS import&#8217; script. But, don&#8217;t forget to check your page and drop them in-between your header. It’s pretty simple….</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;shortcut icon&quot; href=&quot;/images/favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt;

&lt;link rel=&quot;shortcut icon&quot; href=&quot;/images/favicon.ico&quot;&gt;
</pre>
<p>Please select only one and place them inside / between your header-tags. But, don’t forget to replace the default directory with your own icons.</p>
<p>Thank you for your time!</p>
<p><strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/913/my-little-iconic-image-from-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repel those mosquito robots and spammers!</title>
		<link>http://lair360.co.uk/blog/814/repel-those-mosquito-robots-and-spammers/</link>
		<comments>http://lair360.co.uk/blog/814/repel-those-mosquito-robots-and-spammers/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 23:03:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=814</guid>
		<description><![CDATA[Version: 13.1 Revision: 13 Build 16 Repel those mosquito robots and spammers! Introduction: last night, I was totally ‘brain-dead’ and I am not in a mood, just to write another article. So, to keep my readers and guest happy, I have to keep going and push my knowledge to the edge! Here is another article [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Version: 13.1<br />
Revision: 13 Build 16<br />
<br />
Repel those mosquito robots and spammers!<br />
<br />
Introduction:</strong> last night, I was totally ‘brain-dead’ and I am not in a mood, just to write another article. So, to keep my readers and guest happy, I have to keep going and push my knowledge to the edge!<br />
<br />
Here is another article for you to filter / block more SPAM, Robots and Comment Junkies (spammers that post the same sentence and acts like robots). However, this code will only work, if you are using “PHP scripting engine” or WordPress.<br />
<br />
<strong>Notes:</strong> if you want to use this source, just to reduce SPAM and other Robots, I would recommend you to make a backup of your ‘Theme’ folder and your SQL database. After that, you can continue with the tutorial.<br />
<br />
1.] Login to your Cpanel and direct yourself to your ‘Theme’ folder.<br />
<br />
2.] Look for this file: ‘function.php’ and add this code into the file.</p>
<pre class="brush: php; title: ; notranslate">
function check_referrer() {
    if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == &quot;&quot;) {
        wp_die( __('Get away from my blog and stop spamming!') );
    }
}
add_action('check_comment_flood', 'check_referrer');
</pre>
<p>3.] Save your changes and let those crazy spammers deal with their own problem!<br />
<br />
4.] You’re done!<br />
<br />
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/814/repel-those-mosquito-robots-and-spammers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; Change that horrible login screen!</title>
		<link>http://lair360.co.uk/blog/757/wordpress-change-that-horrible-login-screen/</link>
		<comments>http://lair360.co.uk/blog/757/wordpress-change-that-horrible-login-screen/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 22:13:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[login screen image]]></category>
		<category><![CDATA[wp-login modification]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=757</guid>
		<description><![CDATA[Version: 17.2 Revision: 13 Build 11 Wordpress &#8211; Change that horrible login screen! Wordpress Version: 2.8+ Introduction: On the 17th of November, I had a short reply from my readers. They told me that my previous &#8220;WordPress Login Screen&#8221; tutorials, they are old and outdated. This is because, everyone is now using &#8220;WordPress 2.8+&#8221; for [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Version: 17.2<br />
Revision: 13 Build 11<br />
<br />
Wordpress &#8211; Change that horrible login screen!<br />
<br />
Wordpress Version: 2.8+<br />
<br />
<img src="http://lair360.co.uk/blog/wp-content/uploads/2009/11/Wp-Login-Ex.png" alt="Wp-Login-Ex" title="Wp-Login-Ex" width="200" height="192" class="alignleft size-full wp-image-758" />Introduction:</strong> On the 17th of November, I had a short reply from my readers. They told me that my previous &#8220;WordPress Login Screen&#8221; tutorials, they are old and outdated. This is because, everyone is now using &#8220;WordPress 2.8+&#8221; for their project. So, for those who are using the old version, please click on this link and change your login screen.<br />
<br />
<a href="http://lair360.co.uk/blog/537/">http://lair360.co.uk/blog/537/</a><br />
<br />
For the other readers and publishers who are using the latest version, please read this article. But, don’t forget to create a backup of your SQL database!<br />
<br />
Have fun and be careful with the modification!<br />
<br />
<strong>Warning:</strong> If you’re unsure about this modification, then please stop reading. This article is only provided for advance users. So, if you want to try this out, please create a dummy area and install WordPress under your new directory.<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1.] Log-in to your Cpanel and click on your FTP server. But, do not download each file and modify them outside the server! It is very unstable and dangerous when you upload your modified version.<br />
<br />
2.] Look for these files and directories.<br />
<br />
…/wp-login.php<br />
…/wp-admin/css/login.css<br />
…/wp-admin/images/<br />
<br />
<strong>Notes:</strong> if you want to change your image, you will need to keep the formats as PNG or GIF and the size must not exceed 400 pixels in width and height.<br />
<br />
3.] Search for your &#8220;wp-login.php&#8221; file and look for these codes.<br />
It’s located at line 73 – 75.<br />
<br />
<strong>Notes:</strong> you will need to replace this phrase: &#8220;Powered by WordPress&#8221; and its default Url: &#8220;http://wordpress.org/&#8221;.</p>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;login&quot;&gt;&lt;h1&gt;&lt;a href=&quot;&lt;?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?&gt;&quot; title=&quot;&lt;?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?&gt;&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt;&lt;/h1&gt;
</pre>
<p>4.] Save your changes and look for this file: &#8220;login.css&#8221;.<br />
<br />
…/wp-admin/css/login.css</p>
<pre class="brush: css; title: ; notranslate">
h1 a {
	background: url(../images/logo-login.gif) no-repeat top center;
	width: 326px;
	height: 67px;
	text-indent: -9999px;
	overflow: hidden;
	padding-bottom: 15px;
	display: block;
}
</pre>
<p>5.] Modify the image’s location and save your changes.<br />
<br />
6.] You are done!<br />
<br />
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/757/wordpress-change-that-horrible-login-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Say NO to SPAM!</title>
		<link>http://lair360.co.uk/blog/753/say-no-to-spam/</link>
		<comments>http://lair360.co.uk/blog/753/say-no-to-spam/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 22:03:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>
		<category><![CDATA[php ip ban]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[small]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=753</guid>
		<description><![CDATA[Version: 1.1a Revision: 34 Say NO to SPAM! Introduction: for the passed two days, I was revising my IP – ban &#8211; script. So that it doesn’t comprise your server load and time, especially, when there is high traffic. Nevertheless, this script was created from my previous article. But, I decided to modified it and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Version: 1.1a<br />
Revision: 34<br />
<br />
Say NO to SPAM!<br />
<br />
<img src="http://lair360.co.uk/blog/wp-content/uploads/2009/11/SPAM-BLOCK.jpg" alt="Print" title="Print" width="195" height="194" class="alignleft size-full wp-image-754" />Introduction:</strong> for the passed two days, I was revising my IP – ban &#8211; script. So that it doesn’t comprise your server load and time, especially, when there is high traffic. Nevertheless, this script was created from my previous article. But, I decided to modified it and make it smaller for everyone to use and share.<br />
<br />
On the other hand, this script is everywhere on the search engine. But, please understand, that I had spent a great amount of time, just to refurbish these scripts.<br />
<br />
1.] Login to your Cpanel and click on your FTP server. After that, you’ll need to select one of these scripts and add them into your header tags. But, don’t forget to create a data file or a text file for blocking your offending spammers or hackers.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$ip = $_SERVER['REMOTE_ADDR'];
$ipArray = preg_replace(&quot;#\r\n?|\n#&quot;,&quot;&quot;,file('IP.dat',FILE_IGNORE_NEW_LINES));
foreach ($ipArray as $ipTest) {
  if (substr_count($ip, $ipTest) != &quot;0&quot;) {
    header('location: http://google.com');  // the banned display page
    die();
  }
} ?&gt;
</pre>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$ip = $_SERVER['REMOTE_ADDR'];
$ipArray = preg_replace(&quot;#\r\n?|\n#&quot;,&quot;&quot;,file('IP.txt',FILE_IGNORE_NEW_LINES));
foreach ($ipArray as $ipTest) {
  if (substr_count($ip, $ipTest) != &quot;0&quot;) {
    header('location: http://google.com');
    die();
  }
} ?&gt;
</pre>
<p>2.] Save your changes and keep an eye for more spammers!<br />
<br />
3.] Done!<br />
<br />
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/753/say-no-to-spam/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

