X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;ds=sidebyside;f=application%2Fconfig%2Fconstants.php;h=3fe94e98f03cecf33d2c2d138e6426ccf944916d;hb=refs%2Fheads%2Fmaster;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..3fe94e9 --- 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,30 @@ 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); + +/* +|-------------------------------------------------------------------------- +| CIS Responses +|-------------------------------------------------------------------------- +| +| Reponses of a CIS for the ingest_content request as they appear coded +| in the DB in `videos_unactivated` table, column `cis_response`. +| +*/ +define('CIS_RESP_NONE', 0); +define('CIS_RESP_COMPLETION', 1); +define('CIS_RESP_UNREACHABLE', 2); +define('CIS_RESP_INTERNAL_ERROR', 3); /* End of file constants.php */ /* Location: ./application/config/constants.php */ \ No newline at end of file