Project

General

Profile

« Previous | Next » 

Revision 7f310863

Added by Andreas Kohlbecker about 13 years ago

correting tmp dir for linux and mac

View differences:

modules/cdm_dataportal/profile/CDM_DataPortal/CDM_DataPortal.profile
44 44
************************************************************/
45 45
    variable_set('anonymous', 'Anonymous');
46 46
    variable_set('comment_page', 0);
47
    //TODO fix for linux and mac os-x
48
    variable_set('file_directory_temp', 'c:\\windows\\temp');
47
    if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
48
      variable_set('file_directory_temp', 'c:\\windows\\temp');
49
    } else {
50
      variable_set('file_directory_temp', '/tmp');
51
    }
49 52
    variable_set('filter_html_1', 1);
50 53
    variable_set('menu_primary_menu', 2);
51 54
    variable_set('menu_secondary_menu', 2);
......
74 77
    variable_set('cdm_webservice_debug', 0);
75 78
    variable_set('cdm_webservice_cache', 0);
76 79
    variable_set('distribution_sort', 'HIDE_TDWG2');
77
    
80

  
78 81
    variable_set('user_register', '0');
79
    
82

  
80 83

  
81 84
/************************************************************
82 85
*                            ROLES                          *
......
135 138
        "INSERT INTO {node_revisions} (nid,vid,uid,title,body,teaser,log,timestamp,format)
136 139
        VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s')",
137 140
        '1','1','1','CDM DataPortal','<h3>Welcome to your CDM DataPortal. </h3>
138
    
141

  
139 142
    This data portal makes full use of the Common Data Model  (CDM), a central component of the Internet Platform for Cybertaxonomy being developed by EDIT workpackage 5. All taxon pages are created as dynamic web pages from the underlying database.
140
    
143

  
141 144
    In order to finish the setup of your DataPortal please visit the <?php print(l(\'CDM Dataportal settings\', \'admin/settings/cdm_dataportal\')); ?>. The CDM Dataportal provides several Drupal Blocks (<i>taxon search</i>, <i>classification browser</i>, <i>external links</i>, <i>print this page</i>) which you may want to activate in the <?php print(l(\'Blocks Settings\', \'admin/build/block\')); ?>','<h3>Welcome to your CDM DataPortal. </h3>
142
    
145

  
143 146
    This data portal makes full use of the Common Data Model  (CDM), a central component of the Internet Platform for Cybertaxonomy being developed by EDIT workpackage 5. All taxon pages are created as dynamic web pages from the underlying database.
144
    
147

  
145 148
    In order to finish the setup of your DataPortal please visit the <?php print(l(\'CDM Dataportal settings\', \'admin/settings/cdm_dataportal\')); ?>. The CDM Dataportal provides several Drupal Blocks (<i>taxon search</i>, <i>classification browser</i>, <i>external links</i>, <i>print this page</i>) which you may want to activate in the <?php print(l(\'Blocks Settings\', \'admin/build/block\')); ?>','','1285673272','2'
146 149
    );
147 150

  
148 151
    system_initialize_theme_blocks('garland');
149
    
152

  
150 153
    // set site info
151 154
    //  * site name
152 155
    //  * start page
......
156 159
          ('site_frontpage', 's:6:\"node/1\";'),
157 160
          ('site_name', 's:19:\"EDIT CDM DataPortal\";')
158 161
        ");
159
        
162

  
160 163
   // FIX node sequences !!!!!
161
   
164

  
162 165
    db_query(
163 166
        "REPLACE INTO {sequences} (name, id) VALUES
164 167
        ('{node_nid}', 1),
165 168
        ('{node_revisions_vid}', 1);
166 169
        ");
167
  
170

  
168 171
    return;
169 172
}
170 173

  

Also available in: Unified diff