News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SigmaChat SSI autologin

Started by Orstio, July 04, 2004, 02:07:26 AM

Previous topic - Next topic

Orstio

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

<?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'RE DOING #
   #################################################################
require_once ('SSI.php');

   
$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>


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


Advertisement: