punbb/admin/users.php
changeset 7 98bbc533541c
parent 6 5e1f1e916419
child 9 a932ce8c4827
--- a/punbb/admin/users.php	Sat Apr 05 23:56:45 2008 -0400
+++ b/punbb/admin/users.php	Sun Apr 06 00:28:50 2008 -0400
@@ -205,7 +205,7 @@
 						<th class="tc3" scope="col"><?php echo $lang_admin['Posts'] ?></th>
 <?php ($hook = get_hook('aus_show_users_table_header_after_num_posts')) ? eval($hook) : null; ?>
 						<th class="tcr actions" scope="col"><?php echo $lang_admin['Actions'] ?></th>
-<?php ($hook = get_hook('aus_show_users_table_header_after_actions')) ? eval($hook) : null; if ($pun_user['g_id'] == PUN_ADMIN): ?>						<th class="tcmod" scope="col"><?php echo $lang_misc['Select'] ?></th>
+<?php ($hook = get_hook('aus_show_users_table_header_after_actions')) ? eval($hook) : null; if ($session->user_level >= USER_LEVEL_ADMIN): ?>						<th class="tcmod" scope="col"><?php echo $lang_misc['Select'] ?></th>
 <?php endif; ?>					</tr>
 				</thead>
 				<tbody>
@@ -245,7 +245,7 @@
 						<td class="tc3"><?php echo $user_data['num_posts'] ?></td>
 <?php ($hook = get_hook('aus_show_users_table_contents_after_num_posts')) ? eval($hook) : null; ?>
 						<td class="tcr actions"><?php echo $pun_page['actions'] ?></td>
-<?php ($hook = get_hook('aus_show_users_table_contents_after_actions')) ? eval($hook) : null; if ($pun_user['g_id'] == PUN_ADMIN): ?>						<td class="tcmod"><input type="checkbox" name="users[<?php echo $user_data['id'] ?>]" value="1" /></td>
+<?php ($hook = get_hook('aus_show_users_table_contents_after_actions')) ? eval($hook) : null; if ($session->user_level >= USER_LEVEL_ADMIN): ?>						<td class="tcmod"><input type="checkbox" name="users[<?php echo $user_data['id'] ?>]" value="1" /></td>
 <?php endif; ?>					</tr>
 <?php
 
@@ -260,7 +260,7 @@
 						<td class="tc3">&#160;</td>
 <?php ($hook = get_hook('aus_show_users_table_contents_after_num_posts_guest')) ? eval($hook) : null; ?>
 						<td class="tcr">&#160;</td>
-<?php ($hook = get_hook('aus_show_users_table_contents_after_actions_guest')) ? eval($hook) : null; if ($pun_user['g_id'] == PUN_ADMIN): ?>						<td class="tcmod">&#160;</td>
+<?php ($hook = get_hook('aus_show_users_table_contents_after_actions_guest')) ? eval($hook) : null; if ($session->user_level >= USER_LEVEL_ADMIN): ?>						<td class="tcmod">&#160;</td>
 <?php endif; ?>					</tr>
 <?php
 
@@ -268,7 +268,7 @@
 		}
 	}
 	else
-		echo "\t\t\t\t\t".'<tr><td class="tcl" colspan="'.(($pun_user['g_id'] == PUN_ADMIN) ? '5' : '4').'">'.$lang_admin['Cannot find IP'].'</td></tr>'."\n";
+		echo "\t\t\t\t\t".'<tr><td class="tcl" colspan="'.(($session->user_level >= USER_LEVEL_ADMIN) ? '5' : '4').'">'.$lang_admin['Cannot find IP'].'</td></tr>'."\n";
 
 ?>
 				</tbody>
@@ -825,7 +825,7 @@
 						<th class="tc3" scope="col"><?php echo $lang_admin['Posts'] ?></th>
 <?php ($hook = get_hook('aus_find_user_table_header_after_num_posts')) ? eval($hook) : null; ?>
 						<th class="tcr actions" scope="col"><?php echo $lang_admin['Actions'] ?></th>
-<?php ($hook = get_hook('aus_find_user_table_header_after_actions')) ? eval($hook) : null; if ($pun_user['g_id'] == PUN_ADMIN): ?>					<th class="tcmod" scope="col"><?php echo $lang_misc['Select'] ?></th>
+<?php ($hook = get_hook('aus_find_user_table_header_after_actions')) ? eval($hook) : null; if ($session->user_level >= USER_LEVEL_ADMIN): ?>					<th class="tcmod" scope="col"><?php echo $lang_misc['Select'] ?></th>
 <?php endif; ?>					</tr>
 				</thead>
 				<tbody>
@@ -850,14 +850,14 @@
 						<td class="tc3"><?php echo $user_data['num_posts'] ?></td>
 <?php ($hook = get_hook('aus_find_user_table_contents_after_num_posts')) ? eval($hook) : null; ?>
 						<td class="tcr actions"><?php echo $pun_page['actions'] ?></td>
-<?php ($hook = get_hook('aus_find_user_table_contents_after_actions')) ? eval($hook) : null; if ($pun_user['g_id'] == PUN_ADMIN): ?>					<td class="tcmod"><input type="checkbox" name="users[<?php echo $user_data['id'] ?>]" value="1" /></td>
+<?php ($hook = get_hook('aus_find_user_table_contents_after_actions')) ? eval($hook) : null; if ($session->user_level >= USER_LEVEL_ADMIN): ?>					<td class="tcmod"><input type="checkbox" name="users[<?php echo $user_data['id'] ?>]" value="1" /></td>
 <?php endif; ?>					</tr>
 <?php
 
 		}
 	}
 	else
-		echo "\t\t\t\t\t".'<tr><td class="tcl" colspan="'.(($pun_user['g_id'] == PUN_ADMIN) ? '5' : '4').'">'.$lang_admin['No match'].'</td></tr>'."\n";
+		echo "\t\t\t\t\t".'<tr><td class="tcl" colspan="'.(($session->user_level >= USER_LEVEL_ADMIN) ? '5' : '4').'">'.$lang_admin['No match'].'</td></tr>'."\n";
 
 ?>
 				</tbody>