Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Any page you wish to obscure sensitive information should include /include/demo_replace.inc. It has a number of useful functions:

 id_demo True = system is in demo mode, False = it is in normal mode.  
demo_replace Takes a string (e.g. a name) and returns an obscured version. For example, 'Simon' becomes 'Abcde' 
 demo_replace_number Takes a number (e.g. student ID) and returns an obscured version. For example, '40010' becomes '12345678'.  
demo_replace_username Takes a username and returns # characters. 
 demo_replace_name Takes a name and returns some famous IT names instead. 

Principles

Sensitive information should normally be considered to be personally identifiable fields such as first names, family name, student ID, etc. Data such as marks is only sensitive when it is associated with a real user. For example, If Joe Bloggs gets 80% that is sensitive. But if Abc Abcdef gets 80% then Joe's identity is protected. This is much more effective than changing the marks because if you saw Joe Bloggs got 75% it is not the true 80% but a conference could mistakenly think Joe did actually score 75%.