Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/versionchk.php
<html>
<? include('version.php');
include('dbconn.php');
include('flagchk.php');
$result = mysql_query("SELECT usrname,usrpass, usrflags,language, templatesel FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
$row = mysql_fetch_array($result);
$usrflags = $row[usrflags];
if($OekakiPass != $row[usrpass]){
header('Location: index.php');
exit;
}
if (!check_flag('O') && !check_flag('S') && !check_flag('A')) {
	header('Location: error.php?error='.urlencode("You cannot use this function."));
exit;
}
?>
<head>
<?

include('config.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");
 include("language/".$row[language].".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_vcheck_title?></td>

  </tr>
</table>
<table width="100%" cellpadding="<?=$hCellPadding?>" align="center" class="infotable">
  <tr> 
    <td>
      <div align="left"><b><?=$langop_vcheck_yver?>:</b> 
        <?=$version?>
        <br>
        <b><?=$langop_vcheck_lver?>: </b>
        <? include("http://www.suteki.nu/files/version.htm");?>
        (<?=$langop_vcheck_download?>) </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