punbb/admin/users.php
changeset 7 98bbc533541c
parent 6 5e1f1e916419
child 9 a932ce8c4827
equal deleted inserted replaced
6:5e1f1e916419 7:98bbc533541c
   203 						<th class="tcl" scope="col"><?php echo $lang_admin['Username column'] ?></th>
   203 						<th class="tcl" scope="col"><?php echo $lang_admin['Username column'] ?></th>
   204 						<th class="tc2" scope="col"><?php echo $lang_admin['Title column'] ?></th>
   204 						<th class="tc2" scope="col"><?php echo $lang_admin['Title column'] ?></th>
   205 						<th class="tc3" scope="col"><?php echo $lang_admin['Posts'] ?></th>
   205 						<th class="tc3" scope="col"><?php echo $lang_admin['Posts'] ?></th>
   206 <?php ($hook = get_hook('aus_show_users_table_header_after_num_posts')) ? eval($hook) : null; ?>
   206 <?php ($hook = get_hook('aus_show_users_table_header_after_num_posts')) ? eval($hook) : null; ?>
   207 						<th class="tcr actions" scope="col"><?php echo $lang_admin['Actions'] ?></th>
   207 						<th class="tcr actions" scope="col"><?php echo $lang_admin['Actions'] ?></th>
   208 <?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>
   208 <?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>
   209 <?php endif; ?>					</tr>
   209 <?php endif; ?>					</tr>
   210 				</thead>
   210 				</thead>
   211 				<tbody>
   211 				<tbody>
   212 <?php
   212 <?php
   213 
   213 
   243 						<td class="tcl"><strong><a href="<?php echo pun_link($pun_url['user'], $user_data['id']) ?>"><?php echo htmlspecialchars($user_data['username']) ?></a></strong> <span class="usermail"><a href="mailto:<?php echo $user_data['email'] ?>"><?php echo $user_data['email'] ?></a></span> <?php if ($user_data['admin_note'] != '') echo '<span class="usernote">'.htmlspecialchars($user_data['admin_note']).'</span>' ?></td>
   243 						<td class="tcl"><strong><a href="<?php echo pun_link($pun_url['user'], $user_data['id']) ?>"><?php echo htmlspecialchars($user_data['username']) ?></a></strong> <span class="usermail"><a href="mailto:<?php echo $user_data['email'] ?>"><?php echo $user_data['email'] ?></a></span> <?php if ($user_data['admin_note'] != '') echo '<span class="usernote">'.htmlspecialchars($user_data['admin_note']).'</span>' ?></td>
   244 						<td class="tc2"><?php echo $pun_page['user_title'] ?></td>
   244 						<td class="tc2"><?php echo $pun_page['user_title'] ?></td>
   245 						<td class="tc3"><?php echo $user_data['num_posts'] ?></td>
   245 						<td class="tc3"><?php echo $user_data['num_posts'] ?></td>
   246 <?php ($hook = get_hook('aus_show_users_table_contents_after_num_posts')) ? eval($hook) : null; ?>
   246 <?php ($hook = get_hook('aus_show_users_table_contents_after_num_posts')) ? eval($hook) : null; ?>
   247 						<td class="tcr actions"><?php echo $pun_page['actions'] ?></td>
   247 						<td class="tcr actions"><?php echo $pun_page['actions'] ?></td>
   248 <?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>
   248 <?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>
   249 <?php endif; ?>					</tr>
   249 <?php endif; ?>					</tr>
   250 <?php
   250 <?php
   251 
   251 
   252 			}
   252 			}
   253 			else
   253 			else
   258 						<td class="tcl"><?php echo htmlspecialchars($poster) ?></td>
   258 						<td class="tcl"><?php echo htmlspecialchars($poster) ?></td>
   259 						<td class="tc2"><?php echo $lang_admin['Guest'] ?></td>
   259 						<td class="tc2"><?php echo $lang_admin['Guest'] ?></td>
   260 						<td class="tc3">&#160;</td>
   260 						<td class="tc3">&#160;</td>
   261 <?php ($hook = get_hook('aus_show_users_table_contents_after_num_posts_guest')) ? eval($hook) : null; ?>
   261 <?php ($hook = get_hook('aus_show_users_table_contents_after_num_posts_guest')) ? eval($hook) : null; ?>
   262 						<td class="tcr">&#160;</td>
   262 						<td class="tcr">&#160;</td>
   263 <?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>
   263 <?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>
   264 <?php endif; ?>					</tr>
   264 <?php endif; ?>					</tr>
   265 <?php
   265 <?php
   266 
   266 
   267 			}
   267 			}
   268 		}
   268 		}
   269 	}
   269 	}
   270 	else
   270 	else
   271 		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";
   271 		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";
   272 
   272 
   273 ?>
   273 ?>
   274 				</tbody>
   274 				</tbody>
   275 			</table>
   275 			</table>
   276 <?php
   276 <?php
   823 						<th class="tcl" scope="col"><?php echo $lang_admin['Username column'] ?></th>
   823 						<th class="tcl" scope="col"><?php echo $lang_admin['Username column'] ?></th>
   824 						<th class="tc2" scope="col"><?php echo $lang_admin['Title column'] ?></th>
   824 						<th class="tc2" scope="col"><?php echo $lang_admin['Title column'] ?></th>
   825 						<th class="tc3" scope="col"><?php echo $lang_admin['Posts'] ?></th>
   825 						<th class="tc3" scope="col"><?php echo $lang_admin['Posts'] ?></th>
   826 <?php ($hook = get_hook('aus_find_user_table_header_after_num_posts')) ? eval($hook) : null; ?>
   826 <?php ($hook = get_hook('aus_find_user_table_header_after_num_posts')) ? eval($hook) : null; ?>
   827 						<th class="tcr actions" scope="col"><?php echo $lang_admin['Actions'] ?></th>
   827 						<th class="tcr actions" scope="col"><?php echo $lang_admin['Actions'] ?></th>
   828 <?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>
   828 <?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>
   829 <?php endif; ?>					</tr>
   829 <?php endif; ?>					</tr>
   830 				</thead>
   830 				</thead>
   831 				<tbody>
   831 				<tbody>
   832 <?php
   832 <?php
   833 
   833 
   848 						<td class="tcl"><?php echo '<strong><a href="'.pun_link($pun_url['user'], $user_data['id']).'">'.htmlspecialchars($user_data['username']).'</a></strong>' ?> <span class="usermail"><a href="mailto:<?php echo $user_data['email'] ?>"><?php echo $user_data['email'] ?></a></span> <?php if ($user_data['admin_note'] != '') echo '<span class="usernote">'.htmlspecialchars($user_data['admin_note']).'</span>' ?></td>
   848 						<td class="tcl"><?php echo '<strong><a href="'.pun_link($pun_url['user'], $user_data['id']).'">'.htmlspecialchars($user_data['username']).'</a></strong>' ?> <span class="usermail"><a href="mailto:<?php echo $user_data['email'] ?>"><?php echo $user_data['email'] ?></a></span> <?php if ($user_data['admin_note'] != '') echo '<span class="usernote">'.htmlspecialchars($user_data['admin_note']).'</span>' ?></td>
   849 						<td class="tc2"><?php echo $user_title ?></td>
   849 						<td class="tc2"><?php echo $user_title ?></td>
   850 						<td class="tc3"><?php echo $user_data['num_posts'] ?></td>
   850 						<td class="tc3"><?php echo $user_data['num_posts'] ?></td>
   851 <?php ($hook = get_hook('aus_find_user_table_contents_after_num_posts')) ? eval($hook) : null; ?>
   851 <?php ($hook = get_hook('aus_find_user_table_contents_after_num_posts')) ? eval($hook) : null; ?>
   852 						<td class="tcr actions"><?php echo $pun_page['actions'] ?></td>
   852 						<td class="tcr actions"><?php echo $pun_page['actions'] ?></td>
   853 <?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>
   853 <?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>
   854 <?php endif; ?>					</tr>
   854 <?php endif; ?>					</tr>
   855 <?php
   855 <?php
   856 
   856 
   857 		}
   857 		}
   858 	}
   858 	}
   859 	else
   859 	else
   860 		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";
   860 		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";
   861 
   861 
   862 ?>
   862 ?>
   863 				</tbody>
   863 				</tbody>
   864 			</table>
   864 			</table>
   865 <?php
   865 <?php