bashorun Tag

Javascript Sheet

27 Apr 2011, Posted by BoB in All Posts, Website Talk

How to disable right mouse click: <script language=JavaScript> <!-- var message="Sorry, function has been disabled."; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script> (paste above script after <head>...

PHP Sheet

27 Apr 2011, Posted by BoB in All Posts, Website Talk

How to display a user's IP address within a web page: <?php echo $_SERVER['REMOTE_ADDR']; ?> (Paste above code in your PHP file) How to display information only to an IP address of your choosing: Find your IP address at ip.TRPunlimited.com <?php if ($_SERVER['REMOTE_ADDR'] == your.ip.address.here) {?> (Paste above code at the...

.htaccess Sheet

26 Apr 2011, Posted by BoB in All Posts, Website Talk

span.post {text-decoration: underline;} Disable directory listing: IndexIgnore * -or- Options -Indexes Change default "index" page: DirectoryIndex anyfilename.html Custom 404 page redirect: # 404 error redirect # ErrorDocument 404 /full/directory/path/404.html Hotlinking protection: # hotlink protection # RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC] RewriteRule .*\.(gif|jpg|png|ico)$ - [F,L] 1 hour web browser caching (improves site performance): # default expires set...

Script Time Sheet

26 Apr 2011, Posted by BoB in All Posts, Website Talk

table.post {border:1px solid;width:100%;} th.post {border:1px solid;width:20%;padding:10px;vertical-align:top;font-weight:bold;font-size:16px;} td.post {border:1px solid;width:20%;padding:10px;vertical-align:top;height:40px;} This is a script time reference sheet (in seconds) (known to be used in .htaccess): 300 = 5 MINS 600 = 10 MINS 900 = 15 MINS 1800 = 30 MINS 2700 = 45 MINS 3600 = 1 HR 7200 = 2 HRS 10800 = 3 HRS 14400 = 4 HRS 18000...

Car Accessories

23 Apr 2011, Posted by BoB in All Posts, Car Talk

http://www.sonicelectronix.com/ http://www.crutchfield.com/ These sites have great car stereo products and installation accessories for very reasonable prices. ...

Great Web Hosts

20 Apr 2011, Posted by BoB in All Posts, Website Talk

http://www.inmotionhosting.com/ http://www.liquidweb.com/ http://www.justhost.com/ I have been using these hosts for years. They have proven time and time again, their reliability. Also, their interfaces are fairly easy to use. ...