Changeset 1072 for trunk


Ignore:
Timestamp:
Mar 9, 2006, 11:46:28 PM (18 years ago)
Author:
rub
Message:

Step 2 improvement issue 0000301:

o Add and use Functions Check of status
o Restricted Access for user generic

Location:
trunk
Files:
41 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r1004 r1072  
    2929define('PHPWG_ROOT_PATH','./');
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
     31
     32// +-----------------------------------------------------------------------+
     33// | Check Access and exit when user status is not ok                      |
     34// +-----------------------------------------------------------------------+
     35check_status(ACCESS_GUEST);
     36
    3137//----------------------------------------------------- template initialization
    3238//
  • trunk/admin.php

    r1071 r1072  
    3030define('IN_ADMIN', true);
    3131include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
    32 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/cat_list.php

    r1066 r1072  
    3030  die('Hacking attempt!');
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/cat_modify.php

    r1064 r1072  
    3030  die('Hacking attempt!');
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
     39
    3340//---------------------------------------------------------------- verification
    3441if ( !isset( $_GET['cat_id'] ) || !is_numeric( $_GET['cat_id'] ) )
  • trunk/admin/cat_move.php

    r1004 r1072  
    3030  die('Hacking attempt!');
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/cat_options.php

    r1004 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/cat_perm.php

    r1004 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/comments.php

    r1004 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/configuration.php

    r1071 r1072  
    2828if( !defined("PHPWG_ROOT_PATH") )
    2929{
    30         die ("Hacking attempt!");
    31 }
    32 
    33 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     30  die ("Hacking attempt!");
     31}
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
     39
    3440//-------------------------------------------------------- sections definitions
    3541if (!isset($_GET['section']))
  • trunk/admin/element_set.php

    r1017 r1072  
    3636  die('Hacking attempt!');
    3737}
    38 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     38
     39include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     40
     41// +-----------------------------------------------------------------------+
     42// | Check Access and exit when user status is not ok                      |
     43// +-----------------------------------------------------------------------+
     44check_status(ACCESS_ADMINISTRATOR);
    3945
    4046// +-----------------------------------------------------------------------+
  • trunk/admin/element_set_global.php

    r1065 r1072  
    3636  die('Hacking attempt!');
    3737}
    38 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     38
     39include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     40
     41// +-----------------------------------------------------------------------+
     42// | Check Access and exit when user status is not ok                      |
     43// +-----------------------------------------------------------------------+
     44check_status(ACCESS_ADMINISTRATOR);
    3945
    4046// +-----------------------------------------------------------------------+
  • trunk/admin/element_set_unit.php

    r1004 r1072  
    3636  die('Hacking attempt!');
    3737}
    38 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     38
     39include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     40
     41// +-----------------------------------------------------------------------+
     42// | Check Access and exit when user status is not ok                      |
     43// +-----------------------------------------------------------------------+
     44check_status(ACCESS_ADMINISTRATOR);
    3945
    4046// +-----------------------------------------------------------------------+
  • trunk/admin/group_list.php

    r1004 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/group_perm.php

    r1004 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/help.php

    r879 r1072  
    2626// +-----------------------------------------------------------------------+
    2727
    28 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     28include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     29
     30// +-----------------------------------------------------------------------+
     31// | Check Access and exit when user status is not ok                      |
     32// +-----------------------------------------------------------------------+
     33check_status(ACCESS_ADMINISTRATOR);
    2934
    3035$template->set_filenames(
  • trunk/admin/images/daily_stats.img.php

    r918 r1072  
    2929define('IN_ADMIN', true);
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
    31 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     31include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3232include_once( 'phpBarGraph.php' );
     33
     34// +-----------------------------------------------------------------------+
     35// | Check Access and exit when user status is not ok                      |
     36// +-----------------------------------------------------------------------+
     37check_status(ACCESS_ADMINISTRATOR);
    3338
    3439//------------------------------------------------ variable definition
  • trunk/admin/images/global_stats.img.php

    r685 r1072  
    2929define('IN_ADMIN', true);
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
    31 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     31include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3232include_once( 'phpBarGraph.php' );
     33
     34// +-----------------------------------------------------------------------+
     35// | Check Access and exit when user status is not ok                      |
     36// +-----------------------------------------------------------------------+
     37check_status(ACCESS_ADMINISTRATOR);
    3338
    3439//------------------------------------------------ variable definition
  • trunk/admin/images/monthly_stats.img.php

    r918 r1072  
    2929define('IN_ADMIN', true);
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
    31 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     31include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3232include_once( 'phpBarGraph.php' );
     33
     34// +-----------------------------------------------------------------------+
     35// | Check Access and exit when user status is not ok                      |
     36// +-----------------------------------------------------------------------+
     37check_status(ACCESS_ADMINISTRATOR);
    3338
    3439//------------------------------------------------ variable definition
  • trunk/admin/include/isadmin.inc.php

    r1070 r1072  
    2626// +-----------------------------------------------------------------------+
    2727
    28 include( PHPWG_ROOT_PATH.'admin/include/functions.php' );
     28include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    2929
    30 if (!is_admin())
     30// +-----------------------------------------------------------------------+
     31// | Check Access and exit when user status is not ok                      |
     32// +-----------------------------------------------------------------------+
     33check_status(ACCESS_ADMINISTRATOR);
     34
     35/*if (!is_admin())
    3136{
    3237  echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
    3338  echo '<a href="'.PHPWG_ROOT_PATH.'identification.php">'.$lang['identification'].'</a></div>';
    3439  exit();
    35 }
     40}*/
     41
    3642?>
  • trunk/admin/intro.php

    r1004 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/mailtousers.php

    r1070 r1072  
    3535  die ("Hacking attempt!");
    3636}
    37 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     37
    3838include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    39 
     39include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    4040include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
    4141include_once(PHPWG_ROOT_PATH.'include/functions_notification.inc.php');
    4242include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
     43
     44// +-----------------------------------------------------------------------+
     45// | Check Access and exit when user status is not ok                      |
     46// +-----------------------------------------------------------------------+
     47check_status(ACCESS_ADMINISTRATOR);
    4348
    4449// +-----------------------------------------------------------------------+
  • trunk/admin/maintenance.php

    r1064 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/picture_modify.php

    r1065 r1072  
    3030  die('Hacking attempt!');
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/rating.php

    r1064 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
    33 
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3439
    3540// +-----------------------------------------------------------------------+
  • trunk/admin/site_manager.php

    r1058 r1072  
    3030  die ("Hacking attempt!");
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440/**
  • trunk/admin/site_update.php

    r1064 r1072  
    3030  die('Hacking attempt!');
    3131}
    32 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440if (!is_numeric($_GET['site']))
  • trunk/admin/stats.php

    r1038 r1072  
    2929        die ("Hacking attempt!");
    3030}
    31 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     31
     32include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     33
     34// +-----------------------------------------------------------------------+
     35// | Check Access and exit when user status is not ok                      |
     36// +-----------------------------------------------------------------------+
     37check_status(ACCESS_ADMINISTRATOR);
    3238
    3339$url_img = PHPWG_ROOT_PATH.'admin/images/';
  • trunk/admin/thumbnail.php

    r1004 r1072  
    2525// | USA.                                                                  |
    2626// +-----------------------------------------------------------------------+
    27 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
     27
     28include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     29
     30// +-----------------------------------------------------------------------+
     31// | Check Access and exit when user status is not ok                      |
     32// +-----------------------------------------------------------------------+
     33check_status(ACCESS_ADMINISTRATOR);
     34
    2835//------------------------------------------------------------------- functions
    2936// RatioResizeImg creates a new picture (a thumbnail since it is supposed to
  • trunk/admin/user_list.php

    r1070 r1072  
    168168  die('Hacking attempt!');
    169169}
    170 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     170
     171include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     172
     173// +-----------------------------------------------------------------------+
     174// | Check Access and exit when user status is not ok                      |
     175// +-----------------------------------------------------------------------+
     176check_status(ACCESS_ADMINISTRATOR);
    171177
    172178$page['order_by_items'] = array(
  • trunk/admin/user_perm.php

    r1004 r1072  
    3030  die('Hacking attempt!');
    3131}
    32 include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     32
     33include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_ADMINISTRATOR);
    3339
    3440// +-----------------------------------------------------------------------+
  • trunk/admin/waiting.php

    r1004 r1072  
    2929  die ("Hacking attempt!");
    3030}
    31 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
     31
     32include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
     33
     34// +-----------------------------------------------------------------------+
     35// | Check Access and exit when user status is not ok                      |
     36// +-----------------------------------------------------------------------+
     37check_status(ACCESS_ADMINISTRATOR);
     38
    3239//--------------------------------------------------------------------- updates
    3340
  • trunk/category.php

    r1070 r1072  
    2929define('PHPWG_ROOT_PATH','./');
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
     31
     32// +-----------------------------------------------------------------------+
     33// | Check Access and exit when user status is not ok                      |
     34// +-----------------------------------------------------------------------+
     35check_status(ACCESS_GUEST);
     36
    3137//---------------------------------------------------------------------- logout
    3238if ( isset( $_GET['act'] )
     
    360366{
    361367  $template->assign_block_vars('hello', array());
    362   $template->assign_block_vars('profile', array());
     368
     369  if (is_autorize_status(ACCESS_CLASSIC))
     370  {
     371    $template->assign_block_vars('profile', array());
     372  }
    363373
    364374  // the logout link has no meaning with Apache authentication : it is not
  • trunk/comments.php

    r1004 r1072  
    3434  include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
    3535}
     36
     37// +-----------------------------------------------------------------------+
     38// | Check Access and exit when user status is not ok                      |
     39// +-----------------------------------------------------------------------+
     40check_status(ACCESS_GUEST);
    3641
    3742$sort_order = array(
  • trunk/include/constants.php

    r1064 r1072  
    3838define('CRITICAL_ERROR', 204);
    3939
     40// Access codes
     41define('ACCESS_NONE', 0);
     42define('ACCESS_GUEST', 1);
     43define('ACCESS_CLASSIC', 2);
     44define('ACCESS_ADMINISTRATOR', 3);
     45define('ACCESS_WEBMASTER', 4);
     46
    4047// Table names
    4148define('CATEGORIES_TABLE', $prefixeTable.'categories');
  • trunk/include/functions_user.inc.php

    r1070 r1072  
    538538
    539539/*
    540  * Return if current is an administrator
     540 * Return if current user have access to access_type definition
     541 * Test does with user status
     542 * @return bool
     543*/
     544function is_autorize_status($access_type)
     545{
     546  global $user;
     547
     548  $access_type_status = ACCESS_NONE;
     549  if (isset($user['status']))
     550  {
     551    switch ($user['status'])
     552    {
     553      case 'guest':
     554      case 'generic':
     555      {
     556        $access_type_status = ACCESS_GUEST;
     557        break;
     558      }
     559      case 'normal':
     560      {
     561        $access_type_status = ACCESS_CLASSIC;
     562        break;
     563      }
     564      case 'admin':
     565      {
     566        $access_type_status = ACCESS_ADMINISTRATOR;
     567        break;
     568      }
     569      case 'webmaster':
     570      {
     571        $access_type_status = ACCESS_WEBMASTER;
     572        break;
     573      }
     574    }
     575  }
     576
     577  return ($access_type_status >= $access_type);
     578}
     579
     580/*
     581 * Check if current user have access to access_type definition
     582 * Stop action if there are not access
     583 * Test does with user status
     584 * @return none
     585*/
     586function check_status($access_type)
     587{
     588  global $lang;
     589
     590  if (!is_autorize_status($access_type))
     591  {
     592    echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
     593    echo '<a href="'.PHPWG_ROOT_PATH.'identification.php">'.$lang['identification'].'</a></div>';
     594    exit();
     595  }
     596}
     597
     598/*
     599 * Return if current user is an administrator
    541600 * @return bool
    542601*/
    543602function is_admin()
    544603{
    545   global $user;
    546  
    547   return ($user['status'] == 'webmaster' or $user['status'] == 'admin') ? true : false;
     604  return is_autorize_status(ACCESS_ADMINISTRATOR);
    548605}
    549606
  • trunk/notification.php

    r1004 r1072  
    3232define('PHPWG_ROOT_PATH','./');
    3333include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
     34
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_GUEST);
    3439
    3540// +-----------------------------------------------------------------------+
  • trunk/picture.php

    r1070 r1072  
    3131include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
    3232
     33// +-----------------------------------------------------------------------+
     34// | Check Access and exit when user status is not ok                      |
     35// +-----------------------------------------------------------------------+
     36check_status(ACCESS_GUEST);
     37
    3338include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
    3439//-------------------------------------------------- access authorization check
  • trunk/popuphelp.php

    r1071 r1072  
    3333include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
    3434
     35// +-----------------------------------------------------------------------+
     36// | Check Access and exit when user status is not ok                      |
     37// +-----------------------------------------------------------------------+
     38check_status(ACCESS_GUEST);
     39
    3540$page['body_id'] = 'thePopuphelpPage';
    3641$title = l10n('PhpWebGallery Help');
  • trunk/profile.php

    r1050 r1072  
    3333define('PHPWG_ROOT_PATH','./');
    3434include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
     35
     36// +-----------------------------------------------------------------------+
     37// | Check Access and exit when user status is not ok                      |
     38// +-----------------------------------------------------------------------+
     39check_status(ACCESS_CLASSIC);
    3540
    3641if ($user['is_the_guest'] and !$guest_allowed)
  • trunk/random.php

    r1004 r1072  
    3131define('PHPWG_ROOT_PATH','./');
    3232include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
     33
     34// +-----------------------------------------------------------------------+
     35// | Check Access and exit when user status is not ok                      |
     36// +-----------------------------------------------------------------------+
     37check_status(ACCESS_GUEST);
     38
    3339// +-----------------------------------------------------------------------+
    3440// |                     generate random element list                      |
  • trunk/search.php

    r1059 r1072  
    2929define('PHPWG_ROOT_PATH','./');
    3030include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
     31
     32// +-----------------------------------------------------------------------+
     33// | Check Access and exit when user status is not ok                      |
     34// +-----------------------------------------------------------------------+
     35check_status(ACCESS_GUEST);
     36
    3137//------------------------------------------------------------------ form check
    3238$errors = array();
Note: See TracChangeset for help on using the changeset viewer.