Make the email address for the moderation nag configurable.
authorDave Page <dpage@pgadmin.org>
Thu, 28 Jan 2010 10:11:19 +0000 (10:11 +0000)
committerDave Page <dpage@pgadmin.org>
Thu, 28 Jan 2010 10:11:19 +0000 (10:11 +0000)
git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2623 8f5c7a92-453e-0410-a47f-ad33c8a6b003

portal/tools/moderation-nag.php

index 0dfd8bf0558f6bcd354b729ce859f20922448a9c..af41a78af8ad1d7c81a8f8555c216ef895861e69 100755 (executable)
@@ -6,7 +6,10 @@ require_once '../system/global/settings.php';
 if (file_exists('../system/global/settings.local.php'))
     require_once '../system/global/settings.local.php';
 
-   $EMAIL = "PostgreSQL WWW List <pgsql-www@postgresql.org>";
+   if (isset($_SERVER['argv'][1]))
+       $EMAIL = $_SERVER['argv'][1];
+   else
+       $EMAIL = "PostgreSQL WWW List <pgsql-www@postgresql.org>";
 
    $DB = $_SETTINGS['db_portal'];
    $SEND_MAIL = 0;