Beehive PHP Cross Reference Discussion Forums

Source: /visitor_log.php - 517 lines - 25312 bytes - Summary - Text - Print

   1  <?php
   2  
   3  /*======================================================================
   4  Copyright Project Beehive Forum 2002
   5  
   6  This file is part of Beehive Forum.
   7  
   8  Beehive Forum is free software; you can redistribute it and/or modify
   9  it under the terms of the GNU General Public License as published by
  10  the Free Software Foundation; either version 3 of the License, or
  11  (at your option) any later version.
  12  
  13  Beehive Forum is distributed in the hope that it will be useful,
  14  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16  GNU General Public License for more details.
  17  
  18  You should have received a copy of the GNU General Public License
  19  along with Beehive; if not, write to the Free Software
  20  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  21  USA
  22  ======================================================================*/
  23  
  24  // Bootstrap
  25  require_once  'boot.php';
  26  
  27  // Required includes
  28  require_once  BH_INCLUDE_PATH . 'attachments.inc.php';
  29  require_once  BH_INCLUDE_PATH . 'constants.inc.php';
  30  require_once  BH_INCLUDE_PATH . 'form.inc.php';
  31  require_once  BH_INCLUDE_PATH . 'format.inc.php';
  32  require_once  BH_INCLUDE_PATH . 'forum.inc.php';
  33  require_once  BH_INCLUDE_PATH . 'html.inc.php';
  34  require_once  BH_INCLUDE_PATH . 'session.inc.php';
  35  require_once  BH_INCLUDE_PATH . 'user.inc.php';
  36  require_once  BH_INCLUDE_PATH . 'visitor_log.inc.php';
  37  require_once  BH_INCLUDE_PATH . 'word_filter.inc.php';
  38  // End Required includes
  39  
  40  // Arrays to hold success and error messages
  41  $error_msg_array = array();
  42  
  43  // Arrays to hold header and dropdown text
  44  $profile_header_array = array();
  45  $profile_dropdown_array = array();
  46  
  47  // Get a list of available user_prefs and profile items for the user to browse.
  48  visitor_log_get_profile_items($profile_header_array, $profile_dropdown_array);
  49  
  50  // Empty array for columns
  51  $profile_items_selected_array = array();
  52  
  53  // Check for any custom columns
  54  if (isset($_POST['profile_selection'])) {
  55  
  56      if (strlen(trim($_POST['profile_selection'])) > 0) {
  57  
  58          $profile_selection = explode(",", $_POST['profile_selection']);
  59  
  60          if (!session::logged_in()) {
  61              $profile_selection = preg_grep('/^DOB$|^AGE$|^LAST_VISIT$/Du', $profile_selection);
  62          }
  63  
  64          foreach ($profile_selection as $profile_item_key) {
  65  
  66              if (isset($profile_header_array[$profile_item_key])) {
  67  
  68                  $profile_items_selected_array[$profile_item_key] = $profile_header_array[$profile_item_key];
  69              }
  70          }
  71      }
  72  
  73  } else if (isset($_GET['profile_selection'])) {
  74  
  75      if (strlen(trim($_GET['profile_selection'])) > 0) {
  76  
  77          $profile_selection = explode(",", $_GET['profile_selection']);
  78  
  79          if (!session::logged_in()) {
  80              $profile_selection = preg_grep('/^DOB$|^AGE$|^LAST_VISIT$/Du', $profile_selection);
  81          }
  82  
  83          foreach ($profile_selection as $profile_item_key) {
  84  
  85              if (isset($profile_header_array[$profile_item_key])) {
  86  
  87                  $profile_items_selected_array[$profile_item_key] = $profile_header_array[$profile_item_key];
  88              }
  89          }
  90      }
  91  
  92  } else {
  93  
  94      if (sizeof($profile_items_selected_array) < 1) {
  95  
  96          $profile_items_selected_array = array(
  97              'LAST_VISIT' => $profile_header_array['LAST_VISIT']
  98          );
  99      }
 100  }
 101  
 102  if (isset($_POST['add'])) {
 103  
 104      if (!session::logged_in()) {
 105  
 106          html_guest_error();
 107          exit;
 108      }
 109  
 110      if (isset($_POST['add_column']) && in_array($_POST['add_column'], array_keys($profile_header_array))) {
 111  
 112          $add_column = $_POST['add_column'];
 113  
 114          if (!in_array($add_column, array_keys($profile_items_selected_array))) {
 115  
 116              if (sizeof($profile_items_selected_array) < 3) {
 117  
 118                  $profile_items_selected_array[$add_column] = $profile_header_array[$add_column];
 119  
 120              } else {
 121  
 122                  $error_msg_array[] = gettext("You can only add 3 columns. To add a new column close an existing one");
 123              }
 124  
 125          } else {
 126  
 127              $error_msg_array[] = gettext("You have already added this column. If you want to remove it click its close button");
 128          }
 129      }
 130  
 131  } else if (isset($_POST['remove_column']) && is_array($_POST['remove_column'])) {
 132  
 133      if (!session::logged_in()) {
 134  
 135          html_guest_error();
 136          exit;
 137      }
 138  
 139      list($remove_column) = array_keys($_POST['remove_column']);
 140  
 141      if (in_array($remove_column, array_keys($profile_items_selected_array))) {
 142          unset($profile_items_selected_array[$remove_column]);
 143      }
 144  }
 145  
 146  if (sizeof($profile_items_selected_array) > 0) {
 147  
 148      $profile_items_selected_string = implode(',', array_keys($profile_items_selected_array));
 149      $profile_items_selected_encoded_string = urlencode($profile_items_selected_string);
 150  
 151  } else {
 152  
 153      $profile_items_selected_string = "";
 154      $profile_items_selected_encoded_string = "";
 155  }
 156  
 157  // Permitted columns to sort the results by
 158  $sort_by_array = array_keys($profile_header_array);
 159  
 160  array_unshift($sort_by_array, 'LOGON');
 161  
 162  // Permitted sort directions.
 163  $sort_dir_array = array(
 164      'ASC',
 165      'DESC'
 166  );
 167  
 168  // Sort column
 169  if (isset($_GET['sort_by']) && in_array($_GET['sort_by'], $sort_by_array)) {
 170  
 171      $sort_by = $_GET['sort_by'];
 172  
 173  } else if (isset($_POST['sort_by']) && in_array($_POST['sort_by'], $sort_by_array)) {
 174  
 175      $sort_by = $_POST['sort_by'];
 176  
 177  } else if (sizeof($profile_items_selected_array) > 0) {
 178  
 179      list($sort_by) = array_keys($profile_items_selected_array);
 180  
 181  } else {
 182  
 183      $sort_by = 'LAST_VISIT';
 184  }
 185  
 186  if (isset($_POST['hide_empty']) && $_POST['hide_empty'] == 'Y') {
 187      $hide_empty = 'Y';
 188  } else if (isset($_GET['hide_empty']) && $_GET['hide_empty'] == 'Y') {
 189      $hide_empty = 'Y';
 190  } else {
 191      $hide_empty = 'N';
 192  }
 193  
 194  if (forum_get_setting('guest_show_recent', 'Y')) {
 195  
 196      if (isset($_POST['hide_guests']) && $_POST['hide_guests'] == 'Y') {
 197          $hide_guests = 'Y';
 198      } else if (isset($_GET['hide_guests']) && $_GET['hide_guests'] == 'Y') {
 199          $hide_guests = 'Y';
 200      } else {
 201          $hide_guests = 'N';
 202      }
 203  
 204  } else {
 205  
 206      $hide_guests = 'Y';
 207  }
 208  
 209  // Sort direction
 210  if (isset($_GET['sort_dir']) && in_array($_GET['sort_dir'], $sort_dir_array)) {
 211      $sort_dir = $_GET['sort_dir'];
 212  } else if (isset($_POST['sort_dir']) && in_array($_POST['sort_dir'], $sort_dir_array)) {
 213      $sort_dir = $_POST['sort_dir'];
 214  } else {
 215      $sort_dir = 'DESC';
 216  }
 217  
 218  if (isset($_GET['page']) && is_numeric($_GET['page'])) {
 219      $page = ($_GET['page'] > 0) ? $_GET['page'] : 1;
 220  } else if (isset($_POST['page']) && is_numeric($_POST['page'])) {
 221      $page = ($_POST['page'] > 0) ? $_POST['page'] : 1;
 222  } else {
 223      $page = 1;
 224  }
 225  
 226  if (isset($_POST['user_search']) && strlen(trim($_POST['user_search'])) > 0) {
 227      $user_search = trim($_POST['user_search']);
 228  } else if (isset($_GET['user_search']) && strlen(trim($_GET['user_search'])) > 0) {
 229      $user_search = trim($_GET['user_search']);
 230  } else {
 231      $user_search = "";
 232  }
 233  
 234  if (isset($_POST['clear_search'])) {
 235      $user_search = "";
 236  }
 237  
 238  html_draw_top(sprintf('title=%s', gettext("Visitor Log")), 'class=window_title');
 239  
 240  echo "<h1>", gettext("Visitor Log"), "</h1>\n";
 241  
 242  $user_profile_array = visitor_log_browse_items($user_search, $profile_items_selected_array, $page, $sort_by, $sort_dir, $hide_empty == 'Y', $hide_guests == 'Y');
 243  
 244  if (sizeof($user_profile_array['user_array']) < 1) {
 245  
 246      html_display_error_msg(gettext("Your search did not return any matches. Try simplifying your search parameters and try again."), '85%', 'center');
 247  
 248  } else if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
 249  
 250      html_display_error_array($error_msg_array, '85%', 'center');
 251  }
 252  
 253  echo "<br />\n";
 254  echo "<div align=\"center\">\n";
 255  echo "<form accept-charset=\"utf-8\" name=\"f_visitor_log\" action=\"visitor_log.php\" method=\"post\">\n";
 256  echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
 257  echo "  ", form_input_hidden('page', htmlentities_array($page)), "\n";
 258  echo "  ", form_input_hidden('sort_by', htmlentities_array($sort_by)), "\n";
 259  echo "  ", form_input_hidden('sort_dir', htmlentities_array($sort_dir)), "\n";
 260  echo "  ", form_input_hidden('user_search', htmlentities_array($user_search)), "\n";
 261  echo "  ", form_input_hidden('hide_empty', htmlentities_array($hide_empty)), "\n";
 262  echo "  ", form_input_hidden('hide_guests', htmlentities_array($hide_guests)), "\n";
 263  echo "  ", form_input_hidden('profile_selection', htmlentities_array($profile_items_selected_string)), "\n";
 264  echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"85%\">\n";
 265  echo "    <tr>\n";
 266  echo "      <td align=\"left\">\n";
 267  echo "        <table class=\"box\" width=\"100%\">\n";
 268  echo "          <tr>\n";
 269  echo "            <td align=\"left\" class=\"posthead\">\n";
 270  echo "               <table width=\"100%\">\n";
 271  echo "                 <tr>\n";
 272  echo "                   <td align=\"left\" class=\"subhead\" width=\"1%\">&nbsp;</td>\n";
 273  
 274  if ($sort_by == 'LOGON' && $sort_dir == 'ASC') {
 275      echo "                   <td class=\"subhead_sort_asc\" align=\"left\" valign=\"top\"><a href=\"visitor_log.php?webtag=$webtag&amp;sort_by=LOGON&amp;sort_dir=DESC&amp;page=$page&amp;profile_selection=$profile_items_selected_encoded_string&amp;user_search=", htmlentities_array($user_search), "&amp;hide_empty=$hide_empty&amp;hide_guests=$hide_guests\">", gettext("Member"), "</a></td>\n";
 276  } else if ($sort_by == 'LOGON' && $sort_dir == 'DESC') {
 277      echo "                   <td class=\"subhead_sort_desc\" align=\"left\" valign=\"top\"><a href=\"visitor_log.php?webtag=$webtag&amp;sort_by=LOGON&amp;sort_dir=ASC&amp;page=$page&amp;profile_selection=$profile_items_selected_encoded_string&amp;user_search=", htmlentities_array($user_search), "&amp;hide_empty=$hide_empty&amp;hide_guests=$hide_guests\">", gettext("Member"), "</a></td>\n";
 278  } else if ($sort_dir == 'ASC') {
 279      echo "                   <td class=\"subhead\" align=\"left\" valign=\"top\"><a href=\"visitor_log.php?webtag=$webtag&amp;sort_by=LOGON&amp;sort_dir=ASC&amp;page=$page&amp;profile_selection=$profile_items_selected_encoded_string&amp;user_search=", htmlentities_array($user_search), "&amp;hide_empty=$hide_empty&amp;hide_guests=$hide_guests\">", gettext("Member"), "</a></td>\n";
 280  } else {
 281      echo "                   <td class=\"subhead\" align=\"left\" valign=\"top\"><a href=\"visitor_log.php?webtag=$webtag&amp;sort_by=LOGON&amp;sort_dir=DESC&amp;page=$page&amp;profile_selection=$profile_items_selected_encoded_string&amp;user_search=", htmlentities_array($user_search), "&amp;hide_empty=$hide_empty&amp;hide_guests=$hide_guests\">", gettext("Member"), "</a></td>\n";
 282  }
 283  
 284  foreach ($profile_items_selected_array as $key => $profile_item_selected) {
 285  
 286      if ($sort_by == $key && $sort_dir == 'ASC') {
 287          echo "                   <td class=\"subhead_sort_asc\" align=\"left\" valign=\"top\" width=\"20%\">", form_submit_image('close.png', "remove_column[$key]", gettext("Close"), sprintf('title="%s"', gettext("Close")), "profile_browse_close button_image"), "&nbsp;<a href=\"visitor_log.php?webtag=$webtag&amp;sort_by=$key&amp;sort_dir=DESC&amp;page=$page&amp;profile_selection=$profile_items_selected_encoded_string&amp;user_search=", htmlentities_array($user_search), "&amp;hide_empty=$hide_empty&amp;hide_guests=$hide_guests\">{$profile_item_selected}</a></td>\n";
 288      } else if ($sort_by == $key && $sort_dir == 'DESC') {
 289          echo "                   <td class=\"subhead_sort_desc\" align=\"left\" valign=\"top\" width=\"20%\">", form_submit_image('close.png', "remove_column[$key]", gettext("Close"), sprintf('title="%s"', gettext("Close")), "profile_browse_close button_image"), "&nbsp;<a href=\"visitor_log.php?webtag=$webtag&amp;sort_by=$key&amp;sort_dir=ASC&amp;page=$page&amp;profile_selection=$profile_items_selected_encoded_string&amp;user_search=", htmlentities_array($user_search), "&amp;hide_empty=$hide_empty&amp;hide_guests=$hide_guests\">{$profile_item_selected}</a></td>\n";
 290      } else if ($sort_dir == 'ASC') {
 291          echo "                   <td class=\"subhead\" align=\"left\" valign=\"top\" width=\"20%\">", form_submit_image('close.png', "remove_column[$key]", gettext("Close"), sprintf('title="%s"', gettext("Close")), "profile_browse_close button_image"), "&nbsp;<a href=\"visitor_log.php?webtag=$webtag&amp;sort_by=$key&amp;sort_dir=ASC&amp;page=$page&amp;profile_selection=$profile_items_selected_encoded_string&amp;user_search=", htmlentities_array($user_search), "&amp;hide_empty=$hide_empty&amp;hide_guests=$hide_guests\">{$profile_item_selected}</a></td>\n";
 292      } else {
 293          echo "                   <td class=\"subhead\" align=\"left\" valign=\"top\" width=\"20%\">", form_submit_image('close.png', "remove_column[$key]", gettext("Close"), sprintf('title="%s"', gettext("Close")), "profile_browse_close button_image"), "&nbsp;<a href=\"visitor_log.php?webtag=$webtag&amp;sort_by=$key&amp;sort_dir=DESC&amp;page=$page&amp;profile_selection=$profile_items_selected_encoded_string&amp;user_search=", htmlentities_array($user_search), "&amp;hide_empty=$hide_empty&amp;hide_guests=$hide_guests\">{$profile_item_selected}</a></td>\n";
 294      }
 295  }
 296  
 297  echo "                 </tr>\n";
 298  
 299  if (sizeof($user_profile_array['user_array']) > 0) {
 300  
 301      foreach ($user_profile_array['user_array'] as $user_array) {
 302  
 303          echo "                 <tr>\n";
 304  
 305          if (isset($_SESSION['SHOW_AVATARS']) && ($_SESSION['SHOW_AVATARS'] == 'Y')) {
 306  
 307              if (isset($user_array['AVATAR_URL']) && strlen($user_array['AVATAR_URL']) > 0) {
 308  
 309                  echo "                   <td class=\"postbody\" align=\"left\" valign=\"top\"><img src=\"{$user_array['AVATAR_URL']}\" alt=\"", word_filter_add_ob_tags(format_user_name($user_array['LOGON'], $user_array['NICKNAME']), true), "\" title=\"", word_filter_add_ob_tags(format_user_name($user_array['LOGON'], $user_array['NICKNAME']), true), "\" border=\"0\" width=\"16\" height=\"16\" /></td>\n";
 310  
 311              } else if (isset($user_array['AVATAR_AID']) && is_numeric($user_array['AVATAR_AID'])) {
 312  
 313                  $attachment = attachments_get_by_aid($user_array['AVATAR_AID'], $user_array['UID']);
 314  
 315                  if (($profile_picture_href = attachments_make_link($attachment, false, false, false, false)) !== false) {
 316  
 317                      echo "                   <td class=\"postbody\" align=\"left\" valign=\"top\"><img src=\"$profile_picture_href&amp;avatar_picture\" alt=\"", word_filter_add_ob_tags(format_user_name($user_array['LOGON'], $user_array['NICKNAME']), true), "\" title=\"", word_filter_add_ob_tags(format_user_name($user_array['LOGON'], $user_array['NICKNAME']), true), "\" border=\"0\" width=\"16\" height=\"16\" /></td>\n";
 318  
 319                  } else {
 320  
 321                      echo "                   <td align=\"left\" valign=\"top\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" alt=\"", gettext("User"), "\" title=\"", gettext("User"), "\" /></td>\n";
 322                  }
 323  
 324              } else {
 325  
 326                  echo "                   <td align=\"left\" valign=\"top\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" alt=\"", gettext("User"), "\" title=\"", gettext("User"), "\" /></td>\n";
 327              }
 328  
 329          } else {
 330  
 331              echo "                   <td align=\"left\" valign=\"top\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" alt=\"", gettext("User"), "\" title=\"", gettext("User"), "\" /></td>\n";
 332          }
 333  
 334          if (isset($user_array['SID']) && !is_null($user_array['SID'])) {
 335  
 336              echo "                   <td class=\"postbody\" align=\"left\" valign=\"top\"><a href=\"{$user_array['URL']}\" target=\"_blank\">", word_filter_add_ob_tags($user_array['NAME'], true), "</a></td>\n";
 337  
 338          } else if ($user_array['UID'] > 0) {
 339  
 340              echo "                   <td class=\"postbody\" align=\"left\" valign=\"top\"><a href=\"user_profile.php?webtag=$webtag&amp;uid={$user_array['UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($user_array['LOGON'], $user_array['NICKNAME']), true), "</a></td>\n";
 341  
 342          } else {
 343  
 344              echo "                   <td class=\"postbody\" align=\"left\" valign=\"top\">", word_filter_add_ob_tags(format_user_name($user_array['LOGON'], $user_array['NICKNAME']), true), "</td>\n";
 345          }
 346  
 347          foreach ($profile_items_selected_array as $key => $profile_item_selected) {
 348  
 349              if (is_numeric($key) && isset($user_array["ENTRY_$key"])) {
 350  
 351                  if (($user_array["PROFILE_ITEM_TYPE_$key"] == PROFILE_ITEM_RADIO) || ($user_array["PROFILE_ITEM_TYPE_$key"] == PROFILE_ITEM_DROPDOWN)) {
 352  
 353                      $profile_item_options_array = explode("\n", $user_array["PROFILE_ITEM_OPTIONS_$key"]);
 354  
 355                      if (isset($profile_item_options_array[$user_array["ENTRY_$key"]])) {
 356  
 357                          echo "                   <td class=\"postbody\" align=\"right\" valign=\"top\" width=\"20%\"><div class=\"profile_item_overflow\" title=\"", htmlentities_array($profile_item_options_array[$user_array["ENTRY_$key"]]), "\">", word_filter_add_ob_tags($profile_item_options_array[$user_array["ENTRY_$key"]], true), "&nbsp;</div></td>\n";
 358  
 359                      } else {
 360  
 361                          echo "                   <td class=\"postbody\" align=\"right\" valign=\"top\" width=\"20%\"><div class=\"profile_item_overflow\" title=\"\">&nbsp;</div></td>\n";
 362                      }
 363  
 364                  } else if ($user_array["PROFILE_ITEM_TYPE_$key"] == PROFILE_ITEM_HYPERLINK) {
 365  
 366                      $profile_item_hyper_link = str_replace("[ProfileEntry]", word_filter_add_ob_tags(urlencode($user_array["ENTRY_$key"])), $user_array["PROFILE_ITEM_OPTIONS_$key"]);
 367                      $profile_item_hyper_link = sprintf("<a href=\"%s\" target=\"_blank\">%s</a>", $profile_item_hyper_link, word_filter_add_ob_tags($user_array["ENTRY_$key"], true));
 368  
 369                      echo "                   <td class=\"postbody\" align=\"right\" valign=\"top\" width=\"20%\"><div class=\"profile_item_overflow\" title=\"", word_filter_add_ob_tags($user_array["ENTRY_$key"], true), "\">$profile_item_hyper_link&nbsp;</div></td>\n";
 370  
 371                  } else {
 372  
 373                      echo "                   <td class=\"postbody\" align=\"right\" valign=\"top\" width=\"20%\"><div class=\"profile_item_overflow\" title=\"", htmlentities_array($user_array["ENTRY_$key"]), "\">", word_filter_add_ob_tags($user_array["ENTRY_$key"], true), "&nbsp;</div></td>\n";
 374                  }
 375  
 376              } else if (isset($profile_header_array[$key]) && isset($user_array[$key])) {
 377  
 378                  echo "                   <td class=\"postbody\" align=\"right\" valign=\"top\" width=\"20%\"><div class=\"profile_item_overflow\" title=\"", htmlentities_array($user_array[$key]), "\">", word_filter_add_ob_tags($user_array[$key], true), "&nbsp;</div></td>\n";
 379  
 380              } else {
 381  
 382                  echo "                   <td class=\"postbody\" align=\"right\" valign=\"top\" width=\"20%\"><div class=\"profile_item_overflow\" title=\"\">&nbsp;</div></td>\n";
 383              }
 384          }
 385  
 386          echo "                 </tr>\n";
 387      }
 388  }
 389  
 390  echo "                 <tr>\n";
 391  echo "                   <td align=\"left\" class=\"postbody\">&nbsp;</td>\n";
 392  echo "                 </tr>\n";
 393  echo "               </table>\n";
 394  echo "             </td>\n";
 395  echo "           </tr>\n";
 396  echo "         </table>\n";
 397  echo "      </td>\n";
 398  echo "    </tr>\n";
 399  echo "    <tr>\n";
 400  echo "      <td align=\"left\">&nbsp;</td>\n";
 401  echo "    </tr>\n";
 402  echo "    <tr>\n";
 403  echo "      <td align=\"left\">\n";
 404  echo "        <table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
 405  echo "          <tr>\n";
 406  echo "            <td align=\"left\" width=\"40%\">&nbsp;</td>\n";
 407  echo "            <td align=\"center\" style=\"white-space: nowrap\" width=\"20%\">";
 408  
 409  html_page_links("visitor_log.php?webtag=$webtag&page=$page&profile_selection=$profile_items_selected_encoded_string&user_search=$user_search&sort_by=$sort_by&sort_dir=$sort_dir&hide_empty=$hide_empty&hide_guests=$hide_guests", $page, $user_profile_array['user_count'], 10);
 410  
 411  echo "            </td>\n";
 412  echo "            <td align=\"right\" style=\"white-space: nowrap\" width=\"40%\">", form_dropdown_array('add_column', $profile_dropdown_array), "&nbsp;", form_submit('add', gettext("Add")), "</td>\n";
 413  echo "          </tr>\n";
 414  echo "        </table>\n";
 415  echo "      </td>\n";
 416  echo "    </tr>\n";
 417  echo "    <tr>\n";
 418  echo "      <td align=\"left\">&nbsp;</td>\n";
 419  echo "    </tr>\n";
 420  echo "  </table>\n";
 421  echo "</form>\n";
 422  echo "<form accept-charset=\"utf-8\" name=\"f_options\" action=\"visitor_log.php\" method=\"post\">\n";
 423  echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
 424  echo "  ", form_input_hidden('page', htmlentities_array($page)), "\n";
 425  echo "  ", form_input_hidden('sort_by', htmlentities_array($sort_by)), "\n";
 426  echo "  ", form_input_hidden('sort_dir', htmlentities_array($sort_dir)), "\n";
 427  echo "  ", form_input_hidden('user_search', htmlentities_array($user_search)), "\n";
 428  echo "  ", form_input_hidden('profile_selection', htmlentities_array($profile_items_selected_string)), "\n";
 429  echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"85%\">\n";
 430  echo "    <tr>\n";
 431  echo "      <td align=\"left\">\n";
 432  echo "        <table class=\"box\" width=\"100%\">\n";
 433  echo "          <tr>\n";
 434  echo "            <td align=\"left\" class=\"posthead\">\n";
 435  echo "              <table width=\"100%\">\n";
 436  echo "                <tr>\n";
 437  echo "                  <td class=\"subhead\" align=\"left\">", gettext("Options"), "</td>\n";
 438  echo "                </tr>\n";
 439  echo "                <tr>\n";
 440  echo "                  <td align=\"center\">\n";
 441  echo "                    <table class=\"posthead\" width=\"95%\">\n";
 442  echo "                      <tr>\n";
 443  echo "                        <td align=\"left\" colspan=\"2\">", form_checkbox("hide_empty", "Y", gettext("Hide rows with empty or null values in selected columns"), $hide_empty == 'Y'), "</td>\n";
 444  echo "                      </tr>\n";
 445  
 446  if (forum_get_setting('guest_show_recent', 'Y')) {
 447  
 448      echo "                      <tr>\n";
 449      echo "                        <td align=\"left\" colspan=\"2\">", form_checkbox("hide_guests", "Y", gettext("Show Registered Users only (hide Guests)"), $hide_guests == 'Y'), "</td>\n";
 450      echo "                      </tr>\n";
 451  }
 452  
 453  echo "                      <tr>\n";
 454  echo "                        <td align=\"left\">&nbsp;</td>\n";
 455  echo "                      </tr>\n";
 456  echo "                    </table>\n";
 457  echo "                  </td>\n";
 458  echo "                </tr>\n";
 459  echo "              </table>\n";
 460  echo "            </td>\n";
 461  echo "          </tr>\n";
 462  echo "        </table>\n";
 463  echo "      </td>\n";
 464  echo "    </tr>\n";
 465  echo "    <tr>\n";
 466  echo "      <td align=\"left\">&nbsp;</td>\n";
 467  echo "    </tr>\n";
 468  echo "    <tr>\n";
 469  echo "      <td align=\"center\">", form_submit("save", gettext("Save")), "</td>\n";
 470  echo "    </tr>\n";
 471  echo "    <tr>\n";
 472  echo "      <td align=\"left\">&nbsp;</td>\n";
 473  echo "    </tr>\n";
 474  echo "  </table>\n";
 475  echo "</form>\n";
 476  echo "<form accept-charset=\"utf-8\" name=\"f_user_search\" action=\"visitor_log.php\" method=\"post\">\n";
 477  echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
 478  echo "  ", form_input_hidden('page', htmlentities_array($page)), "\n";
 479  echo "  ", form_input_hidden('sort_by', htmlentities_array($sort_by)), "\n";
 480  echo "  ", form_input_hidden('sort_dir', htmlentities_array($sort_dir)), "\n";
 481  echo "  ", form_input_hidden('user_search', htmlentities_array($user_search)), "\n";
 482  echo "  ", form_input_hidden('hide_empty', htmlentities_array($hide_empty)), "\n";
 483  echo "  ", form_input_hidden('hide_guests', htmlentities_array($hide_guests)), "\n";
 484  echo "  ", form_input_hidden('profile_selection', htmlentities_array($profile_items_selected_string)), "\n";
 485  echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"85%\">\n";
 486  echo "    <tr>\n";
 487  echo "      <td align=\"left\">\n";
 488  echo "        <table class=\"box\" width=\"100%\">\n";
 489  echo "          <tr>\n";
 490  echo "            <td align=\"left\" class=\"posthead\">\n";
 491  echo "              <table width=\"100%\">\n";
 492  echo "                <tr>\n";
 493  echo "                  <td class=\"subhead\" align=\"left\">", gettext("Search for a user not in list"), "</td>\n";
 494  echo "                </tr>\n";
 495  echo "                <tr>\n";
 496  echo "                  <td align=\"center\">\n";
 497  echo "                    <table class=\"posthead\" width=\"95%\">\n";
 498  echo "                      <tr>\n";
 499  echo "                        <td class=\"posthead\" align=\"left\">", gettext("Username"), ": ", form_input_text('user_search', htmlentities_array($user_search), 30, 64), " ", form_submit('search', gettext("Search")), " ", form_submit('clear_search', gettext("Clear")), "</td>\n";
 500  echo "                      </tr>\n";
 501  echo "                    </table>\n";
 502  echo "                  </td>\n";
 503  echo "                </tr>\n";
 504  echo "                <tr>\n";
 505  echo "                  <td align=\"left\" colspan=\"6\">&nbsp;</td>\n";
 506  echo "                </tr>\n";
 507  echo "              </table>\n";
 508  echo "            </td>\n";
 509  echo "          </tr>\n";
 510  echo "        </table>\n";
 511  echo "      </td>\n";
 512  echo "    </tr>\n";
 513  echo "  </table>\n";
 514  echo "</form>\n";
 515  echo "</div>\n";
 516  
 517  html_draw_bottom();

title

Description

title

Description

title

Description

title

title

Body