There are times when you have to disable the default right click menu on flash files on your webpages.

Uza has a suggested a method to completely disable the flash right menu.
Check the article link at his website http://www.uza.lt/blog/2007/08/solved-right-click-in-as3
and the Demo here http://www.uza.lt/rightclick/

You can also download the project files from the Google code
Project website:
http://code.google.com/p/custom-context-menu/

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • BlinkList
  • Furl
  • IndiaGram
  • IndianPad
  • Linkter
  • Netscape
  • NewsVine
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

There are times when you have to change the login link in your webpage to a logout link when a user successfully logged in.

Here is a simple way to do it in PHP

Suppose your menu is

Link 1
Login
Link 2

the corresponding HTML code will look like

<a href='somepage.php'>Link 1</a>
<a href='login.php'>Login</a>
<a href='some_other_link.php'>Link 2</a>

After successful login most probably you will set a session. Say the name of the session variable is username
Then the code for the menu will look like

<a href='somepage.php'>Link 1</a>
<?php
if(isset($_SESSION['username']) && $_SESSION['username']!="")
{
echo("<a href='logout.php'>Logout</a> ");
echo($_SESSION['username']);// displays username
}
else
{
echo("<a href='login.php'>Login</a> ");
}
?>
<a href='some_other_link.php'>Link 2</a>

and also make sure to add

<?php
session_start();
?>

on top of your page.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • BlinkList
  • Furl
  • IndiaGram
  • IndianPad
  • Linkter
  • Netscape
  • NewsVine
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

This article applies only to Windows operating systems.
If you dont know how to take System Properties tab, do this, Right click the My Computer icon on the desktop, select Properties. By default the General tab will be shown. This is the System Properties.

System Properties can also be accessed from the Control Panel.

Custom image in windows system properties

Continue Reading »

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • BlinkList
  • Furl
  • IndiaGram
  • IndianPad
  • Linkter
  • Netscape
  • NewsVine
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

This artilce explains how to automatically log on to a windows account using a username and password.

This is useful when the installation of your program requires restart of computer inbetween like the installation of Visual Studio.
So after the restart there will be no prompt for username and password, the system is automatically logged to the specified user account and the installation will continue.

Another use is the forced login of a user to a specified user account.

This article involves editing of Registry. (Editing of registry should be done with atmost care, since an error can cause the system not to boot. So if you have any doubt or you don’t know what to do, don’t edit registry.) Continue Reading »

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • BlinkList
  • Furl
  • IndiaGram
  • IndianPad
  • Linkter
  • Netscape
  • NewsVine
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Image Toolbar is a small toolbar shown in Intetnet Explorer above an image when the mouse moves over the image. The purpose of the Image Toolbar is to save the image, print the image, mail the image and to open the My Pictures folder.

Image toolbar in internet explorer
Image Toolbar in Internet Explorer

Continue Reading »

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • BlinkList
  • Furl
  • IndiaGram
  • IndianPad
  • Linkter
  • Netscape
  • NewsVine
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

How to implement a CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) using PHP

Implementing CAPTCHA using PHP

captcha captcha

Steps involved in this tutorial:

  1. Create a background image, the more messier the more better.
  2. Load a font file to display the CAPTCHA text
  3. Generate a random unique text
  4. Store the generated text in a Session variable to be used later for validation
  5. Write the CAPTCHA text to the image created in Step 1
  6. Generate the CAPTCHA image
  7. Also created a php page with the CAPTCHA image, a text box for input and a Submit button to show a working model (this step is not explained in detail, its simple PHP code, download and check the source files)

Click here for a working model
Continue Reading »

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • BlinkList
  • Furl
  • IndiaGram
  • IndianPad
  • Linkter
  • Netscape
  • NewsVine
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

eInternals blog

Welcome to eInternals blog. Launched on Christmas Eve 2007.

Please check frequently for new stuff.

Merry Christmas :)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • BlinkList
  • Furl
  • IndiaGram
  • IndianPad
  • Linkter
  • Netscape
  • NewsVine
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb