config.php 890 B

12345678910111213141516171819
  1. <?php
  2. $config->entry->create = new stdclass();
  3. $config->entry->create->requiredFields = 'name,code,account,key';
  4. $config->entry->edit = new stdclass();
  5. $config->entry->edit->requiredFields = 'name,code,account,key';
  6. $config->entry->errcode['PARAM_CODE_MISSING'] = 401;
  7. $config->entry->errcode['PARAM_TOKEN_MISSING'] = 401;
  8. $config->entry->errcode['SESSION_CODE_MISSING'] = 401;
  9. $config->entry->errcode['EMPTY_KEY'] = 401;
  10. $config->entry->errcode['INVALID_TOKEN'] = 401;
  11. $config->entry->errcode['SESSION_VERIFY_FAILED'] = 401;
  12. $config->entry->errcode['IP_DENIED'] = 403;
  13. $config->entry->errcode['ACCOUNT_UNBOUND'] = 403;
  14. $config->entry->errcode['EMPTY_ENTRY'] = 404;
  15. $config->entry->errcode['CALLED_TIME'] = 405;
  16. $config->entry->errcode['INVALID_ACCOUNT'] = 406;
  17. $config->entry->errcode['ERROR_TIMESTAMP'] = 407;