Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/oekakiBBSa.php
<?
$timestart=1;
include('header.php');
include('flagchk.php');

if (!check_flag('M')) {
	$axcord = 0;
	$aycord = 0;
	$xcord = 0;
	$ycord = 0;
}

if(isset($edit)){
	$result = mysql_query("SELECT PIC_ID, usrname FROM ".$OekakiPoteto_Prefix."oekakidta WHERE PIC_ID='$edit'");
	$row = mysql_fetch_array($result);
	if($row[usrname] != $OekakiU){
		$result2 = mysql_query("SELECT PIC_ID, usrname FROM ".$OekakiPoteto_Prefix."oekakidta WHERE usrname='$OekakiU'");
		$row = mysql_fetch_array($result2);
		$edit = $row[PIC_ID];
	}
	$size = GetImageSize($OPpics.'/'.$row[PIC_ID].".png");
	$xcord = $size[0];
	$ycord = $size[1];
	if(!isset($axcord)){
	$axcord = $size[0] + 500;
	$aycord = $size[1] + 400;
	}
}
if (($xcord > $xCanvas) ||  ($ycord > $yCanvas)) {
	$xcord = $xCanvas; 
	$ycord = $yCanvas;
}
?>


<p></p>
<br>
<br>
<table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" cellspacing="2" class="infotable">
  <tr> 
    <td> <strong><?=$langop_applet_animationre?> </strong> <br>
      <center>
        <p><br>
          <applet name="oekakibbs" code="a.p.class" archive="oekakibbs.jar" width="<?=$axcord?>" height="<?=$aycord?>" mayscript>
            <?if(isset($edit)){?>
            <param name="readfilepath" value="./">
            <param name="readpicpath" value="./">
            <param name="readanmpath" value="./">
            <param name="readanm" value="<?=$OPpics?>/<?=$edit?>.oeb">
            <param name="url" value="index.php">
            <param name="cgi" value="functions.php?mode=picsaveo&edit=<?=$edit?>&edittimes=<?=time()?>">
            <? } else {?>
            <param name="url" value="index.php?mode=ani_msg">
            <param name="cgi" value="getoekakibbs.php?mode=ani&username=<?=urlencode($OekakiU)?>&edittimes=<?=time()?>&datatype=1">

            <? } ?>
            <param name="popup" value="0">
            <param name="tooltype" value="full">
            <param name="anime" value="1">
            <param name="animesimple" value="1">
            <param name="tooljpgpng" value="0">
            <param name="tooljpg" value="0">
            <param name="passwd" value="hardidhihihiahrih">
            <param name="passwd2" value="I like to eat, ice cream.">
            <param name="picw" value="<?=$xcord?>">
            <param name="pich" value="<?=$ycord?>">
            <param name="baseC" value="888888">
            <param name="brightC" value="aaaaaa">
            <param name="darkC" value="666666">
            <param name="backC" value="000000">
            <param name="mask" value="12">
            <param name="toolpaintmode" value="1">
            <param name="toolmask" value="1">
            <param name="toollayer" value="1">
            <param name="toolalpha" value="1">
            <param name="toolwidth" value="200">
            <param name="target" value="_self">
            <param name="catalog" value="0">
            <param name="catalogwidth" value="100">
            <param name="catalogheight" value="100">
          </applet>
          <?
if (check_flag('M')){
?>
        <form name="form1" method="get" action="oekakiBBSa.php">
          <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
            <tr> 
              <td colspan="2" height="11"><?=$langop_applet_retouch?></td>
            </tr>
            <tr> 
              <td colspan="2" height="11"> <table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" class="header">
                  <tr> 
                    <td> <div align="center"><font size="-2"> 
                        <?if(!isset($edit)){?>
                        <?=$langop_applet_modify?>
                        ( 
                        <?=$langop_applet_max?>
                        <?=$xCanvas?>
                        x 
                        <?=$yCanvas?>
                        ) 
                        <? } else {?>
                        <?=$langop_applet_retouchdisc?>
                        <? } ?>
                        </font></div></td>
                  </tr>
                </table></td>
            </tr>
            <?if(!isset($edit)){?>
            <tr> 
              <td width="28%"> <div align="right"><font size="-2">X</font>:</div></td>
              <td width="72%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <input type="text" name="xcord" value="<?=$xcord?>" class="txtinput">
                </font></td>
            </tr>
            <tr> 
              <td width="28%"> <div align="right"><font size="-2">Y:</font></div></td>
              <td width="72%"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <input type="text" name="ycord" value="<?=$ycord?>" class="txtinput">
                </font></td>
            </tr>
            <? } ?>
            <tr> 
              <td colspan="2"> <table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" class="header">
                  <tr> 
                    <td> <div align="center"><font size="-2"><?=$langop_applet_size?> 
                        </font></div></td>
                  </tr>
                </table></td>
            </tr>
            <tr> 
              <td> <div align="right"><font size="-2">X:</font></div></td>
              <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <input type="text" name="axcord" value="<?=$axcord?>" class="txtinput">
                (</font><font size="-2">+100 <?=$langop_applet_x?>)</font></td>
            </tr>
            <tr> 
              <td> <div align="right"><font size="-2">Y:</font></div></td>
              <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <input type="text" name="aycord" value="<?=$aycord?>" class="txtinput">
                </font><font size="-2">(+96 <?=$langop_applet_y?>)</font></td>
            </tr>
            <tr> 
              <td width="28%"> <div align="right"></div></td>
              <td width="72%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <?if(isset($edit)){?>
                <input type="hidden" name="edit" value="<?=$edit?>">
                <?}?>
                <input type="submit" name="Submit" value="Modify" class="submit">
                </font></td>
            </tr>
          </table>
        </form>
      </center>
<? } else { echo "<b>You cannot resize the picture/canvas if you do not have draw access or when you are retouching a picture.</b>"; }?>
      <p align="center"><a href="http://www.oekakibbs.com/help/page1e.html" target="_new"><?=$langop_applet_howop?></a></p>
      </td>
  </tr>
</table>
<br>
<br>
<? include('footer.php'); ?>
</body>
Return current item: OekakiPoteto