jbroadway / pubmail

Mailing list software for the messagepub.com service

This URL has Read+Write access

pubmail / subscribe.php
100644 20 lines (14 sloc) 0.371 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
 
$settings = parse_ini_file ('settings.php');
 
require_once ('lib/functions.php');
 
$pm = new PubMail ($settings);
 
if (isset ($_GET['email'])) {
$_POST['email'] = $_GET['email'];
}
 
if (! empty ($_POST['email'])) {
$pm->add_subscribers ($_POST['email'], true);
require_once ('html/subscribe_added.php');
} else {
require_once ('html/subscribe_form.php');
}
 
?>