|
|
|
@ -1,4 +1,4 @@ |
|
|
|
<? |
|
|
|
<?php |
|
|
|
/** |
|
|
|
/** |
|
|
|
* The frame that contains the image to be edited. |
|
|
|
* The frame that contains the image to be edited. |
|
|
|
* @author $Author: Wei Zhuo $ |
|
|
|
* @author $Author: Wei Zhuo $ |
|
|
|
@ -120,7 +120,7 @@ |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
<script type="text/javascript"> |
|
|
|
<? |
|
|
|
<?php |
|
|
|
if ($editor->isFileSaved() == 1) |
|
|
|
if ($editor->isFileSaved() == 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
?> |
|
|
|
?> |
|
|
|
@ -159,22 +159,22 @@ |
|
|
|
|
|
|
|
|
|
|
|
// save message |
|
|
|
// save message |
|
|
|
var message = i18n('File saved.'); |
|
|
|
var message = i18n('File saved.'); |
|
|
|
<? |
|
|
|
<?php |
|
|
|
if ($editor->forcedNewName != false) |
|
|
|
if ($editor->forcedNewName != false) |
|
|
|
{ |
|
|
|
{ |
|
|
|
?> |
|
|
|
?> |
|
|
|
message += '\n' + i18n('File name was changed into ') + '<?php echo $editor->forcedNewName; ?>';
|
|
|
|
message += '\n' + i18n('File name was changed into ') + '<?php echo $editor->forcedNewName; ?>';
|
|
|
|
<? |
|
|
|
<?php |
|
|
|
} |
|
|
|
} |
|
|
|
?> |
|
|
|
?> |
|
|
|
alert(message); |
|
|
|
alert(message); |
|
|
|
<? |
|
|
|
<?php |
|
|
|
} |
|
|
|
} |
|
|
|
else if ($editor->isFileSaved() == -1) |
|
|
|
else if ($editor->isFileSaved() == -1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
?> |
|
|
|
?> |
|
|
|
alert(i18n('File was not saved.')); |
|
|
|
alert(i18n('File was not saved.')); |
|
|
|
<? |
|
|
|
<?php |
|
|
|
} |
|
|
|
} |
|
|
|
?> |
|
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
@ -193,7 +193,7 @@ |
|
|
|
imagesArray = new Array(); |
|
|
|
imagesArray = new Array(); |
|
|
|
// first clear all its options |
|
|
|
// first clear all its options |
|
|
|
watermarkBox.options.length = 0; |
|
|
|
watermarkBox.options.length = 0; |
|
|
|
<? |
|
|
|
<?php |
|
|
|
foreach($IMConfig['watermarks'] as $watermark) |
|
|
|
foreach($IMConfig['watermarks'] as $watermark) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$watermarkInfo = @getImageSize($IMConfig['base_dir'] . $watermark); |
|
|
|
$watermarkInfo = @getImageSize($IMConfig['base_dir'] . $watermark); |
|
|
|
@ -279,13 +279,13 @@ |
|
|
|
verifyBounds(); |
|
|
|
verifyBounds(); |
|
|
|
dd.elements.floater.nimg.style.behavior = "url('assets/pngbehavior.htc')"; |
|
|
|
dd.elements.floater.nimg.style.behavior = "url('assets/pngbehavior.htc')"; |
|
|
|
|
|
|
|
|
|
|
|
<? |
|
|
|
<?php |
|
|
|
if (isset($_GET['action'])) |
|
|
|
if (isset($_GET['action'])) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ($_GET['action'] == "watermark") |
|
|
|
if ($_GET['action'] == "watermark") |
|
|
|
{?> |
|
|
|
{?> |
|
|
|
dd.elements.floater.show(); |
|
|
|
dd.elements.floater.show(); |
|
|
|
<?} |
|
|
|
<?php} |
|
|
|
} |
|
|
|
} |
|
|
|
?> |
|
|
|
?> |
|
|
|
} |
|
|
|
} |
|
|
|
|