$baselink = SENDSTUDIO_APPLICATION_URL . '/rss.php?';

if ($listid) {
	$baselink .= 'List=' . $listid;
}

$extra_url = '';
if (isset($_GET['M'])) {
	$extra_url = '&M=' . (int)$_GET['M'] . '&';
	if (isset($_GET['C'])) {
		$extra_url .= 'C=' . urlencode($_GET['C']);
	}
}

$list_api = $sendstudio_functions->GetApi('Lists');

$title = GetLang('NewsletterArchives');

if ($listid > 0) {
	$list_loaded = $list_api->Load($listid);

	if ($list_loaded) {
		$title = sprintf(GetLang('NewsletterArchives_List'), $list_api->Get('name'));
	}
}

$number_to_show = 10;
if (isset($_GET['Fetch'])) {
	$fetch = (int)$_GET['Fetch'];
	if ($fetch > 0) {
Exemple #2
0
}

/**
* Require base sendstudio functionality. This connects to the database, sets up our base paths and so on.
*/
require_once dirname(__FILE__) . '/admin/index.php';

/**
* This file lets us get api's, load language files and parse templates.
*/
require_once(SENDSTUDIO_FUNCTION_DIRECTORY . '/sendstudio_functions.php');

$sendstudio_functions = new Sendstudio_Functions();
$sendstudio_functions->LoadLanguageFile('frontend');

$formapi = $sendstudio_functions->GetApi('Forms');
$emailapi = $sendstudio_functions->GetApi('Email');

$subscriberapi = $sendstudio_functions->GetApi('Subscribers');

$statsapi = $sendstudio_functions->GetApi('Stats');

$subscriber_id = IEM::sessionGet('Subscriber', false);
$form = IEM::sessionGet('Form', false);

if (!$subscriber_id || !$form) {
	echo GetLang('InvalidSendFriendURL');
	exit();
}

$formapi->Load($form);
Exemple #3
0
	exit;
}

/**
* This file lets us get api's, load language files and parse templates.
*/
require_once(SENDSTUDIO_FUNCTION_DIRECTORY . '/sendstudio_functions.php');

if (!check('rss', true)) {
	exit;
}


$sendstudio_functions = new Sendstudio_Functions();

$listapi = $sendstudio_functions->GetApi('Lists');
$newsletterapi = $sendstudio_functions->GetApi('Newsletters');
$autoapi = $sendstudio_functions->GetApi('Autoresponders');
$subscriberapi = $sendstudio_functions->GetApi('Subscribers');
$emailapi = $sendstudio_functions->GetApi('SS_Email');

$listid = 0;
if (isset($_GET['List'])) {
	$listid = (int)$_GET['List'];
} else {
	if (isset($_GET['L'])) {
		$listid = (int)$_GET['L'];
	}
}

$statid = 0;
Exemple #4
0
}

$multiple_lists = false;
if (sizeof($lists) > 1) {
	$multiple_lists = true;
}

$email = false;
if (isset($_POST['Email'])) {
	$email = $_POST['Email'];
}

$sendstudio_functions = new Sendstudio_Functions();
$sendstudio_functions->LoadLanguageFile('frontend');

$formapi = $sendstudio_functions->GetApi('Forms');
$listapi = $sendstudio_functions->GetApi('Lists');
$emailapi = $sendstudio_functions->GetApi('Email');
$emailapi->SetSmtp(SENDSTUDIO_SMTP_SERVER, SENDSTUDIO_SMTP_USERNAME, @base64_decode(SENDSTUDIO_SMTP_PASSWORD), SENDSTUDIO_SMTP_PORT);

$subscriberapi = $sendstudio_functions->GetApi('Subscribers');
$customfieldsapi = $sendstudio_functions->GetApi('CustomFields');
$statsapi = $sendstudio_functions->GetApi('Stats');

$loaded = $formapi->Load($form);
if (!$loaded) {
	echo 'Invalid Form.';
	exit();
}

