|
init_user and init_password
With these two parameters your users do not have to re-enter their names and passwords to access the chat room list page as their usernames and passwords are already attached. The ‘login' button has already been activated.
This provides an effective method for auto-login.
You should be able to encrypt your user's passwords with MD5 to make them secure.
For example:
If the user name = my username, password = my password, the code you should add into your html will be as follows:
<script language=¡°javascript¡±>
init_user=¡±myusername¡±;
init_password=¡±mypassword¡±;
openSWF('123flashchat.swf','634','476');
</script>
<noscript>
<DIV id=¡°flashchat¡±>
<OBJECT classid=¡°clsid:D27CDB6E-AE6D-11cf-96B8-444553540000¡± codebase=¡°http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0¡± WIDTH=¡°634¡± HEIGHT=¡°476¡± id=¡°topcmm_123flashchat¡±>
<PARAM NAME=movie VALUE=¡°123flashchat.swf?init_user=myusername&init_password=mypassword¡±>
<PARAM NAME=quality VALUE=¡°high¡±>
<PARAM NAME=¡°menu¡± value=¡°false¡±>
<EMBED src=¡°123flashchat.swf? init_user=myusername&init_password=mypassword¡±
quality=high menu=false WIDTH=¡°634¡± HEIGHT=¡°476¡± TYPE=¡°application/x-shockwave-flash¡± PLUGINSPAGE=¡°http://www.macromedia.com/go/getflashplayer¡± scale=¡°noscale¡± name=¡°topcmm_123flashchat¡± swLiveConnect=¡°true¡±></EMBED>
</OBJECT>
</DIV>
Note: The auto-login will not happen until both of the parameters are attached at the same time.
If a user logs in as a guest, you can leave the init_password blank. This is shown in the following example:
<script language=¡°javascript¡±>
init_user=¡±myusername¡±;
init_password=¡±¡±;
openSWF('123flashchat.swf','634','476');
</script>
<noscript>
<DIV id=¡°flashchat¡±>
<OBJECT classid=¡°clsid:D27CDB6E-AE6D-11cf-96B8-444553540000¡± codebase=¡°http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0¡± WIDTH=¡°634¡± HEIGHT=¡°476¡± id=¡°topcmm_123flashchat¡±>
<PARAM NAME=movie VALUE=¡°123flashchat.swf?init_user=myusername&init_password=¡±>
<PARAM NAME=quality VALUE=¡°high¡±>
<PARAM NAME=¡°menu¡± value=¡°false¡±>
<EMBED src=¡°123flashchat.swf? init_user=myusername&init_password=¡± quality=high menu=false WIDTH=¡°634¡± HEIGHT=¡°476¡± TYPE=¡°application/x-shockwave-flash¡± PLUGINSPAGE=¡°http://www.macromedia.com/go/getflashplayer¡± scale=¡°noscale¡± name=¡°topcmm_123flashchat¡± swLiveConnect=¡°true¡±></EMBED>
</OBJECT>
</DIV>
updated at 2008-2-28 |