Added Tell-A-Friend v2.2 -> Added version list. -> Added ability to only allow purchasing customers to be affiliates. -> Added giveaway product functionality. -> Added affiliate emailing. -> Added a few bug fixes. v2.3 -> Added code for parsing PHP in templates. -> Updated code that decides who gets OTO sale. -> Major Security update tracks purchases by IP and only allows Completed payments to be redirected to the download page. -> Added ability to only allow OTO customers to get commissions on the OTO. -> Added ability to disable download emails from automatically being sent. -> Added support for all PayPal currencies. -> BUG FIX: Corrected 48 hour extension of download link to add 48 hours to THIS moment. -> Added script configure util (config.php) v2.4 -> BUG FIX: When OTO commission is set to zero, affiliate always gets the commission. -> BUG FIX: Affiliate cookie now cleared if only customers are allowed to be affiliates. -> BUG FIX: Removed case-sensitive referrer domain comparison for TAF. -> IPN script now prevents people from paying less than stated price for products. -> IPN script now prevents people from purchasing using different emails from the same domains. -> Added admin section for viewing fraudulent transactions. -> Added version number to ipn.php, config.php and settings.php -> Added back-end search features for sales records. -> Added download security. v2.5 -> BUG FIX: Sometimes you could still purchase through your own link even if you weren't a customer and $sys_purchasers_only was true. -> BUG FIX: If customer clicked OTO purchase link but did not purchase, their download link would be to the OTO. -> BUG FIX: config.php file wasn't writing out the currency value to settings.php -> BUG FIX: to prevent warning messages, a blank ipn.txt file is created automatically if it doesn't exist. -> SECURITY: to prevent directory listing of templates folder (should someone discover its name), an index.html file is created there automatically. -> Removed need for cookies throughout purchase/download process to prevent expired download issues. v2.6 -> Added ability to alternate commissions on primary product as well. -> Added version info and item/oto commission info on "Please Wait" order screen. -> SECURITY: Added additional security for admin back-end to prevent cookie spoofing. -> BUG FIX: Added folder location into cookie path for multiple products running on the same domain. */ $sys_version = 2.6; include("settings.php"); function searchKeywords($url){ $parts = parse_url($url); $host = str_replace("www.", "", $parts["host"]); $keywords = ""; parse_str($parts["query"], $vars); if(strpos(" $host", "google")){ $keywords = urldecode($vars["q"]); } elseif(strpos(" $host", "yahoo")){ $keywords = urldecode($vars["p"]); } elseif(strpos(" $host", "live")){ $keywords = urldecode($vars["q"]); } elseif($vars["keywords"]){ $keywords = urldecode($vars["keywords"]); } elseif($vars["query"]){ $keywords = urldecode($vars["query"]); } else{ $keywords = urldecode($vars["q"]); } return $keywords; } function evalPHP($template){ # Make all settings.php variables accessible to template PHP code. global $sys_admin_username, $sys_admin_password, $sys_domain, $sys_support_address, $sys_script_folder, $sys_template_folder, $sys_default_email, $sys_item_name, $sys_item_number, $sys_item_cost, $sys_oto, $sys_oto_name, $sys_oto_number, $sys_oto_cost, $sys_oto_percent, $sys_item_cancel_url, $sys_expire_hours, $sys_blocked, $sys_secure_dl, $sys_tell_subject, $sys_tell_body, $sys_purchasers_only, $sys_purchasers_override, $sys_giveaway_product, $sys_oto_purchasers_only, $sys_oto_purchasers_override; # Eval all php code in a template and plug result into output. $output = ""; $last = 0; $i = strpos($template, "", $i); $phpcode = trim(str_replace(array(""), "", substr($template, $i, $i2 - $i))); $val = eval($phpcode); $output .= $val; $last = $i2 + 3; $i = strpos($template, "", $i); $phpcode = trim(str_replace(array(""), "", substr($output, $i, $i2 - $i))); $val = eval("return $phpcode;"); $output2 .= $val; $last = $i2 + 3; $i = strpos($output, " 0){ $affper = ($affsales / $afftotal)*100; } else{ $affper = 0; } if($percent > 0 && $affper<=$percent){ # Give OTO to affiliate. $email = urldecode($_COOKIE["aff"]); } else{ # Give OTO to vendor. $email = $sys_default_email; } return $email; } $action = $_REQUEST["action"]; # Set privacy policy for IE6/WinXP users. # If you don't do this, a lot of IE browsers wont accept the cookie. header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); if(!file_exists($sys_template_folder . "ipn.txt")){ # IPN file doesn't exist. Create a blank one. $fh = fopen($sys_template_folder . "ipn.txt", "w+"); fwrite($fh, ""); fclose($fh); } if(!file_exists($sys_template_folder . "index.html")){ # index.html file doesn't exist in templates folder. Create a blank one. $fh = fopen($sys_template_folder . "index.html", "w+"); fwrite($fh, ""); fclose($fh); } if(substr($action, 0, 5)=="admin" && $action != "admin" && $action != "adminlogin" && !$_COOKIE["admin"]){ # Not logged in. Redirect to login. header("Location: $_SERVER[PHP_SELF]?action=admin"); exit; } # Redirectin case PayPal goofs and fails to do so. if(!isset($_COOKIE["giveaway"]) && !isset($_GET["fdl"]) && ($action == "squeeze"| $action == "downloadoto") && !isset($_GET["e"])){ # Check for customer IP address in IPN file. if($action=="downloadoto"){ $oto = true; } else{ $oto = false; } $sale = getIPSalesRecord($oto); if(is_array($sale)){ # Purchase record found. if($action=="downloadoto"){ $url = "index.php?action=download&id=$sale[0]&fdl=1"; } elseif($action=="squeeze"|$action=="download"){ $url = "index.php?action=squeeze&id=$sale[0]&fdl=1"; } else{ # Not sure what's up. Send to sales letter. $url = "index.php"; } # Send to appropriate page. header("Location: $url"); } elseif($_GET["tries"]<11){ # Give one minute for PayPal to post IPN record before giving up and showing an error. if(!isset($_GET["tries"])){ $tries = 1; } else{ $tries = $_GET["tries"] + 1; } $seconds = 60 - ($tries * 5); echo "

Waiting for PayPal confirmation of purchase, please wait...

$seconds seconds left...

(This page will refresh every 5 seconds until PayPal provides confirmation.)

"; } else{ # IP not found in records. Show error message. if(substr($sys_support_address, 0, 7)=="http://"){ $eaddress = $sys_support_address; } else{ $eaddress = "mailto:$sys_support_address"; } echo " Purchase record not found.

We apologize for the inconvenience, but there was a problem confirming your purchase. Please contact our technical support staff for your download link at:

$eaddress

Please paste a copy of your PayPal receipt into your message for verification.

NOTICE: If you paid with an eCheck or bank draft, the download link will be emailed to you automatically after the payment clears.

Click here to continue.

"; } exit; } if(isset($_GET["e"])){ # Make sure this account hasn't been blocked. if(!strpos(" $sys_blocked", $_GET["e"])){ # Set cookie and redirect visitor if it's through an affiliate link. if($sys_purchasers_only){ if(strpos(strtolower(" $sys_purchasers_override"), strtolower($_GET["e"]))){ # Affiliate is in over-ride list. Let them sell. $sellit = true; } else{ # Verify that this paypal email address is in our ipn.txt $sellit = false; $sales = @file($sys_template_folder . "ipn.txt"); foreach($sales as $sale){ $sale = explode("|", $sale); if(strtolower($sale[4])==strtolower($_GET["e"])){ # They're a customer. $sellit = true; break; } } } } else{ # Anybody can sell the product. $sellit = true; } if($sellit){ setcookie("aff", $_GET["e"], time()+31536000, $sys_script_folder, "." . $sys_domain); if($_GET["taf"]){ # This was a tell-a-friend referral. header("Location: $sys_script_folder?taf=1"); } else{ header("Location: $sys_script_folder"); } } else{ # Clear affiliate cookie. setcookie("aff", $sys_default_email, time()+31536000, $sys_script_folder, "." . $sys_domain); # Show a message indicating that only people who bought can sell. showTemplate($sys_template_folder . "customersonly.html"); } exit; } else{ # Clear affiliate cookie. setcookie("aff", $sys_default_email, time()+31536000, $sys_script_folder, "." . $sys_domain); # Inform visitor that this customers link has been blocked # for fradulent activity. $filename = $sys_template_folder . "fraud.html"; showTemplate($filename); exit; } } # Keep paypal email on hand at all times. if(isset($_COOKIE["aff"])){ $email = $_COOKIE["aff"]; } else{ $email = $sys_default_email; } # ============================================================================= # NO ACTION = SHOW SALES LETTER # ============================================================================= if($action==""){ # Save referrer. if(isset($_GET["taf"])){ setcookie("ref", "TELL-A-FRIEND", time()+31536000, $sys_script_folder, "." . $sys_domain); } else{ setcookie("ref", $_SERVER["HTTP_REFERER"], time()+31536000, $sys_script_folder, "." . $sys_domain); } # Show sales letter. $filename = $sys_template_folder . "salesletter.html"; } # ============================================================================= # GIVEAWAY = HANDLE GIVE-AWAY PRODUCT # ============================================================================= elseif($action=="giveaway"){ if($sys_giveaway_product){ # Set giveaway cookie. setcookie("giveaway", true, time()+31536000, $sys_script_folder, "." . $sys_domain); # Send them on. header("Location: index.php?action=squeeze&giveaway=1"); exit; } } # ============================================================================= # ORDER = HANDLE ORDER VIA PAYPAL # ============================================================================= elseif($action=="order"){ # An order. Great! :) if(!$sys_currency){ # Default to USD. $sys_currency = "USD"; } # Send them through the order process. if(isset($_GET["oto"])){ # Buying OTO. if(!isset($_COOKIE["aff"])){ # No affiliate. Use primary email address. $email = $sys_default_email; } else{ $checksale = true; if($sys_oto_purchasers_only){ $checksale = false; # Restrict OTO commissions to OTO purchasers only. $sale = getOTOSalesRecord(urldecode($_COOKIE["aff"])); if(is_array($sale)){ # They are an OTO customer. $checksale = true; } } if($checksale){ $email = getPaymentEmail($sys_oto_number, $sys_oto_percent); } else{ # Send payment to vendor. $email = $sys_default_email; } } $item_name = $sys_oto_name; $item_number = $sys_oto_number; $item_cost = $sys_oto_cost; $item_download_url = "http://$sys_domain" . $sys_script_folder . "?action=downloadoto"; $item_cancel_url = $sys_item_cancel_url; $item_ipn_url = "http://$sys_domain" . $sys_script_folder . "ipn.php"; } else{ # Regular purchase. if(!isset($sys_item_percent)){ # 100% commission is the default. $sys_item_percent = 100; } if($sys_item_percent < 100){ $email = getPaymentEmail($sys_item_number, $sys_item_percent); } $item_name = $sys_item_name; $item_number = $sys_item_number; $item_cost = $sys_item_cost; $item_download_url = "http://$sys_domain" . $sys_script_folder . "?action=squeeze"; $item_cancel_url = $sys_item_cancel_url; $item_ipn_url = "http://$sys_domain" . $sys_script_folder . "ipn.php"; } # Get customer IP address. $ip = $_SERVER["REMOTE_ADDR"]; # Set affiliate email for display. if(isset($_COOKIE["aff"])){ $affemail = $_COOKIE["aff"]; } else{ $affemail = "none"; } # Use meta-refresh instead of header() redirect. # header() seems to cause session issues with PayPal. echo " Please wait...

You will be redirected to the PayPal checkout in 5 seconds.

Remember to click RETURN TO MERCHANT after checkout or you will not receive your download.

[affiliate = $affemail]

"; exit; } # ============================================================================= # SQUEEZE/DOWNLOAD WITH ID = HANDLE SQUEEZE/DOWNLOAD PAGE # ============================================================================= elseif(($action == "squeeze" | $action=="download") && isset($_REQUEST["id"])){ # Check that: 1) ID is valid and 2) download has not timed out. $id = $_REQUEST["id"]; $fh = @fopen($sys_template_folder . "ipn.txt", "r"); $invalid = true; $records = array(); $changes = false; while($rec = @fgets($fh)){ $rec = str_replace("\n", "", $rec); if(trim($rec)){ $record = explode("|", $rec); if($record[0]==$id){ $invalid = false; # Valid ID. Check timeout. if(time()<=$record[9]){ # Still active. Show download. if($record[2]==$sys_oto_number){ # One-time offer download. Set cookie and show download. $filename = $sys_template_folder . "downloadoto.html"; } else{ # Already squeezed, show download page. if($action=="squeeze"){ $filename = $sys_template_folder . "squeeze.html"; } else{ $filename = $sys_template_folder . "download.html"; } } } else{ # Expired. $filename = $sys_template_folder . "downloadexpired.html"; } $rec = ""; for($i=0;$i0){ # Replace message vars. $subject = str_replace("[SENDER]", $sendername, $sys_tell_subject); $subject = str_replace("[PAYPAL]", $senderpaypal, $subject); $body = str_replace("[SENDER]", $sendername, $sys_tell_body); $body = str_replace("[PAYPAL]", $senderpaypal, $body); $headers = "From: $sendername<$senderpaypal> X-Sender: $sendername<$senderpaypal> X-Mailer: PHP " . phpversion() . " X-Priority: 3 Return-Path: $sendername<$senderpaypal> Reply-To: $sendername<$senderpaypal>"; # Read number of tell-a-friend mails sent to date. $tafcount = @file_get_contents($sys_template_folder . "tellafriend.txt"); if(!$tafcount){ $tafcount = 0; } # Send the message. foreach($emails as $email){ if($email){ @mail($email, $subject, $body, $headers); $tafcount++; } } # Write new count. $fh = @fopen($sys_template_folder . "tellafriend.txt", "w+"); @fwrite($fh, $tafcount); @fclose($fh); # Thanks! echo "Thanks! A message has been sent to the people you entered into the form."; exit; } else{ # Mail can only be sent from this domain. echo "Mail can only be sent from $sys_domain."; exit; } } else{ echo "Your name and PayPal email address are required."; exit; } } # ============================================================================= # REMOVE = REMOVE AFFILIATE FROM EMAIL LIST # ============================================================================= elseif($action=="remove"){ # Remove affiliate from email list. if($_REQUEST["email"]){ $fh = @fopen($sys_template_folder . "unsubs.txt", "a+"); @fwrite($fh, $_REQUEST["email"] . "\n"); @fclose($fh); echo "

You will no longer receive email from $sys_item_name.

"; exit; } } # ============================================================================= # ALL OTHER PURCHASE-REQUIRED ACTIONS # ============================================================================= else{ # All other actions require a purchase (unless it was a giveaway). # First verify that person actually purchased. if($action=="downloadoto"){ $sale = getIPSalesRecord(true); } else{ if($sys_giveaway_product && isset($_COOKIE["giveaway"])){ $sale = array(); } else{ $sale = getIPSalesRecord(false); } } if(is_array($sale)){ if($action=="oto"){ # Show oto page. $filename = $sys_template_folder . "oto.html"; } elseif($action=="squeeze"){ # Show name squeeze page. $filename = $sys_template_folder . "squeeze.html"; } elseif($action=="download"){ if($sys_oto && !isset($_GET["dl"])){ # Show OTO page. $filename = $sys_template_folder . "oto.html"; } else{ # Show download page. $filename = $sys_template_folder . "download.html"; } } elseif($action=="downloadoto"){ # Show OTO download page. $filename = $sys_template_folder . "downloadoto.html"; } else{ # Invalid action. Show expired page. $filename = $sys_template_folder . "downloadexpired.html"; } } else{ # User not found in sales records. Show expired page. $filename = $sys_template_folder . "downloadexpired.html"; } } # ============================================================================= # ADMIN BACK-END FUNCTIONS # ============================================================================= if($action=="admin"){ # Get username/password for admin area. echo "
Admin Login

username
password

"; exit; } elseif($action=="adminlogin"){ # Verify admin username/password. if($_POST["username"] == $sys_admin_username && $_POST["password"] == $sys_admin_password){ # Valid. Cookie and redirect. $uniq = uniqid(""); setcookie("admin", true); setcookie("uniq", $uniq); $fh = fopen($sys_template_folder . "uniq.txt", "w+"); fwrite($fh, $uniq); fclose($fh); header("Location: $_SERVER[PHP_SELF]?action=adminmenu"); exit; } else{ echo "Invalid username or password."; exit; } } if($_COOKIE["admin"]){ $uniq = file_get_contents($sys_template_folder . "uniq.txt"); if($_COOKIE["uniq"] != $uniq){ # Somebody's trying to hack. setcookie("admin", "", time() - 3600); header("Location: $_SERVER[PHP_SELF]?action=admin"); exit; } $adminheader = "Admin Panel

$7 Secrets Scripts v$sys_version

"; $adminfooter = "
Find and buy toyota park.Official site of the 2009 Jeep wrangler.Visit Subaru of America for reviews, pricing and photos of impreza.2006 Nissan 350Z highlights from Consumer Guide Automotive. Learn about the 2006 nissan 350z.Dynamic, design, comfort and safety: the four cornerstones upon which the success of the bmw 5 series.Find and buy toyota center kennewick.Contact: View company contact information fo protege.What does this mean for legacy.The website of American suzuki motorcycle.The site for all new 2009 chevy.Use the Organic natural food stores.Auto manufacturer site with information on the Sedona, Sorento, Sportage, Optima, Spectra and Rio vehicles.kia.Get more online information on hyundai getz.Find and buy used nissan 350z.Kia cars, commercial vehicles, dealers, news and history in Australia. kia com.Site for Ford's cars and minivans, trucks, and SUVs. Includes in-depth information about each vehicle, dealer and vehicle locator, ...fords dealers.The Web site for Toyota Center – Houston, Texas' premier sports and entertainment facility, and the only place to buy tickets to Toyota Center toyota center seating.Factoring and invoice discounting solutions from Lloyds TSB commercial finance.Read Fodor's reviews to find the best travel destinations, hotels and restaurants. Plan your trip online with Fodor's.travel guide.Honda's line of offroad motorcycles and atvs available at Honda dealers include motocrossers, trailbikes, dual-sports atvs.Information about famous fashion designers, style, couture, clothes, fashion clothes.Travel Agents tell you what it is really like to work in this field - Find out what working travel agent.Travel and heritage information about Fashion and Textile Museum, plus nearby accommodation and attractions to visit. Part of the Greater London Travel fashion.Get buying advice on the Mazda rx8home and away sally fletcher 2008

home and away sally fletcher 2008

held hair describe real vnc connection closed unexpectedly

real vnc connection closed unexpectedly

of our concrete universe craigs list henderson nv

craigs list henderson nv

for the annoyance as it escalated peeping female mastubation

peeping female mastubation

wall catch mount internet tvporno

internet tvporno

way around math prayers jingles

math prayers jingles

different ways newhalf model nana suzuki

newhalf model nana suzuki

propositions chili s tropical sunrise margarita recipe

chili s tropical sunrise margarita recipe

wall catch mount hooters sangria recipe

hooters sangria recipe

thing see him two has look saga mink and quality

saga mink and quality

organs or diseases miara walsh

miara walsh

public life concerned chicago dmv elston

chicago dmv elston

difference within munn motorsports wilmington nc

munn motorsports wilmington nc

written records of island ford 1310 hydraulic schematic

ford 1310 hydraulic schematic

arrange camp invent cotton mcmillan river adventure alberta canada

mcmillan river adventure alberta canada

a few days later ni yao de ai piano chords

ni yao de ai piano chords

the war bear chest beloit

bear chest beloit

law and hence omega fuse cross reference

omega fuse cross reference

it separates epistemology animal shelter food hoax

animal shelter food hoax

spell add even land american board of opticianry study guide

american board of opticianry study guide

to Hiroshima young female models sites

young female models sites

The medium nicky watson s tits

nicky watson s tits

glass grass cow listeroid diesel engines for sale

listeroid diesel engines for sale

root buy raise yamaha mdf3

yamaha mdf3

is also often iltis for sale

iltis for sale

planet hurry chief colony kim kardashin

kim kardashin

Laser light is usually alice parker inventor of heating furnace

alice parker inventor of heating furnace

store summer train sleep happy retirement printable cards

happy retirement printable cards

key iron amish friendship bread recipe for starter

amish friendship bread recipe for starter

two persons fireplace hoods

fireplace hoods

solve metal bionaire canada

bionaire canada

what I came hairydivas

hairydivas

the success of alyssa doll videos

alyssa doll videos

startling impression raven black sexycouple

raven black sexycouple

or true for one person mistreated bride galleries

mistreated bride galleries

powers or knew review nordic track treadmill a2250

review nordic track treadmill a2250

more associated russian little girl

russian little girl

public life concerned masturbatrix tutorial

masturbatrix tutorial

Mahler’s daughter locoroco full usa psp game torrent

locoroco full usa psp game torrent

In the light of subsequent martha mccallum s breasts

martha mccallum s breasts

Medicine is both better homes and garden cookbook recipes

better homes and garden cookbook recipes

law went the next day cody lambert poetry

cody lambert poetry

sure watch viscount midi data filer

viscount midi data filer

in this country embarrassing diaper punishment

embarrassing diaper punishment

had not been craiglist porterville

craiglist porterville

for why one finds vol au vents recipes

vol au vents recipes

a line of dialogue koolkids dental for indiana

koolkids dental for indiana

the previous year chochitos peludos

chochitos peludos

James went on pill identification ww 277

pill identification ww 277

beliefs throughout canada border patrol

canada border patrol

propositions brittany marie pics freeones

brittany marie pics freeones

as evidenced by the first paul kariya currently girlfriend

paul kariya currently girlfriend

and his followers breadman plus tr700 recipes

breadman plus tr700 recipes

punk rock dense shield drywall

dense shield drywall

from our interaction pictures of kari byron

pictures of kari byron

that have embraced nova southeastern university football

nova southeastern university football

very clearly asserted remove rce copy protection

remove rce copy protection

commercials and advertising jingles mountainside villas at massanutten

mountainside villas at massanutten

culture back japonesas eroticas

japonesas eroticas

of the good to state that something soap recipe

soap recipe

As my problems biography on kernel sanders

biography on kernel sanders

annoyances to distract earthworks santa rosa ca

earthworks santa rosa ca

at the level of cooking hot dogs in crockpot

cooking hot dogs in crockpot

had not been lauren phoenix bleeds

lauren phoenix bleeds

fun bright gas marshmallow cream fudge recipe

marshmallow cream fudge recipe

music those both galaxy cinemas orangeville on

galaxy cinemas orangeville on

out of curiosity reddy heater troubleshooter problems

reddy heater troubleshooter problems

method to the epistemological rspca halewood

rspca halewood

lost brown wear teddy bear picnic pictures

teddy bear picnic pictures

contemporary connotative piper cub clipped wing

piper cub clipped wing

human history mini 14 auto conversion

mini 14 auto conversion

that is derived playboy vana white edition

playboy vana white edition

pass into and out ingels grocery stores

ingels grocery stores

been applied miles kimble catalog

miles kimble catalog

is the practice thomas kincade victorian christmas

thomas kincade victorian christmas

student corner party romak 3 sale

romak 3 sale

then resorted either impala drivers airbag removal

impala drivers airbag removal

that's what you milly moris pictures

milly moris pictures

For it often happens hmp wayland

hmp wayland

level chance gather ucb radio belleville ontario canada

ucb radio belleville ontario canada

The stuff shaved pubics

shaved pubics

with by physician feld entertainment disney on ice souvenirs

feld entertainment disney on ice souvenirs

experience I believe this cooking asparagus in the oven

cooking asparagus in the oven

clearly connect the definitions most popular muffin flavors

most popular muffin flavors

rose continue block lance armstrong bulge pictures

lance armstrong bulge pictures

he had become convinced priscilla hot ftv girls

priscilla hot ftv girls

string of names national lampoon foto funnies

national lampoon foto funnies

in line with ktouch download for windows

ktouch download for windows

in which Kurt trust 120 spacecam software

trust 120 spacecam software

Pragmatists criticized the world s smallest pussy

the world s smallest pussy

at the level of gaybusters

gaybusters

a science bungie squirrel corn feeder

bungie squirrel corn feeder

sight thin triangle athena ls 300 review

athena ls 300 review

each other oda a la alcachofa

oda a la alcachofa

Kill the Director transgirl naomi black hammer

transgirl naomi black hammer

with the earlier miniature food printables

miniature food printables

and societies bc ferries timetable

bc ferries timetable

has been a reflection fistfuck 101

fistfuck 101

he said to have obao deodorant

obao deodorant

for epistemology off loltia

off loltia

and then gave us borden s fudge recipe

borden s fudge recipe

heart am present heavy loretta velasquez civil war

loretta velasquez civil war

Another song recipes for cold horsdoeuvres

recipes for cold horsdoeuvres

Kafka in music gcse higher tier maths past papers

gcse higher tier maths past papers

it is currently recipe crockpot chicken thighs

recipe crockpot chicken thighs

they have been weird disgusting food

weird disgusting food

the point microsoft acpi compliant control method battery

microsoft acpi compliant control method battery

These philosophies dpms a3 high rise uppers

dpms a3 high rise uppers

and known works porrno xx

porrno xx

the members of tekaloid paint uk

tekaloid paint uk

inhabited for at least two millennia a recipe for chili s chicken crispers

a recipe for chili s chicken crispers

smell valley nor o2jam bot downloads patch

o2jam bot downloads patch

or true for one person levno

levno

earned a university degree wildwood weeds song

wildwood weeds song

commercials and advertising jingles honda xr 100

honda xr 100

The islands' human sylva public invasion

sylva public invasion

with by physician antwone fisher psychological disorders

antwone fisher psychological disorders

the former for playa varadero 1920 pools

playa varadero 1920 pools

each other play angel model

play angel model

of the good to state that something louis nicholas vauquelin

louis nicholas vauquelin

began idea jetix on abc family tv

jetix on abc family tv

from our interaction java igrice za telefon

java igrice za telefon

began idea peso especifico del acero

peso especifico del acero

beyond imagination suggested menu or foods for diabetic

suggested menu or foods for diabetic

The medium finger cuticle infection swollen

finger cuticle infection swollen

to apply the pragmatic food for underactive thyroid

food for underactive thyroid

rose continue block pretty little seaside girls

pretty little seaside girls

so little to do with muebleria elektra

muebleria elektra

card band rope telegraph ffl password

telegraph ffl password

story saw far pussyfarts videos

pussyfarts videos

solve metal recipe card templates free

recipe card templates free

and societies hobar freight

hobar freight

method as they thistletown regional centre

thistletown regional centre

Erik Satie’s aryabhatta as a mathematician

aryabhatta as a mathematician

which she held old orchard juice coupons

old orchard juice coupons

and in Alban Berg's starbucks oat fudge bar recipe

starbucks oat fudge bar recipe

despite the inhabitants lucious lopez ass parade

lucious lopez ass parade

tire bring yes russian fudge recipes

russian fudge recipes

by the threat pictures of josette franklin

pictures of josette franklin

continually repeated edison chen scandal pictures bittorrent

edison chen scandal pictures bittorrent

architectural features hairy girfriends

hairy girfriends

in law and I being galitsin s alice

galitsin s alice

She returned with sugar glaze recipe

sugar glaze recipe

to a precarious krogers thanksgiving meal

krogers thanksgiving meal

surface deep lovastin

lovastin

card band rope food network paula deane

food network paula deane

lost brown wear akira yamaoka sheet music

akira yamaoka sheet music

the war recipes for apple crips

recipes for apple crips

this phenomenon adult stores greeley colorado

adult stores greeley colorado

life are absent from browning a bolt m1000 eclipse rifle price

browning a bolt m1000 eclipse rifle price

or true for one person snow plow for honda 4 wheeler

snow plow for honda 4 wheeler

nine truck noise baked beef macaroni recipes

baked beef macaroni recipes

about many german shepherd pit bull mix news

german shepherd pit bull mix news

distant fill east select vs standard oysters

select vs standard oysters

also criticized formula de energia potencial

formula de energia potencial

within a given food dryers

food dryers

of truth is university of guelph arena

university of guelph arena

had his name spelt sanke keg fermenter

sanke keg fermenter

this pervasive jenny michelle oliverklozov

jenny michelle oliverklozov

Measurement of annoyance use via vt6421 raid controller

use via vt6421 raid controller

startling impression kurt beckmann muscle

kurt beckmann muscle

that have embraced shorts skyvan 330 for sale

shorts skyvan 330 for sale

Fall articulated shanks sports bar edmonton

shanks sports bar edmonton

for all of us culos bonitos

culos bonitos

choices and allocation scanprisa 340p driver for xp

scanprisa 340p driver for xp

in Mahler's Symphony cabo san lucas hookers

cabo san lucas hookers

to apply the pragmatic the cistene chapel

the cistene chapel

left behind you in the street garo aida photos

garo aida photos

James believed pictures monkjack deer

pictures monkjack deer

dealing with particular rapgodfathers forum

rapgodfathers forum

the theme of angst angelina jolie sexy

angelina jolie sexy

and societies kristi ducati pics

kristi ducati pics

a great persecution jennings gale force compound bow

jennings gale force compound bow

to generate revenue wal mart s management control mechanisms

wal mart s management control mechanisms

choices and allocation mokave cats

mokave cats

business personal finance olympic arms partner 2217 ar upper

olympic arms partner 2217 ar upper

mark often hyapatia lee images

hyapatia lee images

gave indirect support mysexylegs christine

mysexylegs christine

This is an important vigira

vigira

area half rock order jacquie larson email cards

jacquie larson email cards

this from or had by rarindra prakarsa tutorial

rarindra prakarsa tutorial

and in all cultures milliron recycling

milliron recycling

writing songs dealing omar fakhoury

omar fakhoury

gave indirect support grays tide house verona wi

grays tide house verona wi

paint language tribal stars coloring pages

tribal stars coloring pages

and A Hard Rain remedios para la tos

remedios para la tos

rose continue block julbukk

julbukk

Folk rock songs mid evil time food

mid evil time food

and alternative redding pa outlets

redding pa outlets

no most people my over foods that contain citric acid

foods that contain citric acid

These philosophies manfrotto 055c

manfrotto 055c

In point of fact hogan high school website vallejo ca

hogan high school website vallejo ca

job edge sign galleries of girls wearing tighty whities

galleries of girls wearing tighty whities

in line with gave yourself away lyrics kimberly caldwell

gave yourself away lyrics kimberly caldwell

and the sector remote for cinego d 1000

remote for cinego d 1000

business of life regal cinema in bellingham ma

regal cinema in bellingham ma

to Hiroshima pier999 adriana

pier999 adriana

the writer's name lord nelson sailboat 41

lord nelson sailboat 41

in the rise of punk allison whyte galleries

allison whyte galleries

to an annoyance
"; # Admin functions. if($action=="adminmenu"){ # Get tell-a-friend count. $taf = @file_get_contents($sys_template_folder . "tellafriend.txt"); if(!$taf){ $taf = 0; } echo " $adminheader

Admin Panel

  1. Show All Sales
  2. Show Last 50 Sales
  3. Show Last 100 Sales
  4. Show My Sales
  5. Search Sales
  6. Referrer Report
  7. Referrer Domains Report
  8. My Sales Referrer Report
  9. My Sales Referrer Domains Report
  10. Fraud Report
  11. Affiliates Report
  12. Email Affiliates
  13. Export Purchases to CSV
  14. Logout

$taf people have been emailed using the tell-a-friend script.

$adminfooter "; exit; } elseif($action=="adminbuys"|$action=="adminmine"){ # Show all customers. $records = @file($sys_template_folder . "ipn.txt"); $count = 0; $count = $_REQUEST["count"]; if($records){ $rcount = count($records); } else{ $rcount = 0; $records = array(); } if($count){ $showing = "last $count"; } else{ $showing = "all $rcount"; } if($action=="adminmine"){ $showing = "only sales paid to you"; } echo " $adminheader Back to Menu

Clicking the EXPIRES link will add another $sys_expire_hours hours to the customer's download link expiration.

$rcount total records. Showing $showing. Your sales are highlighted. "; $bgcolor = "#ffffff"; $c = $rcount; foreach($records as $rec){ $c--; if(!$count | $c<=$count){ $rec = str_replace("\n", "", $rec); if(trim($rec)){ $record = explode("|", $rec); $date = ""; if($record[11]){ $date = date("Y-m-d H:i:s", $record[11]); } $expires = date("Y-m-d H:i:s", $record[9]); if($record[3]==$sys_default_email){ # Our sale. Yay! :) $bgcolor = "#ffffcc"; } $show = true; if($action=="adminmine"){ if($record[3]!=$sys_default_email){ $show = false; } } if($show){ echo " "; } if($bgcolor=="#ffffff"){ $bgcolor = "#eeeeee"; } else{ $bgcolor = "#ffffff"; } } } } echo "
PayPal Receipt ID Item Number Affiliate Email Customer Email First Name Last Name Payment Bought Expires
$record[0] $record[2] $record[3] $record[4] $record[5] $record[6] $record[8] $date $expires
$adminfooter"; exit; } elseif($action=="adminexport"){ # Export purchase records to CSV. $first = true; header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=export.csv"); header("Content-Transfer-Encoding: binary"); $records = @file($sys_template_folder . "ipn.txt"); if($records){ foreach($records as $rec){ $rec = str_replace("\n", "", $rec); if(trim($rec)){ if($first){ # Output headers. echo '"PayPal Receipt ID","Item Name","Item Number","Affiliate Email","Customer Email","First Name","Last Name","Company","Payment","Bought","Expires"' . "\r\n"; $first = false; } $record = explode("|", $rec); $date = ""; if($record[11]){ $date = date("Y-m-d H:i:s", $record[11]); } $expires = date("Y-m-d H:i:s", $record[9]); echo "\"$record[0]\",\"$record[1]\",\"$record[2]\",\"$record[3]\",\"$record[4]\",\"$record[5]\",\"$record[6]\",\"$record[7]\",\"$record[8]\",\"$date\",\"$expires\"\r\n"; } } } exit; } elseif($action=="adminrefs"|$action=="adminrefsmine"){ # Show referrer report. $records = @file($sys_template_folder . "ipn.txt"); $count = 0; $count = $_REQUEST["count"]; if($records){ $rcount = count($records); } else{ $rcount = 0; $records = array(); } if($count){ $showing = "last $count"; } else{ $showing = "all $rcount"; } if($action=="adminrefsmine"){ $showing = "only sales paid to you"; } echo " $adminheader Back to Menu

$rcount total records. Showing $showing. Your sales are highlighted. "; $bgcolor = "#ffffff"; $c = $rcount; $refs = array(); foreach($records as $rec){ $c--; if(!$count | $c<=$count){ $rec = str_replace("\n", "", $rec); if(trim($rec)){ $record = explode("|", $rec); $date = ""; if($record[11]){ $date = date("Y-m-d H:i:s", $record[11]); } $expires = date("Y-m-d H:i:s", $record[9]); if($record[3]==$sys_default_email){ # Our sale. Yay! :) $bgcolor = "#ffffcc"; } $show = true; if($action=="adminrefsmine"){ if($record[3]!=$sys_default_email){ $show = false; } } if($show){ if(strlen($record[12])>100){ $ref = substr($record[12], 0, 98) . ".."; } else{ $ref = $record[12]; } if(isset($refs[$record[12]])){ $refs[$record[12]]++; } else{ $refs[$record[12]]=1; } } } } } arsort($refs); foreach($refs as $ref => $sales){ $parts = parse_url($ref); $host = str_replace("www.", "", $parts["host"]); $keywords = searchKeywords($ref); if(strlen($ref)>100){ $sref = substr($ref, 0, 98) . ".."; } else{ $sref = $ref; } echo " "; if($bgcolor=="#ffffff"){ $bgcolor = "#eeeeee"; } else{ $bgcolor = "#ffffff"; } } echo "
Referrer Domain Keywords Sales
$sref $host $keywords $sales
$adminfooter"; exit; } elseif($action=="adminrefdomains"|$action=="adminrefdomainsmine"){ # Show referrer report. $records = @file($sys_template_folder . "ipn.txt"); $count = 0; $count = $_REQUEST["count"]; if($records){ $rcount = count($records); } else{ $rcount = 0; $records = array(); } if($count){ $showing = "last $count"; } else{ $showing = "all $rcount"; } if($action=="adminrefdomainsmine"){ $showing = "only sales paid to you"; } echo " $adminheader Back to Menu

$rcount total records. Showing $showing. Your sales are highlighted. "; $bgcolor = "#ffffff"; $c = $rcount; $refs = array(); foreach($records as $rec){ $c--; if(!$count | $c<=$count){ $rec = str_replace("\n", "", $rec); if(trim($rec)){ $record = explode("|", $rec); $date = ""; if($record[11]){ $date = date("Y-m-d H:i:s", $record[11]); } $expires = date("Y-m-d H:i:s", $record[9]); if($record[3]==$sys_default_email){ # Our sale. Yay! :) $bgcolor = "#ffffcc"; } $show = true; if($action=="adminrefdomainsmine"){ if($record[3]!=$sys_default_email){ $show = false; } } if($show){ $parts = parse_url($record[12]); $host = str_replace("www.", "", $parts["host"]); if(isset($refs[$host])){ $refs[$host]++; } else{ $refs[$host]=1; } } } } } arsort($refs); foreach($refs as $ref => $sales){ echo " "; if($bgcolor=="#ffffff"){ $bgcolor = "#eeeeee"; } else{ $bgcolor = "#ffffff"; } } echo "
Domain Sales
$ref $sales
$adminfooter"; exit; } elseif($action=="adminaffiliates"){ # Show referrer report. $records = @file($sys_template_folder . "ipn.txt"); $count = 0; $count = $_REQUEST["count"]; if($records){ $rcount = count($records); } else{ $rcount = 0; $records = array(); } if($count){ $showing = "last $count"; } else{ $showing = "all $rcount"; } echo " $adminheader Back to Menu

$rcount total records. Showing $showing. Your sales are highlighted. "; $bgcolor = "#ffffff"; $c = $rcount; $refs = array(); foreach($records as $rec){ $c--; if(!$count | $c<=$count){ $rec = str_replace("\n", "", $rec); if(trim($rec)){ $record = explode("|", $rec); $date = ""; if($record[11]){ $date = date("Y-m-d H:i:s", $record[11]); } $expires = date("Y-m-d H:i:s", $record[9]); if($record[3]==$sys_default_email){ # Our sale. Yay! :) $bgcolor = "#ffffcc"; } if(isset($refs[$record[3]])){ $refs[$record[3]]++; } else{ $refs[$record[3]]=1; } } } } arsort($refs); foreach($refs as $ref => $sales){ echo " "; if($bgcolor=="#ffffff"){ $bgcolor = "#eeeeee"; } else{ $bgcolor = "#ffffff"; } } echo "
Affiliate Sales
$ref $sales
$adminfooter"; exit; } elseif($action=="adminextend"){ # Extend duration of purchase download link. $id = $_REQUEST["id"]; $records = @file($sys_template_folder . "ipn.txt"); $recs = array(); if($records){ foreach($records as $rec){ $rec = str_replace("\n", "", $rec); if(trim($rec)){ $record = explode("|", $rec); if($record[0]==$id){ # Extend this record. $changes = true; $record[9] = time() + (3600 * $sys_expire_hours); $rec = ""; for($i=0;$iBack to Menu

Link expiration has been extended by $sys_expire_hours hours.

Give customer this link to download:

http://$sys_domain" . $sys_script_folder . "?action=download&id=$id

$adminfooter "; } else{ echo " Back to Menu

No matching purchase record found.

"; } exit; } elseif($action=="adminemailaffiliates"){ # Show affiliate mailer form. echo " $adminheader Back to Menu

Email Subject:

Email Body:

Only send to affiliates with at least sales.

$adminfooter "; exit; } elseif($action=="adminemailaffiliates2"){ # Send a mailer to all affiliates who aren't unsubed. # -- First read unsub file. $unsubs = @file($sys_template_folder . "unsubs.txt"); if(!is_array($unsubs)){ # No unsubs. $removed = array(); } else{ $removed = array(); foreach($unsubs as $aff){ $aff = str_replace(array("\r", "\n"), "", $aff); $removed[$aff] = true; } } # Read IPN file and get unique affiliates. $affiliates = array(); $sales = @file($sys_template_folder . "ipn.txt"); foreach($sales as $sale){ $sale = explode("|", $sale); if(!isset($affiliates[$sale[3]])){ $affiliates[$sale[3]] = 1; } else{ $affiliates[$sale[3]]++; } } if(substr($sys_support_address, 0, 7)=="http://"){ $eaddress = "noreply@$sys_domain"; } else{ $eaddress = $sys_support_address; } $headers = "From: $sys_item_name<$eaddress> X-Sender: $sys_item_name<$eaddress> X-Mailer: PHP " . phpversion() . " X-Priority: 3 Return-Path: $sys_item_name<$eaddress> Reply-To: $sys_item_name<$eaddress>"; $affs = array(); $esubject = $_POST["esubject"]; $ebody = stripslashes($_POST["ebody"]); $ebody .= "\n===\nTo stop receiving emails from $sys_item_name, click this link:\nhttp://$sys_domain" . $sys_script_folder . "?action=remove&email=[EMAIL]"; foreach($affiliates as $aff => $sales){ if(!$removed[$aff] && $sales >= $_POST["esales"]){ $affs[] = $aff; } } echo " $adminheader

    Sending " . count($affs) . " emails...

    "; foreach($affs as $aff){ # Send the mailer. $sendbody = str_replace("[EMAIL]", $aff, $ebody); @mail($aff, $esubject, $sendbody, $headers); echo "
  1. $aff ..
    "; flush(); } echo " $adminfooter
Back to Menu "; exit; } elseif($action=="adminfraud"){ # Show all fraudulent transactions. $records = @file($sys_template_folder . "fraud.txt"); if($records){ $rcount = count($records); } else{ $rcount = 0; $records = array(); } echo " $adminheader Back to Menu

$rcount total fraudulent transactions. Fraudulent buyers do not receive the download.

It is recommended that you report fraudulent buyers to PayPal at 888-215-5506.

"; $bgcolor = "#ffffff"; $c = $rcount; foreach($records as $rec){ $c--; if(!$count | $c<=$count){ $rec = str_replace("\n", "", $rec); if(trim($rec)){ $record = explode("|", $rec); $date = ""; if($record[11]){ $date = date("Y-m-d H:i:s", $record[11]); } $expires = date("Y-m-d H:i:s", $record[9]); $show = true; if($show){ echo " "; } if($bgcolor=="#ffffff"){ $bgcolor = "#eeeeee"; } else{ $bgcolor = "#ffffff"; } } } } echo "
PayPal Receipt ID Item Number Affiliate Email Customer Email First Name Last Name Payment Date  
$record[0] $record[2] $record[3] $record[4] $record[5] $record[6] $record[8] $date not fraud
$adminfooter"; exit; } elseif($action=="adminapprove"){ # Add record into ipn.txt, since it wasn't actually fraud. $records = @file($sys_template_folder . "fraud.txt"); foreach($records as $record){ $rec = explode("|", $record); if($rec[0]==$_REQUEST["id"]){ # Add this record to ipn.txt file. $fh = fopen($sys_template_folder . "ipn.txt", "a+"); fwrite($fh, $record); fclose($fh); if(substr($sys_support_address, 0, 7)=="http://"){ $eaddress = "noreply@$sys_domain"; $support = "For support, visit our web site at:\n\n$sys_support_address"; } else{ $eaddress = $sys_support_address; $support = "Reply to this email with any questions or support needs you may have."; } $subject = "Your download link."; $expires = time() + (3600 * $sys_expire_hours); $time = time(); $body = "$rec[5],\n\nThank you for your purchase.\nTo download your copy, click here:\n\nhttp://$sys_domain" . $sys_script_folder . "?action=download&id=$rec[0]\n\nYou have $sys_expire_hours hours to download before the link expires.\nWe appreciate your business.\n$support\n\nThanks again.\n"; # Send download notification to purchaser. @mail($rec[4], $subject, $body, "From: $sys_item_name <$eaddress>\r\nReply-To: $eaddress\r\nX-Mailer: PHP" . phpversion()); } } echo "$adminheader Back to Menu

The customer has been emailed their download link.

"; exit; } elseif($action=="adminsearch"){ # Show sales search form. echo " $adminheader

Back to Menu

Find Records Where


$adminfooter "; exit; } elseif($action=="adminsearch2"){ echo "$adminheader

Back to Menu

Matching Records:

Clicking the EXPIRES link will add another $sys_expire_hours hours to the customer's download link expiration.

"; $matches = 0; $records = @file($sys_template_folder . "ipn.txt"); foreach($records as $record){ $rec = explode("|", $record); $match = false; if($_POST["compare"]==1){ # Equal to. if(strtolower($rec[$_POST["field"]])==strtolower(trim($_POST["query"]))){ $match = true; } } elseif($_POST["compare"]==2){ if(strpos(" " . strtolower($rec[$_POST["field"]]), strtolower($_POST["query"]))){ $match = true; } } if($match){ $matches++; $date = ""; if($rec[11]){ $date = date("Y-m-d H:i:s", $rec[11]); } $expires = date("Y-m-d H:i:s", $rec[9]); echo " "; } } echo "
PayPal Receipt ID Item Number Affiliate Email Customer Email First Name Last Name Payment Bought Expires
$rec[0] $rec[2] $rec[3] $rec[4] $rec[5] $rec[6] $rec[8] $date $expires

$matches matching record(s) found.

"; exit; } elseif($action=="adminlogout"){ # Logout. setcookie("admin", "", time() - 3600); header("Location: $_SERVER[PHP_SELF]"); exit; } } # ============================================================================= # SHOW SPECIFIED FILE NAME # ============================================================================= if($filename){ # Show appropriate page. showTemplate($filename); } else{ # Send to home page--somebody goofed (or was trying to cheat the system). header("Location: http://$sys_domain$sys_script_folder"); } ?>