Location: PHPKode > projects > Volunteer Management OpenSource Software > vmoss_alpha02/inc/lib_security/constants.inc
<?php
/**
 * Sahana security library constants
 *
 * PHP version 4 and 5
 *
 * LICENSE: This source file is subject to LGPL license
 * that is available through the world-wide-web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html
 *
 * @package    framework
 * @subpackage security
 * @author     Ravindra De Silva <hide@address.com><hide@address.com>
 * @copyright  Lanka Software Foundation - http://www.opensource.lk
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
 * 
 */
 
define('SALT_LENGTH', 9);
define('LOCK', 900);
define(LOGGEDIN,"logged in");
define(LOGGEDOUT,"logged out");

define(DENIED,1);
define(ALLOWED,2);

define(ANONYMOUS_USER,-2);

define(ADMIN,1);
define(REGISTERED,2);
define(ANONYMOUS,3);
define(SUPERUSER,4);
define(ORGADMIN,5);
define(VOLCOORDINATOR,6);
define(CAMPADMIN,7);

define(ADMINUSER,1);

$crud_arr= array(
			"delete_arr"=>array(1,3,5,7,9,11,13,15),
			"update_arr"=>array(2,3,6,7,10,11,14,15),
			"read_arr"=>array(4,5,6,7,12,13,14,15),
			"create_arr"=>array(8,9,10,11,12,13,14,15)	
			);
define(PWDPOLICY,"<h4>Password must adhere to following rules:</h4>
    1. Minimum length is 8.<br />
    2. At least one letter in the expression.<br />
    3. At least one character is numeric or special.<br />"); 
Return current item: Volunteer Management OpenSource Software