user gets notified interatively or by email in case of a CIS error
[living-lab-site.git] / application / config / constants.php
old mode 100755 (executable)
new mode 100644 (file)
index 4a879d3..3fe94e9
@@ -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