Changeset 183 for branches/1.1dev/config


Ignore:
Timestamp:
Jun 24, 2006 6:43:50 PM (18 years ago)
Author:
scdev
Message:

added X-Codebase-Version header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/config/boot.inc.php

    r113 r183  
    227227// Character set. This will also be printed in the html head.
    228228header('Content-type: text/html; charset=' . $CFG->character_set);
     229
     230// Set the version of the codebase we're using.
     231$codebase_version_file = dirname(__FILE__) . '/../docs/version.txt';
     232if (is_readable($codebase_version_file)) {
     233    $CFG->codebase_version = trim(file_get_contents($codebase_version_file));
     234    header('X-Codebase-Version: ' . $CFG->codebase_version);
     235}
    229236 
    230237// Capture the ultimate referrer. Used? Not yet.
Note: See TracChangeset for help on using the changeset viewer.