[geeklog-cvs] Geeklog-1.x/plugins/links functions.inc,1.87,1.88

Oliver ospiess at qs1489.pair.com
Tue Oct 9 01:39:38 EDT 2007


Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv38196

Modified Files:
	functions.inc 
Log Message:
make the validation of links a second step in the process

Index: functions.inc
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/links/functions.inc,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -d -r1.87 -r1.88
*** functions.inc	11 Sep 2007 05:31:11 -0000	1.87
--- functions.inc	9 Oct 2007 05:39:36 -0000	1.88
***************
*** 60,63 ****
--- 60,64 ----
  require_once ($_CONF['path'] . 'plugins/links/config.php');
  
+ 
  // +---------------------------------------------------------------------------+
  // | Geeklog Plugin API Implementation                                         |
***************
*** 1172,1176 ****
  function plugin_getListField_links($fieldname, $fieldvalue, $A, $icon_arr)
  {
!     global $_CONF, $LANG_ACCESS;
  
      $retval = '';
--- 1173,1177 ----
  function plugin_getListField_links($fieldname, $fieldvalue, $A, $icon_arr)
  {
!     global $_CONF, $LANG_ACCESS, $LANG_LINKS_ADMIN;
  
      $retval = '';
***************
*** 1197,1202 ****
                  $retval = COM_createLink(stripslashes($A['title']), $A['url']);
                  break;
!             case 'htmlcode';
                  $retval = links_validateUrl($A['url']);
                  break;
              case 'category':
--- 1198,1206 ----
                  $retval = COM_createLink(stripslashes($A['title']), $A['url']);
                  break;
!             case 'dovalidate';
                  $retval = links_validateUrl($A['url']);
+                 break;
+             case 'beforevalidate';
+                 $retval = $LANG_LINKS_ADMIN[57];
                  break;
              case 'category':




More information about the geeklog-cvs mailing list