<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();
include('dbconn.php');
if($OekakiU == ""){
include("language/".$language.".php");
} else {
$testrslt = mysql_query("SELECT usrname, usrpass,language, templatesel, usrflags FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
//extract the fields selected above into variables
$row = mysql_fetch_array($testrslt);
include("language/".$row[language].".php");
}
?>
<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>
<?
if($OekakiU == ""){
include("templates/".$template.".php");
} else {
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?>">
<IFRAME SRC="chat.php" name="topFrame" WIDTH="100%" HEIGHT="80%" frameborder="0" align="center"></IFRAME>
<form action="chat.php" method="post" name="form1" target="topFrame" onSubmit="setTimeout("MM_setTextOfTextfield('comment','','')",10)">
<table border="0" cellspacing="0" cellpadding="2" align="center" class="header" width="95%">
<tr>
<td><?=$langop_word_message?>:
<input type="text" name="comment" class="txtinput" size="25">
<input type="hidden" name="send" value="Send">
<input type="submit" name="submit" value="Send" class="submit" >
<a href="chat.php#bottom" target="topFrame"> <?=$langop_chat_scroll?></a> | <a href="chat.php" target="topFrame">
<?=$langop_word_refresh?></a></td>
</tr>
</table>
<br>
<? if (!isset($OekakiU) && ($guestpost == "yes")) { ?>
<table width="<?=$hWidth?>" cellpadding="2" align="center" class="infotable">
<tr>
<td height="18" class="header" colspan="2"><?=$langop_chat_chatinfo?></td>
</tr>
<tr>
<td height="18"><?=$langop_word_name?>:</td>
<td height="18">
<input type="text" name="name" value="<?=$guestName?>" class="txtinput">
</td>
</tr>
<tr>
<td height="18"><?=$langop_word_email?>:</td>
<td height="18">
<input type="text" name="email" value="<?=$guestEmail?>" class="txtinput">
</td>
</tr>
<tr>
<td height="18"><?=$langop_word_url?>:</td>
<td height="18">
<input type="text" name="url" value="<?=$guestURL?>" class="txtinput">
</td>
</tr>
</table>
<?}?>
</form>
<table width="<?=$hWidth?>" cellpadding="2" align="center">
<tr>
<td height="22" class="header"><?=$langop_word_help?></td>
</tr>
<tr>
<td height="22" valign="top" class="infotable">
<?=$langop_chat_warning?>
</td>
</tr>
</table>
</body>
<? include('footer.php'); ?>