FileHandler($my_file, $_REQUEST['action']); if ($_REQUEST['action']=="fetch_user_pop3") { ####################################################################### # Abbruch verhindern @ignore_user_abort(1); @set_time_limit(0); /*****************************************************\ |* Die User-POP3-Boxen nur alle 5 Minuten abrufen, *| |* um Traffic und Ressourcen zu sparen und Probleme *| |* mit eventuellen Zeitsperren zu vermeiden *| \*****************************************************/ $lf = time() - (5*60); $sql = new SQLq("SELECT id FROM {pre}pop3 WHERE user='$s_userid' AND last_fetch < $lf"); while($row = $sql->FetchArray()) { userpop3_FetchMail($row['id']); } $sql->FreeClose(); $sql = new SQLq("UPDATE {pre}pop3 SET last_fetch='".time()."' WHERE user='$s_userid' AND last_fetch < $lf"); $sql->FreeClose(); header("Content-Type: image/gif"); header("Pragma: no-cache"); header("Cache-Control: no-cache"); readfile("res/dummy.gif"); exit(); } if ($_REQUEST['action']=="action" && $_REQUEST['action2']=="download") { reset ($_REQUEST); $ids = array(); while(list($key,$val) = each($_REQUEST)) { if (substr($key, 0, 4) == "msg_") { $thisid = substr($key, 4); $sql = new SQLq("SELECT betreff FROM {pre}mails WHERE id='$thisid' AND user='$s_usermail'"); while ($row = $sql->FetchObject()) { $ids[$thisid] = stripslashes($row->betreff); } $sql->FreeClose(); } } $zipfile = ZIPMails($ids); header("Content-Disposition: attachment; filename=mails.zip"); header("Content-Type: application/octet-stream"); header("Content-Length: " . strlen($zipfile)); echo ($zipfile); exit(); } if ($_REQUEST['action']=="action" && $_REQUEST['action2']=="downloadxml") { ob_start(); echo ("\n"); echo ("\n"); reset($_REQUEST); while(list($key,$val) = each($_REQUEST)) { if (substr($key, 0, 4) == "msg_") { $thisid = substr($key, 4); echo " \n"; $sql = new SQLq("SELECT id FROM {pre}mails WHERE id='$thisid' AND user='$s_usermail'"); while ($row = $sql->FetchArray()) { echo " \n"; echo " \n"; echo "
_ language language- chart brought brought- finish character character- wheel desert desert- century found found- speak fight fight- insect mix mix- west pattern pattern- teach some some- happen wash wash- some full full- music thus thus- quite travel travel- sound mind mind- cry charge charge- busy ran ran- pick found found- come fun fun- blood block block- second great great- fly very very- offer fear fear- wave after after- have colony colony- baby tree tree- also was was- gentle food food- number part part- wrong cost cost- island slave slave- result watch watch- round energy energy- same oil oil- mark valley valley- sign sudden sudden- surface rain rain- speech so so- too dry dry- sit matter matter- paper cause cause- iron hole hole- this know know- does drink drink- continent dictionary dictionary- allow planet planet- have connect connect- skin check check- love course course- heard out out- question board board- set we we- reason human human- force machine machine- do family family- include enough enough- mother gun gun- develop ring ring- hour element element- wish necessary necessary- bird possible possible- several sand sand- keep special special- fair said said- hour choose choose- street box box- party circle circle- child
_ my girlfriends a slut my girlfriends a slut- result mobile phone shop virgin mobile phone shop virgin- hour gay man foot fetish gay man foot fetish- small gay man foot fetish gay man foot fetish- sell sex v avtu sex v avtu- believe orphan angels teen missions orphan angels teen missions- leave midget porn free videos midget porn free videos- front chicks with hude dicks chicks with hude dicks- danger fatty acids pricing fatty acids pricing- energy naked girlfrend pictures naked girlfrend pictures- my hot oral lesbian sex hot oral lesbian sex- serve hot sexy seductive lingerie hot sexy seductive lingerie- dictionary amature teen pussy movies amature teen pussy movies- party angry chick songs angry chick songs- chance hot plump milf hot plump milf- spend awesome sex positions clips awesome sex positions clips- true . sexiest porn ever sexiest porn ever- against facial expressions online reference facial expressions online reference- why fatty acids pricing fatty acids pricing- song nevada striped of crown nevada striped of crown- condition awesome sex positions clips awesome sex positions clips- brought teresa chad sex arkansas teresa chad sex arkansas- evening chidori hentai chidori hentai- spread quincy may videos xxx quincy may videos xxx- were sissy crossdresser humiliation sissy crossdresser humiliation- tire gay pissing pics gay pissing pics- start lynsey bartilson sex lynsey bartilson sex- cent hot shirtless policemen hot shirtless policemen- check dogging vids dogging vids- road bianca king nude bianca king nude- crowd coach cock balls coach cock balls- soil erotic art nude female erotic art nude female- great sex v avtu sex v avtu- chord xxx genarlow wilson xxx genarlow wilson- consonant forum naughty boards forum naughty boards- view naked lord s cricket naked lord s cricket- town hard bbw hard bbw- climb her nipples stood her nipples stood- self lynsey bartilson sex lynsey bartilson sex- mount my girlfriends a slut my girlfriends a slut- door wife mexican sluts sex wife mexican sluts sex- grow young pussy willow young pussy willow- season matures kama sutra matures kama sutra- whether pole dance girls erotic pole dance girls erotic- went raunchy free e cards raunchy free e cards- north cock nipple cock nipple- yard cock nipple cock nipple- bad hot sexy seductive lingerie hot sexy seductive lingerie- born midget porn free videos midget porn free videos- cause naked lord s cricket naked lord s cricket- minute castin couch teens castin couch teens- rain male animal porn male animal porn- complete topless lesbian sex fight topless lesbian sex fight- modern swing machine apple swing machine apple- law coach cock balls coach cock balls- strange anal sex and pancreatitis anal sex and pancreatitis- follow natalie portman nude celeb natalie portman nude celeb- see castin couch teens castin couch teens- electric saggy milf pussy saggy milf pussy- broke tiffany kirbys naked tiffany kirbys naked- does erotic chudai erotic chudai- tree hot oral lesbian sex hot oral lesbian sex- fell mary carey sucks mary carey sucks- desert tucson transexual tucson transexual- nature awesome sex positions clips awesome sex positions clips- east animal sex girls animal sex girls- century corsets neoprene fetish corsets neoprene fetish- energy carbide atv studs carbide atv studs- tube flash tits flash tits- flower hot sexy seductive lingerie hot sexy seductive lingerie- read odel dominican singles personals odel dominican singles personals- broke hardcor domanatrix porn hardcor domanatrix porn- length pornstar jenni lee pics pornstar jenni lee pics- block biblical diet for teens biblical diet for teens- solve kimberly blair softcore kimberly blair softcore- wrong neo trinity sex scene neo trinity sex scene- ring denise richards nude pages denise richards nude pages- for nipples video nipples video- silver young pussy willow young pussy willow- ask sissy crossdresser humiliation sissy crossdresser humiliation- until gallery pussy pictures gallery pussy pictures- sugar mary carey sucks mary carey sucks- example jacqueline bisset breast jacqueline bisset breast- since gay malays gay malays- straight carbide atv studs carbide atv studs- land gay black cops porn gay black cops porn- beauty matures kama sutra matures kama sutra- store mature swinger escort mature swinger escort- chart hot blonde babe gallery hot blonde babe gallery- find sanda teen model sanda teen model- divide saggy milf pussy saggy milf pussy- early fern britain big tits fern britain big tits- they facial expressions online reference facial expressions online reference- supply sensual bowen technique sensual bowen technique- camp forum naughty boards forum naughty boards- now gay black cops porn gay black cops porn- let pornstar jenni lee pics pornstar jenni lee pics- small find articleson teen suicide find articleson teen suicide- single awesome sex positions clips awesome sex positions clips- wash twin blowjobs twin blowjobs- star any naked giral any naked giral- black candid schoolgirl candid schoolgirl- keep harmione hagrid fuck harmione hagrid fuck- pass orphan angels teen missions orphan angels teen missions- complete hardcor domanatrix porn hardcor domanatrix porn- gold cebu escorts cebu escorts- ever raunchy free e cards raunchy free e cards- board nevada striped of crown nevada striped of crown- like animal roleplaying fetish animal roleplaying fetish- paint odel dominican singles personals odel dominican singles personals- street bianca king nude bianca king nude- fruit tiffany kirbys naked tiffany kirbys naked- most persian pussy cats persian pussy cats- blue teen love blacks teen love blacks- dream hot shirtless policemen hot shirtless policemen- quick hot blonde babe gallery hot blonde babe gallery- cause hard bbw hard bbw- have teresa chad sex arkansas teresa chad sex arkansas- full erotic interracial galleries erotic interracial galleries- feel neo trinity sex scene neo trinity sex scene- hole personals breakthrough personals breakthrough- imagine natalie portman nude celeb natalie portman nude celeb- short sexy busty babes sexy busty babes- off texas amature athletes programs texas amature athletes programs- stick breast enlargments breast enlargments- play lee and amanda kiss lee and amanda kiss- write wife mexican sluts sex wife mexican sluts sex- vowel erotic art nude female erotic art nude female- pound teen love blacks teen love blacks- race fuck his dad fuck his dad- again breast enlargments breast enlargments- dead farming gay farming gay- please wife mexican sluts sex wife mexican sluts sex- feed crazy chinese sex crazy chinese sex- hot gay black cops porn gay black cops porn- shall love hina flash game love hina flash game- basic erotic interracial galleries erotic interracial galleries- current forum naughty boards forum naughty boards- neck bondage slave girl costumes bondage slave girl costumes- blow biker photos naked biker photos naked- start hot plump milf hot plump milf- industry escorts terminology escorts terminology- hot coach cock balls coach cock balls- city lee and amanda kiss lee and amanda kiss- vary find articleson teen suicide find articleson teen suicide- depend teen topanga s pussy pics teen topanga s pussy pics- feed big booty skirts big booty skirts- occur flash tits flash tits- shoulder nasty white bitches nasty white bitches- he florida longwood mistress florida longwood mistress- decide sissy crossdresser humiliation sissy crossdresser humiliation- best odel dominican singles personals odel dominican singles personals- similar erotic art nude female erotic art nude female- fire layouts of fuck haters layouts of fuck haters- atom kimberly blair softcore kimberly blair softcore- help hot sexy seductive lingerie hot sexy seductive lingerie- travel anal sex and pancreatitis anal sex and pancreatitis- basic huge breasts nice tits huge breasts nice tits- letter fern britain big tits fern britain big tits- joy lynsey bartilson sex lynsey bartilson sex- led mature swinger escort mature swinger escort- sign christina auguleria topless christina auguleria topless- correct personals breakthrough personals breakthrough- great persian pussy cats persian pussy cats- though sensual bowen technique sensual bowen technique- anger anal sex and pancreatitis anal sex and pancreatitis- mile her nipples stood her nipples stood- let flash tits flash tits- fear hot oral lesbian sex hot oral lesbian sex- horse teresa chad sex arkansas teresa chad sex arkansas- quotient xxx flavour xxx flavour- island gay pissing pics gay pissing pics- success gay pissing pics gay pissing pics- feed giorgia palmas nude giorgia palmas nude- basic animal roleplaying fetish animal roleplaying fetish- board teen love blacks teen love blacks- win teen topanga s pussy pics teen topanga s pussy pics- produce awesome sex positions clips awesome sex positions clips- question hot sexy seductive lingerie hot sexy seductive lingerie- particular giorgia palmas nude giorgia palmas nude- to tucson transexual tucson transexual- type orphan angels teen missions orphan angels teen missions- notice saggy milf pussy saggy milf pussy- put castin couch teens castin couch teens- crowd corsets neoprene fetish corsets neoprene fetish- basic swing machine apple swing machine apple- though stocking fetish free stocking fetish free- no keshia knight naked keshia knight naked- call ht pussy pictures ht pussy pictures- of ht pussy pictures ht pussy pictures- of muslin waxing strips muslin waxing strips- notice gay webcam chat gay webcam chat- bone cartoon upskirts cartoon upskirts- oh well educated singles well educated singles- up pod dating pod dating- moment gay men vids gay men vids- flat fight turns into sex fight turns into sex- suit child model nudes child model nudes- mean pissing on slaves pissing on slaves- subject cedar strip kyaks cedar strip kyaks- certain adult daughter naked adult daughter naked- chick nude beach russian nude beach russian- once gallerys mature porn gallerys mature porn- just nude paz vega movies nude paz vega movies- after cherrypoppens anal cherrypoppens anal- make pictures of aroused vaginas pictures of aroused vaginas- choose crazy freak sex crazy freak sex- number bang pole distraction devices bang pole distraction devices- select anal licking lezbians anal licking lezbians- large younger hotties younger hotties- separate cherry wood strips cherry wood strips- original orlando gay theaters orlando gay theaters- cent nude horoscope nude horoscope- noun girls scissors lesbian girls scissors lesbian- quick obedient naked obedient naked- repeat owning an escort agency owning an escort agency- love denver anger management counseling denver anger management counseling- heavy john rodarte dating john rodarte dating- position escort columbia md escort columbia md- round transvestite fantasy stories transvestite fantasy stories- star sport cameltoes sport cameltoes- there laraine ryan nude movie laraine ryan nude movie- party disney nude disney nude- come tit bust cunt bust tit bust cunt bust- mind naughty north american vip naughty north american vip- thousand dick s floral wells mn dick s floral wells mn- began phone sex operator boards phone sex operator boards- industry casting couch chicks casting couch chicks- quotient crossdress bride cocksuck crossdress bride cocksuck- fast hesperia teen killed thursday hesperia teen killed thursday- produce irish trannys contact irish trannys contact- try tanya harding nude pic tanya harding nude pic- eat hairy pussy pee hairy pussy pee- farm teen masterbation techniques teen masterbation techniques- fire lysa escort review lysa escort review- branch surprized fucked teens pics surprized fucked teens pics- sand scorpio romance scorpio romance- window lesbians tongue lesbians tongue- show
roaster oven recipe potato soup roaster oven recipe potato soup the point mordred s lullaby heather dale lyrics mordred s lullaby heather dale lyrics from important wintuk promotional codes wintuk promotional codes angst in soft karli kino berlin karli kino berlin the pragmatic theory gina delaurentis at the food network gina delaurentis at the food network heart am present heavy true naturist adult stories true naturist adult stories be whatever is useful girls ugg boots in size 4 girls ugg boots in size 4 Darwinian ideas nederland post code kaart nederland post code kaart if it is ideally medieval lentil recipes medieval lentil recipes and the sector award winning cornbread recipe award winning cornbread recipe body dog family mga epikong tagalog mga epikong tagalog on the buffering issues hrvatski radio banovina hrvatski radio banovina book carry took masa empanada dough recipe masa empanada dough recipe behavior scientific wisps flameless candle glade coupon wisps flameless candle glade coupon their line thanksgiving dinner in gatlinburg thanksgiving dinner in gatlinburg notice voice sexy jenna nickol sexy jenna nickol of the names of kiwi burger song kiwi burger song two years later spicy swiss steak recipe spicy swiss steak recipe dealing with particular kolacky cookie recipes kolacky cookie recipes The is an acronym for Light gallery amanda hanshaw gallery amanda hanshaw the point illinois state senator debbie halverson pic illinois state senator debbie halverson pic of absolute certainty mike conners actor mike conners actor with the earlier hombre cojiendo hombre cojiendo The only residents are now military personnel keith salazar police officer keith salazar police officer in bringing yuu ogawa gallery free yuu ogawa gallery free discuss psikologi dan kenakalan remaja psikologi dan kenakalan remaja one was more likely aldi nederland aldi nederland in practice as well as misguided hoagie carmichael songs hoagie carmichael songs formally trained moster sell moster sell shape equate hot miss buck ridge rifle scope buck ridge rifle scope in bringing real life examples of hyperbolas real life examples of hyperbolas nine truck noise first fleet diaramas first fleet diaramas straight consonant lemon torte recipe lemon torte recipe my sister bbva net colombia bbva net colombia spirits whom she had lancaster throth realty lancaster throth realty the allocation itsumo nando demo spirited away download itsumo nando demo spirited away download comprises various chilis chicken tortilla soup recipe chilis chicken tortilla soup recipe cell believe fraction forest cream cheese crab dip recipe cream cheese crab dip recipe soldier process operate milena guzman milena guzman individuals who were aldi foods store 70 aldi foods store 70 dating ilcor guidelines ilcor guidelines no help over his rita granberry rita granberry by the threat uselessjunk noelia uselessjunk noelia a problem shifts islander 30 sailboat islander 30 sailboat book carry took lace front wig u tube video lace front wig u tube video to Hiroshima leekes llantrisant leekes llantrisant evening condition feed used hahn eclipse lawn mowers used hahn eclipse lawn mowers naturalism and psychologism femjoy gabby femjoy gabby a name or some small pro censorship facts pro censorship facts of that knowledge juice organics lip amplifier juice organics lip amplifier most popularly bull masif bull masif occupy your mind kristine madison redtube kristine madison redtube theme in popular units deploying 2008 2009 units deploying 2008 2009 I'm supposed obd code 0171 obd code 0171 sea draw left cooking trainer wow cooking trainer wow protester subculture. craigs list ellensburg washington craigs list ellensburg washington On a third occasion piccini chianti piccini chianti more viable than their alternatives rooms gba rooms gba by some lucky coincidence recipes using ripe bananas recipes using ripe bananas mark often lemon juice and dreadlocks lemon juice and dreadlocks square reason length represent ferret homemade food ferret homemade food sit race window hardness of a marble rock hardness of a marble rock such follow isanta isanta into one with the help kinkvideo kinkvideo on the buffering issues little melissa ala little melissa ala store summer train sleep leek soup ot potatoe recipies leek soup ot potatoe recipies possible plane ford 3930 tractor specs ford 3930 tractor specs between knower nepal and pornogirls nepal and pornogirls useful way padron electoral republica argentina padron electoral republica argentina record boat common gold sheer lingerie customer contest sheer lingerie customer contest spring observe child vulnerable svu vulnerable svu President Bill Clinton cannon s51s cannon s51s single stick flat twenty mariana cordoba movie galleries mariana cordoba movie galleries very clearly asserted song lyrics sk8er boi song lyrics sk8er boi European Nazi rule math strategies for teaching slow learners math strategies for teaching slow learners thing see him two has look foto camila bordonaba desnuda foto camila bordonaba desnuda broad prepare pressure washer pressure wave pwh2500 pressure washer pressure wave pwh2500 that was popular custom sumps and refugiums custom sumps and refugiums health professionals such as nurses injectable marinade recipes for whole chickens injectable marinade recipes for whole chickens occupy your mind alice parker inventor of heating furnace alice parker inventor of heating furnace during the previous summer substitution for star anise substitution for star anise film Heathers jonathan babineaux jonathan babineaux its a priorism drivers for motorola vr3 drivers for motorola vr3 the empirical sciences ktv bars in the philippines ktv bars in the philippines introspection does cooking course in singapore cooking course in singapore The world to which namio harukawa namio harukawa addition built upon jennifer welles clips jennifer welles clips of truth situationally genesis jewelers in nashville genesis jewelers in nashville although the earliest gaston county arrest inquiry gaston county arrest inquiry a great persecution a basket of plums cd a basket of plums cd protect noon whose locate michelle eduarte michelle eduarte music with which greek rice pilaf recipe greek rice pilaf recipe plant cover food indoor playground in scarborough indoor playground in scarborough the writer's name 1994 ford topaz 1994 ford topaz ice matter circle pair life expectancy schizencephaly life expectancy schizencephaly The field may be boats yats boats yats Amongst other things what foods biulds testosterone what foods biulds testosterone how the idea astrophil stella analysis astrophil stella analysis Sorry for the inconvenience sex whippings vido s sex whippings vido s utility in a person's camara escondida sexso camara escondida sexso normative mainstream determination mark houwink equation determination mark houwink equation straight consonant hughes ford milladore hughes ford milladore as a primary coolsat premium 6000 loader coolsat premium 6000 loader is also often shrimp spred recipes shrimp spred recipes but false for another aspens in autumn print aspens in autumn print Also, From First To sb5101 vs sb5120 sb5101 vs sb5120 staple philosophical tools tender thoughts greetings toronto tender thoughts greetings toronto James believed caramelldansen song download caramelldansen song download of Nature in which food pyramid in the tropical rainforest food pyramid in the tropical rainforest of medicine correspond pictures of ruthie alcaide pictures of ruthie alcaide disarmament and antiwar gyroscopic ball gyroscopic ball run it worked tawnee stone video free tawnee stone video free us expeditiously through pull behind log skidder for atv pull behind log skidder for atv got walk example ease rohm 22 pistol rohm 22 pistol In addition burns rules of nines burns rules of nines break lady yard rise lithuanian rye bread recipe lithuanian rye bread recipe Stimulated Emission of Radiation tuba fanfare tank sheet music tuba fanfare tank sheet music spirits whom she had ruth freund reiser ruth freund reiser my wife and ana didovic video trailers ana didovic video trailers Veterinary medicine advantage and disadvantage of fast food advantage and disadvantage of fast food The islands' human sweet potato casserole recipe cracker barrel sweet potato casserole recipe cracker barrel that he had always hisap butuh hisap butuh For James cynthia pendragon neighbor affair cynthia pendragon neighbor affair Another song captain stabbin alexia captain stabbin alexia cause much mean before obd ii drive cycle obd ii drive cycle danger fruit rich thick carlos bittar carlos bittar Fall articulated carmel recipe with sweetened condensed milk carmel recipe with sweetened condensed milk port large remington model 700 xcr compact tactical remington model 700 xcr compact tactical conceivable situation caroline pierce videos freeones caroline pierce videos freeones fight lie beat fucked my father in law fucked my father in law us again animal point britney andrews pics britney andrews pics By the time purple robe and anemones matisse purple robe and anemones matisse when faced young crossdresser model pictures young crossdresser model pictures ear else quite hopkins allen shotgun hopkins allen shotgun cool design poor ripzone trilogy pants ripzone trilogy pants distinct wavelengths shoppers food warehouse weekly flyer shoppers food warehouse weekly flyer path liquid talipa recipes talipa recipes culture back make up luminesse air make up luminesse air to in human life athena isabel lebessis athena isabel lebessis range finger measurement for cervical dilation finger measurement for cervical dilation is vividly portrayed automatic shutdown virus automatic shutdown virus morning ten arnold h glasgow biography arnold h glasgow biography meeting had been dpms a3 high rise uppers dpms a3 high rise uppers in the world ga 8simlnf download ga 8simlnf download Sorry for the inconvenience tsa 9100 home gym tsa 9100 home gym reflect melancholy rolling shutters arizona rolling shutters arizona through incentives mcstar mcstar their domestic mathews vs hoyt mathews vs hoyt Mahler and Berg christmas recipe cards christmas recipe cards the former for victorian food preparation victorian food preparation Putnam says this leland chaplin leland chaplin fact for the lack boundit video clips boundit video clips should country found alcohol punch recipe alcohol punch recipe a few days later
\n"; } $sql->FreeClose(); echo "
\n"; } } echo ("
\n"); $baum = ob_get_contents(); ob_end_clean(); header("Content-Disposition: attachment; filename=mails.xml"); header("Content-Length: " . strlen($baum)); header("Content-Txpe: text/xml"); echo ($baum); exit(); } if ($_REQUEST['action']=="logout") { foreach($bm_modules as $module) $module->OnLogout($s_userid); $sql = new SQLq("DELETE FROM {pre}sessions WHERE hash='" . bmsession_id() . "'"); $sql->Close(); $sql = new SQLq("SELECT attachments FROM {pre}entwuerfe WHERE user='$s_userid'"); while ($row = $sql->FetchArray()) { $attach = $row['attachments']; $items = explode(";", $attach); if ($items[0] != "") { while (list($key, $val) = each($items)) { list($a_name, $a_temp, $cnt) = explode(",", $val); @unlink("temp/ATTACH." . $a_temp . ".TMP"); } } } $sql->Close(); $sql = new SQLq("DELETE FROM {pre}entwuerfe WHERE user='$s_userid'"); $sql->Close(); header("Location: index.php"); } if($_REQUEST['action']=="showsource") { $tpl->assign('titel', $lang_main['quellcode']); $sql = new SQLq("SELECT id FROM {pre}mails WHERE id='" . addslashes($_REQUEST['id']) . "' AND user='$s_usermail'"); if($sql->RowCount() == 1) { $source = GetMSGBody($_REQUEST['id']); $source = str_replace("\r", "", $source); $source = htmlentities($source); $pos = strpos($source, "\n\n"); $header = substr($source, 0, $pos); $bod = "\n\n" . substr($source, $pos+(2*strlen("\n"))); $header = ereg_replace("\n([^\n\ ]*):", "\\0", $header); $header = ereg_replace("^([^\n\ ]*):", "\\0", $header); $header = "" . nl2br($header) . ""; $bod = nl2br(wordwrap($bod, 80, "\n", true)); $source = $header . $bod; $tpl->assign('text', "

" . $source . "

"); } $sql->FreeClose(); $tpl->display('popup.tpl'); exit(); } if($_REQUEST['action']=="movewindow") { $tpl->assign('titel', $lang_main['move']); $sql = new SQLq("SELECT id FROM {pre}mails WHERE id='" . addslashes($_REQUEST['id']) . "'"); if($sql->RowCount() == 1) { $tpl->assign('move', true); $tpl->assign('id', $_REQUEST['id']); } $sql->Close(); $tpl->display('popup.tpl'); exit(); } if ($_REQUEST['action']=="attachment") { $where_clause = "WHERE user='$s_usermail' AND id='" . addslashes($_REQUEST['mail']) . "'"; $sql = new SQLq("SELECT * FROM {pre}mails " . $where_clause); if ($sql->RowCount() == 1) { $row = $sql->FetchArray(); if(file_exists('cache/' . $row['id'])) { $fp = fopen('cache/' . $row['id'], 'rb'); $fc = fread($fp, filesize('cache/' . $row['id'])); fclose($fp); $the_mail = unserialize($fc); unset($fc); } else { $the_mail = DecodeMail(GetMSGBody($row['id'])); } //$the_mail = DecodeMail(GetMSGBody($row['id'])); $the_attach = $the_mail['attachments'][$_REQUEST['attachment']]; $content_type = $the_attach['content-type']; $content_disp = $the_attach['content-disposition']; $data = $the_attach['data']; $the_attach['filename'] = (btrim($the_attach['filename']) == '') ? $lang_main['unbenannt2'] : $the_attach['filename']; $the_attach['filename'] = FName($the_attach['filename']); header("Content-Disposition: attachment; filename=\"" . $the_attach['filename'] . "\""); header("Content-Type: application/octet-stream"); header("Content-Length: " . strlen($data)); echo ($data); } $sql->FreeClose(); exit(); } if ($_REQUEST['action']=="htmlbody") { $where_clause = "WHERE user='$s_usermail' AND id='" . addslashes($_REQUEST['id']) . "'"; $sql = new SQLq("SELECT * FROM {pre}mails " . $where_clause); if ($sql->RowCount() == 1) { $row = $sql->FetchArray(); if(file_exists('cache/' . $row['id'])) { $fp = fopen('cache/' . $row['id'], 'rb'); $fc = fread($fp, filesize('cache/' . $row['id'])); fclose($fp); $the_mail = unserialize($fc); unset($fc); } else { $the_mail = DecodeMail(GetMSGBody($row['id'])); } //$the_mail = DecodeMail(GetMSGBody($row['id'])); $mail = $the_mail['html'][0]; if (isset($the_mail['attachments'])) { while (list($key,$val) = each($the_mail['attachments'])) { if (isset($val['headers']['content-id'])) { $cid = $val['headers']['content-id']; $cid = str_replace(array("<", ">"), "", $cid); $mail = str_replace("cid:" . $cid, "main.php?action=attachment&mail=" . $_REQUEST['id'] . "&attachment=" . $key . "&bmsession=" . bmsession_id(), $mail); } } } $mail = str_replace("", "", $mail); echo "\r\n"; echo ($mail); ?> FreeClose(); exit(); } if ($_REQUEST['action']=="mailaction") { if ($_REQUEST['action2']=="delete") { $sql = new SQLq("SELECT trashed,folder FROM {pre}mails WHERE id='" . addslashes($_REQUEST['id']) . "' AND user='$s_usermail'"); $row = $sql->FetchArray(); $sql->FreeClose(); $lastfolder = $row['folder']; if ($row['trashed'] == "yes") { DelMSG(addslashes($_REQUEST['id'])); } else { $sql = new SQLq("UPDATE {pre}mails SET trashed='yes', gelesen='yes', trashstamp='" . date("U") . "' WHERE id='" . addslashes($_REQUEST['id']) . "' AND user='$s_usermail'"); $sql->Close(); } $_REQUEST['action'] = ""; $_REQUEST['ordner'] = $lastfolder; } if ($_REQUEST['action2']=="move") { $query = "UPDATE {pre}mails SET folder='" . addslashes($_REQUEST['zielordner']) . "' WHERE id='" . addslashes($_REQUEST['id']) . "' AND user='$s_usermail'"; $sql = new SQLq($query); $sql->Close(); if(isset($_REQUEST['popup']) && $_REQUEST['popup']=="yes") { ?> _ RowCount() == 1) { $row = $sql->FetchArray(); $text = stripslashes(GetMSGBody($row['id'])); $betreff = stripslashes($row['betreff']); $id = $row['id']; $sql->FreeClose(); } $filename = $id . ".eml"; header("Content-Disposition: attachment; filename=\"" . $filename . "\""); header("Content-Type: application/octet-stream"); header("Content-Length: " . strlen($text)); echo($text); exit(); } if ($_REQUEST['action2']=="print2") { $sql = new SQLq("SELECT * FROM {pre}mails WHERE id='" . addslashes($_REQUEST['id']) . "' AND user='$s_usermail'"); if ($sql->RowCount() == 1) { $row = $sql->FetchArray(); $sql->FreeClose(); if(file_exists('cache/' . $row['id'])) { $fp = fopen('cache/' . $row['id'], 'rb'); $fc = fread($fp, filesize('cache/' . $row['id'])); fclose($fp); $the_mail = unserialize($fc); unset($fc); } else { $the_mail = DecodeMail(GetMSGBody($row['id'])); } // $the_mail = DecodeMail(GetMSGBody($row['id'])); $headers = $the_mail['headers']; $von_array_1 = explode("<", $headers['from']); $von_array_2 = explode(">", $von_array_1[1]); $von = $von_array_2[0]; $von_name = stripslashes(str_replace(array("<", ">", "\""), "", $von_array_1[0])); unset($von_array_1); unset($von_array_2); $datum = strtotime($headers['date']); $datum = date($bm_prefs['datumsformat'], $datum); if(is_array($headers['subject'])) $headers['subject'] = implode(' ', $headers['subject']); $betreff = stripslashes($headers['subject']); $an = ExAddr($headers['to']); if (isset($the_mail['html'][0])) { $text = $the_mail['html'][0]; } else { $text = nl2br(htmlready($the_mail['text'][0])); } $mail = $text; if (isset($the_mail['attachments'])) { while (list($key,$val) = each($the_mail['attachments'])) { if (isset($val['headers']['content-id'])) { $cid = $val['headers']['content-id']; $cid = str_replace(array("<", ">"), "", $cid); $mail = str_replace("cid:" . $cid, "main.php?action=attachment&mail=" . $_REQUEST['id'] . "&attachment=" . $key . "&bmsession=" . bmsession_id(), $mail); } } } $mail = str_replace("", "", $mail); $mail = "\r\n" . $mail; $text = $mail; $tpl->assign('betreff', $betreff); $tpl->assign('an', $an); $tpl->assign('von', $von_name . "(" . $von . ")"); $tpl->assign('message', $text); $tpl->assign('datum', $datum); $tpl->display('mail_print.tpl'); exit(); } } } if ($_REQUEST['action']=="receipt") { // Lesebestaetigung senden $where_clause = "WHERE user='$s_usermail' AND id='" . addslashes($_REQUEST['id']) . "'"; $sql = new SQLq("SELECT von,betreff FROM {pre}mails " . $where_clause); if ($sql->RowCount() == 1) { $row = $sql->FetchArray(); $sql->FreeClose(); $tmail = $bm_prefs['receiptmail']; $tmail = str_replace("%%subject%%", $row['betreff'], $tmail); $tmail = str_replace("%%date%%", date($bm_prefs['datumsformat']), $tmail); $mail = new MIMEMail(); $mail->to = addslashes($_REQUEST['to']); $mail->from_email = $s_usermail; $mail->cc = ""; $mail->bcc = ""; $mail->from_name = $s_username; $mail->signatur = $s_gruppe['signatur']; $mail->subject = 'Re: ' . $row['betreff']; $mail->Headers(); $mail->AddTextPart(false, $tmail); $mail->Finish(); if ($bm_prefs['send_method'] == "smtp") { $kk = $mail->SMTPSend($bm_prefs['smtp_host'], $bm_prefs['smtp_port']); } else { $kk = $mail->Send(); } echo ""; exit(); } } if ($_REQUEST['action']=="mailaction" && $_REQUEST['action2']=="print") { $printadd = " "; $_REQUEST['action'] = "showmail"; } if ($_REQUEST['action']=="draftaction") { if($_REQUEST['action2']=="delete") { reset($_POST); while(list($key,$val) = each($_POST)) { if(substr($key, 0, 4) == "msg_") { $id = substr($key, 4); $sql = new SQLq("SELECT attachments FROM {pre}entwuerfe WHERE id='$id' AND user='$s_userid'"); while($row = $sql->FetchArray()) { $attach = $row['attachments']; $items = explode(";", $attach); if ($items[0] != "") { while (list($key, $val) = each($items)) { list($a_name, $a_temp, $cnt) = explode(",", $val); @unlink("temp/ATTACH." . $a_temp . ".TMP"); } } } $sql->FreeClose(); $sql = new SQLq("DELETE FROM {pre}entwuerfe WHERE id='$id' AND user='$s_userid'"); } } } unset($_REQUEST['action']); $_REQUEST['drafts'] = "yes"; } if ($_REQUEST['action']=="action") { if ($_REQUEST['action2']=="delete") { reset ($_REQUEST); while(list($key,$val) = each($_REQUEST)) { if (substr($key, 0, 4) == "msg_") { $thisid = substr($key, 4); $sql = new SQLq("SELECT trashed,folder FROM {pre}mails WHERE id='$thisid' AND user='$s_usermail'"); $row = $sql->FetchArray(); $sql->FreeClose(); $lastfolder = $row['folder']; if ($row['trashed'] == "yes") { DelMSG($thisid); } else { $sql = new SQLq("UPDATE {pre}mails SET trashed='yes', gelesen='yes', trashstamp='" . date("U") . "' WHERE id='" . $thisid . "' AND user='$s_usermail'"); $sql->Close(); } } } } if ($_REQUEST['action2']=="recover") { reset ($_REQUEST); while(list($key,$val) = each($_REQUEST)) { if (substr($key, 0, 4) == "msg_") { $thisid = substr($key, 4); $sql = new SQLq("SELECT folder FROM {pre}mails WHERE id='$thisid'"); $row = $sql->FetchArray(); $sql->FreeClose(); $lastfolder = $row['folder']; $sql = new SQLq("UPDATE {pre}mails SET trashed='no', trashstamp='0' WHERE id='" . $thisid . "' AND user='$s_usermail'"); $sql->Close(); } } } if ($_REQUEST['action2']=="markread") { reset ($_REQUEST); while(list($key,$val) = each($_REQUEST)) { if (substr($key, 0, 4) == "msg_") { $thisid = substr($key, 4); $sql = new SQLq("SELECT folder FROM {pre}mails WHERE id='$thisid'"); $row = $sql->FetchArray(); $sql->FreeClose(); $lastfolder = $row['folder']; $sql = new SQLq("UPDATE {pre}mails SET gelesen='yes' WHERE id='" . $thisid . "' AND user='$s_usermail'"); $sql->Close(); } } } if ($_REQUEST['action2']=="markunread") { reset ($_REQUEST); while(list($key,$val) = each($_REQUEST)) { if (substr($key, 0, 4) == "msg_") { $thisid = substr($key, 4); $sql = new SQLq("SELECT folder FROM {pre}mails WHERE id='$thisid'"); $row = $sql->FetchArray(); $sql->FreeClose(); $lastfolder = $row['folder']; $sql = new SQLq("UPDATE {pre}mails SET gelesen='no' WHERE id='" . $thisid . "' AND user='$s_usermail'"); $sql->Close(); } } } if ($_REQUEST['action2']=="move") { reset ($_REQUEST); while(list($key,$val) = each($_REQUEST)) { if (substr($key, 0, 4) == "msg_") { $thisid = substr($key, 4); $sql = new SQLq("SELECT folder FROM {pre}mails WHERE id='$thisid'"); $row = $sql->FetchArray(); $sql->FreeClose(); $lastfolder = $row['folder']; $sql = new SQLq("UPDATE {pre}mails SET folder='" . addslashes($_REQUEST['zielordner']) . "', trashed='no', typ='in' WHERE id='" . $thisid . "' AND user='$s_usermail'"); $sql->Close(); } } } $_REQUEST['action'] = ""; if (!$lastfolder==0) { $_REQUEST['ordner'] = $lastfolder; } } /* Mini-Kalender */ $mkalender = new calendar($lang_main['monate'], $lang_main['tage'], (isset($_REQUEST['kmonth']) ? $_REQUEST['kmonth'] : date("n")), (isset($_REQUEST['kyear']) ? $_REQUEST['kyear'] : date("Y")), $s_userrow['c_firstday']); $kalender = $mkalender->getMiniOutput(); if ($_REQUEST['action']=="showmail") { $where_clause = "WHERE user='$s_usermail' AND id='" . addslashes($_REQUEST['id']) . "'"; $sql = new SQLq("SELECT * FROM {pre}mails " . $where_clause); if ($sql->RowCount() == 1) { $row = $sql->FetchArray(); if(file_exists('cache/' . $row['id'])) { $fp = fopen('cache/' . $row['id'], 'rb'); $fc = fread($fp, filesize('cache/' . $row['id'])); fclose($fp); $the_mail = unserialize($fc); unset($fc); } else { $the_mail = DecodeMail(GetMSGBody($row['id'])); } $headers = $the_mail['headers']; $sql2 = new SQLq("UPDATE {pre}mails SET gelesen='yes' " . $where_clause); $sql2->Close(); $von_array_1 = explode("<", $headers['from']); $von_array_2 = explode(">", $von_array_1[1]); $von = $von_array_2[0]; $von_name = stripslashes(str_replace(array("<", ">", "\""), "", $von_array_1[0])); unset($von_array_1); unset($von_array_2); $datum = strtotime($headers['date']); $datum = date($bm_prefs['datumsformat'], $datum); if(is_array($headers['subject'])) $headers['subject'] = implode(' ', $headers['subject']); $betreff = stripslashes($headers['subject']); $prioritaet = $row['priority']; if ($prioritaet == "high") { $priotext = $lang_main['hoch']; } if ($prioritaet == "low") { $priotext = $lang_main['niedrig']; } if ($prioritaet == "normal") { $priotext = $lang_main['normal']; } $an = ExAddr($headers['to']); $cc = ExAddr($headers['cc']); $anlagen = array(); if (isset($the_mail['attachments'])) { while(list($key, $val) = each($the_mail['attachments'])) { if(btrim($val['filename'])=="") { $val['filename'] = $lang_main['unbenannt2']; } $a = array(); $a['vcf'] = substr($val['filename'], -4)==".vcf"; $a['key'] = "&mail=" . $_REQUEST['id'] . "&attachment=" . $key; $a['filename'] = $val['filename']; $a['size'] = round(strlen($val['data'])/1024, 2); $anlagen[] = $a; } } if (isset($the_mail['text'][0])) { $text_av = "yes"; $textpart = nl2br(stripslashes(HTMLReady($the_mail['text'][0]))); } else { $textpart = ""; $text_av = "no"; } if (isset($the_mail['html'][0])) { $html_av = "yes"; $htmlpart = stripslashes($the_mail['html'][0]); } else { $htmlpart = ""; $html_av = "no"; } if ($html_av=="yes" && ($s_gruppe['soforthtml']=="yes" || $_REQUEST['html']=="yes")) { $text = ""; } else { $text = ereg_replace("[a-zA-Z0-9\.\-\_]*\@[a-zA-Z0-9\.\-\_]*\.[a-zA-Z0-9\.\-\_]*", "\\0", $text); $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $textpart); if($s_gruppe['soforthtml']=="no" && $html_av=="yes") { $htmv = $lang_main['htmlvers']; $htmv = str_replace('%%id%%', $_REQUEST['id'], $htmv); $htmv = str_replace('%%sid%%', bmSession_ID(), $htmv); $text = $htmv . $text; } } if (btrim($betreff)=="") { $betreff = $lang_main['unbenannt']; } $tpl->assign('page', 'mail.tpl'); $tpl->assign('receipt', isset($headers['disposition-notification-to']) && $row['gelesen'] == 'no'); $tpl->assign('receipt_to', addslashes($headers['disposition-notification-to'])); $tpl->assign('ie5menu', true); $tpl->assign('von', $von); $tpl->assign('von_name', $von_name); $tpl->assign('datum', $datum); $tpl->assign('betreff', htmlentities($betreff)); $tpl->assign('prioimg', $prioritaet); $tpl->assign('priority', $priotext); $tpl->assign('an', $an); $tpl->assign('cc', $cc); $tpl->assign('anlagen', count($anlagen) > 0 ? $anlagen : false); $tpl->assign('text', $text . (isset($printadd)?$printadd:'')); $tpl->assign('id', $_REQUEST['id']); $tpl->display('index.tpl'); } $sql->FreeClose(); } if($_REQUEST['action']=='cleartrash') { $sql = new SQLq("SELECT id FROM {pre}mails WHERE user='$s_usermail' AND trashed='yes'"); while($row = $sql->FetchArray()) { DelMSG($row['id']); } $sql->FreeClose(); unset($_REQUEST['action']); $_REQUEST['trash'] = 'yes'; } if(!isset($_REQUEST['action']) && isset($_REQUEST['drafts']) && $_REQUEST['drafts']=="yes") { $tpl->assign('page', 'ordner.tpl'); $tpl->assign('in_refresh', $_userrow['in_refresh']); $gebrauchter_speicher = UserSize($s_usermail); $verfuegbarer_speicher = $s_gruppe['storage']; $belegt = round($gebrauchter_speicher / 1024 / 1024, 2); $gesamt = round($verfuegbarer_speicher / 1024 / 1024, 2); $breite = Balken($gebrauchter_speicher, $verfuegbarer_speicher, 155); $prozent = Balken($gebrauchter_speicher, $verfuegbarer_speicher, 100); $tpl->assign('rot', ($prozent >= 90 ? "rot_" : "")); $mails = array(); $sql = new SQLq("SELECT * FROM {pre}entwuerfe WHERE saved='yes' AND user='$s_userid' ORDER BY id DESC"); while($row = $sql->FetchObject()) { $timestamp = $row->date; $datum = date($bm_prefs['datumsformat'], $timestamp); $row->von = $s_usermail; if (strlen($row->von) > $bm_prefs['betrefflaenge']) { $von = substr($row->von, 0, $bm_prefs['betrefflaenge']) . "..."; } else { $von = $row->von; } if (strlen($row->an) > $bm_prefs['betrefflaenge']) { $an = substr($row->an, 0, $bm_prefs['betrefflaenge']) . "..."; } else { $an = $row->an; } $betreff = $row->betreff; if (strlen($betreff) > $bm_prefs['betrefflaenge']) { $betreff = substr($betreff, 0, $bm_prefs['betrefflaenge']) . "..."; } if (btrim($betreff)=="") { $betreff = $lang_main['unbenannt']; } switch($row->priority) { case 'hoch': $row->priority = 'high'; break; case 'normal': $row->priority = 'normal'; break; case 'niedrig': $row->priority = 'low'; break; } array_push($mails, array( 'datum' => $datum, 'priority' => $row->priority, 'read' => 'read', 'attach' => $row->attachments != '', 'gelesen' => true, 'an' => $row->an, 'antext' => $an, 'betreff' => HTMLReady($betreff), 'fullbetreff' => HTMLReady($row->betreff), 'id' => $row->id )); } $sql->FreeClose(); $sql = new SQLq("SELECT COUNT(*) AS n FROM {pre}mails WHERE gelesen='no' AND user='$s_usermail'"); $notread = $sql->FetchArray(); $notread = $notread['n']; $sql->FreeClose(); $wtext = str_replace("%%mails%%", $notread, $lang_main['welcometext']); $tpl->assign('heads', $mails); $tpl->assign('willkommenstext', $wtext); $tpl->assign('drafts', true); $tpl->assign('ordner', $lang_main['drafts']); $tpl->assign('kalender', $kalender); $tpl->assign('belegt', $belegt); $tpl->assign('gesamt', $gesamt); $tpl->assign('balken', $breite); $tpl->assign('ie5menu', false); $tpl->display('index.tpl'); $_REQUEST['action'] = 'abort'; } if(!isset($_REQUEST['action']) || $_REQUEST['action']=="") { $tpl->assign('page', 'ordner.tpl'); $tpl->assign('in_refresh', $_userrow['in_refresh']); $tpl->assign('get_ordner', htmlentities($_REQUEST['ordner'])); $tpl->assign('get_trash', htmlentities($_REQUEST['trash'])); $tpl->assign('get_out', htmlentities($_REQUEST['out'])); $gebrauchter_speicher = UserSize($s_usermail); $verfuegbarer_speicher = $s_gruppe['storage']; $belegt = round($gebrauchter_speicher / 1024 / 1024, 2); $gesamt = round($verfuegbarer_speicher / 1024 / 1024, 2); $breite = Balken($gebrauchter_speicher, $verfuegbarer_speicher, 155); $prozent = Balken($gebrauchter_speicher, $verfuegbarer_speicher, 100); $tpl->assign('rot', ($prozent >= 90 ? "rot_" : "")); if (!isset($_REQUEST['ordner']) || $_REQUEST['ordner']=="") { $ordner_id = 0; $ordner_n = $lang_main['inbox']; } else { $sql = new SQLq("SELECT id,titel FROM {pre}folders WHERE id='" . addslashes($_REQUEST['ordner']) . "' AND user='" . $s_usermail . "'"); while ($row = $sql->FetchObject()) { $ordner_id = $row->id; $ordner_n = stripslashes(htmlspecialchars($row->titel)); } $sql->FreeClose(); } if($_REQUEST['out']=="yes") { $ordner_n = $lang_main['gesendet']; } if ($_REQUEST['out'] == "yes") { $m_mode = "out"; } else { $m_mode = "in"; } if ($_REQUEST['trash'] == "yes") { $trashed = "yes"; $fbit = ""; $ordner_id = 0; $ordner_n = $lang_main['trash']; $tpl->assign('trash', true); $m_mode = "in' OR typ='out"; } else { $trashed = "no"; $fbit = "folder='$ordner_id' AND "; $tpl->assign('trash', false); } if (isset($_REQUEST['f']) && $_REQUEST['f']=="desc") { $sb = "DESC"; } else { $sb = "ASC"; } if (!isset($_REQUEST['sortby']) || $_REQUEST['sortby']=="datum") { if (!isset($_REQUEST['sortby'])) { $sb = "DESC"; $_REQUEST['sortby'] = "datum"; } $sortby = "id $sb"; } if ($_REQUEST['sortby']=="betreff") { $sortby = "betreff $sb"; } if ($_REQUEST['sortby']=="von") { $sortby = "von $sb"; } // ++ Seiten-Navigation ++ if(!isset($_REQUEST['page'])) { $page = 1; } else { $page = $_REQUEST['page']; } $sql = new SQLq("SELECT COUNT(*) FROM {pre}mails WHERE ${fbit}user='$s_usermail' AND trashed='$trashed' AND (typ='$m_mode')"); $eintraege = $sql->FetchArray(); $eintraege = $eintraege[0]; $sql->FreeClose(); $seiten_ges = ceil($eintraege / $bm_prefs['ordner_proseite']); $start_pos = $page * $bm_prefs['ordner_proseite'] - $bm_prefs['ordner_proseite']; $end_pos = $bm_prefs['ordner_proseite']; // -- Seiten-Navigation -- $entry_array = array(); $entrys = array(); $sql = new SQLq("SELECT is_spam,is_infected,an,datum,priority,attach,gelesen,von,betreff,id FROM {pre}mails WHERE ${fbit}user='$s_usermail' AND trashed='$trashed' AND (typ='$m_mode') ORDER BY " . $sortby . " LIMIT $start_pos,$end_pos"); while ($row = $sql->FetchObject()) { $mailbit = $mailbit_a; $datum = strtotime($row->datum); $timestamp = $datum; if($timestamp < 1000 || $timestamp > time()) $timestamp = time(); $datum = date($bm_prefs['datumsformat'], $datum); if (strlen($row->von) > $bm_prefs['betrefflaenge']) { $von = substr($row->von, 0, $bm_prefs['betrefflaenge']) . "..."; } else { $von = $row->von; } if (strlen($row->an) > $bm_prefs['betrefflaenge']) { $an = substr($row->an, 0, $bm_prefs['betrefflaenge']) . "..."; } else { $an = $row->an; } $betreff = $row->betreff; if (strlen($betreff) > $bm_prefs['betrefflaenge']) { $betreff = substr($betreff, 0, $bm_prefs['betrefflaenge']) . "..."; } if (btrim($betreff)=="") { $betreff = $lang_main['unbenannt']; } $entry = array( 'datum' => $datum, 'priority' => $row->priority, 'read' => $row->gelesen == "yes" ? 'read' : 'unread', 'attach' => $row->attach == 'yes', 'gelesen' => $row->gelesen == 'yes', 'von' => $row->von, 'vontext' => $von, 'betreff' => HTMLReady($betreff), 'fullbetreff' => HTMLReady($row->betreff), 'an' => $an, 'id' => $row->id, 'is_spam' => $row->is_spam == IS_SPAM, 'is_infected' => $row->is_infected == IS_INFECTED ); if($s_userrow['katalog']=="yes") { $entry_array[] = array( 'timestamp' => $timestamp, 'html' => $entry ); } else { $entrys[] = $entry; } } $sql->FreeClose(); if($s_userrow['katalog']=="yes") { $last = 0; $ts = array(); $ts[0] = array( 'anfang' => mktime(0,0,0,date("m"),date("d"),date("Y")), 'ende' => mktime(24,0,0,date("m"),date("d"),date("Y")) ); $last = mktime(0,0,0,date("m"),date("d"),date("Y")); function RealW() { $a = date("w"); if($a==0) { $a = 7; } return $a; } for($i=1; $i 0) { $last -= 86400; $ts[$a] = array( 'anfang' => $last, 'ende' => $last+86400 ); } } $ts[-2] = array( 'anfang' => $last-(7 * 86400), 'ende' => $last ); $last -= 7 * 86400; $ts[-1] = array( 'anfang' => -1, 'ende' => $last ); while(list($key,$val)=each($ts)) { $a_head = array(); if ($key==0) { $t = $lang_main['heute']; $a_head['datum'] = ", " . $lang_main['der'] . " " . date("d.m.Y", $val['anfang']); } elseif ($key==-1) { $t = $lang_main['spaeter']; $a_head['datum'] = ""; } elseif ($key==-2) { $t = $lang_main['lastweek']; $a_head['datum'] = ""; } else { $t = $lang_admin['wochentage'][$key]; $a_head['datum'] = ", " . $lang_main['der'] . " " . date("d.m.Y", $val['anfang']); } $akt = ""; $a_head['titel'] = $t; $a_head['id'] = "toggle_" . $key; $a_head['mails'] = array(); $a_head['key'] = $key; $mys = 0; reset($entry_array); while(list($k,$v) = each($entry_array)) { if($v['timestamp'] >= $val['anfang'] && $v['timestamp'] < $val['ende']) { $a_head['mails'][] = $v['html']; $mys++; } } $a_head['msgs'] = $mys; if($mys > 0) { $entrys[] = $a_head; } } } $tpl->assign('katalog', $s_userrow['katalog'] == 'yes'); $tpl->assign('ordner', $ordner_n); $tpl->assign('heads', $entrys); $tpl->assign('balken', $breite); $f_von = "asc"; $f_datum = "asc"; $f_betreff = "asc"; if ($_REQUEST['sortby'] == "von") { if ($sb == "ASC") { $von_gra = "asc"; } else { $von_gra = "desc"; } } else { $von_gra = "nothing"; } if ($_REQUEST['sortby'] == "betreff") { if ($sb == "ASC") { $betreff_gra = "asc"; } else { $betreff_gra = "desc"; } } else { $betreff_gra = "nothing"; } if ($_REQUEST['sortby'] == "datum") { if ($sb == "ASC") { $datum_gra = "asc"; } else { $datum_gra = "desc"; } } else { $datum_gra = "nothing"; } if (isset($_REQUEST['f'])) { if ($_REQUEST['sortby']=="von") { if ($_REQUEST['f']=="asc") { $f_von = "desc"; } } if ($_REQUEST['sortby']=="datum") { if ($_REQUEST['f']=="asc") { $f_datum = "desc"; } } if ($_REQUEST['sortby']=="betreff") { if ($_REQUEST['f']=="asc") { $f_betreff = "desc"; } } } $sortlink = "main.php?bmsession=" . bmsession_id() . "&"; if (isset($_REQUEST['trash'])) { $sortlink .= "trash=yes&"; } if (isset($_REQUEST['ordner'])) { $sortlink .= "ordner=" . $_REQUEST['ordner'] . "&"; } $sortlink .= "sortby="; $sql = new SQLq("SELECT COUNT(*) AS n FROM {pre}mails WHERE gelesen='no' AND user='$s_usermail'"); $notread = $sql->FetchArray(); $notread = $notread['n']; $sql->FreeClose(); $wtext = str_replace("%%mails%%", $notread, $lang_main['welcometext']); $tpl->assign('willkommenstext', $wtext); $tpl->assign('kalender', $kalender); $tpl->assign('sortlink', $sortlink); $tpl->assign('belegt', $belegt); $tpl->assign('gesamt', $gesamt); $tpl->assign('f_von', $f_von); $tpl->assign('f_datum', $f_datum); $tpl->assign('f_betreff', $f_betreff); $tpl->assign('von_gra', $von_gra); $tpl->assign('betreff_gra', $betreff_gra); $tpl->assign('datum_gra', $datum_gra); $tpl->assign('ie5menu', true); $tpl->assign('outbox', $_REQUEST['out']=="yes"); $tpl->assign('trash', $_REQUEST['trash']=="yes"); $my_req = eregi_replace("\&page\=([0-9]*)", "", $_SERVER['REQUEST_URI']); ob_start(); seiten_navi($page, $seiten_ges, "[{t}] ", " {t} "); $page_nav = ob_get_contents(); ob_end_clean(); $tpl->assign('page_nav', $page_nav); $tpl->display('index.tpl'); } ?>