0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
vtiger
/
5.0.4
/
custom
/
10000000
/
files
/
[
Home
]
File: unsubscribe.php
<?php /** * Created on 23-Dec-08 by Raj Boyapati to unsubcribe end users from campaigns. * ******************************************************************************* * Version * Modified by * Date * Details * * ******************************************************************************* * * * * * * * * * * * * * * * * ******************************************************************************* */ // INFO: required files require_once('include/logging.php'); // INFO: Variable $pipe="|"; $campid=""; $log =& LoggerManager::getLogger('index'); // INFO: get contact information if(isset($_REQUEST["data"])) $data=stripslashes($_REQUEST["data"]); else $data=""; if($data!='') { $decoded_data = convert_uudecode($data); $key = explode($pipe, $decoded_data); if(count($key)>0) { $campid = $key[0]; if($campid!='') { // INFO: get email id from user } else { $errmsg = "Sorry, request can not be processed. Insufficient information."; } //if($campid!='') } else { $errmsg = "Sorry, request can not be processed. Insufficient information."; } //if(count($key)>0) } else { $errmsg = "Sorry, request can not be processed. Missing required information."; } //if($data!='') if($errmsg=="") { ?> <html> <body> <?php //echo date('l jS \of F Y h:i:s A'); ?> <form action="unsubscribeuser.php" method="post"> <br /><br /><br /><br /> <table align="center"> <tr> <td align="center"><b>Campaign Management - Unsubscribe Form</b></td> </tr> <tr> <td align="center">Please enter your email id here</td> </tr> <tr> <td align="center"><input type="hidden" name="campid" value="<?php echo $campid; ?>" /></td> </tr> <tr> <td align="center"><input type="text" name="email" /></td> </tr> <tr> <td align="center"><input type="submit" value="Continue" /></td> </tr> </table> </form> </body> </html> <?php } else { echo $errmsg; } ?>