package LocalConfiguration;

use strict;

use vars qw/@ISA @EXPORT @EXPORT_OK/;
@EXPORT_OK = ();
@EXPORT = qw/$LOCAL_CONFIG/;
@ISA = qw/Exporter/;

our $LOCAL_CONFIG = {
    # Main configuration
    PROJECT_NAME => 'CASP9',
    PROJECT_SHORTNAME => 'casp9',

    # Templates
    TEMPLATES_DIR => 'templates',
    DEFAULT_ERROR_TEMPLATE => 'error.template',

    # Pages
    DEFAULT_PAGE => 'index.cgi',
    LOGIN_PAGE => '../login.cgi',
    GROUPS_PAGE => 'groups.cgi',
    
    MEETING_REGISTRATION_SUCCESS=> 'meeting_registration.cgi?view=success',
    MEETING_REGISTRATION_SUCCESS_QUESTION=> 'meeting_registration.cgi?view=success_question',

    # Logger
    LOGS_DIR => 'path/to/logdir',
    ERROR_LOGFILE => 'error.log',
    INFO_LOGFILE => 'info.log',
    ACCESS_LOGFILE => 'access.log',

    # Prediction directories
    SUBMITED_PREDICTIONS_DIR => 'predictions/submited',
    MESSAGES_PREDICTIONS_DIR => 'predictions/messages',
    ACCEPTED_PREDICTIONS_DIR => 'predictions/accepted',
    CLEAN_PREDICTIONS_DIR => 'predictions/cleaned',
    TARBALLS_PREDICTIONS_DIR => 'predictions/tarballs',
    TARBALLS_ALL_PREDICTIONS_DIR => 'predictions/tarballs_all',
    TARGETS_DIR => 'TARGETS',
    DESCRIPTORS_DIR => 'DSC',
    DATA_TARGETS_DIR => '/data/CASP9/TARGETS',
    DATA_MODELS_DIR => '/data/CASP9/predictions/tarballs_all',
    DATA_QA_MODELS_DIR => '/data/CASP9/predictions/qa_predictions_cleaned',
    #DATA_TARGETS_DIR => '/home/viktor/workspace/predictioncenterorg/Perl/data/CASP8/TARGETS',
    #DATA_MODELS_DIR => '/home/viktor/workspace/predictioncenterorg/Perl/data/CASP8/MODELS',
    CHAIN_STRUCTURES_DIR => 'chain_superpositions',
    TARGET_TEMPLATES_DIR => 'TEMPLATES',
    PLOTS_DIR => 'PLOTS',
    GDT_PLOTS_DIR => 'PLOTS/GDT',
    EQV_PLOTS_DIR => 'PLOTS/EQV',
    AL_PLOTS_DIR => 'PLOTS/AL',
    TM_PLOTS_DIR => 'PLOTS/TM',
    MD_PLOTS_DIR => 'PLOTS/MD',
    RF_MD_PLOTS_DIR => 'PLOTS/RF_MD',
    TC_PLOTS_DIR => 'PLOTS/TC',
    
    SUBMITTED_TARGET_DIR => 'exper_struct',
    
    PREDICTIONS_LOGFILE => 'predictions/predictions.log',
    
    # Server Distribution System
    SERVERS_DISTRIBUTION_EMAIL => 'servers@predictioncenter.org',
    SERVERS_REQUEST_META_EMAIL => 'casp8-meta@predictioncenter.org',
    QA_TARBALL_LOCATION => 'http://predictioncenter.org/download_area/CASP9/server_predictions',
    META_MESSAGES_DIR => '/local/Projects/Perl/casp9/src/distribution/messages',
    REQUEST_DIR => '/local/Projects/Perl/casp9/src/distribution/request',
    RESPONSE_DIR => '/local/Projects/Perl/casp9/src/distribution/response',
    NOTIFICATION_EMAIL_DIR   => '/local/Projects/Perl/casp9/src/scripts/predictions/notifications',
    
    PAGE_STEP => 10,
    
    RELESE_HOURS => '9',
    RELESE_MINUTES => '00',
    EXPIRED_HOURS => '12',
    EXPIRED_MINUTES => '15'
};

1;
