cvs: pear /Perm_LiveUser/docs/examples/example4 finish.inc.php news_change.tpl.php news_new.tpl.php news_view.tpl.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Fri, 23 Apr 2004 19:30:42 +0000 |
| Subject: | cvs: pear /Perm_LiveUser/docs/examples/example4 finish.inc.php news_change.tpl.php news_new.tpl.php news_view.tpl.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-18655@lists.php.net to get a copy of this message | ||
dufuz Fri Apr 23 15:30:42 2004 EDT
Modified files:
/pear/Perm_LiveUser/docs/examples/example4 finish.inc.php
news_change.tpl.php
news_new.tpl.php
news_view.tpl.php
Log:
removed all accourens of group_define_name...
We have to rework this example to use the new translation stuff (same with the others examples)
http://cvs.php.net/diff.php/pear/Perm_LiveUser/docs/examples/example4/finish.inc.php?r1=1.5&r2=1.6&ty=u
Index: pear/Perm_LiveUser/docs/examples/example4/finish.inc.php
diff -u pear/Perm_LiveUser/docs/examples/example4/finish.inc.php:1.5
pear/Perm_LiveUser/docs/examples/example4/finish.inc.php:1.6
--- pear/Perm_LiveUser/docs/examples/example4/finish.inc.php:1.5 Thu Apr 22 09:18:14 2004
+++ pear/Perm_LiveUser/docs/examples/example4/finish.inc.php Fri Apr 23 15:30:41 2004
@@ -1,18 +1,5 @@
<?php
- // we could also make a db query, but I'm too lazy at this point ;-)
- $sql = 'SELECT group_define_name FROM liveuser_groups ORDER BY group_define_name';
- $groups = $db->getCol($sql);
- if (DB::IsError($groups)) {
- die($groups->getMessage());
- }
- array_unshift($groups,'');
-
- foreach ($LU->getProperty('groupIds') as $id) {
- $userGroups[] = $groups[$id];
- }
-
$tpl->setVariable(array('user' =>
$LU->getProperty('handle'),
- 'group' => implode(', ', $userGroups),
'lastLogin' => date('d.m.Y H:i',
$LU->getProperty('lastLogin'))
)
);
http://cvs.php.net/diff.php/pear/Perm_LiveUser/docs/examples/example4/news_change.tpl.php?r1=1.3&r2=1.4&ty=u
Index: pear/Perm_LiveUser/docs/examples/example4/news_change.tpl.php
diff -u pear/Perm_LiveUser/docs/examples/example4/news_change.tpl.php:1.3
pear/Perm_LiveUser/docs/examples/example4/news_change.tpl.php:1.4
--- pear/Perm_LiveUser/docs/examples/example4/news_change.tpl.php:1.3 Thu Apr 22 09:18:14 2004
+++ pear/Perm_LiveUser/docs/examples/example4/news_change.tpl.php Fri Apr 23 15:30:41 2004
@@ -37,9 +37,6 @@
<td rowspan="2"
valign="top"> </td>
<td><span style="font-size:
10px;">{user}</span></td>
</tr>
- <tr>
- <td><span style="font-size:
10px;">{group}</span></td>
- </tr>
<tr valign="bottom">
<td colspan="2"
height="40"><span style="font-size: 10px;">Last login:<br
/>{lastLogin}</span></td>
</tr>
http://cvs.php.net/diff.php/pear/Perm_LiveUser/docs/examples/example4/news_new.tpl.php?r1=1.3&r2=1.4&ty=u
Index: pear/Perm_LiveUser/docs/examples/example4/news_new.tpl.php
diff -u pear/Perm_LiveUser/docs/examples/example4/news_new.tpl.php:1.3
pear/Perm_LiveUser/docs/examples/example4/news_new.tpl.php:1.4
--- pear/Perm_LiveUser/docs/examples/example4/news_new.tpl.php:1.3 Thu Apr 22 09:18:14 2004
+++ pear/Perm_LiveUser/docs/examples/example4/news_new.tpl.php Fri Apr 23 15:30:41 2004
@@ -37,9 +37,6 @@
<td rowspan="2"
valign="top"> </td>
<td><font style="font-size:
10px;">{user}</span></td>
</tr>
- <tr>
- <td><font style="font-size:
10px;">{group}</span></td>
- </tr>
<tr valign="bottom">
<td colspan="2"
height="40"><span style="font-size: 10px;">Last login:<br
/>{lastLogin}</span></td>
</tr>
http://cvs.php.net/diff.php/pear/Perm_LiveUser/docs/examples/example4/news_view.tpl.php?r1=1.2&r2=1.3&ty=u
Index: pear/Perm_LiveUser/docs/examples/example4/news_view.tpl.php
diff -u pear/Perm_LiveUser/docs/examples/example4/news_view.tpl.php:1.2
pear/Perm_LiveUser/docs/examples/example4/news_view.tpl.php:1.3
--- pear/Perm_LiveUser/docs/examples/example4/news_view.tpl.php:1.2 Sun Feb 8 05:06:14 2004
+++ pear/Perm_LiveUser/docs/examples/example4/news_view.tpl.php Fri Apr 23 15:30:41 2004
@@ -37,9 +37,6 @@
<td rowspan="2"
valign="top"> </td>
<td><span style="font-size:
10px;">{user}</span></td>
</tr>
- <tr>
- <td><span style="font-size:
10px;">{group}</span></td>
- </tr>
<tr valign="bottom">
<td colspan="2"
height="40"><span style="font-size: 10px;">Last login:<br
/>{lastLogin}</span></td>
</tr>