Subversion Repositories oidplus

Rev

Rev 117 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. require_once __DIR__ . '/../includes/oidplus.inc.php';
  4.  
  5. OIDplus::init(true);
  6.  
  7. // This file tests all log events (to verify that the logmasks are working)
  8.  
  9. $id = 'oid:2.999';
  10. $email = 'oidra@viathinksoft.de';
  11. $old_email = 'oidra@viathinksoft.de';
  12. $new_email = 'oidra@viathinksoft.de';
  13. $current_ra = 'oidra@viathinksoft.de';
  14. $new_ra = 'oidra@viathinksoft.de';
  15. $ra_email = 'oidra@viathinksoft.de';
  16. $name = 'CFD';
  17. $value = 'VAL';
  18. $ra_name = 'Daniel';
  19. $root_oid = '2.123';
  20. $parent = 'oid:2';
  21. $new_oid = 'oid:2.999.1';
  22.  
  23. OIDplus::logger()->log("RA($email)?/A?", "RA '$email' deleted");
  24. OIDplus::logger()->log("OID($id)+SUPOIDRA($id)?/A?", "Object '$id' (recursively) deleted");
  25. OIDplus::logger()->log("OID($id)+SUPOIDRA($id)?/A?", "RA of object '$id' changed from '$current_ra' to '$new_ra'");
  26. OIDplus::logger()->log("RA($current_ra)!", "Lost ownership of object '$id' due to RA transfer of superior RA / admin.");
  27. OIDplus::logger()->log("RA($new_ra)!", "Gained ownership of object '$id' due to RA transfer of superior RA / admin.");
  28. OIDplus::logger()->log("OID($id)+SUPOIDRA($id)?/A?", "Identifiers/Confidential flag of object '$id' updated"); // TODO: Check if they were ACTUALLY updated!
  29. OIDplus::logger()->log("OID($id)+SUPOIDRA($id)?/A?", "Title/Description of object '$id' updated");
  30. OIDplus::logger()->log("OID($parent)+OIDRA($parent)?/A?", "Created child object '$id'");
  31. OIDplus::logger()->log("OID($id)+SUPOIDRA($id)?/A?", "Object '$id' created, given to RA '".(empty($ra_email) ? '(undefined)' : $ra_email)."'");
  32. OIDplus::logger()->log("OID($root_oid)+RA($email)!", "Requested a free OID for email '$email' to be placed into root '$root_oid'");
  33. OIDplus::logger()->log("OID($root_oid)+OIDRA($root_oid)!", "Child OID '$new_oid' added automatically by '$email' (RA Name: '$ra_name')");
  34. OIDplus::logger()->log("OID($new_oid)+RA($email)!",        "Free OID '$new_oid' activated (RA Name: '$ra_name')");
  35. OIDplus::logger()->log("RA($email)!", "A new password for '$email' was requested (forgot password)");
  36. OIDplus::logger()->log("RA($email)!", "RA '$email' has reset his password (forgot passwort)");
  37. OIDplus::logger()->log("RA(".$email.")!", "RA '".$email."' logged in");
  38. OIDplus::logger()->log("RA(".$email.")!", "RA '".$email."' logged out");
  39. OIDplus::logger()->log("A!", "Admin logged in");
  40. OIDplus::logger()->log("A!", "Admin logged out");
  41. OIDplus::logger()->log("RA($email)!", "RA '$email' has been invited");
  42. OIDplus::logger()->log("RA($email)!", "RA '$email' has been registered due to invitation");
  43. OIDplus::logger()->log("RA($old_email)!+RA($new_email)!", "Requested email change from '$old_email' to '$new_email'");
  44. OIDplus::logger()->log("RA($old_email)!", "Changed email address from '$old_email' to '$new_email'");
  45. OIDplus::logger()->log("RA($new_email)!", "RA '$old_email' has changed its email address to '$new_email'");
  46. OIDplus::logger()->log("RA($email)?/A?", "Password of RA '$email' changed");
  47. OIDplus::logger()->log("RA($email)?/A?", "Changed RA '$email' contact data/details");
  48. OIDplus::logger()->log("A?", "Changed system config setting '$name' to '$value'");
  49.