Jump to content

Recommended Posts

okay, here's what i'm attempting to do

I'm using flashchat and the easiest way to "integrate" it into my site is to use an IFRAME instead of manually editing a lot of files.

 

So I want to have the flashchat read the url and this is the things i'musing so far

 

                        $clb_id = $_GET["clb_id"];
$query = "SELECT id FROM flashchat_rooms WHERE cld_id=".$clb_id;
IF( $clb_id == "0" ) { $chatroom = '1'; } else {
$chatroom = $GLOBALS["DB"]->execute($query);
    }
		if($this->userid = ChatServer::login($login, $password, array('ip' => $bot_id))) {
			if($lang) $this->lang = $lang;
			if($tzoffset) $this->tzoffset = $tzoffset;
			$ar = $this->getAvailableRoom($chatroom);
			$this->roomid = $roomid? $roomid : $ar['id'];
			$this->room_is_permanent = $ar['ispermanent'] != '';
			$this->start = $this->sendLoginInfo();

 

 

 

And no matter if i try to put clb_id=292908 in the URL it still will act like it's returning 0 (or $chatroom = 1)

Link to comment
https://forums.phpfreaks.com/topic/52139-iframe-and-_get/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.