X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fconfig%2Fconstants.php;h=64565977caa7f9e114234c0e2423dda2076aaf5c;hb=e1f154780b5b004e047977b6582dd19bf85d4e4d;hp=4a879d3602c90007d099f2bbb54ab814be42df8b;hpb=6d8f5b56b237767344bc4a283b4093e6d6f1a612;p=living-lab-site.git diff --git a/application/config/constants.php b/application/config/constants.php old mode 100755 new mode 100644 index 4a879d3..6456597 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -26,7 +26,6 @@ define('DIR_WRITE_MODE', 0777); | 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 @@ -36,6 +35,16 @@ define('FOPEN_READ_WRITE_CREATE', 'a+b'); define('FOPEN_WRITE_CREATE_STRICT', 'xb'); define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b'); +/* +|-------------------------------------------------------------------------- +| User Roles +|-------------------------------------------------------------------------- +| +| Define bits significance in user roles bit mask. +| +*/ +define('USER_ROLE_STANDARD', 0); +define('USER_ROLE_ADMIN', 1); /* End of file constants.php */ /* Location: ./application/config/constants.php */ \ No newline at end of file