[svn r9952] coding standards

* replace <?= with <?php echo
* replace $phpself with $_SERVER['PHP_SELF']
* language variables
possibly incomplete
skala
Patrick Cool 19 years ago
parent 2a96c6bb8a
commit 3f03898b68
  1. 4
      main/inc/lib/fckeditor/editor/plugins/Attachment/fck_Attachment.php
  2. 4
      main/inc/lib/fckeditor/editor/plugins/ImageManager/editor.php
  3. 6
      main/inc/lib/fckeditor/editor/plugins/ImageManager/editorFrame.php

@ -106,7 +106,7 @@ if($_POST['fileupload']=="Attach File"){
//var content = FCK.EditorDocument.body.innerHTML;
var content = FCK.GetXHTML( FCKConfig.FormatOutput );
//alert(content);
FCK.SetHTML(content+'<br><?=$imgIcon?>&nbsp;<a href="<?=$target_url?>"><?=$basefilename?></a>');
FCK.SetHTML(content+'<br><?php echo $imgIcon; ?>&nbsp;<a href="<?php echo $target_url; ?>"><?php echo $basefilename; ?></a>');
window.parent.close();
</script>
<?
@ -131,7 +131,7 @@ require("../loader.class.php");
$loader = new Loader('formUpload');
$loader->init();
?>
<form name="formUpload" enctype="multipart/form-data" action="<?=$_SERVER['PHP_SELF']?>" method="POST"><!--onSubmit="progress_bar();"-->
<form name="formUpload" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"><!--onSubmit="progress_bar();"-->
<input type="hidden" name="sent" value="1">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
<div class="title"><span>File Attachment</span></div>

@ -79,9 +79,9 @@ $editor = new ImageEditor($manager, $IMConfig);
<table>
<tr>
<td>
<form action="editorFrame.php?img=<?=$_GET['img']?>&action=replace" target='editor' id="uploadForm" method="post" enctype="multipart/form-data">
<form action="editorFrame.php?img=<?php echo $_GET['img']; ?>&action=replace" target='editor' id="uploadForm" method="post" enctype="multipart/form-data">
&nbsp;<input type="file" name="upload" id="upload"/>
<input type="hidden" name="dir" id="dir" value="<?=dirname($img)?>" />
<input type="hidden" name="dir" id="dir" value="<?php echo dirname($img); ?>" />
</form>
</td>
<td>

@ -49,7 +49,7 @@
<script type="text/javascript">
// <![CDATA[
var processedAction = "<?=$_GET['action']?>";
var processedAction = "<?php echo $_GET['action']; ?>";
if (processedAction == 'replace' && parent.old)
{
@ -163,7 +163,7 @@
if ($editor->forcedNewName != false)
{
?>
message += '\n' + i18n('File name was changed into ') + '<?=$editor->forcedNewName?>';
message += '\n' + i18n('File name was changed into ') + '<?php echo $editor->forcedNewName; ?>';
<?
}
?>
@ -252,7 +252,7 @@
<?php if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?>
<div id="background" name="background" style="margin: auto; width: <?php echo $imageInfo['width']; ?>px; height: <?php echo $imageInfo['height']; ?>px; background-image: url(<?php echo $imageInfo['src']; ?>);">
<img name="floater" id="floater" style="width: 150px; height: 150px; behavior: url('assets/pngbehavior.htc'); position: absolute" src="<?= $IMConfig['base_url'] . $IMConfig['watermarks'][0] ?>" />
<img name="floater" id="floater" style="width: 150px; height: 150px; behavior: url('assets/pngbehavior.htc'); position: absolute" src="<?php echo $IMConfig['base_url'] . $IMConfig['watermarks'][0]; ?>" />
</div>
<span id="imgCanvas" name="imgCanvas" class="crop" style="display: none;"><img src="<?php echo $imageInfo['src']; ?>" <?php echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage" /></span>

Loading…
Cancel
Save