[svn r10588] replace <? by <?php

skala
Eric Marguin 19 years ago
parent ec92ac2bba
commit e5e69c525d
  1. 2
      main/inc/lib/fckeditor/editor/plugins/ImageManager/Classes/api.watermark.php
  2. 4
      main/inc/lib/fckeditor/editor/plugins/ImageManager/editor.php
  3. 18
      main/inc/lib/fckeditor/editor/plugins/ImageManager/editorFrame.php

@ -1,4 +1,4 @@
<? <?php
/** /**
* Watermarking API * Watermarking API
* @author $Author: Brian Vaughn $ http://boynamedbri.com/ - http://portfolio.boynamedbri.com/ - @ devshed http://www.devshed.com/c/a/PHP/Dynamic-Watermarking-with-PHP/ * @author $Author: Brian Vaughn $ http://boynamedbri.com/ - http://portfolio.boynamedbri.com/ - @ devshed http://www.devshed.com/c/a/PHP/Dynamic-Watermarking-with-PHP/

@ -1,4 +1,4 @@
<? <?php
/** /**
* The PHP Image Editor user interface. * The PHP Image Editor user interface.
* @author $Author: Wei Zhuo $ * @author $Author: Wei Zhuo $
@ -229,7 +229,7 @@ $editor = new ImageEditor($manager, $IMConfig);
<input type="hidden" id="save_filename" value="<?php echo basename($_GET['img']); ?>" /> <input type="hidden" id="save_filename" value="<?php echo basename($_GET['img']); ?>" />
<?php } ?> <?php } ?>
<? <?php
$pos = strrpos($_GET['img'], "."); $pos = strrpos($_GET['img'], ".");
$ext = substr($_GET['img'], $pos + 1); $ext = substr($_GET['img'], $pos + 1);
?> ?>

@ -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}
} }
?> ?>
} }

Loading…
Cancel
Save