PHP Classes
elePHPant
Icontem

File: config/security.config.php

Recommend this page to a friend!
  Classes of Saro Carvello  >  PHP Web MVC Framework  >  config/security.config.php  >  Download  
File: config/security.config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Web MVC Framework
MVC framework providing autogenerated MySQL models
Author: By
Last change: Update security.config.php
Date: 3 months ago
Size: 3,008 bytes
 

Contents

Class file image Download
<?php
/**
 * security.config.php
 *
 * Main application security configuration parameters.
 * You can change those values according to your security
 * MySQL environment or Chiper preferences
 *
 * @filesource security.config.php
 * @author Rosario Carvello <rosario.carvello@gmail.com>
 * @version GIT:v1.0.0
 * @copyright (c) 2016 Rosario Carvello <rosario.carvello@gmail.com> - All rights reserved. See License.txt file
 * @license BSD Clause 3 License
 * @license https://opensource.org/licenses/BSD-3-Clause This software is distributed under BSD-3-Clause Public License
 */

/**
 * Defines the constants for MySQL database User table.
 * Class User uses these information.
 */

/**
 * Constant for the User MySQL Table
 */
define("USER_TABLE","user");

/**
 * Defines a constant for INT Primary Key field of the User MySQL Table
 */
define("USER_ID","id_user");

/**
 * Defines a constant for the UNIQUE email field of the User MySQL Table
 * Email is used as credential
 */
define("USER_EMAIL","email");

/**
 * Defines a constant for the password field of the User MySQL Table
 * Password is used as credential
 */
define("USER_PASSWORD","password");

/**
 * Defines a constant for the role field of the User MySQL Table
 * User role defines access levels criteria managed by RBAC Engine
 */
define('USER_ROLE', 'id_access_level');

/**
 * Defines a constant for Administrator role id
 *
 */
define('ADMIN_ROLE_ID', 100);

/**
 * Defines a constant for the enable field of the User MySQL Table
 * User enable can temporary disable users. Values must be 1 or -1
 */

define('USER_ENABLED', 'enabled');

/**
 * Defines the constants for Cookie Chiper
 */

/**
 * Chiper SALT
 */
define('CHIPER_CREDENTIALS_COOKIE_SALT','8454fBh9c%=%bg3766GTDg7FD');

/**
 * Chiper credentials cookie expiration c (2592000 secs = 30 days)
 */
define('CHIPER_CREDENTIALS_COOKIE_EXPIRATION_DATE',2592000);

/**
 * Slides credentials cookie expiration date if true
 */
define('CHIPER_CREDENTIALS_COOKIE_SLIDING_EXPIRATION',true);

/**
 * Credentials cookie name
 */
define('CHIPER_CREDENTIALS_COOKIE_NAME','PDCredentials');

/*
 * Constant for login warning message of common/Login controller when
 * user is not logged in and page requires authentication.
 * Note: It appears when is set the $_GET["login_warning_message"] and is
 * automatically translated by the Locale engine by using Login controller
 * translation file
 */
define("LoginAuthWarningMessage", "{RES:LoginAuthWarningMessage}");

/*
 * Constant for login warning message of common/Login controller
 * when page requires authentication, user is logged but his
 * role is not granted.
 * Note: It appears when is set the $_GET["login_warning_message"] and is
 * automatically translated by the Locale engine by using Login controller
 * translation file
 */
define("LoginRBACWarningMessage", "{RES:LoginRBACWarningMessage}");