Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/arecover.php
<?
include('dbconn.php');
include('flagchk.php');
$result = mysql_query("SELECT usrname, usrflags FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
$row = mysql_fetch_array($result);
if (!strstr($row[usrflags],"O") && !strstr($row[usrflags],"S") && !strstr($row[usrflags],"A")) {
	header('Location: error.php?error='.urlencode("You do not have the credentials to recover any picture."));
exit;
}
mysql_close($dbconn);
?>
<html>
<?
include('header.php');
$result2 = mysql_query("SELECT ID, usrflags, usrname FROM ".$OekakiPoteto_MemberPrefix."oekaki ORDER BY usrname ASC");

$rownum = mysql_numrows($result2);
$i = 0;
?>
<p></p>
<br>
<table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center">
  <tr>
    <td class="header"><?=$langop_recover_rpicture?></td>
  </tr>
  <tr> 
    <td height="19"><form name="form1" method="post" action="functions.php?action=arecover">
        <table width="95%" cellpadding="2" align="center" cellspacing="2" class="infotable">
          <tr> 
            <td><div align="right"> 
                <?=$langop_recover_pictureno?>
              </div></td>
            <td><input type="text" name="picno" class="txtinput">
              .png</td>
          </tr>
          <tr> 
            <td width="7%"><div align="right"><?=$langop_word_owner?> </div></td>
            <td width="93%"><select name="usrname" class="multiline">
                <? 
WHILE ($i < $rownum):
?>
                <option value="<?=mysql_result($result2,$i,"ID");?>"> 
                <?=mysql_result($result2,$i,"usrname");?>
                </option>
                <?
$i++; 
endwhile; 
mysql_close($dbconn);
?>
              </select></td>
          </tr>
          <tr> 
            <td><div align="right"><?=$langop_word_type?></div></td>
            <td><select name="dtype" class="multiline">
                <option value="0">PaintBBS <?=$langop_word_animated?></option>
                <option value="1">PaintBBS <?=$langop_word_normal?></option>
                <option value="2">OekakiBBS <?=$langop_word_animated?></option>
                <option value="3">OekakiBBS <?=$langop_word_normal?></option>
              </select></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><?=$langop_recover_ctype?></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td> <input name="register" type="submit" class="submit" onClick="MM_validateForm('email','','RisEmail');return document.MM_returnValue" value="Submit"> 
            </td>
          </tr>
        </table>
        <br>
      </form></td>
  </tr>
</table>
</body>
<? include('footer.php'); ?>
Return current item: OekakiPoteto