Customizing SMF > SMF Coding Discussion

SigmaChat SSI autologin

(1/1)

Orstio:
I got this script from SigmaChat, which enables autologin from a remote login page:


--- Code: ---<?php

   #################################################################
   # EDIT THE VARIABLE BELOW TO INDICATE YOUR CHAT ROOM ID NUMBER  #
   #################################################################   
   $CHAT_ROOM_ID = ####;
   $CHAT_ROOM_WIDTH = 650;
   $CHAT_ROOM_HEIGHT = 400;
   $LANGUAGE_CODE = "en";

   #################################################################
   # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU&#39;RE DOING #
   #################################################################
require_once (&#39;SSI.php&#39;);

   $un =
   $pw =
?>
  <center>
      <applet
         codebase="http://client.sigmachat.com/current/"
         code="Client.class" archive="scclient_<?php print $LANGUAGE_CODE; ?>.zip"
         width=<?php print $CHAT_ROOM_WIDTH; ?>
         height=<?php print $CHAT_ROOM_HEIGHT; ?> MAYSCRIPT>
         <param name="room" value="<?php print $CHAT_ROOM_ID; ?>">
         <param name="cabbase" value="scclient_<?php print $LANGUAGE_CODE; ?>.cab">
         <param name="username" value="<?php print $un; ?>">
         <param name="password" value="<?php print $pw; ?>">
         <param name="autologin" value="yes">
      </applet>
   </center>
--- End code ---

I already have the username and password integration from SMF to SigmaChat working, so the usernames and passwords to enter the chatroom are the same as the forum.  What I am wondering, is how do I get this script to read the username and encrypted password (I do not need it to unencrypt) from the SMF cookie and pass them to the variables $un and $pw?

[Unknown]:
Look at Load.php under loadUserSettings.

-[Unknown]

Orstio:
 :D

Thanks!  I got it!  8)

Navigation

[0] Message Index

Go to full version