[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.375,1.376

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Tue Sep 21 06:58:19 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv26589/public_html

Modified Files:
	lib-common.php 
Log Message:
List supported autolink tags with the allowed HTML.


Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.375
retrieving revision 1.376
diff -C2 -d -r1.375 -r1.376
*** lib-common.php	18 Sep 2004 15:43:04 -0000	1.375
--- lib-common.php	21 Sep 2004 10:58:17 -0000	1.376
***************
*** 3958,3962 ****
      global $_CONF, $LANG01;
  
!     $retval = '<span class="warningsmall">' . $LANG01[31];
  
      if( !SEC_hasRights( 'story.edit' ) || empty( $_CONF['admin_html'] ))
--- 3958,3962 ----
      global $_CONF, $LANG01;
  
!     $retval = '<span class="warningsmall">' . $LANG01[31] . ' ';
  
      if( !SEC_hasRights( 'story.edit' ) || empty( $_CONF['admin_html'] ))
***************
*** 3982,3985 ****
--- 3982,4000 ----
  
      $retval .= '[code]';
+     $br++;
+ 
+     $autotags = PLG_collectTags();
+     foreach( $autotags as $tag )
+     {
+         $retval .= ',';
+         if( $br == 10 )
+         {
+             $retval .= ' ';
+             $br = 0;
+         }
+         $br++;
+         $retval .= '[' . $tag . ':]';
+     }
+ 
      $retval .= '</span>';
  




More information about the geeklog-cvs mailing list