~jstys-z/helioviewer.org/timeline

« back to all changes in this revision

Viewing changes to api/lib/helioviewer/Config.php

  • Committer: V. Keith Hughitt
  • Date: 2009-03-26 19:20:57 UTC
  • Revision ID: hughitt1@kore-20090326192057-u0x8rf8sf5lmmnwh
nightly build 03-26-2009: Using alpha-channel JPEG 2000 dataset

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/**
3
 
 * Helioviewer API Configuration
4
 
 * @package Config
5
 
 * @author Keith Hughitt <Vincent.K.Hughitt@nasa.gov>
6
 
 *  TODO: Determine performance of storing in class vs. YAML (need to use for every tile)
7
 
 */
8
 
class Config {
9
 
        
10
 
        // Database
11
 
        const DB_HOST            = 'localhost';
12
 
        const DB_NAME            = 'hv2';
13
 
        const DB_USER            = 'helioviewer';
14
 
        const DB_PASS            = 'helioviewer';
15
 
        
16
 
        // Filepaths
17
 
        const TMP_ROOT_DIR       = '/var/www/hv/tmp';
18
 
        const WEB_ROOT_DIR       = '/var/www/hv';
19
 
        const CACHE_DIR          = '/var/www/hv/cache/';
20
 
        const JP2_DIR            = '/var/www/hv/jp2/';
21
 
        const KDU_LIBS_DIR       = '/usr/lib/kakadu/';
22
 
        const EMPTY_TILE         = 'images/transparent_512.gif';
23
 
        
24
 
        // URL's
25
 
        const WEB_ROOT_URL       = 'http://localhost/hv';
26
 
        const TMP_ROOT_URL       = 'http://localhost/hv/tmp';
27
 
        const EVENT_SERVER_URL   = "http://localhost:8080/Dispatcher/resources/eventCatalogs?";
28
 
        
29
 
        // Regular Expressions
30
 
        const WEB_ROOT_DIR_REGEX = '/\/var\/www\/hv/';
31
 
        const WEB_ROOT_URL_REGEX = '/http:\/\/localhost\/hv/';
32
 
        
33
 
        // Executables
34
 
        const KDU_MERGE_BIN      = '/usr/bin/kdu_merge';
35
 
        const KDU_EXPAND         = '/usr/bin/kdu_expand';
36
 
        const EXIF_TOOL          = 'exiftool';
37
 
        
38
 
        // Movie Parameters
39
 
        const MAX_MOVIE_FRAMES   = 150;
40
 
 
41
 
        // Image parameters
42
 
        const PNG_COMPRESSION_QUALITY  = 20;
43
 
        const JPEG_COMPRESSION_QUALITY = 75;
44
 
        const BIT_DEPTH                = 8;
45
 
        const NUM_COLORS               = 256;
46
 
 
47
 
        // Apache IMagick Module
48
 
        const MOD_IMAGICK_ENABLED = false;
49
 
        
50
 
        // Debugging
51
 
        const ENABLE_CACHE = true;
52
 
}
53
 
?>