From 28ee178dd19df8d8628a9108110ba3b7c32c16b8 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Fri, 19 Aug 2011 17:11:29 +0100 Subject: [PATCH] Added error code constants --- application/config/constants.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/application/config/constants.php b/application/config/constants.php index 4a879d36..ac98132e 100644 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -36,6 +36,14 @@ define('FOPEN_READ_WRITE_CREATE', 'a+b'); define('FOPEN_WRITE_CREATE_STRICT', 'xb'); define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b'); +/* Error return codes */ +define('EEMAILEXISTS', 'E-mail address already exists'); +define('EUSERNAMEEXISTS', 'Username already exists'); +define('EPASSWORDINVALID', 'Invalid password'); +define('ENOSUCHUSER', 'No such user'); + +define('OK', 'OK'); + /* End of file constants.php */ -/* Location: ./application/config/constants.php */ \ No newline at end of file +/* Location: ./application/config/constants.php */