Location: PHPKode > projects > Oocommon php engine > ooim/pub/ooim_im.php
<?php
include("oocommon.php");
$p = new page();
$p->stylesheet = "style.css";
$r = new requestvariables();
$s = new session();
if ($s->sess[sid] =="") { die ("Session Error"); }
if ($r->username !="" || $r->id !="")
{
if ($r->id == "")
	{
	$id = $s->OpenIM($r->username,"");
	} else {
	$id = $r->id;
	}
	$status = $s->CheckIM($id);
	if ($status = false) { die ("IM Was closed"); }
	$p->writeln("<iframe width=\"300\" height=\"20\" src=\"ooim_im_top.php?id=".$id."\"> </iframe>");
	$p->writeln("<iframe name=\"body\" width=\"300\" height=\"280\" src=\"ooim_im_body.php?id=".$id."\"></iframe>");
	$p->writeln("<iframe width=\"300\" height=\"100\" src=\"ooim_im_bottom.php?id=".$id."\"></iframe>");
} else {
$p->writeln("IM Error");
}

$p->output();
Return current item: Oocommon php engine