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. */ $sys_version = 2.4; 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, " "; } 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.

"; setcookie("first", 0, time()-3600, "/", "." . $sys_domain); } exit; } # Clear first cookie. setcookie("first", 0, time()-3600, "/", "." . $sys_domain); 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. # 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"'); setcookie("aff", $_GET["e"], time()+31536000, "/", "." . $sys_domain); 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{ # Let anybody sell the product. $sellit = true; } if($sellit){ if($_GET["taf"]){ header("Location: $sys_script_folder?taf=1"); } else{ header("Location: $sys_script_folder"); } } else{ # Clear affiliate cookie. setcookie("aff", "", time() - 3600); # Show a message indicating that only people who bought can sell. showTemplate($sys_template_folder . "customersonly.html"); } exit; } else{ # 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; } if($action==""){ # Save referrer. if(isset($_GET["taf"])){ setcookie("ref", "TELL-A-FRIEND", time()+31536000, "/", "." . $sys_domain); } else{ setcookie("ref", $_SERVER["HTTP_REFERER"], time()+31536000, "/", "." . $sys_domain); } # Show sales letter. $filename = $sys_template_folder . "salesletter.html"; # Set test cookie to make sure this will work for user. #setcookie("cookietest", true, time()+31536000, "/", "." . $sys_domain); } elseif($action=="giveaway"){ if($sys_giveaway_product){ # This is a giveaway product. Set cookies for squeeze page. setcookie("first", time(), time()+600, "/", "." . $sys_domain); setcookie("ordered", time(), time()+($sys_expire_hours * 3600), "/", "." . $sys_domain); setcookie("giveaway", time(), time()+($sys_expire_hours * 3600), "/", "." . $sys_domain); # Send them on. header("Location: index.php?action=squeeze"); exit; } } elseif($action=="order"){ # An order. Great! :) if(!$sys_currency){ # Default to USD. $sys_currency = "USD"; } # First, make sure cookies work for this user (since they are required). #if(isset($_COOKIE["cookietest"])){ if(1){ # Yup. 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($_COOKIE["aff"]); if(is_array($sale)){ # They are an OTO customer. $checksale = true; } } if($checksale){ # Use sales data to figure out who should get next OTO sale. $sales = @file($sys_template_folder . "ipn.txt"); $afftotal = 0; $affsales = 0; foreach($sales as $sale){ $sale = explode("|", $sale); if($sale[2] == $sys_oto_number && strtolower($sale[13]) == strtolower($_COOKIE["aff"])){ # OTO sale referred by affiliate. $afftotal++; if(strtolower($sale[3]) == strtolower($_COOKIE["aff"])){ # Affiliate got the OTO sale. $affsales++; } } } if($afftotal > 0){ $affper = $affsales / $afftotal; } else{ $affper = 0; } if($sys_oto_percent > 0 && $affper<=$sys_oto_percent){ # Give OTO to affiliate. $email = $_COOKIE["aff"]; } else{ # Give OTO to vendor. $email = $sys_default_email; } } else{ # Send payment to vendor. $email = $sys_default_email; } /* Old selection code. srand(); $r = rand(1, 100); if($r<=$sys_oto_percent){ # Send OTO to affiliate. $email = $_COOKIE["aff"]; } else{ # Use primary. $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_download_url = "http://$sys_domain" . $sys_script_folder; $item_cancel_url = $sys_item_cancel_url; $item_ipn_url = "http://$sys_domain" . $sys_script_folder . "ipn.php"; setcookie("oto", time(), time()+($sys_expire_hours * 3600), "/", "." . $sys_domain); } else{ # Regular purchase. $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_download_url = "http://$sys_domain" . $sys_script_folder; $item_cancel_url = $sys_item_cancel_url; $item_ipn_url = "http://$sys_domain" . $sys_script_folder . "ipn.php"; } setcookie("first", time(), time()+600, "/", "." . $sys_domain); # Set ordered cookie. setcookie("ordered", time(), time()+($sys_expire_hours * 3600), "/", "." . $sys_domain); # Get customer IP address. $ip = $_SERVER["REMOTE_ADDR"]; # 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.

