-
Notifications
You must be signed in to change notification settings - Fork 10
/
hotcrp-options.php
226 lines (198 loc) · 11.4 KB
/
hotcrp-options.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<?php
// options.php -- HotCRP conference options
// Placed in the public domain
/*****************************************************************************
* HotCRP Settings
* Required for all installations.
* Set up this file before running HotCRP for the first time.
*****************************************************************************/
global $Opt;
// MANDATORY CONFIGURATION
//
// dbName Database name. NO SPACES ALLOWED.
// dbUser Database user name. Defaults to $Opt["dbName"].
// dbPassword Password for database user.
$Opt["dbName"] = $_ENV["MYSQL_DATABASE"];
$Opt["dbUser"] = "root";
$Opt["dbPassword"] = $_ENV["MYSQL_ROOT_PASSWORD"];
// GENERAL CONFIGURATION
//
// include Other configuration files to load. String or array of
// strings. Wildcards are expanded (e.g., "conf/*.conf");
// relative paths are interpreted based on HOTCRPDIR.
// multiconference, multiconferenceAnalyzer
// Support multiple conferences from a single installation.
// See README.md.
// NAMES AND SITES
//
// shortName Short name of the conference, including the year or
// number. Examples: "SIGCOMM 2007", "HotNets V".
// longName Longer name of the conference. Example: "ACM SIGCOMM
// 2007 Conference".
// downloadPrefix Prefix for downloaded files, such as papers; should
// end in a dash. Example: "hotnets5-". Defaults to
// $Opt["dbName"] plus a dash.
// paperSite [OPTIONAL] URL for this HotCRP installation. Used in
// emails. Default is derived from the access URL.
// conferenceSite [OPTIONAL] Conference site URL (CFP, registration).
if(!empty($_ENV["HOTCRP_PAPER_SITE"]))
$Opt["paperSite"] = $_ENV["HOTCRP_PAPER_SITE"];
// EMAIL
//
// contactName Full name for site contact (the person to contact about
// site problems). Usually the PC chair(s).
// contactEmail Email address for site contact.
// sendEmail Boolean. If false, HotCRP will send no email. This should
// almost always be set to true.
// emailFrom "From:" header for email sent by HotCRP. Should be a
// plausible email address for mail originating at the
// conference server.
// emailSender Envelope sender address for email sent by HotCRP. Usually
// defaults to something like "www-data@yourservername".
// This email address should be connected to a valid mailbox
// or certain spam filters will reject email from HotCRP.
// emailCc Default "Cc:" address for email sent by HotCRP to
// reviewers and via the mail tool. (Does not apply to most
// email automatically sent to submitters.) If not set, the
// default Cc is $Opt["contactEmail"].
// emailReplyTo If set, default "Reply-To:" address for email sent by
// HotCRP.
// sendmailParam Extra parameters to be passed to your mailer. The default
// is derived from $Opt["emailSender"]. If your system's
// mailer is not sendmail, you may need to change the
// default value; see lib/mailer.php.
// internalMailer Set to true to use HotCRP's replacement for PHP's weirdo
// mail() function, false to use PHP's mail() function.
// Defaults to false on Windows, true elsewhere. A
// replacement for PHP's mail() is desired because of PHP
// mail()'s confused handling of CRLF issues.
// postfixMailer Set to true if your system mailer is UNIX Postfix and
// HotCRP mail has garbled headers, particularly for long or
// non-ASCII subject lines. (The symptom is that some mail
// headers will appear as part of the message body.) It's
// always safe to set postfixMailer to true, although the
// resulting mails may not be standards compliant.
$Opt["contactName"] = $_ENV["HOTCRP_CONTACT_NAME"];
$Opt["contactEmail"] = $_ENV["HOTCRP_EMAIL_CONTACT"];
$Opt["sendEmail"] = true;
$Opt["emailFrom"] = $_ENV["HOTCRP_EMAIL_FROM"];
$Opt["emailSender"] = empty($_ENV["SENDER_ENVELOPE_ADDRESS"]) ? $_ENV["HOTCRP_EMAIL_FROM"] : $_ENV["SENDER_ENVELOPE_ADDRESS"];
$Opt["internalMailer"] = true;
// -------------------------------------------------------------------------
// OTHER CONFIGURATION OPTIONS
// -------------------------------------------------------------------------
// USER ACCOUNTS
//
// ldapLogin If set, use LDAP to authenticate users. The ldapLogin
// string must have the form "LDAP_URL DN_PATTERN", where
// DN_PATTERN contains a "*" character to be replaced by
// the username. Example: "ldaps://ldapserver/ uid=*,o=ORG"
// httpAuthLogin If set, use HTTP authentication to authenticate users.
// Requires additional web server configuration. A string
// value is sent as a WWW-Authenticate header. The default
// string is "Basic realm="HotCRP"".
// defaultEmailDomain Set to the default domain for account email addresses
// when using httpAuthLogin.
// disableNewUsers Don’t allow new users to register.
// PASSWORD SECURITY
//
// chairHidePasswords If true, then chairs cannot modify other users'
// passwords. Defaults to false.
// PAPER STORAGE
//
// docstore Set to true to serve papers and other downloads from a
// cache on the local filesystem. By default this cache is
// created in the "docs" directory. You can also set
// $Opt["docstore"] to a directory name.
// docstoreSubdir Set to true (or a small number, like 3) if the document
// store should use subdirectories. This can be useful if
// you expect thousands of submissions.
// s3_bucket Amazon S3 bucket name to store paper submissions.
// s3_key Amazon AWS access key ID (used for S3).
// s3_secret Amazon AWS secret access key (used for S3).
// dbNoPapers Set to true to not store papers in the database.
// Requires filestore, S3 storage, or both.
// TIMES AND DATES
//
// timezone Server timezone. See http://php.net/manual/en/timezones
// for a list. Defaults to America/New_York if you haven't
// set a server-wide PHP timestamp in `php.ini`.
// time24hour Set to true to use 24-hour timestamps, rather than the
// default am/pm.
// dateFormat Format for displaying short dates. Uses PHP date() syntax:
// http://www.php.net/manual/en/function.date.php
// Defaults to "j M Y H:i:s" [e.g., "1 Jan 2012 00:00:00"]
// or "j M Y g:i:sa" [e.g., "1 Jan 2012 12:00:00am"].
// dateFormatLong Format for displaying long dates. Defaults to
// "l " + dateFormat [e.g., "Tuesday 1 Jan 2012 12:00:00am"].
// timestampFormat Format for displaying paper timestamps. Defaults to
// dateFormat.
// dateFormatSimplifier Regular expression used to simplify dates. The
// default removes ":00" from the ends of dates.
// dateFormatTimezone Timezone abbreviation used to print dates. Defaults to
// the system's timezone abbreviation.
// DISPLAY CUSTOMIZATION OPTIONS
//
// favicon Link to favicon. Default is images/review24.png.
// stylesheets Array of additional stylesheet filenames/URIs to be
// included after "style.css". Example: array("x.css").
// fontScript HTML added to <head> before stylesheets.
// extraFooter Extra HTML text shown at the bottom of every page, before
// the HotCRP link. If set, should generally end with
// " <span class='barsep'>|</span> ".
// assetsUrl URL prefix for assets (stylesheets/, scripts/, images/).
// Defaults to the conference installation.
// scriptAssetsUrl URL prefix for script assets. Defaults to assetsURL,
// except for browsers known to ignore `crossorigin`, where
// it defaults to the conference installation.
// jqueryUrl URL for jQuery. Defaults to the local minified jquery.
// jqueryCdn If true, use the jQuery CDN.
// phpSuffix The suffix for generated HotCRP URLs. Usually empty; for
// some configurations, you may want to set it to ".php".
// BEHAVIOR OPTIONS
//
// sortByLastName Set to true to sort users by last name.
// smartScoreCompare Set to true if a search like "ovemer:>B" should search
// for scores better than B (i.e., A), rather than scores
// alphabetically after B (i.e., C or D).
// noFooterVersion Set to true to avoid a version comment in footer HTML.
// strictJavascript If true, send Javascript with "use strict".
// hideManager If set, PC members are not shown paper managers.
// disableCapabilities If set, emails to authors will not have a
// token enabling them to view their papers without logging in.
$Opt["smartScoreCompare"] = true;
// SESSIONS AND SECURITY
//
// sessionName Internal name used to distinguish conference sessions
// running on the same server. NO SPACES ALLOWED. Defaults
// to $Opt["dbName"].
// sessionSecure If true, then set cookies and session cookies only on
// secure connections. Defaults to false.
// sessionDomain The domain scope for the session cookie. Defaults to the
// server's domain. To share a cookie across subdomains,
// prefix it with a dot: ".hotcrp.com".
// sessionLifetime Number of seconds a user may be idle before their session
// is garbage collected and they must log in again. Defaults
// to 86400 (24 hours). Should be less than or equal to the
// system-wide setting for `session.gc_maxlifetime` in
// the PHP initialization file, `php.ini`.
// redirectToHttps If set to true, then HotCRP will redirect all HTTP
// connections to HTTPS.
// allowLocalHttp Only meaningful if redirectToHttps is set. If true, then
// HotCRP will *not* redirect HTTP connections that
// originate from localhost.
$Opt["dsn"] = "mysql://root:".$_ENV["MYSQL_ROOT_PASSWORD"]."@mysql:3306/".$_ENV["MYSQL_DATABASE"];
// EXTERNAL SOFTWARE CONFIGURATION
//
// dbHost Database host. Defaults to localhost.
// dsn Database configuration string in the format
// "mysql://DBUSER:DBPASSWORD@DBHOST/DBNAME".
// The default is derived from $Opt["dbName"], etc.
// memoryLimit Maximum amount of memory a PHP script can use. Defaults
// to 128MB.
// pdftohtml Pathname to pdftohtml executable (used only by the "banal"
// paper format checker).
// banalLimit Limit on number of parallel paper format checker
// executions. Defaults to 8.
// zipCommand Set to the path to the `zip` executable. Defaults to
// `zip`.