PHP/HTML interface for CMR
==========================

Install
-------
See http://wiki.fysik.dtu.dk/cmr/server/server_configuration.html

Make sure that you set the right PREFIX (see configuration section below
for description) variable in install.sh and run
$> sh install.sh


You can now edit all vars.php files and set the right username, password and mysql server hostname.
If you want to see errors you can enable error reporting (only
for debugging) by editing the first lines in vars.php to:

error_reporting(E_ALL);
ini_set('display_errors','True');

At the end protect every vars.php with

chmod 600 *vars.php



Configuration
-------------
The easiest is to start with an example configurations available in the folder ".configure".

There are currently three example sets available (defined by PREFIX variable in install.sh):
- cmr_*
    This is how the public CMR server at CAMD is configured
- steno_*
    This is how the internal CMR server at CAMD is configured
- default_*
    This is the default setup without any special public data

Description of the files for the cmr_* example:
- cmr_vars.php: configures user name/password for the database and some more options
- cmr_root.php: redirects to the cmr sub folder http://localhost/cmr/index.php (renamed to index.php, see above)
                if you install it to a different directory than 'cmr' you need to adapt the path here manually
- cmr_index.php: welcome page
- cmr_index2.php: welcome page after the user accepted to cite the results he/she uses
Specially published data (is added to var/view/...) in the folders with a special name or doi:
- cmr_configuration.php: the configuration for the data of paper with DOI 10.1039...
- cmr_vars.php: the default settings and connection parameters for the data of paper with DOI 10.1039...
 


