phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Source for file definitions.php

Documentation is available at definitions.php

  1. <?php
  2. /**
  3.  * @copyright Copyright 2005-2010 RedIRIS, http://www.rediris.es/
  4.  *
  5.  *  This file is part of phpPoA2.
  6.  *
  7.  *  phpPoA2 is free software: you can redistribute it and/or modify
  8.  *  it under the terms of the GNU General Public License as published by
  9.  *  the Free Software Foundation, either version 3 of the License, or
  10.  *  (at your option) any later version.
  11.  *
  12.  *  phpPoA2 is distributed in the hope that it will be useful,
  13.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *  GNU General Public License for more details.
  16.  *
  17.  *  You should have received a copy of the GNU General Public License
  18.  *  along with phpPoA2. If not, see <http://www.gnu.org/licenses/>.
  19.  *
  20.  * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
  21.  * @version 2.0
  22.  * @author Jaime Perez <jaime.perez@rediris.es>
  23.  * @filesource
  24.  * @package phpPoA2
  25.  */
  26.  
  27. /**
  28.  * Authentication succeeded.
  29.  */
  30. define('AUTHN_SUCCESS'true);
  31.  
  32. /**
  33.  * Authentication failed.
  34.  */
  35. define('AUTHN_FAILED'false);
  36.  
  37. /**
  38.  * Authorization succeeded.
  39.  */
  40. define('AUTHZ_SUCCESS'true);
  41.  
  42. /**
  43.  * Authorization failed.
  44.  */
  45. define('AUTHZ_FAILED'false);
  46.  
  47. /**
  48.  * Authentication failed error.
  49.  */
  50. define('NOAUTH_ERR'0);
  51.  
  52. /**
  53.  * A system related error.
  54.  */
  55. define('SYSTEM_ERR'1);
  56.  
  57. /**
  58.  * A configuration related error.
  59.  */
  60. define('CONFIG_ERR'2);
  61.  
  62. /**
  63.  * An invitation related error.
  64.  */
  65. define('INVITE_ERR'3);
  66.  
  67. /**
  68.  * An error triggered by the user.
  69.  */
  70. define('USER_ERR',   4);
  71.  
  72. /**
  73.  * 'GPoA' type redirection in the PAPI 1.5 protocol.
  74.  */
  75. define('GPOA_T'0);
  76.  
  77. /**
  78.  * 'AS' type redirection in the PAPI 1.5 protocol.
  79.  */
  80. define('AS_T',   1);
  81.  
  82. ?>

Documentation generated on Thu, 26 Aug 2010 13:38:48 +0200 by phpDocumentor 1.4.3