SVN: toys/stbr/index.php
vip
vip at pld-linux.org
Thu Jun 26 23:46:19 CEST 2008
Author: vip
Date: Thu Jun 26 23:46:18 2008
New Revision: 9825
Modified:
toys/stbr/index.php
Log:
- allows storing nick with host, display only nick
Modified: toys/stbr/index.php
==============================================================================
--- toys/stbr/index.php (original)
+++ toys/stbr/index.php Thu Jun 26 23:46:18 2008
@@ -314,10 +314,17 @@
//echo $inner;
$inner = sqlite_query($db, $inner);
$rows = sqlite_num_rows($inner) + 1;
+$sender = $p['sender'];
+
+$pos = strpos($p['sender'], '@');
+if($pos)
+{
+ $sender = substr($p['sender'], 0, $pos+3) . '...';
+}
?>
<tr class="entry">
<td class="date" rowspan="<?=$rows?>"><?=$p['date']?></td>
-<td class="sender" rowspan="<?=$rows?>"><?=$p['sender']?></td>
+<td class="sender" rowspan="<?=$rows?>"><?=$sender?></td>
<td colspan="4"></td>
</tr>
<!-- inner evil -->
More information about the pld-cvs-commit
mailing list