Fix Apache wonkiness with REQUEST_URL; also update TODO.
[xhtml-compiler.git] / config.default.php
blob9b0ce10622cadba8118bb0f914872920415dc3d4
1 <?php
3 // DO NOT EDIT THIS FILE!
4 // Values set here can be overridden using config.php
6 // after making changes to config.php, run
7 // htaccess-builder to put your changes into effect
9 // allowed directories, use 0: non-recursive; 1: recursive.
10 // Directories specified here are relative to the parent directory, since
11 // this application is neatly cordoned off into a subdirectory and shouldn't
12 // actually contain any HTML files. Trailing slashes are optional, but
13 // directory MUST exist
14 $allowed_dirs = array('' => 0);
16 //** Controls directory indexing:
17 // false : all directories are assumed to have no index, and Apache
18 // mod_rewrite will not intercept calls to directories unless
19 // explicitly told to via ?purge=1. This means you will be able
20 // to use Apache's built-in directory listings, but an index will
21 // not be automatically regenerated
22 // associative array : an associative array of directory names to the
23 // above values for fine-grained control. If an entry is not in the
24 // the list, XHTML Compiler will assume "true".
25 // Note: it is not currently possible to control the behavior of
26 // subdirectories of directories in which recursion is allowed
27 $indexed_dirs = array();
29 //** Name of file that is a directory's index
30 // Note: there is no support for multiple possible indexes, as Apache
31 // does, and it is currently impossible to use Apache's own DocumentIndex
32 // directive.
33 $directory_index = 'index.html';
35 // ** Path to web root of the parent of XHTML Compiler's install library
36 // If you installed XHTML Compiler at /xhtml-compiler, nothing needs to
37 // be done. If you installed it at /subdir/xhtml-compiler, you need
38 // to set this variable to /subdir. MUST NOT have trailing slash
39 $web_path = '';
41 // ** Domain name of this server
42 // XHTML Compiler will attempt to automatically populate this variable,
43 // but it WILL NOT be set if you're calling XHTML Compiler from command
44 // line unless you set it explicitly!
45 if (isset($_SERVER['HTTP_HOST'])) $web_domain = $_SERVER['HTTP_HOST'];
46 else $web_domain = null;
48 // ** URL of ViewVC installation
49 // No trailing slash
50 $viewvc_url = false;
52 // ** Whether or not to print debug information when Exceptions are thrown.
53 // Debug information can disclose full-paths, so enabling them is not
54 // recommended on production environments.
55 $debug = false;
57 // ** Error XML transformation stylesheet
58 // This is the file linked to by XML error messages generated by our
59 // default exception handler
60 $error_xsl = dirname(__FILE__) . '/error.xsl';
62 // note about error handling: if a default error page is defined that's
63 // within XHTML Compiler's jurisdiction, that error page will be managed
64 // by XHTML Compiler (i.e. mod_rewrite will act upon it) and will apply
65 // to all directories, not just the ones XHTML Compiler manages. However,
66 // pages that XHTML Compiler manages will always be 404 handled by
67 // XHTML Compiler and NOT Apache. What this means is that a default
68 // error page will often be defined, in which case Apache hands the ball
69 // to XHTML Compiler, who displays a much less informative error message.
71 // ** Administrator email
72 // Miscellaneous email notices will be mailed to this address in the event of
73 // errors. This will NOT be published
74 $admin_email = 'admin@localhost';
76 // ** From email
77 // Name that your emails will come from
78 $from_email = 'daemon@localhost';
80 // ** Error log
81 // Errors will be logged here.
82 $error_log = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'errors.log';
84 // ** Error mute semaphore file
85 // When this file exists, error emails will be muted. This generally gets created
86 // when the first error is seen, and then is deleted after the errors are
87 // resolved.
88 $error_mute = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mute.txt';
90 // ** Configuration documentation file
91 // This is for the ConfigLinker directive, specific for HTML Purifier.
92 // It is the URL <a xc:configdoc="..."> URLs are transformed to.
93 $configdoc = 'http://htmlpurifier.org/live/configdoc/plain.html#%s';
95 // ** SwiftMailer smtp transport
96 // Check out http://swiftmailer.org/docs/sending-quickref for information
97 // on how to configure this. On properly configured Unix systems, the
98 // default should "just work".
99 $smtp_transport = Swift_SendmailTransport::newInstance('/usr/sbin/sendmail -t');
101 // ** Data source name
102 // See http://www.doctrine-project.org/documentation/manual/1_1/en/introduction-to-connections
103 // for information on the syntax. By default, we'll dump everything into
104 // an sqlite database, which is not the best in terms of scalability.
105 $dsn = 'sqlite:///' . dirname(__FILE__) . '/data.db';