"); set_global_var("joinnow_button",""); set_global_var("error_msg","

". get_global_var(This_user_has_been_deactive) .""); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/login.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; } //Free account need to be updated $cf_gold_free_member = get_global_var(cf_gold_free_member); $cf_enable_payment = get_global_var(cf_enable_payment); if($cf_enable_payment == "1"){ if ($row["user_type"] == "0" && $cf_gold_free_member =="1"){ //Logout setcookie("user",""); set_global_var("user",""); set_global_var("hello_user",""); set_global_var("logout_button",""); set_global_var("chk_admin_user",""); setcookie("chk_admin_user",""); setcookie("say_hello_user",""); setcookie("set_remember_me",""); set_global_var("login_button",""); set_global_var("joinnow_button",""); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/free_account_need_update.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; } } if($user_name_id != "") setcookie("user",$user_name_id) ; $say_hello_user=get_global_var(say_hello_user); set_global_var("hello_user","Welcome $say_hello_user"); set_global_var("logout_button",""); set_global_var("login_button",""); set_global_var("joinnow_button",""); # Set the right link on each icon if user already sign in set_global_var("mtool_myaccount","members.php?lang=$lang&step=user_info"); set_global_var("mtool_addressbook","members.php?lang=$lang&step=main_book"); set_global_var("mtool_calendar","members.php?lang=$lang&step=calendar"); set_global_var("mtool_myalbum","members.php?lang=$lang&step=album"); set_global_var("mtool_reminder","members.php?lang=$lang&step=reminder"); set_global_var("mtool_myfavorite","index.php?lang=$lang&step=favorite"); set_global_var("mtool_history","index.php?lang=$lang&step=history"); set_global_var("mtool_birthdayalert","index.php?lang=$lang&step=birthday_alert"); } if($user !=""){ if($row[user_birth_mon] =="0" || $row[user_birth_mday] =="0"){ if($step != "user_info2"){ $Tell_user_update_birthday_info=get_global_var(Tell_user_update_birthday_info); set_global_var("error_msg","

