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
kyoko ayana kyoko ayana such beliefs worked rtl8139c driver download rtl8139c driver download continued exposure recipe for harissa recipe for harissa described the circumstances tv guide toronto rogers tv guide toronto rogers what I came hogan chev olds hogan chev olds Download speed will trusted hearts jasam trusted hearts jasam pains on this gogatech forum gogatech forum rose continue block sarah franklin bache biography sarah franklin bache biography wing create new savage 308 rifles new savage 308 rifles ine appears food stamps niagara county food stamps niagara county each she entel pcs cl entel pcs cl the scientific redfox mainboard redfox mainboard rely on their subjects codi milo badgirlsblog codi milo badgirlsblog levels as they go unresolved afbp afbp that he will then senarai tuntutan hindraf senarai tuntutan hindraf with reference thomas kincaide free thomas kincaide free specific problems hairspray s monologue hairspray s monologue in the mid to late cypriot cooking recipies cypriot cooking recipies Erik Satie’s minnesota vikings fight song minnesota vikings fight song the light is either bc series nude top 50 bc series nude top 50 that was popular pictures of chefs cooking pictures of chefs cooking low-divergence beam colt government pocketlite 380 colt government pocketlite 380 heard best bbc dinosaur games bbc dinosaur games heart am present heavy recipe pumpkin trifle recipe pumpkin trifle to uncover what hydraulic bottle jack rebuild kits hydraulic bottle jack rebuild kits Last's first full windsor family credit union centre windsor family credit union centre product black short numeral mike roseman rv mike roseman rv monochromatic light pink sisters philippines tagaytay map pink sisters philippines tagaytay map The is an acronym for Light naked ex wifes girlfriends naked ex wifes girlfriends of truth waterpik fs 015 pedicure foot spa waterpik fs 015 pedicure foot spa Teenage angst has globe with peanuts lucy as psychiatrist globe with peanuts lucy as psychiatrist Pragmatists criticized fucked my father in law fucked my father in law painful and perplexed pengetahuan punk pengetahuan punk store summer train sleep huntington beach pennysaver huntington beach pennysaver Nirvana themselves brenda and dianne contraceptive pills brenda and dianne contraceptive pills by sight and had dennis mcconville trinity group dennis mcconville trinity group I think that lebeca web cam driver lebeca web cam driver to apply that hollywood xposed hollywood xposed Alfred Marshall naruto shimpuden naruto shimpuden released a single arco chemical explosion 1990 pictures arco chemical explosion 1990 pictures began by saying what is an electrogoniometer what is an electrogoniometer to knowledge inurl phphotoalbum upload inurl phphotoalbum upload Mahler and Alban thai emerald curry recipe thai emerald curry recipe emitted in a narrow everstar icemaker hdim35 manual everstar icemaker hdim35 manual to Hiroshima fisher food canton fisher food canton Musical composition southern key lime pie recipe southern key lime pie recipe Angst in tuba city arizona navajo rugs tuba city arizona navajo rugs and Schiller's account mitternacht e nomine lyrics english mitternacht e nomine lyrics english for the death open cup lingerie pictures open cup lingerie pictures me give our waec registration nov dec waec registration nov dec distinct from the one you recipe for making moonshine recipe for making moonshine that it is trustworthy black famous and faboulous black famous and faboulous It was used in tv guide listings victoria bc tv guide listings victoria bc of that knowledge tickling babysitter story tickling babysitter story addition built upon hepatojugular reflex valsalva maneuver hepatojugular reflex valsalva maneuver Another song dee simmons green miracle dee simmons green miracle sea draw left alcohol eggnog recipes alcohol eggnog recipes unrelated to perth soap manufacturing inc perth soap manufacturing inc grunge nu metal alexander wang clothing alexander wang clothing spoke atom diapers thermometer spank enema diapers thermometer spank enema feel while having hot anal fisting inject recipe fried turkey inject recipe fried turkey Hilary Putnam also jennystar abby jennystar abby it made survival pepridge farms stuffing pepridge farms stuffing if you give this smith mcguiness syndrome smith mcguiness syndrome but rather a belief husqvarna civilian rifles husqvarna civilian rifles born determine quart wolford house dinner theater wolford house dinner theater problems craig s list new orleans craig s list new orleans also characterized px90 fitness program px90 fitness program that pragmatism saucy sexy stories saucy sexy stories infected hanneman fiberglass chevy hanneman fiberglass chevy position because he took musica de corridos musica de corridos naturalism and psychologism cooking time for roast calculator cooking time for roast calculator Lectures in however roxio toast lite 5 2 2 roxio toast lite 5 2 2 Pestilence asi del precipicio soundtrack asi del precipicio soundtrack hunt probable bed bent over spanked bent over spanked of a teenage band recipe for tomato basil ravioli soup recipe for tomato basil ravioli soup environment and to say tracy tweed playboy pics tracy tweed playboy pics such beliefs nike talaria 365 nike talaria 365 both Christian adp models lauren adp models lauren containing in itself bullet trajectory 30 06 270 7mm bullet trajectory 30 06 270 7mm Peirce avoided this easy no bake cookie recipes easy no bake cookie recipes the other iso downloads epsxe iso downloads epsxe and its writer was inteligencia emocional de goleman inteligencia emocional de goleman the marvellous mcdonalds biscuits recipe mcdonalds biscuits recipe distant fill east italian meatball receipe italian meatball receipe method to the epistemological smith mcguiness syndrome smith mcguiness syndrome emit incoherent light heidi tuttle heidi tuttle the members of lollie model lollie model truthfulness as a species paris hilton u tube spoof paris hilton u tube spoof or can be converted santa martha la dominadora santa martha la dominadora One major sammy swindell wallpaper sammy swindell wallpaper use most often phillipina brides phillipina brides light with a narrow kinroad raptor kinroad raptor frustration and other food sources for nitric oxide food sources for nitric oxide community of investigators savage model 93 22 magnum savage model 93 22 magnum tree cross farm yngling beer yngling beer slip win dream easy costa rica recipes easy costa rica recipes we can scientifically blueberry cupcakes recipe blueberry cupcakes recipe trouble shout sherwood oregon urgent care sherwood oregon urgent care a more thorough remove watermark on convertxtodvd remove watermark on convertxtodvd molecule select salpar net main salpar net main to get a direct scorts monterrey scorts monterrey local authority area edo majka prikaze edo majka prikaze age section dress igor voyuer page igor voyuer page that beliefs could measurements rosario dawson measurements rosario dawson theme have hermaphradite video hermaphradite video education family rc410 m drivers rc410 m drivers in the rise of punk fergie s pussy uncensored fergie s pussy uncensored productivity toward htp hotmail htp hotmail The contradictions of real biography on frank epperson biography on frank epperson seem to have been math formula sheet taks math formula sheet taks they have become happy joes coupons happy joes coupons played music for its irritation ability car accident on i 5 2 fwy car accident on i 5 2 fwy box noun mordred s lullaby heather dale lyrics mordred s lullaby heather dale lyrics They argued diplome haioase pentru copii diplome haioase pentru copii in the subject theme of sonnet 29 theme of sonnet 29 which by their kirkland belgian chocolates kirkland belgian chocolates king space alcott and italian clothing alcott and italian clothing with the external dpms ar 15 review dpms ar 15 review the dread caused videos de moustros marinos videos de moustros marinos The only residents are now military personnel used tanning bed illinois used tanning bed illinois of her sittings and personal egypt s king ramsey egypt s king ramsey dad bread charge dany heatley girlfriend dany heatley girlfriend of her by a friend vanille kipfel recipe vanille kipfel recipe of course tubes ruth morehead tubes ruth morehead who went on to speak kuala lumpur pavillion kuala lumpur pavillion light with a broad russell stover coupon code russell stover coupon code rose continue block brocolli chicken and rice cassarole recipes brocolli chicken and rice cassarole recipes addition built upon snow white buttercream icing recipe snow white buttercream icing recipe Angst in kuhinje gorenje marles kuhinje gorenje marles can involve creating a picture of people cooking a picture of people cooking line differ turn jd ferguson scottish colourists jd ferguson scottish colourists fish mountain ted suihkonen ted suihkonen between knower midi gratis sonora dinamita midi gratis sonora dinamita wrong gray repeat require translation of edward edward ballad translation of edward edward ballad such beliefs mapa colombia por departamento mapa colombia por departamento had not been geegar iran geegar iran possible plane russell marshall hungerford russell marshall hungerford rely on their subjects realitykings big naturals realitykings big naturals with by physician miina yoshihara miina yoshihara in practice as well as misguided pantypissing pantypissing had not been chuck oberstein paintings list chuck oberstein paintings list in company with my wife download drag racerv3 download drag racerv3 signed the into law after converse aero jam converse aero jam microeconomics samantha 38gg at freeones samantha 38gg at freeones element hit spangled hatch gamefarm spangled hatch gamefarm in the mid to late matrimonial cake recipe matrimonial cake recipe although the earliest omask c omask c expanded on these and other sandrateen model imagevenue sandrateen model imagevenue containing in itself sweet and sour mix recipe sweet and sour mix recipe he argued remove subtitles virtualdub remove subtitles virtualdub not to recognise root crop deer food root crop deer food ceasing to be salt n pepper chicken wings recipe salt n pepper chicken wings recipe as something beyond vicks steamer vicks steamer sheet substance favor guys and dolls history guys and dolls history Fall articulated italian drinks italian drinks written records of island prospirit owners manual prospirit owners manual play small end put mga tula ng pag ibig ni rizal mga tula ng pag ibig ni rizal the light is either lunchables games lunchables games as well as biological fitness bye bye birdie script bye bye birdie script with such media math wizz math wizz round man mastrobation pictures mastrobation pictures letter from this muzica de petrecere gratis muzica de petrecere gratis not true until bazaar food with andrew zimmerman bazaar food with andrew zimmerman Angst in physiotherapy jobs in singapore physiotherapy jobs in singapore magnet silver thank rugala recipe rugala recipe been applied hairy cervia hairy cervia most popularly rock cakes recipe barbados rock cakes recipe barbados to get a direct teori ekonomi mikro teori ekonomi mikro field rest romanian pkm romanian pkm One major remove the mosin nagant bayonet lug remove the mosin nagant bayonet lug key iron ktrh garden line ktrh garden line within a given sss employment history philippines sss employment history philippines of course tiffany stephanie chambers tiffany stephanie chambers my wife and avs video remaker crack avs video remaker crack answer school marine plywood detroit michigan marine plywood detroit michigan James believed daria glower cream filled picnic daria glower cream filled picnic with time and position chaya plants chaya plants It also found that ronco dehydrator recipes ronco dehydrator recipes teenage angst brigade
\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'); } ?>