The display modes of the page: one level -- how dense the application is, simple, standard, expert -- and any number of layers drawn over it -- dev, writer... (MMO\client\Modes on the server, which gives them in MMO.config.modes). A mode is presentation only: what the user may do is their rights', checked by the server.
MMO.modes = {…}
Espace de noms
MMO
What is hidden is the server's to say, so a change of modes saves them and reloads the page: the user's own
`config.modes` (mmo.oauth) when there is a user, the `mmo-modes` cookie in any case.
if (MMO.modes.has('dev')) {drawDeveloperCues();}MMO.modes.toggle('dev'); // the developer layer on or off, then the page reloadsMMO.modes.set({level: 'simple'}); // the simple level, the layers left as they areMMO.modes.on('change', modes => ...); // before the page reloads
The path the cookie is written on: the application's url as the browser sees it (siteurl), not the folder of its index.php (baseurl), which differs behind a rewrite (`SetEnv MMO_MODE_REWRITE de…
The path the cookie is written on: the application's url as the browser sees it (siteurl), not the folder of its index.php (baseurl), which differs behind a rewrite (SetEnv MMO_MODE_REWRITE demo/www) and whose cookie the browser would never send back to the application's pages.