Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/editpic.php
<?
include('dbconn.php');
$result = mysql_query("SELECT usrname, PIC_ID, title, comment, adult FROM ".$OekakiPoteto_Prefix."oekakidta where PIC_ID='$picno'");
extract(mysql_fetch_array($result));
if ($usrname!=$OekakiU) {
header ('Location: error.php?error='.urlencode("You cannot edit a picture that does not belong to you."));
exit;
}
mysql_close($dbconn);
?>

<html>
<?
include('header.php');

?>
<p></p>
<br>
<br>
<table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" cellspacing="2" class="infotable">
  <tr> 
    <td>
      <form name="form1" method="post" action="functions.php">
        <table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
          <tr> 
            <td colspan="2" class="header"><?=$langop_erpic_title?> (<a href="#" onClick="openWindow('niftyusage.php', 500, 300); return false"><?=$langop_common_niftytoo?></a>)</td>
          </tr>
          <tr> 
            <td width="22%"> 
              <div align="right"><?=$langop_install_title2?>:</div>
            </td>
            <td width="78%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
              <input type="text" name="title2" value="<?=$title?>" class="txtinput">
              </font></td>
          </tr>
          <tr> 
            <td width="22%"> 
              <div align="right"><?=$langop_word_comments?>:</div>
            </td>
            <td width="78%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
              <textarea name="comment2" cols="40" rows="5" class="multiline"><?=$comment?></textarea>
              </font></td>
          </tr>
          <tr> 
            <td width="22%"> 
              <div align="right"><?=$langop_comment_adult?></div>
            </td>
            <td width="78%"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
              <input type="checkbox" name="adult" value="1" 
<? 
if ($adult=="1") {
echo "checked";
}?>>
              </font></td>
          </tr>
          <tr> 
            <td width="22%"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">&nbsp;</font></td>
            <td width="78%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
              <input type="hidden" name="picno" value="<?=$picno?>">
              <input type="submit" name="picedit" value="Edit" class="submit">
              </font></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<br>
<br>
<? include('footer.php'); ?>
</body>
Return current item: OekakiPoteto