Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/viewanio.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');
include('dbconn.php');
include('niftytoo.php');
$result = mysql_query("SELECT * FROM ".$OekakiPoteto_Prefix."oekakidta WHERE ID_2=".$recno);

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="<?=$OPdir?>/templates/<?=$bgImage?>" link="<?=$link?>" vlink="<?=$vLink?>" alink="<?=$aLink?>">
<table width="100%" cellpadding="<?=$hCellPadding?>" align="center" class="header">
  <tr>
    <td><?=$langop_viewani_title?></td>
  </tr>
  <tr> 
    <td>[<b> 
      <?=mysql_result($result,$i,"PIC_ID");?>
      </b>] [<a href="comment.php?mode=add&resno=<?=mysql_result($result,$i,"PIC_ID");?>" target="_blank"><?=$langop_word_comment?></a>] 
      <b><?=$langop_word_artist?>:</b> <a onClick="openWindow('profile.php?user=<?=urlencode(mysql_result($result,$i,"usrname"));?>', 300, 400); return false" a href="profile.php?user=<?=urlencode(mysql_result($result,$i,"usrname"));?>"> 
      <?=mysql_result($result,$i,"usrname");?>
      </a> | <b><?=$langop_install_title2?>:</b> 
      <?=nifty2_convert(mysql_result($result,$i,"title"));?>
      | <b><?=$langop_word_time?>:</b> 
      <?$editsec=mysql_result($result,$i,"edittime");if($editsec<20){?>
      <?=$langop_word_unknown?> 
      <?}else{?>
      <?=ceil($editsec/60)?>
      <?=$langop_word_minutes?> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1"> 
      <?}?>
      </font></td>
  </tr>
</table>
<table width="100%" cellpadding="<?=$hCellPadding?>" align="center" class="infotable">
  <tr> 
    <td> 
      <div align="center"><applet name="oeb" code="a.p.class" archive="oekakibbs.jar"  width="<?if($xcord < 100){ echo ($xcord + 100); } else { echo $xcord;}?>" height="<?=$ycord + 38?>" border="0">
						<param name="popup" value="0">
						<param name="anime" value="2">
						<param name="readanm" value="<?=$OPpics.'/'.mysql_result($result,$i,"PIC_ID").".oeb"?>">
						<param name="readanmpath" value="./">
						<param name="picw" value="<?if($xcord < 100){ echo ($xcord + 100); } else { echo $xcord;}?>">
						<param name="pich" value="<?=$ycord?>">
								<param name="baseC" value="9999FF">
		<param name="brightC" value="C0C0FF">
		<param name="darkC" value="6666FF">
		<param name="backC" value="CCCCFF">
	  <param name="buffer_canvas" value="true"></applet><br><?=$langop_viewani_files?>: <? $size = filesize("$OPpics".'/'.mysql_result($result,$i,"PIC_ID").".oeb"); $size = $size / 1024; $size = round($size, 2); print "$size". "kb"; ?>
      </div>
    </td>
  </tr>
</table>
<p align="center"><a onclick="javascript: window.close();" href="#"><font size="-2" face="<?=$fontFace?>"><?=$langop_common_window?></font></a></p>
</body>
Return current item: OekakiPoteto