Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/newchat/chatbox.php
<html>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}
//-->

<!--
  function openWindow(url, w, h) {
    var options = "width=" + w + ",height=" + h + ",";
    options += "resizable=yes,scrollbars=yes,status=no,";
    options += "menubar=no,toolbar=no,location=no,directories=no";
    var newWin = window.open(url, 'newWin', options);
    newWin.focus();
  }
//-->
</script>

<head>
<?
function rootpath(){
	global $DOCUMENT_ROOT;
	$rootdir = $DOCUMENT_ROOT;
	if ($DOCUMENT_ROOT[strlen($DOCUMENT_ROOT)] == "/"){
		return $rootdir;
	} else {
		$rootdir = $rootdir."/";
		return $rootdir;
	}
}

include('config.php');

function get_microtime() {$mtime = microtime();$mtime = explode(' ',$mtime);return doubleval($mtime[1]) + doubleval($mtime[0]);}
 
$start_time = get_microtime();
?>
<title><?=$BBStitle?> - OekakiPoteto</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<meta name="description" content="Start your own online artist community with OekakiPoteto - an extension script to two popular online paint programs, OekakiBBS and PaintBBS.">
<meta name="keywords" content="theo, chakkapark, oekaki, poteto, suteki.nu, suteki, oekakiBBS, paintBBS, community, php, mysql, art, drawing, cg, anime, suteki">
</head>
<?
include('dbconn.php');

if($OekakiU == ""){
	include("templates/".$template.".php");
	} else {
	$testrslt = mysql_query("SELECT usrname, usrpass, templatesel, usrflags FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
	
	//extract the fields selected above into variables
	$row = mysql_fetch_array($testrslt);

	include("templates/".$row[templatesel].".php");
	mysql_close();
}

?>
<body bgcolor="<?=$bgColor?>" text="<?=$textColor?>" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="templates/<?=$bgImage?>" link="<?=$link?>" vlink="<?=$vLink?>" alink="<?=$aLink?>">
<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
	<tr height="100%">
		<td width="80%"><IFRAME SRC="chat.php" name="topFrame" WIDTH="100%" HEIGHT="100%" frameborder="0" align="center"></IFRAME></td>
		<td width="20%"><IFRAME SRC="chatusers.php" name="userList" WIDTH="100%" HEIGHT="100%" frameborder="0" align="center"></IFRAME></td>
	</tr>
	<tr height="45" valign="bottom">
		<td colspan="2"><IFRAME SRC="chatinput.php" name="chatFrame" width="100%" height="45" frameborder="0" align="center" scrolling="no"></IFRAME></td>
	</tr>
</table>
<table width="<?=$hWidth?>" cellpadding="2" align="center">
  <tr> 
    <td height="22" class="header">Help</td>
  </tr>
  <tr> 
    <td height="22" class="infotable">You can use the message box to leave requests/comments, 
      or talk to OekakiPoteto members if they are online.<br>
      <br>
      Commands (commands should be prefixed with a forward slash):<br>
      <b>/away, /afk, /a</b>: set away and leave an optional message, example: /away eating!<br>
      <b>/part, /leave, /quit</b>: end chat session with an optional message, example: /quit seeya next week<br>
      <b>/kick, /kill, /boot</b>: kick a user with optional message (administrators only!), example: /kick MisterIdiot get a life<br>
      <b>/me, /action</b>: send an 'action' message, example: /me likes to eat ice cream<br>
      <b>/omsg, /wall</b>: send a regular message to administrators only, example: /wall someone stole my lunch money!<br>
      <b>/ome, /oaction</b>: send an 'action' message to administrators only.<br>
      <b>/help</b>: bring up help screen<br>
      <br>
      Your IP and Hostname is tracked in case of abuse. To see a user's IP/hostname, 
      hover your mouse over their username in the chat.<br>
      <br>
      <i>Administrators have the ability to kick users <i>and</i> ban users from the <b>ENTIRE SITE</b>, 
      so BEHAVE!</i> </td>
  </tr>
</table>
</body>
<? include('footer.php'); ?>
Return current item: OekakiPoteto