Location: PHPKode > projects > phpLedMailer > verify.php
<?
/*
*
* $Id: verify.php,v 1.7 2005/08/19 14:49:47 ledjon Exp $
*
* phpLedMailer - v1.x
*
* by Jon Coulter
* http://www.ledscripts.com/
*
* Changes:
* 	- None yet
*
*/

	require_once(dirname(__FILE__) . '/common.inc.php');
	$plm = new phpLedMailer( $config );

	$t = new LedTemplate();
	$t->Set('listname', $plm->config['listname']);
	
	if($plm->param->a == 's')
	{
		// verify the stuff
		if( ! $plm->verifyAddress( $plm->param->i ) )
		{
			//die( $plm->errstr( ) );
			// a nicer die message here
			$plm->cleanDeath( $plm->errstr( ) );
		}
		
		$t->loadTemplate('verify_complete', 'templates/verify_complete.html');
		echo $t->Parse( 'verify_complete' );	
	}
	else
	{
		if($plm->param->a == 'u')
		{
			if( ! $plm->verifyAddress( $plm->param->i ) )
			{
				die($plm->errstr( ));
			}
			
			$t->loadTemplate('unsub_complete', 'templates/unsubscribe_complete.html');
			echo $t->Parse('unsub_complete');
		}
		else
		{
			die("Unknown action to take!");
		}
	}
	
?>
Return current item: phpLedMailer