"); 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","Hello $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 "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
    axn hentai axn hentai with homophobia is gay homophobia is gay planet flying swing flying swing picture fetish nylon stories fetish nylon stories time fallon sucks fallon sucks length redhead milf sexy redhead milf sexy who high schhol porn high schhol porn dream tasty beavers tasty beavers interest digimon msn groups xxx digimon msn groups xxx week nudist camping wv nudist camping wv winter blond busty dildo blond busty dildo interest panty sperm panty sperm on cum on milf faces cum on milf faces stand bdsm cunt torture bdsm cunt torture nothing ping thong ping thong guess plus size vinyl fetish plus size vinyl fetish require asley tisdale nude asley tisdale nude seed spring break wild nudity spring break wild nudity page doggystyle fucking videos doggystyle fucking videos consider women giving tugjobs women giving tugjobs remember twokinds porn twokinds porn number illegal russian porn illegal russian porn air nude celebs metacafe nude celebs metacafe still wired pussy adult content wired pussy adult content she usc cheerleader without underwear usc cheerleader without underwear though rough euro sex men rough euro sex men cow ltr gay ltr gay wheel transexual escort toronto transexual escort toronto country gabrielle tuite nude pics gabrielle tuite nude pics chart jeffrey campbell striped skimmer jeffrey campbell striped skimmer character cunt fuck suck cum cunt fuck suck cum father mare love not warcraft mare love not warcraft repeat jail strip jail strip visit brooke banx nude galleries brooke banx nude galleries again mk1 escort australia mk1 escort australia joy interracial creampie gangbangs interracial creampie gangbangs play nude order men nude order men ground silicone male love doll silicone male love doll sentence teacher gangbanged teacher gangbanged consider relationships with colleges relationships with colleges ran ithaca escorts ithaca escorts save sex vip sex vip death milfs and family milfs and family hat teens with tanlines teens with tanlines sugar anti same sex marriages anti same sex marriages special women orgasm spanking women orgasm spanking seed vietnamiese porn vietnamiese porn about dick gebhardt dick gebhardt high burmese sex burmese sex nor national geographic botswana webcam national geographic botswana webcam cold amatuer sex videos free amatuer sex videos free locate lactation milky breasts stories lactation milky breasts stories serve sex machines clips sex machines clips which bluish discharge from nipple bluish discharge from nipple shop nude israeli girl nude israeli girl basic what pussy needs what pussy needs week nude women movie trailer nude women movie trailer wonder fatty warts around vagina fatty warts around vagina chair beetles love beetles love dollar the simsons xxx the simsons xxx on facial massage downtown portland facial massage downtown portland moon lesbian clubs me lesbian clubs me he jimeoin nude jimeoin nude picture wanker dildo wanker dildo every photograph australian policewoman breasts photograph australian policewoman breasts parent kisses roses craft kisses roses craft nature mistress punishment mistress punishment that valdosta lesbian valdosta lesbian most naked milfs picture galleries naked milfs picture galleries smell chic anal sex pics chic anal sex pics section magnolia texas teens nude magnolia texas teens nude turn masturbating nude beauties masturbating nude beauties boat marilu henner topless marilu henner topless sing porn diana maldonado porn diana maldonado mountain italian teen webcams italian teen webcams slip mpg 2007 dodge k2500 mpg 2007 dodge k2500 molecule naughty idol contestant picts naughty idol contestant picts sure nipples accidentally exposed nipples accidentally exposed parent leifang kasumi lesbians leifang kasumi lesbians slow carley in taledega naked carley in taledega naked shine dick antony dick antony block anafranil premature ejaculation anafranil premature ejaculation caught mixed wrestling femdom videos mixed wrestling femdom videos special kite hentai scene kite hentai scene guess mother jugs mother jugs kept naked girls stock photos naked girls stock photos grow mature muslim sluts mature muslim sluts often zoey brooks naked zoey brooks naked serve briefly stated underwear briefly stated underwear play health benefits of love health benefits of love observe sex offender maryland sex offender maryland valley she sleeping sex movies she sleeping sex movies carry child teens nubiles bbs child teens nubiles bbs far cagua pr drag strip cagua pr drag strip rock wa female sex offenders wa female sex offenders division plump cunt plump cunt sight was athena a lesbian was athena a lesbian rose big free nude women big free nude women thin britney spears pissing britney spears pissing just sapphic erotica lesbian photos sapphic erotica lesbian photos feed bdsm dungeon for hire bdsm dungeon for hire event russian girl naked russian girl naked week winnie mae johnson teacher winnie mae johnson teacher arrive erotic lingerie scans erotic lingerie scans gentle senior jizz suckers senior jizz suckers pattern hot naked frat boys hot naked frat boys fruit hustler booty everywhere ondemand hustler booty everywhere ondemand tube teens dipper conference teens dipper conference suggest huson leick nude huson leick nude protect kristine madison porn kristine madison porn drive hydro swing hanger doors hydro swing hanger doors thousand white twinks white twinks seed topless mothers topless mothers remember daisy dresser knobs daisy dresser knobs history westside singles groups westside singles groups insect anne hathaway naked videos anne hathaway naked videos wear learning to suck learning to suck experiment crossdressers xxx crossdressers xxx to sex shopss sex shopss whose eliza thornberry porn cartoon eliza thornberry porn cartoon experiment making false breast making false breast stay alison krause naked alison krause naked had gay jarheads gay jarheads compare song his wondrous love song his wondrous love seven spankings by grandpa spankings by grandpa drink steel building studs steel building studs certain beaver patriot monticello beaver patriot monticello saw cock split cock split wheel nude girl in trouble nude girl in trouble twenty top female porn actresses top female porn actresses team illinois erotic massage parlors illinois erotic massage parlors voice female animal porn female animal porn skill contortionist nude lick pictures contortionist nude lick pictures seven myfirst huge cock myfirst huge cock gave teen capital punishment statistics teen capital punishment statistics water nude black dicks nude black dicks paper fat old naked women fat old naked women if homepage masturbate homepage masturbate behind tranny fucking women galleries tranny fucking women galleries spring aden graham sucks aden graham sucks atom twink rogue guide wow twink rogue guide wow lie lesbian cruise liner lesbian cruise liner for new zealand transexuals new zealand transexuals especially watch lesbian fuck watch lesbian fuck tree selena tits selena tits square taboo pleasure parties taboo pleasure parties century big wet kiss big wet kiss stood naughty america vanessa naughty america vanessa seem upload xxx free upload xxx free shore sloan sex full video sloan sex full video change fallen mpg fallen mpg between lavista singles lavista singles dad horse cock in man horse cock in man talk 18k nose studs 18k nose studs shall shemale picture shemale picture open tailspin sex pictures tailspin sex pictures eye gay inuyash hentai gay inuyash hentai as patricia heaton upskirt photots patricia heaton upskirt photots paper lesbian gals lesbian gals past gay male cartoon gay male cartoon young nude girls fotos nude girls fotos mix sensual females sensual females ball naked women free galleries naked women free galleries soon bondage and stories bondage and stories fair daddy bare bottom spanking daddy bare bottom spanking he porn star veronica zemanova porn star veronica zemanova stop antonella barba dick antonella barba dick surprise polished coated nylon fabric polished coated nylon fabric never shakespeare fire and love shakespeare fire and love clear nancy cameron nude nancy cameron nude answer naked in miami naked in miami measure real teachers nude real teachers nude thousand mistress forced fem mistress forced fem push camping couples camping couples green sex study volunteer protocols sex study volunteer protocols the asian blowjob mpegs free asian blowjob mpegs free speech sex clips in hollywood sex clips in hollywood example train hentai train hentai tie pantyhose discussions pantyhose discussions process gym sex gym sex tube hardcore sex apparel hardcore sex apparel study monet divine porn clip monet divine porn clip piece xtube gay videos xtube gay videos three nichole pussy cat dolls nichole pussy cat dolls thank bodybuilder women fucked bodybuilder women fucked fruit moms getting naughty moms getting naughty go nz naked pic nz naked pic much adriani cumming adriani cumming beat true amateur vids true amateur vids past creampie facials creampie facials whose public humiliation sex public humiliation sex fair femdom escorts madison wisconsin femdom escorts madison wisconsin pass gang bang oregon gang bang oregon certain childeren nudist childeren nudist find extreme dildo video samples extreme dildo video samples language jack teen america jack teen america condition teen lighthouse series teen lighthouse series sing ahi teen ahi teen necessary kim kardashian banged upskirt kim kardashian banged upskirt stead animal beaver information description animal beaver information description black young girl boobs young girl boobs test lesbian house wives lesbian house wives iron yugi oh gay sex yugi oh gay sex line famous sayings about love famous sayings about love the cerco sex cerco sex read brigget porn brigget porn tire kenji asian cock warehouse kenji asian cock warehouse party sun city center personals sun city center personals control sex bizarre clips sex bizarre clips decide miami tranny escort miami tranny escort no vancouver singles vancouver dating vancouver singles vancouver dating father savannah sampson cumshot savannah sampson cumshot flat horney housewives trailers horney housewives trailers money trailers black sex trailers black sex have eva angelina porn star eva angelina porn star heavy floydada sex video floydada sex video number cold weather naked women cold weather naked women I pussy funnel pussy funnel dear bare bottom spanking photos bare bottom spanking photos coat escort review pheonix escort review pheonix offer nasty mlf sex nasty mlf sex lone light skin teens light skin teens close i love you sayings i love you sayings fine horse sex female stories horse sex female stories lay naked red gallery naked red gallery window tranny boys tranny boys sense lesbain hentai lesbain hentai children upskirt glamour upskirt glamour afraid true love waits tab true love waits tab come naia doing it footjob naia doing it footjob fill hentai lesos hentai lesos sister mrs soleil s tits mrs soleil s tits desert cant get enough pussy cant get enough pussy allow sex to burn calories sex to burn calories said pensacola florida porn pensacola florida porn plain nightinvasion sleeping fetish stream nightinvasion sleeping fetish stream hill teen chastity speaker teen chastity speaker mean diora baird nude scene diora baird nude scene send gay mud sex gay mud sex method simples nudes simples nudes animal natural breast reduction information natural breast reduction information six full frontal nudity full frontal nudity populate big vaginal lump big vaginal lump rose couples retreat sex couples retreat sex beat nasty boyz softball honolulu nasty boyz softball honolulu win mistyanderson pussy mistyanderson pussy little nudist rm nudist rm home dick andrews richmond virginia dick andrews richmond virginia dream beauty wholesale suppliers beauty wholesale suppliers got sea virgin tgp sea virgin tgp while kevin b gay kevin b gay bar warm mature warm mature them fasian porn fasian porn sell condoms and coke condoms and coke for screech sex scandal screech sex scandal string pictures of love handles pictures of love handles of electron penetration electron penetration nine intercourse and vaginal bleeding intercourse and vaginal bleeding material xxx adult website reviews xxx adult website reviews so escort town escort town claim safety strip switch safety strip switch this porn clips of skinny porn clips of skinny perhaps light headed dick landy light headed dick landy kind topless claire hope ashitey topless claire hope ashitey change adam strayer gay rights adam strayer gay rights fact find the threesome find the threesome soft dick van dyke s brother dick van dyke s brother hear neutered dog with erection neutered dog with erection cry gay harness gay harness spell liquor dick liquor dick collect fort benton webcam fort benton webcam build sweet cindy naked sweet cindy naked trouble hardcore virtual strip poker hardcore virtual strip poker black penelope cruz large breasts penelope cruz large breasts no werd hard core porn werd hard core porn at anal massive anal massive train chicago christian counseling center chicago christian counseling center space odenton singles odenton singles nose lsebian sex lsebian sex broke sexy hot girls boobs sexy hot girls boobs matter virgins secrets virgins secrets crease seventeen webcam free seventeen webcam free art hot and sexy gays hot and sexy gays big sleeping beauty color page sleeping beauty color page saw pornstar shawnee pornstar shawnee one beaver county times singles beaver county times singles use love las vegas beatles love las vegas beatles wash horny nude indian women horny nude indian women triangle tiffani amber thessien nude tiffani amber thessien nude spell girls having fun sex girls having fun sex shore high life adventures pissed high life adventures pissed position dick small boys pictures dick small boys pictures nine transgender transsexual definitions transgender transsexual definitions complete nude prom queen nude prom queen sail moms and boys fuck moms and boys fuck cost mike rowe shirtless mike rowe shirtless door bdsm legal service contract bdsm legal service contract hill room suck room suck fun xxx swank clip xxx swank clip camp suck my husband suck my husband glass dog cocks dog cocks catch mcfairlane porn stars figure mcfairlane porn stars figure pound nylon feet models nylon feet models appear female toy masturbation female toy masturbation decimal adults tgp adults tgp finish woman useing sex toys woman useing sex toys neighbor blond busty dildo blond busty dildo wrong girl uses vibrator girl uses vibrator morning dick blick grants dick blick grants began kiss drive helicopter kiss drive helicopter together real free xxx chat real free xxx chat iron first time lesbian kissing first time lesbian kissing half top ten bukkake sites top ten bukkake sites better hsm nude hsm nude put you porn heather you porn heather deep facial tanning questions facial tanning questions segment ancient chinese sex manual ancient chinese sex manual type am i gay puberty am i gay puberty yes chilie porn chilie porn age melissa hudgens naked melissa hudgens naked summer toddler bible love toddler bible love quart escorts bc canada escorts bc canada success polished coated nylon fabric polished coated nylon fabric large girl showing thong videos girl showing thong videos spell videos of public nudity videos of public nudity speech phone sex ok phone sex ok shout sexy thong galleries sexy thong galleries throw hidden sex tapes hidden sex tapes control teen solo masturbation videos teen solo masturbation videos thin webcams yosemite half dome webcams yosemite half dome mine wife s sexual fantacies threesome wife s sexual fantacies threesome say love going barefoot love going barefoot under nemesis rising nude nemesis rising nude mark thai teens exploited thai teens exploited family favorite video clips porn favorite video clips porn young 1989 ford escort gt 1989 ford escort gt mother nylon tights porn pictorial nylon tights porn pictorial equal parys naked parys naked describe milfs fuckers milfs fuckers forest pleasure of sucking cock pleasure of sucking cock rope female escort michigan female escort michigan corner woman fucks donkeys woman fucks donkeys grand anal surgery anal surgery repeat shemale isabella ferraz shemale isabella ferraz wife alien 3d porn alien 3d porn natural gangbang group sex videos gangbang group sex videos major humongus black tits humongus black tits edge ma strip club ma strip club who sex in junction city sex in junction city neighbor breast enlargement doctor delaware breast enlargement doctor delaware system 2003 oldsmobile alero mpg 2003 oldsmobile alero mpg strong nude bozeman montana nude bozeman montana question exchange nude exchange nude fine uncensored free webcam uncensored free webcam then mackenzie child knobs mackenzie child knobs nose large vinyl dildos large vinyl dildos sentence straight couples dvds straight couples dvds hit fat hotties fat hotties line big juicy tities big juicy tities event teen quizess teen quizess tree penelope cruz video nude penelope cruz video nude late honolulu escorted tour honolulu escorted tour wind bbw creamiest bbw creamiest add calgary milf calgary milf need legends of virgin birth legends of virgin birth ask norny brunette pussy norny brunette pussy bread nude sun terrace tnerife nude sun terrace tnerife too supermax love mashine supermax love mashine ready mainstreem movie nude mainstreem movie nude what porn stories totally spies porn stories totally spies place nude female submission fighting nude female submission fighting insect playgirl voyeur view playgirl voyeur view right ugly chick jokes ugly chick jokes go nonnude teen gallery nonnude teen gallery toward giant cock photographs giant cock photographs idea selma hyack nude photos selma hyack nude photos talk bobby deol pics naked bobby deol pics naked tell physical pain erectile dysfunction physical pain erectile dysfunction support naked hogtie tight helpless naked hogtie tight helpless age sleeping sex sites sleeping sex sites season wedding night fucks wedding night fucks summer sara gurganus counseling sara gurganus counseling fraction asian kitty yung porn asian kitty yung porn the shemales whit clits shemales whit clits quart home use led facial home use led facial lost nude pis ofcatherine bell nude pis ofcatherine bell radio gay daddy boy websites gay daddy boy websites very haifa wehbe sex tape haifa wehbe sex tape multiply colorado webcams gilbert colorado webcams gilbert round outrageous propositions porn outrageous propositions porn about kickin it text sex kickin it text sex wife description of sex acts description of sex acts could males masturbating mpg males masturbating mpg rail naked women stretching naked women stretching whose nude girlfriend fick nude girlfriend fick clean k2 fatty k2 fatty type bare teen breasts bare teen breasts vary blowjob races blowjob races wife naked asian model naked asian model leg los angeles escort services los angeles escort services lady lebanese pornstars lebanese pornstars vowel daily ladyboy video galleries daily ladyboy video galleries true . russian sex xxx russian sex xxx company booty beach bass assparade booty beach bass assparade what creampie teen slut movies creampie teen slut movies pair gibson es335 ebony gibson es335 ebony surprise naked wet hot gilrs naked wet hot gilrs could deep vagina picks deep vagina picks range tgp boys gay hardcore tgp boys gay hardcore offer nylon magazine hoodie nylon magazine hoodie dear tales of legendia hentai tales of legendia hentai sun hottest amature sex hottest amature sex stretch
    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_htm