Файл: editor/edit.php
Строк: 124
<?php
if (!isset($xopolllo) && !isset($save) && $redfot!="")
{
$img='editor/image.php?i=../'.$redfot;
$rwh = getimagesize($redfot);
if($rwh[2]==2 || $rwh[2]==3)
{
if (isset($send))
{
if($fh=="ON") {$img=$img.'&fh=1';}
if($fv=="ON") {$img=$img.'&fv=1';}
if($ed=="ON") {$img=$img.'&ed=1';}
if($sk=="ON") {$img=$img.'&sk=1';}
if($gr=="ON") {$img=$img.'&gr=1';}
if($sh=="ON") {$img=$img.'&sh=1';}
if($rw!=$rwh[0] || $rh!=$rwh[1]) { if ($rw!="" || $rh!="") {$img=$img.'&rw='.$rw.'&rh='.$rh;} }
if ($r!=0) {$img=$img.'&r='.$plusiliminus.$r;}
if (isset($ct) && $ct!="")
{
$img=$img.'&ct='.$ct;
if (isset($cf) && $cf!="") {$img=$img.'&cf='.$cf; }
if (isset($cs) && $cs!="") {$img=$img.'&cs='.$cs; }
}
}
if ($rw=="" && $rh=="")
{
$rw=$rwh[0]; $rh=$rwh[1];
}
elseif ($rw!="" && $rh=="")
{
$rh=$rw/$rwh[0]*$rwh[1];
}
elseif ($rw=="" && $rh!="")
{
$rw=$rh/$rwh[1]*$rwh[0];
}
?>
<img src="<?=$img;?>" border=0 alt="<?=$leng_editor[0];?>"><br>
<form name="go" action="?redfot=<?=$redfot?>" method="post">
<table width=40% border=0>
<tr><td width=50%>
<?=$leng_editor[1];?></td><td width=50%>
<input name="rw" type="text" value="<?php if(isset($send) && $rw!=$rwh[0]) {echo "$rw";} else {echo "$rwh[0]";} ?>">
</td></tr><tr><td>
<?=$leng_editor[2];?></td><td>
<input name="rh" type="text" value="<?php if(isset($send) && $rh!=$rwh[1]) {echo "$rh";} else {echo "$rwh[1]";} ?>">
</td></tr><tr><td>
<?=$leng_editor[3];?></td><td>
<input name="fh" type="checkbox" value="ON" <?php if(isset($send) && $fh=="ON") {echo "checked";} ?>>
</td></tr><tr><td>
<?=$leng_editor[4];?></td><td>
<input name="fv" type="checkbox" value="ON" <?php if(isset($send) && $fv=="ON") {echo "checked";} ?>>
</td></tr><tr><td>
<?=$leng_editor[5];?></td><td>
<input name="ed" type="checkbox" value="ON" <?php if(isset($send) && $ed=="ON") {echo "checked";} ?>>
</td></tr><tr><td>
<?=$leng_editor[6];?></td><td>
<input name="sk" type="checkbox" value="ON" <?php if(isset($send) && $sk=="ON") {echo "checked";} ?>>
</td></tr><tr><td>
<?=$leng_editor[7];?></td><td>
<input name="gr" type="checkbox" value="ON" <?php if(isset($send) && $gr=="ON") {echo "checked";} ?>>
</td></tr><tr><td>
<?=$leng_editor[8];?></td><td>
<input name="sh" type="checkbox" value="ON" <?php if(isset($send) && $sh=="ON") {echo "checked";} ?>>
</td></tr><tr><td>
<?=$leng_editor[9];?></td><td><select size="1" name="cf">
<?php
include("font/font.ini.php");
for ($asd=0;$asd<count($face_font);$asd++)
{
if ($face_font[$asd]==$cf && $ct!="" && isset($send))
{ echo "<option value="$face_font[$asd]" selected>$face_font[$asd]</option>"; }
else
{ echo "<option value="$face_font[$asd]">$face_font[$asd]</option>"; }
}
?>
</select></td></tr><tr><td><?=$leng_editor[10];?></td><td><input name="cs" type="text" value="<?php if(isset($send) && isset($cs) && $ct!="") {echo "$cs";} else {echo "";} ?>">
</td></tr><tr><td><?=$leng_editor[11];?></td><td><input name="ct" type="text" value="<?php if(isset($send) && isset($ct)) {echo "$ct";} else {echo "";} ?>">
</td></tr><tr><td>
<?=$leng_editor[12];?></td><td>
<input name="r" size=1 type="text" value="<?php if (isset($send) && $r!=0){echo "$r";} else {echo "0";}?>">
</td></tr><tr><td align=right><?=$leng_editor[13];?> <input name="plusiliminus" type="radio" value="" <?php if ($plusiliminus!="-" && isset($send)) { echo "checked"; } ?>>
</td><td>
<input name="plusiliminus" type="radio" value="-" <?php if ($plusiliminus=="-" && isset($send)) { echo "checked"; } ?>><?=$leng_editor[14];?>
</td></tr></table>
<br>
<input name="for_save" type="hidden" value="<?=$img;?>">
<?php
if (isset($send))
{
echo"<input type="submit" value="$leng_editor[15]" name="save"> ";
}
?>
<input type="submit" value="<?=$ssendd;?>" name="send">
<input type="submit" value="<?=$leng_editor[16];?>" name="close"><br>
<?=$leng_editor[24];?>
</form>
<?php
}
else
{
echo "<br><br>$leng_editor[17]<br><br><br><br>";
}
}
elseif (isset($save) && $redfot!="")
{
echo "<b>$leng_editor[0]:</b><br><img src="$for_save" border=0 alt="$leng_editor[0]"><br>
<br><b>$leng_editor[23]:</b><br><img src="$redfot" border=0 alt="$leng_editor[23]">";
echo "<form name="index.php" action="?redfot=$redfot" method="post">
<input name="for_save" type="hidden" value="$for_save">
$leng_editor[18]<br><br>
<input type="submit" name=xopolllo value=" $leng_editor[19] "> <input name=nenenenekatit type="submit" value="$leng_editor[20]">
</form>";
}
elseif (isset($xopolllo) && $redfot!="")
{
$for_save=$for_save.'&save=1&savefotored=../'.$redfot;
echo "<img src="$for_save" border=0><br>";
echo "$leng_editor[21]";
}
elseif ($redfot=="")
{
echo "$leng_editor[22]";
}
?>