b2evolution PHP Cross Reference Blogging Systems

Source: /skins/users.main.php - 57 lines - 2317 bytes - Text - Print

Description: This file is the template that includes required css files to display users

   1  <?php
   2  /**

   3   * This file is the template that includes required css files to display users

   4   *

   5   * b2evolution - {@link http://b2evolution.net/}

   6   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

   7   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}

   8   *

   9   * @package evoskins

  10   *

  11   * @version $Id: users.main.php 6136 2014-03-08 07:59:48Z manuel $

  12   */
  13  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14  
  15  global $htsrv_url, $Messages;
  16  
  17  if( !is_logged_in() && !$Settings->get( 'allow_anonymous_user_list' ) ) 
  18  { // Redirect to the login page if not logged in and allow anonymous user setting is OFF
  19      $Messages->add( T_( 'You must log in to view the user directory.' ) );
  20      header_redirect( get_login_url( 'cannot see user' ), 302 );
  21      // will have exited

  22  }
  23  
  24  if( is_logged_in() && ( !check_user_status( 'can_view_users' ) ) )
  25  { // user status doesn't permit to view users list
  26      if( check_user_status( 'can_be_validated' ) )
  27      { // user is logged in but his/her account is not active yet
  28          // Redirect to the account activation page

  29          $Messages->add( T_( 'You must activate your account before you can view the user directory. <b>See below:</b>' ) );
  30          header_redirect( get_activate_info_url(), 302 );
  31          // will have exited

  32      }
  33  
  34      // set where to redirect

  35      $error_redirect_to = ( empty( $Blog) ? $baseurl : $Blog->gen_blogurl() );
  36      $Messages->add( T_( 'Your account status currently does not permit to view the user directory.' ) );
  37      header_redirect( $error_redirect_to, 302 );
  38      // will have exited

  39  }
  40  
  41  // var bgxy_expand is used by toggle_filter_area() and toggle_clickopen()

  42  // var htsrv_url is used for AJAX callbacks

  43  add_js_headline( "// Paths used by JS functions:
  44          var bgxy_expand = '".get_icon( 'expand', 'xy' )."';
  45          var bgxy_collapse = '".get_icon( 'collapse', 'xy' )."';" );
  46  
  47  // Require results.css to display thread query results in a table

  48  require_css( 'results.css' ); // Results/tables styles

  49  
  50  // Require functions.js to show/hide a panel with filters

  51  require_js( 'functions.js', 'blog' );
  52  // Include this file to expand/collapse the filters panel when JavaScript is disabled

  53  require_once $inc_path.'_filters.inc.php';
  54  
  55  require $ads_current_skin_path.'index.main.php';
  56  
  57  ?>

title

Description

title

Description

title

Description

title

title

Body