$form_format = 'h';
Exemple #5
0
// Require base sendstudio functionality. This connects to the database, sets up our base paths and so on.
require_once dirname(__FILE__) . '/admin/index.php';

if (!SENDSTUDIO_IS_SETUP) {
	DisplayImage();
	exit();
}

/**
* This file lets us get api's, load language files and parse templates.
*/
require_once SENDSTUDIO_FUNCTION_DIRECTORY . '/sendstudio_functions.php';

$sendstudio_functions = new Sendstudio_Functions();

$statsapi = $sendstudio_functions->GetApi('Stats');
$subscriberapi = $sendstudio_functions->GetApi('Subscribers');

$foundparts = array();

$areas_to_check = array('M', 'L');
foreach ($areas_to_check as $p => $key) {
	if (!isset($_GET[$key])) {
		DisplayImage();
		exit();
	}
	$foundparts[strtolower($key)] = $_GET[$key];
}

if (isset($_GET['N'])) {
	$foundparts['n'] = (int)$_GET['N'];
Exemple #6
0
// Require base sendstudio functionality. This connects to the database, sets up our base paths and so on.
require_once dirname(__FILE__) . '/admin/index.php';

if (!SENDSTUDIO_IS_SETUP) {
	exit();
}

/**
* This file lets us get api's, load language files and parse templates.
*/
require_once SENDSTUDIO_FUNCTION_DIRECTORY . '/sendstudio_functions.php';

$sendstudio_functions = new Sendstudio_Functions();

$statsapi = $sendstudio_functions->GetApi('Stats');
$subscriberapi = $sendstudio_functions->GetApi('Subscribers');
$listapi = $sendstudio_functions->GetApi('Lists');

$foundparts = array();

foreach ($_GET as $p => $part) {
	$foundparts[strtolower($p)] = $part;
}

$linktype = 'u';
if (isset($foundparts['f'])) {
	$linktype = $foundparts['f'];
}

/**
Exemple #7
0
}

/**
* Require base sendstudio functionality. This connects to the database, sets up our base paths and so on.
*/
require_once dirname(__FILE__) . '/admin/index.php';

/**
* This file lets us get api's, load language files and parse templates.
*/
require_once SENDSTUDIO_FUNCTION_DIRECTORY . '/sendstudio_functions.php';

$sendstudio_functions = new Sendstudio_Functions();
$sendstudio_functions->LoadLanguageFile('frontend');

$subscriberapi = $sendstudio_functions->GetApi('Subscribers');
$customfieldsapi = $sendstudio_functions->GetApi('CustomFields');
$listapi = $sendstudio_functions->GetApi('Lists');
$formapi = $sendstudio_functions->GetApi('Forms');

/**
* This is used in the 'updatedetails.php' file so we don't have to re-do all of these checks.
*/
$subscriber_on_lists = array();
$subscriber_custom_fields = array();

$errors = array();

$listid = 0;
if (isset($_GET['List'])) {
	$listid = (int)$_GET['List'];
Exemple #8
0
* Require base sendstudio functionality. This connects to the database, sets up our base paths and so on.
*/
require_once dirname(__FILE__) . '/admin/index.php';

/**
* This file lets us get api's, load language files and parse templates.
*/
require_once(SENDSTUDIO_FUNCTION_DIRECTORY . '/sendstudio_functions.php');

header('Content-type: text/html; charset="' . SENDSTUDIO_CHARSET . '"');

$sendstudio_functions = new Sendstudio_Functions();
$sendstudio_functions->LoadLanguageFile('frontend');
$sendstudio_functions->LoadLanguageFile('forms');

$subscriberapi = $sendstudio_functions->GetApi('Subscribers');

$formapi = $sendstudio_functions->GetApi('Forms');

$errors = array();

$foundparts = array();

foreach ($_GET as $key => $part) {
	$foundparts[strtolower($key)] = $part;
}

if (isset($foundparts['c'])) {
	$confirmcode = $foundparts['c'];
} else {
	BadForm();