Author: lesabotsy
Date: Wed May 30 08:09:30 2007
New Revision: 460

URL: http://svn.gna.org/viewcvs/phplinker?rev=460&view=rev
Log:

Modification de l'expression reguliere

Modified:
    trunk/www/admin/log.php
    trunk/www/lib/log.php

Modified: trunk/www/admin/log.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/log.php?rev=460&r1=459&r2=460&view=diff
==============================================================================
--- trunk/www/admin/log.php (original)
+++ trunk/www/admin/log.php Wed May 30 08:09:30 2007
@@ -67,7 +67,6 @@
      if ($t >= $debut && $t < ($debut+$pPage) && $Counter < $pPage) {
        $Date = mysql_result ($qry, $Counter, "date");
        $Log = linker_parse_log(mysql_result ($qry, $Counter, "log"));
-
        $log_replaced='';
        if(isset($Log['description']))
         $log_replaced = linker_parser_log($Log['description']);
@@ -77,13 +76,12 @@
        }else{
         $tr = "<tr class=\"row_even\">";
        }
-
        if(!isset($Log['user']))
         $Log['user']='unknown';
 
        $myData[] = "$tr
                     <td align ='left'>$Date</td>
-                    <td align 
='left'><b>".$Log['user']."</b>&nbsp;".$log_replaced."</td>
+                    <td align 
='left'><b>[".$Log['user']."]</b>&nbsp;".$log_replaced."</td>
                  </tr>";
        $Counter++;
      } else {

Modified: trunk/www/lib/log.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/lib/log.php?rev=460&r1=459&r2=460&view=diff
==============================================================================
--- trunk/www/lib/log.php (original)
+++ trunk/www/lib/log.php Wed May 30 08:09:30 2007
@@ -32,7 +32,7 @@
 
 function linker_parse_log($log) {
   $parsed_log = array();
-  $pattern_match = '/^[\[]\w+[\]]/';
+  $pattern_match = '/^[\[].*[\]]/';
   $pattern_replace[0] = '/^[\[]/';
   $pattern_replace[1] = '/[\]]$/';
   if (preg_match($pattern_match,$log,$matches)){


_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits

Reply via email to