{$username} {$usertoken} subscribers GetSubscribers
{$email} {$list} 1
"; $ch = curl_init('http://www.lifesuccessmedia.com/service/xml.php'); //CHANGE TO THE PATH OF YOUR IEM INSTALLATION curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); $result = @curl_exec($ch); if($result != false) { $xml_doc = simplexml_load_string($result); //var_dump($xml_doc); if(((string)$xml_doc->data->subscriberlist->item->confirmed=="1") && ((string)$xml_doc->data->subscriberlist->item->unsubscribed=="0")&& ((string)$xml_doc->data->subscriberlist->item->emailaddress==$from)){ return true; } return false; } else { return false; } return false; } //da könnte a login rein um die doenloads zu träcken ... $yourfile =""; $yourname=""; if (!empty($_GET['d'])){ if($_GET['d']=="scheck"){ $yourfile ="src/scheckderbank.pdf"; $yourname="scheckderbank.pdf"; }elseif($_GET['d']=="planet"){ $yourfile ="src/planeterde.mp4"; $yourname="planeterde.mp4"; }elseif($_GET['d']=="toyou"){ $yourfile ="src/thesecrettoyou.mp4"; $yourname="thesecrettoyou.mp4"; }elseif($_GET['d']=="100zitate"){ if ($_GET['p']){ $_GET['cml']=urldecode($_GET['cml']); } if (isonlist($_GET['cml'])){ $yourfile ="src/100zitate.pdf"; $yourname="100zitate.pdf"; }else{ echo "

Der Download ist nur für aktive Newsletterabonnenten

"; echo "

die Emailadresse: ".$_GET['cml']." ist nicht für den thesecret.de Newsletter angemeldet

"; exit(); } } $fp = fopen($yourfile, 'rb'); if (strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) { header('Content-Type: "application/octet-stream"'); header('Content-Disposition: attachment; filename="'.$yourname.'"'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header("Content-Transfer-Encoding: binary"); header('Pragma: public'); header("Content-Length: ".filesize($yourfile)); } else { header('Content-Type: "application/octet-stream"'); header('Content-Disposition: attachment; filename="'.$yourname.'"'); header("Content-Transfer-Encoding: binary"); header('Expires: 0'); header('Pragma: no-cache'); header("Content-Length: ".filesize($yourfile)); } fpassthru($fp); fclose($fp); } ?>