PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Mod Submissions

Reply
 
Thread Tools
Old 11-22-2006, 06:29 AM   #1
blueyed
Green Mole
 
Join Date: Sep 2004
Posts: 19
Remove PHP short tags (patch)

Here's a patch (against 1.8.7 probably), which removes PHP short tags.

As far as I can see this is the only file, where short tags have been used.

I've not checked the latest release, sorry.

Hope this helps:

Code:
Index: limit_update.php
===================================================================
--- limit_update.php
+++ limit_update.php
@@ -27,7 +27,7 @@
 	<td valign="top">
 	<h1><?php phpdigPrnMsg('limit') ?></h1>
 	<p class='grey'>
-	<?=phpdigPrnMsg('upd_sites')?>
+	<?php echo phpdigPrnMsg('upd_sites') ?>
 	</p>
 	<a href="index.php" target="_top">
 		[<?php phpdigPrnMsg('back') ?>]</a> 
@@ -45,7 +45,7 @@
 
 <?php 
 if ((isset($_REQUEST['upd'])) && ($_REQUEST['upd'] == 1)) { 
-	?><p class='grey'><?=phpdigPrnMsg('upd2')?></p><br><? 
+	?><p class='grey'><?php echo phpdigPrnMsg('upd2') ?></p><br><?php 
 } 
 
 if ((isset($_REQUEST['links'])) && (!$_REQUEST['links'])) { /* SHOW the form to enter the days*/ 	
@@ -147,26 +147,26 @@
 </body>
 </html>
 
-<?
+<?php 
 exit();
 
 function form_cron_limits($id_connect, $upd=0){
 	if ((isset($_GET['dir'])) && ($_GET['dir'] == 'DESC')) $dir='ASC'; else $dir='DESC';
 
 	if($upd == 1) { 
-	  ?><p class='grey'><?=phpdigPrnMsg('upd2')?></p><br><? 
+	  ?><p class='grey'><?php echo phpdigPrnMsg('upd2') ?></p><br><?php 
         } 
 	?>	
 	<table class="borderCollapse" border="0">
 		<tr>
-		 <td class="blueForm"><a href="limit_update.php?OB=site_id&dir=<?=$dir?>"><?=phpdigPrnMsg('id')?></a></td>
-		 <td class="blueForm"><a href="limit_update.php?OB=site_url&dir=<?=$dir?>"><?=phpdigPrnMsg('url')?></a></td>
+		 <td class="blueForm"><a href="limit_update.php?OB=site_id&dir=<?php echo $dir ?>"><?php echo phpdigPrnMsg('id') ?></a></td>
+		 <td class="blueForm"><a href="limit_update.php?OB=site_url&dir=<?php echo $dir ?>"><?php echo phpdigPrnMsg('url') ?></a></td>
 		 <?php 
 		 if(CRON_ENABLE){
-		 	?><td class="blueForm"><a href="limit_update.php?OB=days&dir=<?=$dir?>"><?=phpdigPrnMsg('days')?></a></td><?php 
+		 	?><td class="blueForm"><a href="limit_update.php?OB=days&dir=<?php echo $dir ?>"><?php echo phpdigPrnMsg('days') ?></a></td><?php 
 		 }?>
-		 <td class="blueForm"><a href="limit_update.php?OB=links&dir=<?=$dir?>"><?=phpdigPrnMsg('links')?></a></td>
-		 <td class="blueForm"><a href="limit_update.php?OB=depth&dir=<?=$dir?>"><?=phpdigPrnMsg('depth')?></a></td>
+		 <td class="blueForm"><a href="limit_update.php?OB=links&dir=<?php echo $dir ?>"><?php echo phpdigPrnMsg('links') ?></a></td>
+		 <td class="blueForm"><a href="limit_update.php?OB=depth&dir=<?php echo $dir ?>"><?php echo phpdigPrnMsg('depth') ?></a></td>
 		</tr>
 		<form class="grey" action="limit_update.php" method="post">
 		<?php
@@ -238,28 +238,28 @@
 			break;
 		}
 		if($col == 5) $col = 1;?>
-		<tr class="<?=$class?>">		
-		 <td class="<?=$class?>"><?=$id?></td>	
-		 <td class="<?=$class?>"><?=$url?></td>
+		<tr class="<?php echo $class ?>">		
+		 <td class="<?php echo $class ?>"><?php echo $id ?></td>	
+		 <td class="<?php echo $class ?>"><?php echo $url ?></td>
 		 <?php 
 		 if(CRON_ENABLE){
-		 	?><td class="<?=$class?>">
-			<input class="phpdigSelect" type="text" name="days[<?=$id?>]" value="<?=$days_db?>" size="10"/>
+		 	?><td class="<?php echo $class ?>">
+			<input class="phpdigSelect" type="text" name="days[<?php echo $id ?>]" value="<?php echo $days_db ?>" size="10"/>
 		  	</td><?php 
 		  } ?>
-		 <td class="<?=$class?>">
-			<input class="phpdigSelect" type="text" name="links[<?=$id?>]" value="<?=$links?>" size="10"/>
+		 <td class="<?php echo $class ?>">
+			<input class="phpdigSelect" type="text" name="links[<?php echo $id ?>]" value="<?php echo $links ?>" size="10"/>
 		 </td>
-		 <td class="<?=$class?>">
-			<input class="phpdigSelect" type="text" name="depth[<?=$id?>]" value="<?=$depth?>" size="10"/>
+		 <td class="<?php echo $class ?>">
+			<input class="phpdigSelect" type="text" name="depth[<?php echo $id ?>]" value="<?php echo $depth ?>" size="10"/>
              </td>
 		</tr>
-		<?
+		<?php 
 
 	} ?>
 	<tr><td><input type="submit" name="sent" value="<?php echo phpdigPrnMsg('go'); ?>"></td></tr>
 	</form>
-	</table><?
+	</table><?php 
 }
 ?>
Attached Files
File Type: txt phpdig_remove_shorttags.diff.txt (3.9 KB, 2 views)
blueyed is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem for short words infoland Troubleshooting 8 02-23-2005 09:10 AM
Dynamic Link Bug with Short Tags (and solution) Zee How-to Forum 0 12-10-2004 08:41 AM
No short description from .doc? Spider External Binaries 1 09-06-2004 03:25 AM
Remove Index pages bigals How-to Forum 11 03-12-2004 01:16 AM
Small Highlight Patch Charter Mod Submissions 0 11-26-2003 07:28 PM


All times are GMT -8. The time now is 03:45 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.