|
|
|
|
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #167381 is a reply to message #167380] |
Tue, 12 June 2012 08:04 |
DaveQB
Messages: 109 Registered: January 2006 Location: Sydney
Karma: 0
|
Senior Member |
|
|
I just did a diff on your new file with mine compared to the diff with your new patch and the last version fro the 6th of June.
I have the same changes until line 354 where I continue to have more.
See code block below.
Also, may I suggest line 190 be changed from:
echo errorify('Sorry, you cannot abdicate from being and administrator. Ask another administrator to remove your account.');
to
echo errorify('Sorry, you cannot abdicate from being an administrator. Ask another administrator to remove your account.');
@@ -356,7 +354,7 @@
$item_s = _esc($item_s);
if (($cnt = q_singleval('SELECT count(*) FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s))) {
- $c = uq(q_limit('SELECT id, alias, email, last_visit, last_used_ip, posted_msg_count FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s . ' ORDER BY last_login DESC', 40, $start));
+ $c = uq(q_limit('SELECT id, alias, email, last_login, last_known_ip, posted_msg_count FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s, 40, $start));
}
switch ($cnt) {
case 0:
@@ -376,12 +374,12 @@
echo '<p>There are '. $cnt .' users that match this '. $field .' mask:</p>';
echo '<table class="resulttable fulltable">';
echo '<thead><tr class="resulttopic">';
- echo ' <th>User Login</th><th>E-mail</th><th>Last visit</th><th>Last IP</th><th>Posts</th><th>Action</th>';
+ echo ' <th>User Login</th><th>E-mail</th><th>Last online</th><th>Last IP</th><th>Posts</th><th>Action</th>';
echo '</tr></thead>';
$i = 0;
while ($r = db_rowarr($c)) {
$bgcolor = ($i++%2) ? ' class="resultrow2"' : ' class="resultrow1"';
- echo '<tr'. $bgcolor .'><td>'. $r[1] .'</td><td>'. htmlspecialchars($r[2]) .'</td><td>'. fdate($r[3], 'd M Y H:i:s') .'</td><td>'. $r[4] .'</td><td>'. $r[5] .'</td><td><a href="admuser.php?usr_id='. $r[0] .'&act=m&'. __adm_rsid .'">Edit</a> | <a href="admuser.php?act=del&usr_id='. $r[0] .'&'. __adm_rsid .'">Delete</a></td></tr>';
+ echo '<tr'. $bgcolor .'><td>'. $r[1] .'</td><td>'. htmlspecialchars($r[2]) .'</td><td>'. fdate($r[3], 'd M Y') .'</td><td>'. long2ip($r[4]) .'</td><td>'. $r[5] .'</td><td><a href="admuser.php?usr_id='. $r[0] .'&act=m&'. __adm_rsid .'">Edit</a> | <a href="admuser.php?act=del&usr_id='. $r[0] .'&'. __adm_rsid .'">Delete</a></td></tr>';
}
echo '</table>';
unset($c);
@@ -421,11 +419,11 @@
if ($u->sig) {
echo '<tr class="field"><td>Signature:</td><td>'. $u->sig .'</td></tr>';
}
- if ($u->registration_ip) {
- echo '<tr class="field"><td>Registration:</td><td>'. fdate($u->join_date, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&ip='. $u->registration_ip .'&'. __adm_rsid .'" title="Analyse IP usage">'. $u->registration_ip .'</a></td></tr>';
+ if ($u->reg_ip) {
+ echo '<tr class="field"><td>Registration:</td><td>'. fdate($u->join_date, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&ip='. long2ip($u->reg_ip) .'&'. __adm_rsid .'" title="Analyse IP usage">'. long2ip($u->reg_ip) .'</td></tr>';
}
- if ($u->last_used_ip) {
- echo '<tr class="field"><td>Last visit:</td><td>'. fdate($u->last_visit, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&ip='. $u->last_used_ip .'&'. __adm_rsid .'" title="Analyse IP usage">'. $u->last_used_ip .'</a></td></tr>';
+ if ($u->last_known_ip) {
+ echo '<tr class="field"><td>Last visit:</td><td>'. fdate($u->last_visit, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&ip='. long2ip($u->last_known_ip) .'&'. __adm_rsid .'" title="Analyse IP usage">'. long2ip($u->last_known_ip) .'</a></td></tr>';
}
if ($u->posted_msg_count) {
echo '<tr class="field"><td>Post count:</td><td>'. $u->posted_msg_count .' [ <a href="../'.__fud_index_name__.'?t=showposts&id='.$usr_id.'&'.__adm_rsid.'" title="View user\'s messages on the forum">View Messages</a> ]</td></tr>';
|
|
|
|
|
|
|