Second pass at adding key files
This commit is contained in:
		
							
								
								
									
										104
									
								
								site/forum/user_ips.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										104
									
								
								site/forum/user_ips.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,104 @@
 | 
			
		||||
<!DOCTYPE html >
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
  <title><%cat_full_name%>: User IP summary: <%user_username%></title>
 | 
			
		||||
<%include include_common_head.html%>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
<%~set content_header_title = $user_username%>
 | 
			
		||||
<%~set content_header_subtitle = 'User IP summary'%>
 | 
			
		||||
 | 
			
		||||
<body class="page-<%page_id%>">
 | 
			
		||||
  <div class="container-b">
 | 
			
		||||
    <%include include_header.html%>
 | 
			
		||||
 | 
			
		||||
    <div class="main">
 | 
			
		||||
      <div class="contentwrapper clearfix">
 | 
			
		||||
        <div class="sidebar">
 | 
			
		||||
            <%include include_sidebar.html%>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <%set content_header_title = "User IP Summary $user_username"%>
 | 
			
		||||
        <%set content_header_title .= $ip%>
 | 
			
		||||
        <%~init array breadcrumbs%><%init hash breadcrumbs.0%>
 | 
			
		||||
        <%~set breadcrumbs.0.name = $content_header_title%>
 | 
			
		||||
 | 
			
		||||
        <%include include_breadcrumb.html%>
 | 
			
		||||
 | 
			
		||||
        <div class="content"><%-- start content--%>
 | 
			
		||||
          <%include include_content_header.html%>
 | 
			
		||||
 | 
			
		||||
          <%~if not ips.length%>
 | 
			
		||||
          <p>
 | 
			
		||||
            The user <%include include_username.html%> has not made any posts yet.
 | 
			
		||||
          </p>
 | 
			
		||||
          <%~else%>
 | 
			
		||||
          <p>
 | 
			
		||||
            The user <%include include_username.html%> has posted to <%cat_full_name%> from the following IP's:
 | 
			
		||||
          </p>
 | 
			
		||||
 | 
			
		||||
          <%~unless current.user_status == $ADMINISTRATOR%>
 | 
			
		||||
          <p>Note that information is only shown for forums which you moderate.</p>
 | 
			
		||||
          <%~endunless%>
 | 
			
		||||
 | 
			
		||||
          <div class="dtable">
 | 
			
		||||
            <div class="dhead">
 | 
			
		||||
              <div class="drow">
 | 
			
		||||
                <div class="dcell ip">IP Address</div>
 | 
			
		||||
                <div class="dcell posts">Posts</div>
 | 
			
		||||
                <div class="dcell date">Latest Post</div>
 | 
			
		||||
                <div class="dcell">Other Posters</div>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="dbody">
 | 
			
		||||
              <%~loop ips%>
 | 
			
		||||
              <div class="drow">
 | 
			
		||||
                <div class="dcell ip">
 | 
			
		||||
                  <%ip%>
 | 
			
		||||
                  <%~if country_lookups%>
 | 
			
		||||
                  <span class="country-name">(<%if ip_country%><span><%ip_country%></span><%else%><span class="unknown">Unknown</span><%endif%>)</span>
 | 
			
		||||
                  <%~endif%>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="dcell posts">
 | 
			
		||||
                  <a href='<%GForum::SEO::url(params => "do=ip_posts;ip=$ip")%>' title="Show all posts made by <%user_username%> from <%ip%>"><%posts%> posts</a>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="dcell date"><%GForum::date($post_time)%></div>
 | 
			
		||||
                <div class="dcell">
 | 
			
		||||
                  <%~loop others~%>
 | 
			
		||||
                  <span class="poster"><%~%>
 | 
			
		||||
                    <%include include_username.html%>
 | 
			
		||||
                    <span class="poster-data">(<%~%>
 | 
			
		||||
                      <%~set url_user_username = escape_url unescape_html $user_username%>
 | 
			
		||||
                      <a href='<%GForum::SEO::url(params => "do=user_ips;username=$url_user_username")%>' title="View user's IP addresses">IPs</a>
 | 
			
		||||
                      <%~if current.user_status == $ADMINISTRATOR and user_status != $ADMINISTRATOR%>
 | 
			
		||||
                      <span class="sep">|</span>
 | 
			
		||||
                      <%~if user_enabled%><%set url_user_enabled = disable_user%><%else%><%set url_user_enabled = enable_user%><%endif%>
 | 
			
		||||
                      <%~set url_search_username = escape_url unescape_html $search_user.user_username%>
 | 
			
		||||
                      <a href='<%GForum::SEO::url(params => "do=$url_user_enabled;user_id=$user_id;redo=$this_do;username=$url_search_username")%>' <%if not user_enabled%> title="User account is disabled"<%endif%> rel="post-only"><%if user_enabled%>Dis<%else%>En<%endif%>able User</a>
 | 
			
		||||
                      <%~endif~%>
 | 
			
		||||
                      )</span><%~%>
 | 
			
		||||
                  </span>
 | 
			
		||||
                  <%~unless last%>, <%endunless%>
 | 
			
		||||
                  <%~endloop%>
 | 
			
		||||
                </div>
 | 
			
		||||
              </div>
 | 
			
		||||
              <%~endloop%>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <%~endif%>
 | 
			
		||||
 | 
			
		||||
        </div><%-- end content --%>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <%include include_footer.html%>
 | 
			
		||||
  </div>
 | 
			
		||||
</body>
 | 
			
		||||
<%~include include_global_js.html%>
 | 
			
		||||
<%~if current.user_status == $ADMINISTRATOR%>
 | 
			
		||||
  <script type="text/javascript">
 | 
			
		||||
    $(document).ready(function () {
 | 
			
		||||
      GForum.init_post_only();
 | 
			
		||||
    });
 | 
			
		||||
  </script>
 | 
			
		||||
<%~endif%>
 | 
			
		||||
</html>
 | 
			
		||||
		Reference in New Issue
	
	Block a user