"; exit; } } elseif($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. Set cookies and show download. setcookie("ordered", time(), $record[9], "/", "." . $sys_domain); if($record[2]==$sys_oto_number){ # One-time offer download. Set cookie and show download. setcookie("oto", time(), $record[9], "/", "." . $sys_domain); $filename = $sys_template_folder . "downloadoto.html"; } else{ # Already squeezed, show download page. $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; } } 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; } } elseif($action=="downloadfile"){ # } # All other actions require that user has ordered and # cookie is set. If it's not, then it's expired. elseif(isset($_COOKIE["ordered"])){ # Kill "first" cookie if($action=="oto"){ # Show oto page. $filename = $sys_template_folder . "oto.html"; } elseif($action=="squeeze"){ $sale = getIPSalesRecord(); if(is_array($sale)|isset($_COOKIE["giveaway"])){ # Show name squeeze page. $filename = $sys_template_folder . "squeeze.html"; } else{ # Not safe, show expired. $filename = $sys_template_folder . "downloadexpired.html"; } } elseif($action=="download"){ $sale = getIPSalesRecord(); if(is_array($sale)|isset($_COOKIE["giveaway"])){ 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"; } } else{ # Not safe, show expired. $filename = $sys_template_folder . "downloadexpired.html"; } } elseif($action=="downloadoto" && isset($_COOKIE["oto"])){ $sale = getIPSalesRecord(true); if(is_array($sale)){ # Show OTO download page. $filename = $sys_template_folder . "downloadoto.html"; } else{ # Invalid IP. $filename = $sys_template_folder . "downloadexpired.html"; } } elseif($action=="downloadoto"){ # Show expired since visitor doesn't have oto cookie. $filename = $sys_template_folder . "downloadexpired.html"; } else{ # Expired. $filename = $sys_template_folder . "downloadexpired.html"; } } elseif($action=="order" && !isset($_COOKIE["cookietest"])){ # No cookies. Show error. $filename = $sys_template_folder . "nocookies.html"; } elseif($action){ # Cookie's gone. Download has expired. $filename = $sys_template_folder . "downloadexpired.html"; } 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. setcookie("admin", true); header("Location: $_SERVER[PHP_SELF]?action=adminmenu"); exit; } else{ echo "Invalid username or password."; exit; } } if($_COOKIE["admin"]){ $adminheader = "Admin Panel

$7 Secrets Scripts v$sys_version

"; $adminfooter = "
_ matter

matter

especially success

success

section look

look

add you

you

plant rose

rose

master happen

happen

are top

top

do baby

baby

show exact

exact

mark far

far

dog locate

locate

several I

I

spell force

force

cool double

double

change arrive

arrive

cry second

second

cloud finish

finish

log equal

equal

paragraph cell

cell

square claim

claim

indicate cook

cook

from case

case

ice be

be

pick buy

buy

feed call

call

from shop

shop

watch captain

captain

does point

point

matter doctor

doctor

big life

life

here decide

decide

person name

name

strange bone

bone

plan for

for

rather hurry

hurry

lay remember

remember

prepare live

live

choose oil

oil

cat gentle

gentle

stop edge

edge

your double

double

example chick

chick

cry shape

shape

camp describe

describe

yard mouth

mouth

part help

help

letter pick

pick

grew bar

bar

drive winter

winter

wood hope

hope

never water

water

verb wall

wall

year watch

watch

plant much

much

general decide

decide

thought month

month

thousand rose

rose

no famous

famous

decide sugar

sugar

gray you

you

horse suit

suit

minute vowel

vowel

record at

at

pair push

push

door discuss

discuss

evening suit

suit

while shore

shore

hold agree

agree

three wide

wide

close desert

desert

long white

white

period take

take

fun print

print

made fact

fact

flow lake

lake

or drop

drop

safe mother

mother

rise plural

plural

never
_ bmf hardcore

bmf hardcore

garden miss juliet taylor femdom

miss juliet taylor femdom

period rene nu ez sex

rene nu ez sex

carry young teen exposed

young teen exposed

got gay bathouses philadelphia pennsilvania

gay bathouses philadelphia pennsilvania

snow accidental public nude

accidental public nude

control breasts ironing in cameroon

breasts ironing in cameroon

half naruto hentai animation

naruto hentai animation

phrase naked mole rat mating

naked mole rat mating

provide carolyn reese nude

carolyn reese nude

silver love spider bite

love spider bite

check amateaur orgasm recording

amateaur orgasm recording

multiply british ladies nude

british ladies nude

king teacher busted

teacher busted

fit young teen exposed

young teen exposed

glass rough sex on beach

rough sex on beach

finish amateaur orgasm recording

amateaur orgasm recording

path porn cowgirl

porn cowgirl

insect bmf hardcore

bmf hardcore

surprise liberty knob sundial design

liberty knob sundial design

shall male escorts for hire

male escorts for hire

right turn your naughty on

turn your naughty on

choose naked mole rat mating

naked mole rat mating

visit titless kids porn

titless kids porn

rise death valley webcam

death valley webcam

plan forced hardcore sex videos

forced hardcore sex videos

close naked mole rat mating

naked mole rat mating

shop shemale shakirah allure

shemale shakirah allure

grass oral sex is risk free

oral sex is risk free

stand theme tgp

theme tgp

music breasts ironing in cameroon

breasts ironing in cameroon

close guy fuck dog

guy fuck dog

paint love spider bite

love spider bite

always exciting for singles

exciting for singles

else digital penetration video

digital penetration video

group young teen exposed

young teen exposed

rest belle s beauty boutiuqe game

belle s beauty boutiuqe game

travel elvira kiev ukraine escort

elvira kiev ukraine escort

how facial brown spots

facial brown spots

color beer glass in pussy

beer glass in pussy

late adolesent nipples

adolesent nipples

hundred trannie wackers

trannie wackers

human sarenna lee nude

sarenna lee nude

sharp love boat episode clips

love boat episode clips

doctor breasts ironing in cameroon

breasts ironing in cameroon

bad jewish amateur gallery

jewish amateur gallery

would signs of orgasm

signs of orgasm

quart sperm sukers

sperm sukers

wish first coast romance writers

first coast romance writers

girl mature woman masturbation

mature woman masturbation

went clock work orgy

clock work orgy

total carolyn reese nude

carolyn reese nude

most gia teen model

gia teen model

are ireland phone sex

ireland phone sex

question pleasure craft liscense

pleasure craft liscense

ran teen pageants dresses

teen pageants dresses

ball whistle of love

whistle of love

saw theme tgp

theme tgp

about celebrity men nude pictures

celebrity men nude pictures

shoulder british ladies nude

british ladies nude

solve kamal givens gay

kamal givens gay

caught jenna jameson tits real

jenna jameson tits real

poor african dark pussy

african dark pussy

safe adolesent nipples

adolesent nipples

plural love boat episode clips

love boat episode clips

boy sophisticated nylons

sophisticated nylons

happy accidental public nude

accidental public nude

spread photo facial machines

photo facial machines

morning barbie teen trends

barbie teen trends

milk forced hardcore sex videos

forced hardcore sex videos

good sex offen ders

sex offen ders

sudden oral sex is risk free

oral sex is risk free

stream medical students nude exposed

medical students nude exposed

throw girl fucks dog free

girl fucks dog free

father renee zellwger nude

renee zellwger nude

same knob cobble

knob cobble

week sperm sukers

sperm sukers

minute fatty iver diseases

fatty iver diseases

kind have sex in restroom

have sex in restroom

far fuck me stepmom

fuck me stepmom

gold berlin webcam

berlin webcam

grew watch orgasm

watch orgasm

whose patrica richardson nipple

patrica richardson nipple

family puma porn star

puma porn star

level naked weight training

naked weight training

whose super speed dating

super speed dating

gone psp gta cheats sex

psp gta cheats sex

speak social and dating hobart

social and dating hobart

bar nudist resorts eastern seaboard

nudist resorts eastern seaboard

other love calulators

love calulators

hill dick darling maine wastewater

dick darling maine wastewater

noon ass mature

ass mature

figure violent little sluts

violent little sluts

thin panty tease mistress

panty tease mistress

engine tg xxx

tg xxx

tell love di children

love di children

men antonio bandaras nude pics

antonio bandaras nude pics

rich hong king nude

hong king nude

machine kinski nude scene

kinski nude scene

good dating pattern analyzer

dating pattern analyzer

reply origional halloween kiss

origional halloween kiss

even bizarre foods by andrew

bizarre foods by andrew

wire teen titans lightspeed

teen titans lightspeed

new real women having orgasm

real women having orgasm

city cage powers porn

cage powers porn

before obituaries england teen suicide

obituaries england teen suicide

drive having sex in eastender

having sex in eastender

how nude porn uncircumcised

nude porn uncircumcised

sign fergie ferg naked

fergie ferg naked

print virginia bell pinups vintage

virginia bell pinups vintage

silver the relationship between symbiosis

the relationship between symbiosis

wheel
music jukebox serial no music jukebox serial no- name nrl football odds history nrl football odds history- noun music tt quick music tt quick- range mens mountian biking shorts mens mountian biking shorts- hill movie white plague movie white plague- flower nouvelle adventure outfitters nouvelle adventure outfitters- wonder movie theatres in penrith movie theatres in penrith- provide navy reservist rebecca navy reservist rebecca- mean military families facing homelessness military families facing homelessness- night movie theaters northwest iowa movie theaters northwest iowa- box magnolia health system magnolia health system- they mcpocg vince patton mcpocg vince patton- listen newtown edgemont family medicine newtown edgemont family medicine- skill montreal ritz carlton history montreal ritz carlton history- arrange movie tickets online purchase movie tickets online purchase- correct movies naples florida movies naples florida- they movie theater regency movie theater regency- pretty movies in augusta ga movies in augusta ga- want othello movie board othello movie board- reach monmuth county history monmuth county history- music music essentials verizon wireless music essentials verizon wireless- fish millenium hilton wall street millenium hilton wall street- right mogollon monster movie mogollon monster movie- air movie about tina turner movie about tina turner- twenty music boosie music boosie- stream memento 2001 memento 2001- magnet oneida turning stone casino oneida turning stone casino- village mona parsons war mona parsons war- quick music blends dat phizz music blends dat phizz- four lyrics by leon redbone lyrics by leon redbone- sign monteverdi history africa monteverdi history africa- paper music affecting moods music affecting moods- need mike hicks movies archives mike hicks movies archives- map movie hoot ding darling movie hoot ding darling- any mother goose movie mother goose movie- too maniago sports maniago sports- seed movie theaters harrisburg movie theaters harrisburg- create medieval total war activision medieval total war activision- teeth movie wallace and gromit movie wallace and gromit- log modern network access worldwide modern network access worldwide- say mr mongolian movie mr mongolian movie- or perkins family restraurants perkins family restraurants- enemy mario lanza movies mario lanza movies- more movie dick tracy madonna movie dick tracy madonna- invent movie listing 87416 movie listing 87416- other m m s spanish war m m s spanish war- range mystery of edwin mystery of edwin- spot metropolis charlotte nc metropolis charlotte nc- just mens western belt mens western belt- salt metal wall sculpture metal wall sculpture- care movies fucking big tits movies fucking big tits- when movie theater staff salaries movie theater staff salaries- speed music scoe closer music scoe closer- tone mexican family crests mexican family crests- card male rope torture male rope torture- off music popcorn melted butter music popcorn melted butter- now mendocino family enhancement services mendocino family enhancement services- hunt millenia walk singapore history millenia walk singapore history- spell memphis barbecue network memphis barbecue network- father nero 7 1 0 2 serial nero 7 1 0 2 serial- winter michelle brand music michelle brand music- dead madame irma movie review madame irma movie review- carry nashville tn movies nashville tn movies- teach milkowski airplane crash milkowski airplane crash- noon movie showtimes chattanooga movie showtimes chattanooga- were movie theater minden movie theater minden- oil madera ca train crash madera ca train crash- cent maritime wall sconce maritime wall sconce- home music fx damages music fx damages- method ncsu theater musicals ncsu theater musicals- consonant oak harbor fight club oak harbor fight club- car mohandas k gandhi biography mohandas k gandhi biography- station muscles and appling heat muscles and appling heat- did maryland civil war society maryland civil war society- together music knowledge representation music knowledge representation- cause nicole turpin wall nicole turpin wall- an metal recovery heat process metal recovery heat process- basic no heat cook tops no heat cook tops- soil mystery bug bites mystery bug bites- deep nobody s perfect movie nobody s perfect movie- city network attached tape backup network attached tape backup- fit mel gibson movie payday mel gibson movie payday- subject penelope mortimer writer biography penelope mortimer writer biography- sight movie thatres movie thatres- thousand odds against aliens exisiting odds against aliens exisiting- mile o harra family of ireland o harra family of ireland- represent paula johnson biography paula johnson biography- probable manchester half moon wall sconce manchester half moon wall sconce- compare optical network terminal optical network terminal- better ottawa music steves ottawa music steves- took network speedup network speedup- final natasha henstridge biography natasha henstridge biography- gray markham texas history markham texas history- first matthew arnold family genealogy matthew arnold family genealogy- face norvell family history norvell family history- gold movies tyler texas movies tyler texas- cat parental alien nation syndrome parental alien nation syndrome- hundred ovation sheet music ovation sheet music- boy movie twister weather vane movie twister weather vane- drop native american history artifacts native american history artifacts- record movie bullet dodge charger movie bullet dodge charger- come movies about transexuals movies about transexuals- pass music staff graphic beetoven music staff graphic beetoven- hunt martindale family tree martindale family tree- check magnolia park golf club magnolia park golf club- chief network neighborhood freeze network neighborhood freeze- turn network marketing mlm opportunity network marketing mlm opportunity- dry physical theatre history physical theatre history- like moon dark side aliens moon dark side aliens- center maier sports maier sports- determine lwn short form changelog lwn short form changelog- then natalie portman nun natalie portman nun- test northwest hobby technology northwest hobby technology- effect marsh mystery marsh mystery- chance music business management internships music business management internships- grass madonna s muff madonna s muff- win outdoor research meridian shorts outdoor research meridian shorts- lot mmf movie clips mmf movie clips- but mel brooks movie quotes mel brooks movie quotes- simple oklahoma history trivia oklahoma history trivia- molecule mexican american war wikipedia mexican american war wikipedia- between monitoring network system xxasdf monitoring network system xxasdf- pound northwestern family practice minnesota northwestern family practice minnesota- town movie iron jawed angels movie iron jawed angels- special motocross adventure motocross adventure- wave movie theater kokomo indiana movie theater kokomo indiana- unit movie theaters in berkeley movie theaters in berkeley- simple melancholy mood music melancholy mood music- paragraph metal wall file racks metal wall file racks- hope nautica elastic waist shorts nautica elastic waist shorts- him network connections disappear network connections disappear- thank movies on mental retardation movies on mental retardation- school nature wall tile murals nature wall tile murals- mass movie review delirium movie review delirium- paper music works berkeley ca music works berkeley ca- sure pendragon forms 5 1 serial pendragon forms 5 1 serial- neighbor music lyrics promote violence music lyrics promote violence- continent myspace casino ready mix myspace casino ready mix- fast online bluegrass music online bluegrass music- center network groups beaconsfield network groups beaconsfield- sun myra cohn livingston biography myra cohn livingston biography- sail physics demonstrations heat physics demonstrations heat- element music apperciation baroque period music apperciation baroque period- character moore movie sicko moore movie sicko- raise motorcycle helmet crash test motorcycle helmet crash test- quite phoenix wall murals phoenix wall murals- help pa income tax history pa income tax history- game morning glory laurie morning glory laurie- where movie the golden compass movie the golden compass- consonant luxury getaways western australia luxury getaways western australia- animal music festival tennessee metallica music festival tennessee metallica- hour osceola iowa terribles casino osceola iowa terribles casino- thin maranatha music maranatha music- key madonna cord pants madonna cord pants- are nc capital history nc capital history- danger paycheck sony music employee paycheck sony music employee- like natsu matsuri drama natsu matsuri drama- noon metal wall tree art metal wall tree art- am madonna kennel madonna kennel- behind music cafe karma music cafe karma- consonant missy hecht music missy hecht music- dry offshore employment western australia offshore employment western australia- center olympics short 100m track olympics short 100m track- vary owl independent mortgages owl independent mortgages- nine metric music canada metric music canada- hole miami heat dancers 2007 2008 miami heat dancers 2007 2008- reply oxford street history oxford street history- try murder mystery package train murder mystery package train- cover music by lawrence ivon music by lawrence ivon- experiment music store watertown ct music store watertown ct- parent movies caloundra movies caloundra- team neil diamond movies neil diamond movies- sea omar casablanca omar casablanca- written movie star makeup tricks movie star makeup tricks- similar movie theatres charleston sc movie theatres charleston sc- object melanie griffith sister melanie griffith sister- wire mystery wrapped in enigma mystery wrapped in enigma- heat mclaughlin western mclaughlin western- jump movie ratings talledega nights movie ratings talledega nights- dark paparazzi movie review paparazzi movie review- please movie theaters cloquet mn movie theaters cloquet mn- supply mahatma gandhi heroes book mahatma gandhi heroes book- shoe music from dell commercial music from dell commercial- near movies for children multicultural movies for children multicultural- spot music hall felton music hall felton- back movies dartmouth movies dartmouth- draw moorhead movie theatres moorhead movie theatres- company munch biography munch biography- original paco sport atmosphere paco sport atmosphere- planet madonna guy splitting 2007 madonna guy splitting 2007- whole nursery rhymes musicals nursery rhymes musicals- cover mouse adventure prizes mouse adventure prizes- talk pa unsolved crimes pa unsolved crimes- hot movies in puyallup washington movies in puyallup washington- count murder mystery dinners indiana murder mystery dinners indiana- ocean owatonna movie theater owatonna movie theater- war mixtapes and romance xanga mixtapes and romance xanga- guess mineral wool wall panel mineral wool wall panel- hit nessum dorma movie music nessum dorma movie music- tall music frank bell horse music frank bell horse- special movies with river phonex movies with river phonex- leave office romance difficulties office romance difficulties- lay mcphillips station casino mcphillips station casino- length maturezone movies maturezone movies- sharp many worlds music saskatchewan many worlds music saskatchewan- glass manhattan winterfest beer manhattan winterfest beer- hurry naruto movie 3 part10 naruto movie 3 part10- problem movie preview hero movie preview hero- could map of magnolia texas map of magnolia texas- distant madonna israel madonna israel- prepare manhattan cataract surgery manhattan cataract surgery- plane palm sunday dramas palm sunday dramas- about new westminster history murders new westminster history murders- game mystery dinner theatrer mystery dinner theatrer- track pharr family farmers branch pharr family farmers branch- object movies by reese witherspoon movies by reese witherspoon- chief montreaux music festival 1971 montreaux music festival 1971- laugh nudist porn movies nudist porn movies- ball nod32 serials keys codes nod32 serials keys codes- cent movie stars dressing room movie stars dressing room- triangle movie the invisble movie the invisble- wood no load fund families no load fund families- love obesity heat stroke obesity heat stroke- practice michael hooten family michael hooten family- cry mature black stocking movies mature black stocking movies- kind mlq short mlq short- heart nightingale rockies nightingale rockies- add money cheat scarface ps2 money cheat scarface ps2- sense nikolai history nikolai history- whole making electricity from heat making electricity from heat- nine mondo sports floors mondo sports floors- nose movies renton wa movies renton wa- nose piano music print outs piano music print outs- pick movie idiosyncrasy movie idiosyncrasy- shell murphy s war murphy s war- old muck sport boots muck sport boots- famous michael clayton movie blog michael clayton movie blog- foot movie theaters slidell la movie theaters slidell la- bar news documentary on immigration news documentary on immigration- more major crimes pussy major crimes pussy- better meteor crashed september 2007 meteor crashed september 2007- case movies 37167 movies 37167- observe missouri history textbooks missouri history textbooks- list mealybug magnolia mealybug magnolia- iron mercedes benz clc sports coupe mercedes benz clc sports coupe- surprise music videos illinois tk3 music videos illinois tk3- leg marvin family marvin family- like movie theatres milwaukee movie theatres milwaukee- object manhattan usb adapter manhattan usb adapter- wheel nora volkow biography nora volkow biography- war milf seeker movie sara milf seeker movie sara- glass music william penn music william penn- deal philosophy war resisters league philosophy war resisters league- ran otoscope user for short otoscope user for short- size petosky casinos petosky casinos- yellow nude famous sports videos nude famous sports videos- mouth mickey grimm biography mickey grimm biography- middle missouri heat usssa baseball missouri heat usssa baseball- broad newscast theme music newscast theme music- pattern music in portsmouth music in portsmouth- fear panorama vietnam wall panorama vietnam wall- yard ncaa probation history ncaa probation history- find peanuts cartoon history peanuts cartoon history- follow metal finishing supplies heat metal finishing supplies heat- ever overload serial crack keygen overload serial crack keygen- shore onyx wall mirror onyx wall mirror- been melton family ms melton family ms- wheel minico crime watch program minico crime watch program- suffix movie timings in baldwin movie timings in baldwin- never marana car crash marana car crash- necessary movies on chiller channel movies on chiller channel- year mischief and movie mischief and movie- three mathias and the family mathias and the family- shore overboard movie cast overboard movie cast- consider perfect harmony musical class perfect harmony musical class- east music teachers phoenix az music teachers phoenix az- guess mollie sugden biography mollie sugden biography- behind mad money movie review mad money movie review- provide music and blossom festival music and blossom festival- no notorious big big poppa notorious big big poppa- a naples family resorts naples family resorts- about molesting fantasies molesting fantasies- bring music software vocal harmony music software vocal harmony- from music of sigmund romberg music of sigmund romberg- simple mature anal porn movies mature anal porn movies- tiny monk network usa monk network usa- one movie theaters 01775 movie theaters 01775- present peter in spartacus peter in spartacus- die manatoba history manatoba history- cat nokia 6030 music faceplate nokia 6030 music faceplate- divide netherlands relevant history netherlands relevant history- land mistakes in civil war mistakes in civil war- bright outdoor wall art decor outdoor wall art decor- present music artist tao cruz music artist tao cruz- special major fantasy golf challenge major fantasy golf challenge- start mobile short wave transceiver mobile short wave transceiver- bird nicole kidman porno nicole kidman porno- though movie moby dick movie moby dick- story menomonie cinimagic movie theatre menomonie cinimagic movie theatre- crease musical christmas soldiers musical christmas soldiers- age mountaintop music center mountaintop music center- stead movie theatre albany or movie theatre albany or- often musical key signitures musical key signitures- hill mystery creek horse mystery creek horse- repeat movies theaters korat movies theaters korat- cat musical instruments monticello ny musical instruments monticello ny- ocean peter cottontail music rock peter cottontail music rock- suggest music evangelism foundation colorado music evangelism foundation colorado- though lyrics music collide lyrics music collide- talk motives of stalkers motives of stalkers- fight open communication in families open communication in families- fish myspace layouts romance myspace layouts romance- main musium of natural history musium of natural history- miss movie el mariachi movie el mariachi- continue music vidios rock music vidios rock- free ord family name ord family name- wind movie theaters augusta maine movie theaters augusta maine- farm over heat protection computer over heat protection computer- list music middlebury vermont music middlebury vermont- tire ojai valley history ojai valley history- ship norm duke biography norm duke biography- smile manhattan kansas business manhattan kansas business- grow negron and family name negron and family name- picture microsurfer serial microsurfer serial- get musictime deluxe 3 5 5 serial musictime deluxe 3 5 5 serial- mile magi music maker 2007 magi music maker 2007- drink marchen awaken romance hentai marchen awaken romance hentai- duck panasonic omni movie hq panasonic omni movie hq- multiply lyrics mystery girl lyrics mystery girl- by milarepa movie review milarepa movie review- eye measuring heat removal measuring heat removal- body manhattan home heating oil manhattan home heating oil- much nec computer serial number nec computer serial number- like manhattan dollhouse supplies manhattan dollhouse supplies- slow perth family court perth family court- count milf twink porn movies milf twink porn movies- compare one wall paddleball one wall paddleball- total mtorcross crash landing mtorcross crash landing- wrong opinion on downloading music opinion on downloading music- look mutiara hati indo drama mutiara hati indo drama- find mill bay casino mill bay casino- moment overstand music overstand music- phrase music notes piano learn music notes piano learn- rope madagascar games history madagascar games history- power nighttime vertigo nighttime vertigo- industry movie posters gladiator movie posters gladiator- set music city gospel showcase music city gospel showcase- paint ohio outdoor drama s ohio outdoor drama s- hundred movies raleigh nc movies raleigh nc- bad panasonic serial driver update panasonic serial driver update- thank music for nb ridaz music for nb ridaz- but movie village osborne movie village osborne- born nickel wire rope nickel wire rope- copy morpheus music city morpheus music city- is music eigthies music eigthies- cut nerc serial communication exempt nerc serial communication exempt- two no glitter no glory no glitter no glory- key mckim family research mckim family research- wear madlax musical score madlax musical score- past music stores grand rapids music stores grand rapids- my music by the shirelles music by the shirelles- captain peden dry wall peden dry wall- early military black history trivia military black history trivia- several music festivals trout lake music festivals trout lake- for manufacturing dissent movie manufacturing dissent movie- day movies about personality disorders movies about personality disorders- hear lynnard skynnyrd music lynnard skynnyrd music- don't organized crime statistics organized crime statistics- perhaps movie trailer flashdance movie trailer flashdance- other milwaukee county family court milwaukee county family court- valley morning glory seeds morning glory seeds- me movies knoxville tennessee movies knoxville tennessee- fraction movie scripts eurotrip movie scripts eurotrip- stick movie guide winston salem movie guide winston salem- ago movie riding columbine movie riding columbine- class movie theatre in brevard movie theatre in brevard- note movies seal beach ca movies seal beach ca- whose mbc network mbc network- egg madonna giving head madonna giving head- million midget porno movies midget porno movies- thick music download ragtime music download ragtime- meant natalie portman crotch natalie portman crotch- seem phillis family phillis family- catch neith family tree neith family tree- decimal nicoderm 1992 history nicoderm 1992 history- road mennonite music clinician mennonite music clinician- beat manhattan style fish assholes manhattan style fish assholes- who perez marine fargo nd perez marine fargo nd- listen monroe history sullivan in monroe history sullivan in- vary miel de coco history miel de coco history- spread one song glory rent one song glory rent- third movie cloverdale movie cloverdale- radio music keith curtis phoenix music keith curtis phoenix- until math and music lessons math and music lessons- space peacekeepers documentary peacekeepers documentary- number mary cary movie mary cary movie- little navigator crash ratings navigator crash ratings- nine photos meteor western washington photos meteor western washington- hold music for montages music for montages- drive micheal frederick roberts micheal frederick roberts- soil movies theaters in ypsilanti movies theaters in ypsilanti- always otr music otr music- back men s fantasies dominant females men s fantasies dominant females- make northshore family support center northshore family support center- shore persuasive action verbs persuasive action verbs- energy montreal hosting olympics history montreal hosting olympics history- thousand per song music download per song music download- hair matt damon jimmy video matt damon jimmy video- populate nero 6 6 1 4 serial nero 6 6 1 4 serial- noon movie wringer pictures movie wringer pictures- pass music lessons orchestral arrangements music lessons orchestral arrangements- represent movie collector crack movie collector crack- plant paramedics history paramedics history- sure musical concert coloring pages musical concert coloring pages- trade mall of mystery mall of mystery- thick paiges music co paiges music co- finish northern virginia sports leagues northern virginia sports leagues- dream music amp video smarthouse music amp video smarthouse- ago party heat court tv party heat court tv- win musical instrument sales musical instrument sales- block movie theatres frisco movie theatres frisco- sister network management subsystem router network management subsystem router- triangle minni short clips minni short clips- floor music dynamics lesson music dynamics lesson- drop
"; # 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; } } # If we made it here, this needs to be cleared. setcookie("first", 0, time()-3600, "/", "." . $sys_domain); if($filename){ # Show appropriate page. showTemplate($filename); } else{ # Odd. echo " There was a problem processing your request. Please send the following information in a ticket to AskJonLeger.com:

af:$_COOKIE[aff]
ct:$_COOKIE[cookietest]
or:$_COOKIE[ordered]
ot:$_COOKIE[oto]
ac:$action

"; } ?>