30,15 → 30,20 |
|
// Include the configuration class |
require_once 'include/configclass.inc'; |
require_once 'include/svnlook.inc'; |
|
// Create the config |
$config = new Config; |
|
// Set up the default character encodings |
if (function_exists('iconv_get_encoding')) |
{ |
$config->setInputEncoding(iconv_get_encoding('input_encoding')); |
} |
|
// Define the language array |
$lang = array(); |
$langNames = array(); |
|
// Include a default language file. |
require 'languages/english.inc'; |
|
// Set up locwebsvnhttp |
// Note: we will use nothing in MultiViews mode so that the URLs use the root |
// directory by default. |
50,18 → 55,24 |
|
$vars['locwebsvnhttp'] = $locwebsvnhttp; |
|
// Make sure that the input locale is set up correctly |
setlocale(LC_ALL, ''); |
// Include a default language file (must go before config.inc) |
require 'languages/english.inc'; |
|
// Create the config |
$config = new Config; |
// Get the user's personalised config (requires the locwebsvnhttp stuff above) |
require_once 'config.inc'; |
|
// Set up the default character encodings |
if (function_exists('iconv_get_encoding')) |
{ |
$config->setInputEncoding(iconv_get_encoding('input_encoding')); |
// Load PHP_Compat if we're going to use it. This needs to be done after including config.inc (which contains |
// the setting) but before svnlook.inc (which requires util.inc, which contains PHP4-incompatible functions) |
if ($config->isPHPCompatEnabled()) { |
require_once($config->getPHPCompatFile()); |
require_once 'include/php5compat.inc'; |
} |
|
require_once 'include/svnlook.inc'; |
|
// Make sure that the input locale is set up correctly |
setlocale(LC_ALL, ''); |
|
// {{{ Content-Type's |
// Set up the default content-type extension handling |
|
186,7 → 197,24 |
'.mov' => 'video/quicktime', // QuickTime Video |
'.avi' => 'video/msvideo', // Microsoft Windows Video |
'.movie' => 'video/x-sgi-movie', // SGI Movieplayer format |
'.wrl' => 'x-world/x-vrml' // VRML Worlds |
'.wrl' => 'x-world/x-vrml', // VRML Worlds |
'.odt' => 'application/vnd.oasis.opendocument.text', // OpenDocument Text |
'.ott' => 'application/vnd.oasis.opendocument.text-template', // OpenDocument Text Template |
'.ods' => 'application/vnd.oasis.opendocument.spreadsheet', // OpenDocument Spreadsheet |
'.ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', // OpenDocument Spreadsheet Template |
'.odp' => 'application/vnd.oasis.opendocument.presentation', // OpenDocument Presentation |
'.otp' => 'application/vnd.oasis.opendocument.presentation-template', // OpenDocument Presentation Template |
'.odg' => 'application/vnd.oasis.opendocument.graphics', // OpenDocument Drawing |
'.otg' => 'application/vnd.oasis.opendocument.graphics-template', // OpenDocument Drawing Template |
'.odc' => 'application/vnd.oasis.opendocument.chart', // OpenDocument Chart |
'.otc' => 'application/vnd.oasis.opendocument.chart-template', // OpenDocument Chart Template |
'.odf' => 'application/vnd.oasis.opendocument.formula', // OpenDocument Formula |
'.otf' => 'application/vnd.oasis.opendocument.formula-template', // OpenDocument Formula Template |
'.odi' => 'application/vnd.oasis.opendocument.image', // OpenDocument Image |
'.oti' => 'application/vnd.oasis.opendocument.image-template', // OpenDocument Image Template |
'.odm' => 'application/vnd.oasis.opendocument.text-master', // OpenDocument Master Document |
'.oth' => 'application/vnd.oasis.opendocument.text-web', // HTML Document Template |
'.odb' => 'application/vnd.oasis.opendocument.database', // OpenDocument Database |
|
); |
|
273,10 → 301,6 |
|
$zipped = array (); |
|
// Get the user's personalised config |
|
require_once 'config.inc'; |
|
// Set up the version info |
|
initSvnVersion($major,$minor); |