siddharth_application/application/config/constants.php
gandhimathi Bharathirajan 586ff42641 Requistion Code
2017-05-13 11:04:13 +05:30

71 lines
2.8 KiB
PHP

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
define('FOPEN_READ', 'rb');
define('FOPEN_READ_WRITE', 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE', 'ab');
define('FOPEN_READ_WRITE_CREATE', 'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/**** USER DEFINED CONSTANTS **********/
define('ROLE_ADMIN', '1');
define('ROLE_MANAGER', '2');
define('ROLE_EMPLOYEE', '3');
define('ROLE_PRODUCTION', '4');
define('ROLE_QUALITY', '5');
define('ROLE_SECURITY', '6');
define('ROLE_SALES', '7');
define('ROLE_ACCOUNTS', '8');
define('SEGMENT', 2);
/************** Status code */
define('REQ_DRAFT', 'ST001');
define('REQ_PENDING_APPROVAL', 'ST002');
define('REQITEM_NEW', 'ST003');
define('REQ_APPROVED', 'ST004');
define('REQ_PO_CREATED' , 'ST005');
define('REQ_REJECTED', 'ST006');
define('REQ_CLOSED', 'ST007');
define('REQ_ONHOLD', 'ST008');
define('REQITEM_ONHOLD', 'ST009');
define('REQITEM_PARTIALLY_DELIVERED', 'ST010');
define('REQITEM_DELIVERED', 'ST011');
define('REQ_DELETED', 'ST013');
define('REQUISTSTATUS', '0');
define('REQUISTITEMSTATUS', '1');
/* End of file constants.php */
/* Location: ./application/config/constants.php */