cvs: pearweb /include pear-config.php
| From: | Daniel Convissor | Date: | Thu, 08 Jul 2004 14:11:25 +0000 |
| Subject: | cvs: pearweb /include pear-config.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-438@lists.php.net to get a copy of this message | ||
danielc Thu Jul 8 10:11:25 2004 EDT
Modified files:
/pearweb/include pear-config.php
Log:
PEPr CONSTANTS TWEAK
* Set to values from $_SERVER if they exist.
* Remove case-insensitive declaration.
* Define times outright rather than calculating.
http://cvs.php.net/diff.php/pearweb/include/pear-config.php?r1=1.20&r2=1.21&ty=u
Index: pearweb/include/pear-config.php
diff -u pearweb/include/pear-config.php:1.20 pearweb/include/pear-config.php:1.21
--- pearweb/include/pear-config.php:1.20 Sat May 1 16:54:27 2004
+++ pearweb/include/pear-config.php Thu Jul 8 10:11:25 2004
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-config.php,v 1.20 2004/05/01 20:54:27 mj Exp $
+ $Id: pear-config.php,v 1.21 2004/07/08 14:11:25 danielc Exp $
*/
if (isset($_SERVER['PEAR_TMPDIR'])) {
@@ -76,13 +76,29 @@
define('DAMBLAN_RSS_CACHE_DIR', PEAR_TMPDIR . '/rss_cache');
define('DAMBLAN_RSS_CACHE_TIME', 1800);
-define('PROPOSAL_STATUS_PROPOSAL_TIMELINE', (60 * 60 * 24 * 7), true); // 1 week
-define('PROPOSAL_STATUS_VOTE_TIMELINE', (60 * 60 * 24 * 7), true); // 1 week
-define('PROPOSAL_MAIL_PEAR_DEV', 'PEAR developer mailinglist
<pear-dev@lists.php.net>', true);
-define('PROPOSAL_MAIL_PEAR_GROUP', 'PEAR group <pear-group@php.net>',
true);
-define('PROPOSAL_MAIL_FROM', 'PEPr <pear-sys@php.net>', true);
-define('PROPOSAL_EMAIL_PREFIX', '[PEPr]', true);
-define('PROPOSAL_EMAIL_POSTFIX', "\n\n-- \nSent by PEPr, the automatic proposal
system at http://pear.php.net", true);
+define('PROPOSAL_STATUS_PROPOSAL_TIMELINE', 604800); // 1 week
+define('PROPOSAL_STATUS_VOTE_TIMELINE', 604800); // 1 week (60 * 60 * 24 * 7)
+
+if (isset($_SERVER['PROPOSAL_MAIL_PEAR_DEV'])) {
+ define('PROPOSAL_MAIL_PEAR_DEV', $_SERVER['PROPOSAL_MAIL_PEAR_DEV']);
+} else {
+ define('PROPOSAL_MAIL_PEAR_DEV', 'PEAR developer mailinglist
<pear-dev@lists.php.net>');
+}
+
+if (isset($_SERVER['PROPOSAL_MAIL_PEAR_GROUP'])) {
+ define('PROPOSAL_MAIL_PEAR_GROUP', $_SERVER['PROPOSAL_MAIL_PEAR_GROUP']);
+} else {
+ define('PROPOSAL_MAIL_PEAR_GROUP', 'PEAR group
<pear-group@php.net>');
+}
+
+if (isset($_SERVER['PROPOSAL_MAIL_FROM'])) {
+ define('PROPOSAL_MAIL_FROM', $_SERVER['PROPOSAL_MAIL_FROM']);
+} else {
+ define('PROPOSAL_MAIL_FROM', 'PEPr <pear-sys@php.net>');
+}
+
+define('PROPOSAL_EMAIL_PREFIX', '[PEPr]');
+define('PROPOSAL_EMAIL_POSTFIX', "\n\n-- \nSent by PEPr, the automatic proposal
system at http://pear.php.net");
?>