/includes/ -> defines_inc.php
1 <?php
2
3 // defines_inc.php - constants used in phplabware
4 // defines_inc.php - author: Nico Stuurman
5 /***************************************************************************
6 * Copyright (c) 2001 by Nico Stuurman *
7 * ------------------------------------------------------------------------ *
8 * Part of phplabware, a web-driven groupware suite for research labs *
9 * *
10 * This program is free software; you can redistribute it and/or modify it *
11 * under the terms of the GNU General Public License as published by the *
12 * Free Software Foundation; either version 2 of the License, or (at your *
13 * option) any later version. *
14 \**************************************************************************/
15
16 // defines permissions
17 $ACTIVE=1;
18 $READ=2;
19 $WRITE=4;
20 $EDIT=8;
21 $LAYOUT=16;
22 $ADMIN=32;
23 $SUPER=64;
24
25 // the following is needed in most scripts
26 $PHP_SELF=$HTTP_SERVER_VARS["PHP_SELF"];
27
28 // minimum password length
29 $PWD_MINIMUM=4;
30
31 // comma-separated list (no spaces!) of tables containing user entries
32 // these tables should have the field 'userid'
33 $tables="antibodies,protocols";
34
35 // maximum length of items displayed in drop-down menu
36 $max_menu_length=30;
37
38 ?>