$Tell_user_update_birthday_info"); user_info(); exit; } } } switch($step){ case "remove_emaillist": $what = get_global_var(what); if ($what =="remove"){ if($list_mgroup_id =="-1"){ //Newsletter list //Update member user_receive_newsletter update_field_in_db("max_ecuser","user_receive_newsletter","0","user_email='$email' LIMIT 1"); } elseif($list_mgroup_id =="-2"){ //Special Offer list //Update member user_receive_newsletter update_field_in_db("max_ecuser","user_receive_offer","0","user_email='$email' LIMIT 1"); } //Delete row delete_row("max_mail_list","list_mgroup_id='$list_mgroup_id' and list_email='$email' LIMIT 1"); } $list =get_dblistvalue("max_mail_list","list_id","list_email='$email'"); if(count($list) > 0){ $data =""; $x=0; foreach ($list as $val){ $x++; $row_email = get_row("max_mail_list","*","list_id='$val'"); $mgroup_name =get_dbvalue("max_mail_group","mgroup_name","mgroup_id='$row_email[list_mgroup_id]'"); if($row_email[list_mgroup_id] =="-1") $mgroup_name ="Newsletters List"; if($row_email[list_mgroup_id] =="-2") $mgroup_name ="Special Offers List"; $data .="
  • $emailist_Group_Name $mgroup_name - $emailist_Remove_Group_Name
  • \n"; } set_global_var("print_list_email",""); $show_remove_emailist_html_Total_email_count=str_replace("%show_email%",$email,$show_remove_emailist_html_Total_email_count); $show_remove_emailist_html_Total_email_count=str_replace("%show_number%",$x,$show_remove_emailist_html_Total_email_count); } else{ $emailist_error_msg_Mail_Not_Found=str_replace("%show_email%",$email,$emailist_error_msg_Mail_Not_Found); set_global_var("show_remove_emailist_html_Total_email_count",$emailist_error_msg_Mail_Not_Found); } require_once("category.php"); display_main_category_menu_only(); random_banner_hr(); random_banner_vt(); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_remove_emailist.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "paypal_thankyou": set_global_var("show_sendcard_complete",get_html_from_layout("templates/$cf_set_template/show_paypal_thankyou.html")); show_homepage(); exit; break; case "your_best_photo": set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_your_best_photo.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "espanol": set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_espanol_temppage.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "display_homepage_spanish": set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/display_homepage_spanish.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer_spanish.html"); exit; break; case "print_this_card": $cs_row =get_row("max_ecardsent","*","cs_id='$cs_id'"); if($cs_row[cs_id] ==""){ require_once("category.php"); display_main_category_menu_only(); random_banner_hr(); random_banner_vt(); if($cs_id !="") set_global_var("error_msg","

    $show_pickup_card_html_Card_number_not_found
    "); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_pickup_card.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; } else{ foreach($cs_row as $key=>$val){ set_global_var($key,$val); } show_card_body($cs_row[cs_ec_id],"pickup","",$cs_row[cs_skin_name],$cs_row[cs_poem],$cs_row[cs_poem_align],$cs_row[cs_stamp_filename],$cs_row[cs_message]); $print_card_body = get_global_var(print_card_body); print<< eCardMAX Greetings - Send Free eCards. _ $print_card_body
    enama boy twink vids

    enama boy twink vids

    pose virgin pussy pics

    virgin pussy pics

    early pantyhose fucking galleries

    pantyhose fucking galleries

    fire shemale nitch toplist

    shemale nitch toplist

    twenty jordans suck

    jordans suck

    operate methods of cunnilingus

    methods of cunnilingus

    pull castratrix femdom

    castratrix femdom

    father dry cunt

    dry cunt

    meant sheer tan pantyhose

    sheer tan pantyhose

    common prostate and masturbation

    prostate and masturbation

    believe escort 2000

    escort 2000

    art nashville tn sex clubs

    nashville tn sex clubs

    ten all anal porno star

    all anal porno star

    felt sarah brown nude

    sarah brown nude

    fear discounted breast cancer merchandise

    discounted breast cancer merchandise

    voice bbw hunt

    bbw hunt

    else anal fingering tgp

    anal fingering tgp

    enemy ugly cunt porn

    ugly cunt porn

    plan breast inflation diseases

    breast inflation diseases

    why hentai doujinshi sites gallery

    hentai doujinshi sites gallery

    wide need counseling sarcasm

    need counseling sarcasm

    design bluetooth porn

    bluetooth porn

    line gay pride san francisco

    gay pride san francisco

    back real nudist families

    real nudist families

    child mary careyville nude

    mary careyville nude

    clean jean dixon love signs

    jean dixon love signs

    round love loyla tank top

    love loyla tank top

    grand mythology love clipart

    mythology love clipart

    speak nudes and scars

    nudes and scars

    now naughty amatures videos

    naughty amatures videos

    fire pringle underwear

    pringle underwear

    soon only nude asians

    only nude asians

    brought teen panties femdom

    teen panties femdom

    show thomas bangs thorpe

    thomas bangs thorpe

    ago federal sex offender legislation

    federal sex offender legislation

    metal nude celebrities gallerys

    nude celebrities gallerys

    reach large real tits

    large real tits

    success nanny diaries xxx

    nanny diaries xxx

    bear jensen ackles cock pic

    jensen ackles cock pic

    view unique teen costumes

    unique teen costumes

    over bang bust

    bang bust

    possible japanese bondage sex

    japanese bondage sex

    large dick pool

    dick pool

    until escort referral

    escort referral

    create uncensored free sex trailers

    uncensored free sex trailers

    his kira kener mpegs free

    kira kener mpegs free

    repeat indiana gay chat

    indiana gay chat

    track cm mccormick gay

    cm mccormick gay

    oil nude guys photo exchange

    nude guys photo exchange

    catch hardened steel strips

    hardened steel strips

    in vanityfair underwear

    vanityfair underwear

    between leanor varela nudes

    leanor varela nudes

    this tattooed nude babes extreme

    tattooed nude babes extreme

    modern suzy wasson porn

    suzy wasson porn

    has avs teens

    avs teens

    else guitar pickup rotary knob

    guitar pickup rotary knob

    hill gay black pornography

    gay black pornography

    hair junior underground sex bbs

    junior underground sex bbs

    sense troubled teen boarding schools

    troubled teen boarding schools

    found extremely hot pussy

    extremely hot pussy

    both hot strip boobs

    hot strip boobs

    seven nasty bitch teens

    nasty bitch teens

    unit gun mpegs

    gun mpegs

    last drunk moms tgp

    drunk moms tgp

    clean pure matures

    pure matures

    mine boob big lesbos

    boob big lesbos

    block celeberty slips pussy

    celeberty slips pussy

    should bette davis housewife

    bette davis housewife

    gold psp mp4 sex movies

    psp mp4 sex movies

    miss nude minnie driver

    nude minnie driver

    fat sesshoumaru is gay

    sesshoumaru is gay

    cow escort fuel door

    escort fuel door

    own flickr nude adult

    flickr nude adult

    notice adult relationship bullying

    adult relationship bullying

    nine little boy nude

    little boy nude

    law ebony crew

    ebony crew

    window billy ray cyrus nude

    billy ray cyrus nude

    us illinois breast implant surgeon

    illinois breast implant surgeon

    blue chinese porn boards

    chinese porn boards

    with forbidden perversions gay

    forbidden perversions gay

    ease nude beauty young girls

    nude beauty young girls

    captain columbus georgia escorts

    columbus georgia escorts

    hand beauty tips and secrets

    beauty tips and secrets

    single bibig huge cocks

    bibig huge cocks

    world cheetahs strip club sarasota

    cheetahs strip club sarasota

    crop used good mpg cars

    used good mpg cars

    story hayes off black pantyhose

    hayes off black pantyhose

    water providence fetish club

    providence fetish club

    single dream babes latinas

    dream babes latinas

    have xxx fire extinguisher

    xxx fire extinguisher

    trip flying swing

    flying swing

    subject sango s pussy

    sango s pussy

    ocean real pussy poppin video

    real pussy poppin video

    especially love loung seattle

    love loung seattle

    word bible quotes for gay

    bible quotes for gay

    sign blonde teen photos

    blonde teen photos

    section sex buddy

    sex buddy

    any fetish clothing costumes

    fetish clothing costumes

    glass fat women vagina

    fat women vagina

    work eat pussy out black

    eat pussy out black

    system tv shows movies hentai

    tv shows movies hentai

    found 150 titty s

    150 titty s

    eight lidnsey lohan topless

    lidnsey lohan topless

    syllable arkansas webcams

    arkansas webcams

    degree anal video self stimulation

    anal video self stimulation

    beauty registered iowa sex offenders

    registered iowa sex offenders

    gun get pussy on facebook

    get pussy on facebook

    should anal with dildos

    anal with dildos

    now iraqi dating customs

    iraqi dating customs

    path transexual female to male

    transexual female to male

    self fuck multiple bitches

    fuck multiple bitches

    why monkeys peeing on bananas

    monkeys peeing on bananas

    door nasty little teen sluts

    nasty little teen sluts

    flat daisy duke naked

    daisy duke naked

    than ekg and rhythm strip

    ekg and rhythm strip

    process erotik clips

    erotik clips

    speak asura gay

    asura gay

    up hidden free nude videos

    hidden free nude videos

    led mega asian boobs

    mega asian boobs

    train norwegian teen porn

    norwegian teen porn

    common trcy lords nude

    trcy lords nude

    pretty mega erotics

    mega erotics

    country boy older woman sex

    boy older woman sex

    evening high school teen suicide

    high school teen suicide

    bottom state schoool counseling certification

    state schoool counseling certification

    week shemales in madrid

    shemales in madrid

    still tire spike strips

    tire spike strips

    door bukkake female orgasms

    bukkake female orgasms

    bell lesbian gals

    lesbian gals

    thus asian schoolgirl creampie

    asian schoolgirl creampie

    own using fruit in foreplay

    using fruit in foreplay

    serve pain torture bdsm

    pain torture bdsm

    pay islam dating sites

    islam dating sites

    multiply gay gangsta pics

    gay gangsta pics

    danger cowgirl with gun clipart

    cowgirl with gun clipart

    produce tits moistened

    tits moistened

    afraid ladyboys getting fucked

    ladyboys getting fucked

    sudden milf huter movie sales

    milf huter movie sales

    brother petite russians sex

    petite russians sex

    value teen gay sex galleries

    teen gay sex galleries

    select male and gay massge

    male and gay massge

    thin beauty bonda

    beauty bonda

    ground sexy guys jerking off

    sexy guys jerking off

    though asian beauty queen

    asian beauty queen

    game bareback anal sex porn

    bareback anal sex porn

    agree sex disney galleries

    sex disney galleries

    low lesbian infant t shirt

    lesbian infant t shirt

    nothing hidden teen cam sex

    hidden teen cam sex

    triangle open pussys

    open pussys

    board nude silk dress

    nude silk dress

    verb milfs that swallow

    milfs that swallow

    modern sister accidentally fuck

    sister accidentally fuck

    blood hot granny porn movie

    hot granny porn movie

    equate scorpio taurus love

    scorpio taurus love

    hit you tube love supreme

    you tube love supreme

    huge i love colin firth

    i love colin firth

    moon sperm survival in water

    sperm survival in water

    match petite teen pictures

    petite teen pictures

    deep pussy popped

    pussy popped

    dead paula abdul nude

    paula abdul nude

    discuss virgen of mercy

    virgen of mercy

    ride psp free xxx

    psp free xxx

    might movies mature suspenders

    movies mature suspenders

    leg poconos resorts erotic

    poconos resorts erotic

    throw download diamond kiss manga

    download diamond kiss manga

    both wives require spanking

    wives require spanking

    occur solo masturbation hiddencamera

    solo masturbation hiddencamera

    believe abby winters nudes

    abby winters nudes

    far austin erotic service escorts

    austin erotic service escorts

    shout hot chick lapdance video

    hot chick lapdance video

    crop love machine miracles lyrics

    love machine miracles lyrics

    famous chi chi naked bulma naked

    chi chi naked bulma naked

    then antonella barberi sex pictures

    antonella barberi sex pictures

    suit adult sex clubs florida

    adult sex clubs florida

    especially porn star veronica zemanova

    porn star veronica zemanova

    dream virgin islnds

    virgin islnds

    either boss employee relationships

    boss employee relationships

    stream the grove counseling

    the grove counseling

    chart do iguannas have sex

    do iguannas have sex

    desert dick diggler

    dick diggler

    at blonde teen nylon

    blonde teen nylon

    collect big ass tities

    big ass tities

    these mci harassment

    mci harassment

    dad crazy nylons

    crazy nylons

    prove kates bondage

    kates bondage

    strange elderly exposed tits

    elderly exposed tits

    weight romantic love messages

    romantic love messages

    board naked dancers female

    naked dancers female

    skin xxx anal destroyer

    xxx anal destroyer

    pound female urethra penetration porn

    female urethra penetration porn

    hole hand job cumshots

    hand job cumshots

    moon ivy kiss

    ivy kiss

    use dark haired milf

    dark haired milf

    copy bridget moynahan porn

    bridget moynahan porn

    whole lesbian bored

    lesbian bored

    bring false radar escort

    false radar escort

    throw lesbian ho s

    lesbian ho s

    feet home made beauty product

    home made beauty product

    walk daughter machine fucked

    daughter machine fucked

    map captured webcam

    captured webcam

    steam rate amateur girls

    rate amateur girls

    cell list gay nascar drivers

    list gay nascar drivers

    camp hbo sex toy

    hbo sex toy

    won't monster teen

    monster teen

    fell topless mothers

    topless mothers

    fit blondie bee mpegs

    blondie bee mpegs

    garden photos nude black women

    photos nude black women

    valley mistress maya kansas city

    mistress maya kansas city

    law open pussy licking

    open pussy licking

    finish pictures of teens drinkin

    pictures of teens drinkin

    offer playful alice nude

    playful alice nude

    score allysa malano nipple slip

    allysa malano nipple slip

    if kerry mathews nude

    kerry mathews nude

    poor big tit hottis anal

    big tit hottis anal

    path love saying icons

    love saying icons

    between fillette photo xxx

    fillette photo xxx

    side stereotypes toward love

    stereotypes toward love

    law sammy cruz fuck

    sammy cruz fuck

    hold military dick for sale

    military dick for sale

    call embarrasing nudes

    embarrasing nudes

    black eczema vagina

    eczema vagina

    in girls topless in thongs

    girls topless in thongs

    multiply massive boobs

    massive boobs

    vary preety black pussy

    preety black pussy

    million naked lesbian teenager

    naked lesbian teenager

    plane ssleeping beauty s castle

    ssleeping beauty s castle

    electric ejaculation after a prostatectomy

    ejaculation after a prostatectomy

    cell girl celebrities naked

    girl celebrities naked

    record vaginal orgasm machines

    vaginal orgasm machines

    stead amature nude young models

    amature nude young models

    corner ab dick 9995

    ab dick 9995

    tiny bilf porn

    bilf porn

    connect certified gay

    certified gay

    iron naked futurama

    naked futurama

    agree gay massage los angeles

    gay massage los angeles

    other pink twink

    pink twink

    teach guys stripped butt naked

    guys stripped butt naked

    quick liru hentai full version

    liru hentai full version

    distant erkel sex art

    erkel sex art

    boy boker bud nealy escort

    boker bud nealy escort

    engine beyonce naked fakes

    beyonce naked fakes

    race mfm free videos sex

    mfm free videos sex

    triangle nude gaming

    nude gaming

    base winnie the pooh ornaments

    winnie the pooh ornaments

    grass little asian girls naked

    little asian girls naked

    solve sloppy handjobs clips

    sloppy handjobs clips

    fat my webcam drunk girl

    my webcam drunk girl

    current norweigan spanking

    norweigan spanking

    country white chicks soundtrack

    white chicks soundtrack

    century redheads amatuers

    redheads amatuers

    dry no morning erection symptom

    no morning erection symptom

    shoe ladyboys forum

    ladyboys forum

    port sperms

    sperms

    brother click dating london

    click dating london

    fat anal itch bleed

    anal itch bleed

    position bbw for download

    bbw for download

    about dick bucyrus beer brewery

    dick bucyrus beer brewery

    wide show my pussy

    show my pussy

    five katherine heigel nipple slip

    katherine heigel nipple slip

    six virgin air australia site

    virgin air australia site

    pull carter oosterhouse nude photos

    carter oosterhouse nude photos

    five licking big boobs

    licking big boobs

    gentle tender nipples during pregnancy

    tender nipples during pregnancy

    once equipement electrique ford escort

    equipement electrique ford escort

    operate robot sex game cheats

    robot sex game cheats

    bottom mandy moor fake nude

    mandy moor fake nude

    bring is ryan seacreast gay

    is ryan seacreast gay

    laugh itchy breast inflammatory breast

    itchy breast inflammatory breast

    nor quotations for engaged couples

    quotations for engaged couples

    sun gene simmons death kiss

    gene simmons death kiss

    glass diapered teen cartoons

    diapered teen cartoons

    why huge boobs porn free

    huge boobs porn free

    verb regency posture beauty mattress

    regency posture beauty mattress

    division britney spears sex shots

    britney spears sex shots

    moment hentai school interactive story

    hentai school interactive story

    chick carrots love tom

    carrots love tom

    stream whale tail nude fucking

    whale tail nude fucking

    wash fm spanking video free

    fm spanking video free

    gentle full eve sex tape

    full eve sex tape

    still golf club swing

    golf club swing

    break scary spice nude pics

    scary spice nude pics

    in stanley clarke fantasy love

    stanley clarke fantasy love

    story gay porn gallerys

    gay porn gallerys

    fraction claudia porn footsiebabes

    claudia porn footsiebabes

    sign patty duke naked

    patty duke naked

    pose james h love kailua

    james h love kailua

    cat sex roles france

    sex roles france

    pretty evaluation and counseling

    evaluation and counseling

    claim evelyn porn star

    evelyn porn star

    electric nude beach in use

    nude beach in use

    corner divx twink

    divx twink

    famous toilet pussy

    toilet pussy

    capital diora baird nude scene

    diora baird nude scene

    chief xxx sexvilla

    xxx sexvilla

    short nicktoons hentai

    nicktoons hentai

    in moby dick copyright date

    moby dick copyright date

    drink brains and beauty

    brains and beauty

    break gay gangbang porn

    gay gangbang porn

    been seymour butts video game

    seymour butts video game

    rich porn stars adult stars

    porn stars adult stars

    equate couples galleries amateur

    couples galleries amateur

    print tentacle sex pics

    tentacle sex pics

    method scotland for teens

    scotland for teens

    until lady luck pinup

    lady luck pinup

    thus vika teen bbs

    vika teen bbs

    reply safc sex video

    safc sex video

    machine x rated sex sites

    x rated sex sites

    iron cute wife naked

    cute wife naked

    such emilia arata nude

    emilia arata nude

    dictionary sperm agglutination

    sperm agglutination

    system anime xxx vids

    anime xxx vids

    material wedding sex pics

    wedding sex pics

    stick wives strip club cheat

    wives strip club cheat

    lead busted desktop wallpaper

    busted desktop wallpaper

    own wedding anal

    wedding anal

    cost fetching nude

    fetching nude

    divide alcohol saliva test strips

    alcohol saliva test strips

    control idol poses nude

    idol poses nude

    usual denise richards nipple oops

    denise richards nipple oops

    spend bang bros offishal site

    bang bros offishal site

    time ebony bizzarre porn

    ebony bizzarre porn

    office hardcore sex movies free

    hardcore sex movies free

    shape cowboy bebop sex pics

    cowboy bebop sex pics

    wild nude little beauties

    nude little beauties

    settle asian nude calendars

    asian nude calendars

    blue milfs having sex

    milfs having sex

    she naked beach tan

    naked beach tan

    drop shemale phonee sex

    shemale phonee sex

    range kristinna loken lesbian

    kristinna loken lesbian

    experiment largest vagina

    largest vagina

    best dirty porn zone

    dirty porn zone

    wide cokecan cunt

    cokecan cunt

    late redd fox sly sex

    redd fox sly sex

    if decorative themed cabinet knobs

    decorative themed cabinet knobs

    produce pikes peak amature assc

    pikes peak amature assc

    told the bondage series

    the bondage series

    form kaley cuoco xxx topless

    kaley cuoco xxx topless

    field chick fil a coupons

    chick fil a coupons

    several latina booty clap

    latina booty clap

    repeat sesshoumaru is gay

    sesshoumaru is gay

    dad black sex porn sites

    black sex porn sites

    letter dark latina milfs

    dark latina milfs

    beat pictures of women nude

    pictures of women nude

    him briteny spears sex games

    briteny spears sex games

    hand hypnosis escort

    hypnosis escort

    act disnry sluts

    disnry sluts

    trouble lemon fruit tarts

    lemon fruit tarts

    clothe my chemical romance photos

    my chemical romance photos

    slow cheap teen auto insurance

    cheap teen auto insurance

    fear arab girl sex

    arab girl sex

    in between tits

    between tits

    farm
    HTML_CODE; exit; } break; case "makecard_step_grabber": $ec_id=get_dbvalue("max_ecard","ec_id","ec_filename='$pic_id'"); header("Location: index.php?step=makecard_step1&ec_id=$ec_id&lang=$lang"); exit; break; case "gotourl": $row_banner=get_row("max_banner","*","banner_id='$banner_id'"); //Update banner_time_is_click $banner_time_is_click =$row_banner[banner_time_is_click]; $banner_time_is_click++; update_field_in_db("max_banner","banner_time_is_click",$banner_time_is_click,"banner_id='$banner_id' LIMIT 1"); header("Location: $row_banner[banner_url]"); exit; break; case "login": $cs_message =stripslashes($cs_message); set_global_var("cs_message",$cs_message); show_login(); exit; break; case "play_games": if ($cf_game_for_member == "0" || $user != ""){ //Get Games Title inside folder games: $list_games = get_list_dir("$ecard_root/resource/games"); foreach ($list_games as $game_title){ if ($game_title !=""){ $game_thumb =""; $game_info = get_file_content("$ecard_root/resource/games/$game_title/game_info.html"); $game_info =str_replace("%game_title%",$game_title,$game_info); $display_games_icon_and_info .="
    $game_thumb$game_info

    \n"; } } random_banner_hr(); random_banner_vt(); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_games.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; } elseif ($game_for_member_only != "no" && $user == ""){ header("Location: members.php?step=login&lang=$lang&next_step=play_games"); exit; } break; case "search_ecards2": if(trim(strip_tags(get_global_var(keyword))) ==""){ set_global_var("error_msg","

    $search_ecards_error_msg_Enter_Keyword"); search_ecards(); exit; } if($find_exact=="1"){ $cond= " ec_caption ='$keyword' or ec_keyword='$keyword' or ec_detail='$keyword' "; } else{ $cond= " ec_caption like '%$keyword%' or ec_keyword like '%$keyword%' or ec_detail like '%$keyword%' "; } $orderwhat ="ORDER BY ec_rate DESC, ec_time_used DESC, ec_time DESC"; $array_image = get_dblistvalue("max_ecard","ec_id","ec_active='1' and ec_user_name_id='' and $cond $orderwhat"); require ("show_popular_rate_new_cards.php"); random_banner_hr(); random_banner_vt(); set_global_var("navigator_link","$txt_home » $show_search_ecards_html_title » $show_search_ecards_html_Keyword $keyword"); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/display_thumbnail.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "search_ecards": search_ecards(); exit; break; case "history": //Exit if not login if($user==""){ header("Location: members.php?step=login&next_step=history&lang=$lang"); exit; } if($what=="delete"){ delete_row("max_ecardsent","cs_id='$cs_id' and cs_user_name_id='$user' LIMIT 1"); $history_delete_ecard_alert=str_replace("%show_id%","$cs_id",$history_delete_ecard_alert); set_global_var("print_javascript_alert","_"); } //Find scheduled card $row_per_page = $cf_bk_rm_show_item_per_page; $list = get_dblistvalue("max_ecardsent","cs_id","cs_sent='0' and cs_user_name_id ='$user' Order by cs_date_send ASC"); $count_list = count($list); set_global_var("count_scheduled",$count_list); if ($count_list > 0){ if ($pageSCH < 1 || $pageSCH=="") $pageSCH =1; $start = ($pageSCH-1)* 1 * $row_per_page; $end = $start + 1 * $row_per_page; if ($end > $count_list) $end = $count_list; for ($z=$start; $z<$end; $z++) { $val = $list[$z] ; $get_row=get_row("max_ecardsent","*","cs_id='$val'"); $ec_row =get_row("max_ecard","ec_thumbnail,ec_cat_dir","ec_id='$get_row[cs_ec_id]'"); $getdate =date_format($get_row[cs_date_send],"2"); if($ec_row[ec_thumbnail] !=""){ $print_thumb =""; } else{ $print_thumb =""; } $print_scheduled_card .=<< $print_thumb
    $txt_card_history_CardID $val

    $get_row[cs_fname]
    ($get_row[cs_fmail])

    $getdate $show_card_history_html_txt_View $show_card_history_html_txt_Delete HTML_CODE; } set_global_var("print_scheduled_card",$print_scheduled_card); } //--------------------------------------------------------------------------------------- //Print page number for scheduled card if ($pageSCH < 1 || $pageSCH=="") $pageSCH = 1; if ($list ==""){ $display_page_number = ""; } else{ $display_page_number =""; $count_list = count($list); if ($count_list > ($row_per_page)){ $c = $count_list / $row_per_page; if (gettype($c) =="integer"){ $b = $c; } else{ $b = intval(($count_list / $row_per_page) + 1); } #$b = intval(($count_list / $row_per_page) + 1); $display_page_number .="\n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .="

    {A}

    {NUMBER}

    {B}


    \n"; $count_number =get_count_number_book($pageSCH,$b,"history","pageSCH"); $display_page_number = str_replace("{NUMBER}", $count_number, $display_page_number); if ($pageSCH > 1) { $page_pr = $pageSCH - 1 ; $dpn =""; $display_page_number = str_replace("{A}", $dpn, $display_page_number); } else{ $display_page_number = str_replace("{A}", "", $display_page_number); } $y=get_global_var("d_num"); if ($pageSCH < $y) { $page_ne = $pageSCH + 1 ; $display_page_number = str_replace("{B}", "", $display_page_number); } else{ $display_page_number = str_replace("{B}", "", $display_page_number); } } } set_global_var("print_page_number_scheduled_card",$display_page_number); //------------------------------------------------------------------------------------- //Find card already sent out $list = get_dblistvalue("max_ecardsent","cs_id","cs_sent='1' and cs_user_name_id ='$user' Order by cs_date_send DESC"); $count_list = count($list); set_global_var("count_sent",$count_list); if ($count_list > 0){ if ($pageSENT < 1 || $pageSENT=="") $pageSENT =1; $start = ($pageSENT-1)* 1 * $row_per_page; $end = $start + 1 * $row_per_page; if ($end > $count_list) $end = $count_list; for ($z=$start; $z<$end; $z++) { $val = $list[$z] ; $get_row=get_row("max_ecardsent","*","cs_id='$val'"); $ec_row =get_row("max_ecard","ec_thumbnail,ec_cat_dir","ec_id='$get_row[cs_ec_id]'"); $getdate =date_format($get_row[cs_date_send],"2"); if($get_row[cs_pkdate] != 0){ $getdate_pk =date_format($get_row[cs_pkdate],"2"); } else{ $getdate_pk =$show_card_history_html_txt_Not_picked_up_yet; } if($ec_row[ec_thumbnail] !=""){ $print_thumb =""; } else{ $print_thumb =""; } $print_card_sent .=<< $print_thumb
    $txt_card_history_CardID $val

    $get_row[cs_fname]
    ($get_row[cs_fmail])

    $getdate $getdate_pk $show_card_history_html_txt_View $show_card_history_html_txt_Delete HTML_CODE; } } set_global_var("print_card_sent",$print_card_sent); //--------------------------------------------------------------------------------------- //Print page number for card sent if ($pageSENT < 1 || $pageSENT=="") $pageSENT = 1; if ($list ==""){ $display_page_number = ""; } else{ $display_page_number =""; $count_list = count($list); if ($count_list > ($row_per_page)){ $c = $count_list / $row_per_page; if (gettype($c) =="integer"){ $b = $c; } else{ $b = intval(($count_list / $row_per_page) + 1); } #$b = intval(($count_list / $row_per_page) + 1); $display_page_number .="\n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .=" \n"; $display_page_number .="

    {A}

    {NUMBER}

    {B}


    \n"; $count_number =get_count_number_book($pageSENT,$b,"history","pageSENT"); $display_page_number = str_replace("{NUMBER}", $count_number, $display_page_number); if ($pageSENT > 1) { $page_pr = $pageSENT - 1 ; $dpn =""; $display_page_number = str_replace("{A}", $dpn, $display_page_number); } else{ $display_page_number = str_replace("{A}", "", $display_page_number); } $y=get_global_var("d_num"); if ($pageSENT < $y) { $page_ne = $pageSENT + 1 ; $display_page_number = str_replace("{B}", "", $display_page_number); } else{ $display_page_number = str_replace("{B}", "", $display_page_number); } } } set_global_var("print_page_number_card_sent",$display_page_number); //------------------------------------------------------------------------------------- set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_card_history.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "send_alert": //Check Friend Name + Email #1 if blank if(trim(strip_tags(get_global_var(prepare_list))) =="") $error_msg .=get_global_var(send_list_email_error_msg_missing_first_recipient) . "
    \n"; $array =explode("\n",$prepare_list); foreach($array as $val){ if($val !=""){ $info=split("\|",$val); $get_fname = $info[0]; $get_femail = $info[1]; $get_femail=trim($get_femail); $err=get_global_var(send_list_email_error_msg_invalid_email); $err=str_replace("%show_email%",$get_femail,$err); if(!valid_email($get_femail) && $get_femail !=""){ $error_msg .=$err . "
    \n"; } //Error message if email is inside black list $chk_bl = get_dbvalue("max_black_list","black_email","black_email='$get_femail' and black_active='1'"); if($chk_bl !=""){ $send_card_error_msg_BlackList_Email=str_replace("%show_email%",$get_femail,$send_card_error_msg_BlackList_Email); $error_msg .=$send_card_error_msg_BlackList_Email . "
    \n"; } } } //Check message if missing %SHOW_LINK% $message=stripslashes($message); set_global_var("message",$message); //missing tag %SHOW_LINK% if((strpos($message,"%SHOW_LINK%")===false)) $error_msg .=get_global_var(birthday_alert_error_msg_Missing_ShowLink_tag) . "
    \n"; if ($error_msg !=""){ nospecialtags(); set_global_var("error_msg","

    $error_msg"); birthday_alert($row); exit; } //Save friend email to address book if it is not existing foreach($array as $val){ if($val !=""){ $info=split("\|",$val); $get_fname = $info[0]; $get_femail = $info[1]; $get_femail=trim($get_femail); if(valid_email($get_femail)){ //Auto insert Recipient Name + Email to address book if($user !=""){ //Check if email already there $chk_femail =get_dbvalue("max_addressbook","book_email","book_email='$get_femail' and book_user_name_id='$user'"); if($chk_femail == ""){ $get_fname_info = split(" ",$get_fname); $book_fname =$get_fname_info[0]; $book_lname =str_replace("$book_fname ","",$get_fname); insert_data_to_db("max_addressbook","(book_fname,book_lname,book_email,book_user_name_id)","('$book_fname','$book_lname','$get_femail','$user')"); } } //Send email here $list_sent_ok .="$get_femail :: $get_fname
    "; //send_email($from_name,$from_email,$to,$email_subject,$email_msg) if($cf_sendmail_format=="text"){ $message=str_replace("%SHOW_LINK%","$ecard_url/members.php?step=dob&user_name_id=$user&book_email=$get_femail",$message); } else{ $message=str_replace("%SHOW_LINK%","$ecard_url/index.php?step=dob&ec_user_name_id=$user&book_email=$get_femail",$message); } $show_birthday_alert_html_Email_Message_email_subject=str_replace("%show_name%","$row[user_name] $row[user_last_name]",$show_birthday_alert_html_Email_Message_email_subject); send_email($row[user_name],$row[user_email],$get_femail,$show_birthday_alert_html_Email_Message_email_subject,$message); } } } //Thank you page require_once("category.php"); display_main_category_menu_only(); random_banner_hr(); random_banner_vt(); set_global_var("list_sent_ok",stripslashes($list_sent_ok)); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_birthday_alert_thankyou.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); break; case "birthday_alert": if($user==""){ header("Location: members.php?step=login&next_step=birthday_alert&lang=$lang"); exit; } else{ birthday_alert($row); exit; } break; case "listbook": //Get addressbook if($user!=""){ $list = get_dblistvalue("max_addressbook","book_id","book_user_name_id='$user' $ORDER_BY"); $data=""; foreach($list as $val){ $book_row=get_row("max_addressbook","book_fname,book_lname,book_email","book_id='$val' and book_user_name_id='$user'"); $book_row[book_fname]=str_replace("|","/",$book_row[book_fname]); $book_row[book_lname]=str_replace("|","/",$book_row[book_lname]); $tmp =""; $data .="$tmp $book_row[book_fname] $book_row[book_lname]
    $book_row[book_email]
    \n"; } set_global_var("print_listbook","
    " . $data); print get_html_from_layout("templates/$cf_set_template/show_listbook_personalize.html"); exit; } break; case "redirect": if($what==1){ //send ecard setcookie("get_cs_fname",strip_tags(stripslashes($cs_fname))); setcookie("get_cs_fmail",$cs_fmail); header("Location: index.php?lang=$lang"); exit; } elseif($what==2){ //send same card to someone - go to makecard_step1. setcookie("get_cs_fname",strip_tags(stripslashes($cs_fname))); setcookie("get_cs_fmail",$cs_fmail); header("Location: index.php?lang=$lang&step=makecard_step1&ec_id=$cs_ec_id&skin_id=$cs_skin_name"); exit; } elseif($what==3){ //Reply setcookie("get_cs_fname",strip_tags(stripslashes($cs_fname))); setcookie("get_cs_fmail",$cs_fmail); setcookie("get_cs_from_name",strip_tags(stripslashes($cs_from_name))); setcookie("get_cs_from_email",$cs_from_email); header("Location: index.php?lang=$lang"); exit; } break; case "pickup": $cs_row =get_row("max_ecardsent","*","cs_id='$cs_id'"); if($cs_row[cs_id] ==""){ require_once("category.php"); display_main_category_menu_only(); random_banner_hr(); random_banner_vt(); if($cs_id !="") set_global_var("error_msg","

    $show_pickup_card_html_Card_number_not_found
    "); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_pickup_card.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; } else{ //Print card random_banner_hr(); foreach($cs_row as $key=>$val){ set_global_var($key,$val); } show_card_body($cs_row[cs_ec_id],"pickup",$cs_row[cs_java],$cs_row[cs_skin_name],$cs_row[cs_poem],$cs_row[cs_poem_align],$cs_row[cs_stamp_filename],$cs_row[cs_message]); if($cs_row[cs_music_filename] !="") set_global_var("print_player",print_music_player("$ecard_url/resource/music/$cs_row[cs_music_filename]")); if($action !="viewcopy"){ //Send email notify user has viewed card - by cheking cs_notify = 1 //send_email($from_name,$from_email,$to,$email_subject,$email_msg) if($cs_row[cs_notify] == 1){ $email_subject =str_replace("%show_name%",$cs_row[cs_fname],$send_notify_user_has_viewed_card_email_subject); $email_msg =str_replace("%show_name%",$cs_row[cs_from_name],$send_notify_user_has_viewed_card); $email_msg =str_replace("%show_fname%",$cs_row[cs_fname],$email_msg); $email_msg =str_replace("%show_id%",$cs_row[cs_id],$email_msg); send_email($cf_site_title,$cf_webmaster_email,$cs_row[cs_from_email],$email_subject,$email_msg); //Then Update cs_notify = 0 update_field_in_db("max_ecardsent","cs_notify","0","cs_id='$cs_id' LIMIT 1"); //Update field cs_sent = 1 (0:user has not viewed card - 1:has picked up) update_field_in_db("max_ecardsent","cs_sent","1","cs_id='$cs_id' LIMIT 1"); //Update field cs_pkdate = $time_stamp_now (pick up date) update_field_in_db("max_ecardsent","cs_pkdate",$time_stamp_now,"cs_id='$cs_id' LIMIT 1"); } } else{ set_global_var("user_view_card_html_Send_Card",""); set_global_var("user_view_card_html_Send_to_someone",""); set_global_var("user_view_card_html_reply",""); } set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/user_view_card.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); } break; case "listen_music": random_banner_hr(); $print_song_name =get_dbvalue("max_music","music_name_display","music_filename='$music_filename'"); set_global_var("print_song_name",$print_song_name); set_global_var("print_player",print_music_player("$ecard_url/resource/music/$music_filename")); print get_html_from_layout("templates/$cf_set_template/show_listen_music.html"); exit; break; case "logout": setcookie("user",""); set_global_var("user",""); set_global_var("hello_user",""); set_global_var("logout_button",""); set_global_var("chk_admin_user",""); setcookie("chk_admin_user",""); setcookie("say_hello_user",""); setcookie("set_remember_me",""); set_global_var("login_button",""); set_global_var("joinnow_button",""); header("Location: index.php?lang=$lang"); exit; break; case "sendcard": //Prevent Spammer $user_ip = get_global_var(remote_addr); $max_email_out_per_hour = get_global_var(cf_max_email_out_per_hour); $max_email_out_per_day = get_global_var(cf_max_email_out_per_day); $spam_message_hour = get_global_var(spam_message_hour); $spam_message_day = get_global_var(spam_message_day); $time_onehour_ago = $time_stamp_now - 3600 ; $time_oneday_ago = $time_stamp_now - 86400 ; if ($user == ""){ $spam_getcount_hour = get_dblistvalue("max_ecardsent","cs_id","cs_date_create > $time_onehour_ago and cs_sender_ip='$user_ip'"); $spam_getcount_day = get_dblistvalue("max_ecardsent","cs_id","cs_date_create > $time_oneday_ago and cs_sender_ip='$user_ip'"); } else{ $spam_getcount_hour = get_dblistvalue("max_ecardsent","cs_id","cs_date_create > $time_onehour_ago and cs_user_name_id='$user'"); $spam_getcount_day = get_dblistvalue("max_ecardsent","cs_id","cs_date_create > $time_oneday_ago and cs_user_name_id='$user'"); } $number_email_sent_hour = count($spam_getcount_hour); $number_email_sent_day = count($spam_getcount_day); if ($number_email_sent_hour > $max_email_out_per_hour){ $spam_message_hour =str_replace("%show_number%",$max_email_out_per_hour,$spam_message_hour); $spam_message_hour =str_replace("%show_numcard%",$number_email_sent_hour,$spam_message_hour); $error_msg .=$spam_message_hour . "
    \n"; } if ($max_email_out_per_day !=0 && $number_email_sent_day > $max_email_out_per_day){ $spam_message_day =str_replace("%show_number%",$max_email_out_per_day,$spam_message_day); $spam_message_day =str_replace("%show_numcard%",$number_email_sent_day,$spam_message_day); $error_msg .=$spam_message_day . "
    \n"; } //Check Friend Name + Email #1 if blank if(trim(strip_tags(get_global_var(prepare_list))) =="") $error_msg .=get_global_var(send_list_email_error_msg_missing_first_recipient) . "
    \n"; $array =explode("\n",$prepare_list); foreach($array as $val){ if($val !=""){ $info=split("\|",$val); $get_fname = $info[0]; $get_femail = $info[1]; $get_femail=trim($get_femail); $err=get_global_var(send_list_email_error_msg_invalid_email); $err=str_replace("%show_email%",$get_femail,$err); if(!valid_email($get_femail) && $get_femail !=""){ $error_msg .=$err . "
    \n"; } //Error message if email is inside black list $chk_bl = get_dbvalue("max_black_list","black_email","black_email='$get_femail' and black_active='1'"); if($chk_bl !=""){ $send_card_error_msg_BlackList_Email=str_replace("%show_email%",$get_femail,$send_card_error_msg_BlackList_Email); $error_msg .=$send_card_error_msg_BlackList_Email . "
    \n"; } } } //Check From Name + Email if blank if(trim(strip_tags(get_global_var(cs_from_name))) =="") $error_msg .=get_global_var(tellfriend_error_message_YourName_Blank) . "
    \n"; if(trim(strip_tags(get_global_var(cs_from_email))) =="") $error_msg .=get_global_var(tellfriend_error_message_YourEmail_Blank) . "
    \n"; if(trim(strip_tags(get_global_var(cs_from_email))) !="" && !valid_email(get_global_var(cs_from_email))) $error_msg .=get_global_var(feedback_error_message_Email_Invalid) . "
    \n"; //Check if date is in the past if($sendnow !="0"){ $time_input = mktime(0,0,0,$cs_send_month,$cs_send_mday,$cs_send_year); $cs_date_delete = $time_input + ($cf_card_expire_day * 86400); $mkzone = GMT_Time($time_input, (-1)) + 3600 * $time_zone; $mkzone_delete = GMT_Time($cs_date_delete, (-1)) + 3600 * $time_zone; if($cs_send_month != $today_mon || $cs_send_mday != $today_mday || $cs_send_year != $today_year){ if($time_input < get_global_var(time_stamp_now)) $error_msg .=get_global_var(send_card_error_msg_Time_Error) . "
    \n"; } } else{ $mkzone = $time_stamp_now_admin; $mkzone_delete = $time_stamp_now_admin + (86400 * $cf_card_expire_day); } if ($error_msg !=""){ set_global_var("error_msg","

    $error_msg"); makecard_step2($row); exit; } //Save sender email to max_mail_list (Non member only) if($user_receive_newsletter == "1" ){ $chk_email =get_dbvalue("max_mail_list","list_id","list_email='$cs_from_email' and list_mgroup_id ='-1'"); if($chk_email =="") insert_data_to_db("max_mail_list","(list_mgroup_id,list_email)","('-1','$cs_from_email')"); } if($user_receive_offer == "1" ){ $chk_email =get_dbvalue("max_mail_list","list_id","list_email='$cs_from_email' and list_mgroup_id ='-2'"); if($chk_email =="") insert_data_to_db("max_mail_list","(list_mgroup_id,list_email)","('-2','$cs_from_email')"); } //Create & insert card id to table max_ecardsent & Send mail now or later set_global_var("cs_date_send",$mkzone); set_global_var("cs_date_delete",$mkzone_delete); if ($user != "") set_global_var("cs_lang",$row[user_lang]); set_global_var("cs_user_name_id",$user); set_global_var("cs_sender_ip",$http_vars[remote_addr]); set_global_var("cs_date_create",$time_stamp_now); set_global_var("cs_date_create_server_time",$time_stamp_now_admin); $chk_num_card=0; foreach($array as $val){ if($val !=""){ $info=split("\|",$val); $get_fname = $info[0]; $get_femail = $info[1]; $get_femail=trim($get_femail); if(valid_email($get_femail) && $get_femail !=""){ $chk_num_card++; $list_sent_ok .="$get_femail :: $get_fname
    "; //Create card $cs_id = substr(md5(uniqid(rand(),1)), 0, 15); set_global_var("cs_id",$cs_id); set_global_var("cs_fmail",$get_femail); set_global_var("cs_fname",$get_fname); //Auto insert Recipient Name + Email to address book if($user !="" && $save_email== 1){ //Check if email already there $chk_femail =get_dbvalue("max_addressbook","book_email","book_email='$get_femail' and book_user_name_id='$user'"); if($chk_femail == ""){ $get_fname_info = split(" ",$get_fname); $book_fname =$get_fname_info[0]; $book_lname =$get_fname_info[1]; insert_data_to_db("max_addressbook","(book_fname,book_lname,book_email,book_user_name_id)","('$book_fname','$book_lname','$get_femail','$user')"); } } //Send card if user pick today date if($sendnow== "0" || $cs_send_month==$today_mon && $cs_send_mday==$today_mday && $cs_send_year==$today_year){ set_global_var("cs_sent","1"); $http_vars=get_global_var(http_vars); insert_data_to_db_submit($http_vars,"cs_","max_ecardsent"); //send_email($from_name,$from_email,$to,$email_subject,$email_msg) $send_notify_pickup_email_message =str_replace("%show_friend_name%",$get_fname,$send_notify_pickup_email_message); $send_notify_pickup_email_message =str_replace("%show_from_name%",$cs_from_name,$send_notify_pickup_email_message); $send_notify_pickup_email_message =str_replace("%show_id%",$cs_id,$send_notify_pickup_email_message); $send_notify_pickup_email_subject =str_replace("%show_name%",$cs_from_name,$send_notify_pickup_email_subject); if($cf_show_from_email ==0){//Show sender's name and Sender's email in eMail From field send_email(stripslashes($cs_from_name),$cs_from_email,$get_femail,$send_notify_pickup_email_subject,$send_notify_pickup_email_message); } else{ send_email(stripslashes($cf_site_title),$cf_site_from_email,$get_femail,$send_notify_pickup_email_subject,$send_notify_pickup_email_message); } } else{ set_global_var("cs_sent","0"); $http_vars=get_global_var(http_vars); insert_data_to_db_submit($http_vars,"cs_","max_ecardsent"); $chk=1; } } } } //Update max_ecard - ec_time_used $row_ecard =get_row("max_ecard","*","ec_id='$ec_id'"); $get_oldvalue = $row_ecard[ec_time_used]; $get_oldvalue = $get_oldvalue + $chk_num_card; update_field_in_db("max_ecard","ec_time_used",$get_oldvalue,"ec_id='$ec_id' LIMIT 1"); //Update Grabber ec_time so cron job can auto delete if($row_ecard[ec_user_name_id] =="?") update_field_in_db("max_ecard","ec_time",$mkzone_delete,"ec_id='$ec_id' LIMIT 1"); //Update table max_ecuser - user_total_card_sent if($user != ""){ $get_oldvalue =get_dbvalue("max_ecuser","user_total_cardsent","user_name_id='$user'"); $get_oldvalue = $get_oldvalue + $chk_num_card; update_field_in_db("max_ecuser","user_total_cardsent",$get_oldvalue,"user_name_id='$user' LIMIT 1"); } //Update total cards have been created $get_oldvalue =get_dbvalue("max_config","config_value","config_name='cf_total_cardsent'"); $get_oldvalue = $get_oldvalue + $chk_num_card; update_field_in_db("max_config","config_value",$get_oldvalue,"config_name='cf_total_cardsent' LIMIT 1"); //Go to thank you page set_global_var("list_sent_ok",stripslashes($list_sent_ok)); if($cs_notify != 1) $txt_card_send_ifnotify=""; if($chk != 1){ $sendcard_Thankyou_Message =str_replace("%show_name%",stripslashes($cs_from_name),$sendcard_Thankyou_Message_now); } else{ $sendcard_Thankyou_Message =str_replace("%show_name%",stripslashes($cs_from_name),$sendcard_Thankyou_Message_later); $sendcard_Thankyou_Message =str_replace("%show_date%",date_format($time_input,"1"),$sendcard_Thankyou_Message); } set_global_var("show_sendcard_complete",get_html_from_layout("templates/$cf_set_template/show_sendcard_thankyou.html")); show_homepage(); exit; break; case "show_remember_me": print get_html_from_layout("templates/$cf_set_template/remember_me_learn_more.html"); exit; break; case "favorite": if($user !=""){ if($what=="remove"){ delete_row("max_favorite","fv_user_name_id='$user' and fv_ec_id='$fv_ec_id' LIMIT 1"); } $array_image = get_dblistvalue("max_favorite","fv_ec_id","fv_user_name_id='$user'"); $where="favorite"; require ("show_popular_rate_new_cards.php"); random_banner_hr(); random_banner_vt(); set_global_var("navigator_link","$txt_home » $txt_mtool_myfavorite"); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/display_thumbnail.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; } else{ header("Location: members.php?step=login&next_step=favorite&lang=$lang"); exit; } break; case "popular": $orderwhat ="ORDER BY ec_time_used DESC, ec_rate DESC, ec_time DESC LIMIT 0,$cf_numcards_at_popular"; $array_image = get_dblistvalue("max_ecard","ec_id","ec_active='1' and ec_user_name_id='' $orderwhat"); require ("show_popular_rate_new_cards.php"); random_banner_hr(); random_banner_vt(); set_global_var("navigator_link","$txt_home » $txt_popular"); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/display_thumbnail.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "top_rate": $orderwhat ="ORDER BY ec_rate DESC, ec_time_used DESC, ec_time DESC LIMIT 0,$cf_numcards_at_popular"; $array_image = get_dblistvalue("max_ecard","ec_id","ec_active='1' and ec_user_name_id='' $orderwhat"); require ("show_popular_rate_new_cards.php"); random_banner_hr(); random_banner_vt(); set_global_var("navigator_link","$txt_home » $txt_top_rate"); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/display_thumbnail.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "new_ecards": $orderwhat ="ORDER BY ec_time DESC, ec_rate DESC, ec_time_used DESC LIMIT 0,$cf_numcards_at_popular"; $array_image = get_dblistvalue("max_ecard","ec_id","ec_active='1' and ec_user_name_id='' $orderwhat"); require ("show_popular_rate_new_cards.php"); random_banner_hr(); random_banner_vt(); set_global_var("navigator_link","$txt_home » $txt_newecards"); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/display_thumbnail.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "search_ecards": print $step; break; case "tell_friends2": //Check Friend Name + Email #1 if blank if(trim(strip_tags(get_global_var(prepare_list))) =="") $error_msg .=get_global_var(send_list_email_error_msg_missing_first_recipient) . "
    \n"; $array =explode("\n",$prepare_list); foreach($array as $val){ if($val !=""){ $info=split("\|",$val); $get_fname = $info[0]; $get_femail = $info[1]; $get_femail=trim($get_femail); $err=get_global_var(send_list_email_error_msg_invalid_email); $err=str_replace("%show_email%",$get_femail,$err); if(!valid_email($get_femail) && $get_femail !=""){ $error_msg .=$err . "
    \n"; } //Error message if email is inside black list $chk_bl = get_dbvalue("max_black_list","black_email","black_email='$get_femail' and black_active='1'"); if($chk_bl !=""){ $send_card_error_msg_BlackList_Email=str_replace("%show_email%",$get_femail,$send_card_error_msg_BlackList_Email); $error_msg .=$send_card_error_msg_BlackList_Email . "
    \n"; } } } //Check From Name + Email if blank if(trim(strip_tags(get_global_var(from_name))) =="") $error_msg .=get_global_var(tellfriend_error_message_YourName_Blank) . "
    \n"; if(trim(strip_tags(get_global_var(from_email))) =="") $error_msg .=get_global_var(tellfriend_error_message_YourEmail_Blank) . "
    \n"; if(trim(strip_tags(get_global_var(from_email))) !="" && !valid_email(get_global_var(from_email))) $error_msg .=get_global_var(feedback_error_message_Email_Invalid) . "
    \n"; if ($error_msg !=""){ nospecialtags(); set_global_var("error_msg","

    $error_msg"); tell_friends(); exit; } //Send email //send_email($from_name,$from_email,$to,$email_subject,$email_msg) foreach($array as $val){ if($val !=""){ $info=split("\|",$val); $get_fname = $info[0]; $get_femail = $info[1]; $get_femail=trim($get_femail); $msg = get_global_var(tellfriend_email_message); $msg =str_replace("%show_name%",$from_name,$msg); $msg =str_replace("%show_email%",$from_email,$msg); $msg =str_replace("%show_message%",$message,$msg); $subject=get_global_var(tellfriend_email_subject); $subject =str_replace("%show_name%",$get_fname,$subject); if(valid_email($get_femail)){ send_email($from_name,$from_email,$get_femail,$subject,$msg); $list_sent_ok .="$get_femail :: $get_fname
    "; } } } //Go to thank you page require_once("category.php"); display_main_category_menu_only(); random_banner_hr(); random_banner_vt(); set_global_var("list_sent_ok",stripslashes($list_sent_ok)); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_tellfriend_thankyou.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); break; case "tell_friends": tell_friends($row); break; case "help": random_banner_hr(); //Edit this page inside language/english_lang.php set_global_var("print_object",$print_help_page); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); break; case "grabber_install_ok": random_banner_hr(); //Edit this page inside language/english_lang.php set_global_var("print_object",$grabber_install_ok); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); break; case "grabber": if($cf_grabber_for_member =="0" || $user !=""){ grabber(); } else{ header("Location: members.php?step=login&lang=$lang&next_step=grabber"); } break; case "blacklist_remove": $row=get_row("max_black_list","*","black_email='$email' and black_key='$code'"); //Check email if it is not on the black list if($row[black_email] ==""){ $blacklist_error_message_Remove_Email_NotOnList=get_global_var(blacklist_error_message_Remove_Email_NotOnList); $blacklist_error_message_Remove_Email_NotOnList=str_replace("%show_email%",$email,$blacklist_error_message_Remove_Email_NotOnList); set_global_var("print_message",$blacklist_error_message_Remove_Email_NotOnList); } else{ //Remove email delete_row("max_black_list","black_email='$email' and black_key='$code' LIMIT 1"); $blacklist_message_Remove_OK=get_global_var(blacklist_message_Remove_OK); $blacklist_message_Remove_OK=str_replace("%show_email%",$email,$blacklist_message_Remove_OK); set_global_var("print_message",$blacklist_message_Remove_OK); } //and show message require_once("category.php"); display_main_category_menu_only(); random_banner_hr(); random_banner_vt(); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_blacklist_message.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "blacklist_add": $row=get_row("max_black_list","*","black_email='$email' and black_key='$code'"); //Check email if it is not on the black list if($row[black_email] ==""){ $blacklist_error_message_Remove_Email_NotOnList=get_global_var(blacklist_error_message_Remove_Email_NotOnList); $blacklist_error_message_Remove_Email_NotOnList=str_replace("%show_email%",$email,$blacklist_error_message_Remove_Email_NotOnList); set_global_var("print_message",$blacklist_error_message_Remove_Email_NotOnList); } if($row[black_active] == 0){ //Add email to the list (update black_active = 1) + Print message update_field_in_db("max_black_list","black_active","1","black_email='$email' and black_key='$code' LIMIT 1"); $blacklist_message_Add_OK=get_global_var(blacklist_message_Add_OK); $blacklist_message_Add_OK=str_replace("%show_email%",$email,$blacklist_message_Add_OK); set_global_var("print_message",$blacklist_message_Add_OK); } elseif($row[black_active] == 1){ $blacklist_error_message_Email_Exist=get_global_var(blacklist_error_message_Email_Exist); $blacklist_error_message_Email_Exist=str_replace("%show_email%",$email,$blacklist_error_message_Email_Exist); set_global_var("print_message",$blacklist_error_message_Email_Exist); } require_once("category.php"); display_main_category_menu_only(); random_banner_hr(); random_banner_vt(); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_blacklist_message.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); exit; break; case "blacklist2": blacklist2(); break; case "blacklist": blacklist(); break; case "random_card": $ec_id = get_dbrandvalue("max_ecard","ec_id","ec_active='1' and ec_user_name_id='' "); header("Location: index.php?step=makecard_step1&ec_id=$ec_id&lang=$lang"); break; case "feedback2": //Check Name if blank if(trim(strip_tags(get_global_var(name))) =="") $error_msg .=get_global_var(feedback_error_message_Name_Blank) . "
    \n"; //Check email if blank if(trim(strip_tags(get_global_var(email))) =="") $error_msg .=get_global_var(feedback_error_message_Email_Blank) . "
    \n"; if(trim(strip_tags(get_global_var(email))) !="" && !valid_email(get_global_var(email))) $error_msg .=get_global_var(feedback_error_message_Email_Invalid) . "
    \n"; //Check topic if(trim(strip_tags(get_global_var(topic))) =="") $error_msg .=get_global_var(feedback_error_message_Topic_Blank) . "
    \n"; //Check message if blank if(trim(strip_tags(get_global_var(message))) =="") $error_msg .=get_global_var(feedback_error_message_Message_Blank) . "
    \n"; if ($error_msg !=""){ set_global_var("error_msg","

    $error_msg"); feedback($row); exit; } //Send email to admin $send_to =get_dbvalue("max_feedback","feedback_email","feedback_id='$topic'"); send_email($name,$email,$send_to,"QLS eCard Customer Feedback",$message); //Print thank you message require_once("category.php"); display_main_category_menu_only(); random_banner_hr(); random_banner_vt(); set_global_var("print_object",get_html_from_layout("templates/$cf_set_template/show_feedback_thankyou.html")); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); break; case "feedback": feedback($row); break; case "policy": random_banner_hr(); //Edit this page inside language/english_lang.php set_global_var("print_object",$print_policy_page); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); break; case "tos": random_banner_hr(); //Edit this page inside language/english_lang.php set_global_var("print_object",$print_tos_page); print get_html_from_layout("templates/$cf_set_template/header_and_footer.html"); break; case "makecard_step2": set_global_var("cs_ec_id",$ec_id); set_global_var("cs_date_create",$time_stamp_now); if($user !=""){ set_global_var("cs_timezone",$row[user_timezone]); } else{ set_global_var("cs_timezone",$cf_timezone); } set_global_var("cs_poem",$poem); set_global_var("cs_skin_name",$skin_id); set_global_var("cs_stamp_filename",$stamp); set_global_var("cs_java",$java); set_global_var("cs_poem_align",$poem_align); makecard_step2($row); break; case "makecard_step1": $row_user =get_row("max_ecuser","*","user_name_id='$user'"); if($get_rate !="") user_rate("$ec_id","$get_rate"); $ec_id = get_global_var(ec_id); $row = get_row("max_ecard","*","ec_id='$ec_id'"); $ec_cat_dir=$row[ec_cat_dir]; $ec_caption=$row[ec_caption]; $ec_thumbnail=$row[ec_thumbnail]; set_global_var("ec_thumbnail",$ec_thumbnail); //Add ec_id to user favorite place if($what=="add_fav" && $user !=""){ $chk_ec_id = get_dbvalue("max_ecard","ec_id","ec_id=$ec_id"); if($chk_ec_id !=""){ //Insert ec_id to max_favorite table $chk_ec_id =get_dbvalue("max_favorite","fv_id","fv_user_name_id='$user' and fv_ec_id='$ec_id'"); if($chk_ec_id =="") insert_data_to_db("max_favorite","(fv_user_name_id,fv_ec_id)","('$user','$ec_id')"); //Print alert popup message print"_"; } } //-------------------------------------------------- //SEND CARD IF REDUCE STEP elseif($what=="sendcard_reduce"){ //Prevent Spammer $user_ip = get_global_var(remote_addr); $max_email_out_per_hour = get_global_var(cf_max_email_out_per_hour); $max_email_out_per_day = get_global_var(cf_max_email_out_per_day); $spam_message_hour = get_global_var(spam_message_hour); $spam_message_day = get_global_var(spam_message_day); $time_onehour_ago = $time_stamp_now - 3600 ; $time_oneday_ago = $time_stamp_now - 86400 ; if ($user == ""){ $spam_getcount_hour = get_dblistvalue("max_ecardsent","cs_id","cs_date_create > $time_onehour_ago and cs_sender_ip='$user_ip'"); $spam_getcount_day = get_dblistvalue("max_ecardsent","cs_id","cs_date_create > $time_oneday_ago and cs_sender_ip='$user_ip'"); } else{ $spam_getcount_hour = get_dblistvalue("max_ecardsent","cs_id","cs_date_create > $time_onehour_ago and cs_user_name_id='$user'"); $spam_getcount_day = get_dblistvalue("max_ecardsent","cs_id","cs_date_create > $time_oneday_ago and cs_user_name_id='$user'"); } $number_email_sent_hour = count($spam_getcount_hour); $number_email_sent_day = count($spam_getcount_day); if ($number_email_sent_hour > $max_email_out_per_hour){ $spam_message_hour =str_replace("%show_number%",$max_email_out_per_hour,$spam_message_hour); $spam_message_hour =str_replace("%show_numcard%",$number_email_sent_hour,$spam_message_hour); $error_msg .=$spam_message_hour . "
    \n"; } if ($max_email_out_per_day !=0 && $number_email_sent_day > $max_email_out_per_day){ $spam_message_day =str_replace("%show_number%",$max_email_out_per_day,$spam_message_day); $spam_message_day =str_replace("%show_numcard%",$number_email_sent_day,$spam_message_day); $error_msg .=$spam_message_day . "
    \n"; } //Check Friend Name + Email #1 if blank if(trim(strip_tags(get_global_var(prepare_list))) =="") $error_msg .=get_global_var(send_list_email_error_msg_missing_first_recipient) . "
    \n"; $array =explode("\n",$prepare_list); foreach($array as $val){ if($val !=""){ $info=split("\|",$val); $get_fname = $info[0]; $get_femail = $info[1]; $get_femail=trim($get_femail); $err=get_global_var(send_list_email_error_msg_invalid_email); $err=str_replace("%show_email%",$get_femail,$err); if(!valid_email($get_femail) && $get_femail !=""){ $error_msg .=$err . "
    \n"; } //Error message if email is inside black list $chk_bl = get_dbvalue("max_black_list","black_email","black_email='$get_femail' and black_active='1'"); if($chk_bl !=""){ $send_card_error_msg_BlackList_Email=str_replace("%show_email%",$get_femail,$send_card_error_msg_BlackList_Email); $error_msg .=$send_card_error_msg_BlackList_Email . "
    \n"; } } } //Check From Name + Email if blank if(trim(strip_tags(get_global_var(cs_from_name))) =="") $error_msg .=get_global_var(tellfriend_error_message_YourName_Blank) . "
    \n"; if(trim(strip_tags(get_global_var(cs_from_email))) =="") $error_msg .=get_global_var(tellfriend_error_message_YourEmail_Blank) . "
    \n"; if(trim(strip_tags(get_global_var(cs_from_email))) !="" && !valid_email(get_global_var(cs_from_email))) $error_msg .=get_global_var(feedback_error_message_Email_Invalid) . "
    \n"; //Check if date is in the past if($sendnow !="0"){ $time_input = mktime(0,0,0,$cs_send_month,$cs_send_mday,$cs_send_year); $cs_date_delete = $time_input + ($cf_card_expire_day * 86400); $mkzone = GMT_Time($time_input, (-1)) + 3600 * $time_zone; $mkzone_delete = GMT_Time($cs_date_delete, (-1)) + 3600 * $time_zone; if($cs_send_month != $today_mon || $cs_send_mday != $today_mday || $cs_send_year != $today_year){ if($time_input < get_global_var(time_stamp_now)) $error_msg .=get_global_var(send_card_error_msg_Time_Error) . "
    \n"; } } else{ $mkzone = $time_stamp_now_admin; $mkzone_delete = $time_stamp_now_admin + (86400 * $cf_card_expire_day); } if ($error_msg ==""){ //Save sender email to max_mail_list (Non member only) if($user_receive_newsletter == "1" ){ $chk_email =get_dbvalue("max_mail_list","list_id","list_email='$cs_from_email' and list_mgroup_id ='-1'"); if($chk_email =="") insert_data_to_db("max_mail_list","(list_mgroup_id,list_email)","('-1','$cs_from_email')"); } if($user_receive_offer == "1" ){ $chk_email =get_dbvalue("max_mail_list","list_id","list_email='$cs_from_email' and list_mgroup_id ='-2'"); if($chk_email =="") insert_data_to_db("max_mail_list","(list_mgroup_id,list_email)","('-2','$cs_from_email')"); } //Create & insert card id to table max_ecardsent & Send mail now or later set_global_var("cs_date_send",$mkzone); set_global_var("cs_date_delete",$mkzone_delete); if ($user != "") set_global_var("cs_lang",$row_user[user_lang]); set_global_var("cs_user_name_id",$user); set_global_var("cs_ec_id",$ec_id); set_global_var("cs_sender_ip",$http_vars[remote_addr]); set_global_var("cs_date_create",$time_stamp_now); set_global_var("cs_date_create_server_time",$time_stamp_now_admin); $chk_num_card=0; foreach($array as $val){ if($val !=""){ $info=split("\|",$val); $get_fname = $info[0]; $get_femail = $info[1]; $get_femail=trim($get_femail); if(valid_email($get_femail) && $get_femail !=""){ $chk_num_card++; $list_sent_ok .="$get_femail :: $get_fname
    "; //Create card $cs_id = substr(md5(uniqid(rand(),1)), 0, 15); set_global_var("cs_id",$cs_id); set_global_var("cs_fmail",$get_femail); set_global_var("cs_fname",$get_fname); //Auto insert Recipient Name + Email to address book if($user !="" && $save_email== 1){ //Check if email already there $chk_femail =get_dbvalue("max_addressbook","book_email","book_email='$get_femail' and book_user_name_id='$user'"); if($chk_femail == ""){ $get_fname_info = split(" ",$get_fname); $book_fname =$get_fname_info[0]; $book_lname =$get_fname_info[1]; insert_data_to_db("max_addressbook","(book_fname,book_lname,book_email,book_user_name_id)","('$book_fname','$book_lname','$get_femail','$user')"); } } //Send card if user pick today date if($sendnow== "0" || $cs_send_month==$today_mon && $cs_send_mday==$today_mday && $cs_send_year==$today_year){ set_global_var("cs_sent","1"); $http_vars=get_global_var(http_vars); insert_data_to_db_submit($http_vars,"cs_","max_ecardsent"); //send_email($from_name,$from_email,$to,$email_subject,$email_msg) $send_notify_pickup_email_message =str_replace("%show_friend_name%",$get_fname,$send_notify_pickup_email_message); $send_notify_pickup_email_message =str_replace("%show_from_name%",$cs_from_name,$send_notify_pickup_email_message); $send_notify_pickup_email_message =str_replace("%show_id%",$cs_id,$send_notify_pickup_email_message); $send_notify_pickup_email_subject =str_replace("%show_name%",$cs_from_name,$send_notify_pickup_email_subject); if($cf_show_from_email ==0){//Show sender's name and Sender's email in eMail From field send_email(stripslashes($cs_from_name),$cs_from_email,$get_femail,$send_notify_pickup_email_subject,$send_notify_pickup_email_message); } else{ send_email(stripslashes($cf_site_title),$cf_site_from_email,$get_femail,$send_notify_pickup_email_subject,$send_notify_pickup_email_message); } } else{ set_global_var("cs_sent","0"); $http_vars=get_global_var(http_vars); insert_data_to_db_submit($http_vars,"cs_","max_ecardsent"); $chk=1; } } } } //Update max_ecard - ec_time_used $row_ecard =get_row("max_ecard","*","ec_id='$ec_id'"); $get_oldvalue = $row_ecard[ec_time_used]; $get_oldvalue = $get_oldvalue + $chk_num_card; update_field_in_db("max_ecard","ec_time_used",$get_oldvalue,"ec_id='$ec_id' LIMIT 1"); //Update Grabber ec_time so cron job can auto delete if($row_ecard[ec_user_name_id] =="?") update_field_in_db("max_ecard","ec_time",$mkzone_delete,"ec_id='$ec_id' LIMIT 1"); //Update table max_ecuser - user_total_card_sent if($user != ""){ $get_oldvalue =get_dbvalue("max_ecuser","user_total_cardsent","user_name_id='$user'"); $get_oldvalue = $get_oldvalue + $chk_num_card; update_field_in_db("max_ecuser","user_total_cardsent",$get_oldvalue,"user_name_id='$user' LIMIT 1"); } //Update total cards have been created $get_oldvalue =get_dbvalue("max_config","config_value","config_name='cf_total_cardsent'"); $get_oldvalue = $get_oldvalue + $chk_num_card; update_field_in_db("max_config","config_value",$get_oldvalue,"config_name='cf_total_cardsent' LIMIT 1"); //Go to thank you page set_global_var("list_sent_ok",stripslashes($list_sent_ok)); if($cs_notify != 1) $txt_card_send_ifnotify=""; if($chk != 1){ $sendcard_Thankyou_Message =str_replace("%show_name%",stripslashes($cs_from_name),$sendcard_Thankyou_Message_now); } else{ $sendcard_Thankyou_Message =str_replace("%show_name%",stripslashes($cs_from_name),$sendcard_Thankyou_Message_later); $sendcard_Thankyou_Message =str_replace("%show_date%",date_format($time_input,"1"),$sendcard_Thankyou_Message); } set_global_var("show_sendcard_complete",get_html_from_layout("templates/$cf_set_template/show_sendcard_thankyou.html")); show_homepage(); exit; } else{ set_global_var("error_msg","