diff options
author | plegall <plg@piwigo.org> | 2009-05-31 19:35:51 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2009-05-31 19:35:51 +0000 |
commit | 32a24fefc9aece305d244933ec9e3272978193bc (patch) | |
tree | 2bf5bb132364eef99915d32c88c6f7e9d374349a /admin/intro.php | |
parent | e486b3c79af80356ce85afe8fed47ee4a554a83f (diff) |
feature 1020 added: ability to subscribe to Piwigo Announcement Newsletter from
Piwigo itself. Admins can perform this action at the end of installation or on
administration panel index.
git-svn-id: http://piwigo.org/svn/branches/2.0@3381 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/intro.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/admin/intro.php b/admin/intro.php index 98ee92f26..d2549b5db 100644 --- a/admin/intro.php +++ b/admin/intro.php @@ -115,6 +115,15 @@ else if (isset($_GET['action']) and 'phpinfo' == $_GET['action']) $template->set_filenames(array('intro' => 'intro.tpl')); +if ($conf['show_newsletter_subscription']) { + $template->assign( + array( + 'EMAIL' => $user['email'], + 'SUBSCRIBE_BASE_URL' => get_newsletter_subscribe_base_url($user['language']), + ) + ); +} + $php_current_timestamp = date("Y-m-d H:i:s"); list($mysql_version, $db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT VERSION(), CURRENT_TIMESTAMP;')); |