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
manihi pearl beach

manihi pearl beach

Quine instrumental simonscans peachyforum

simonscans peachyforum

with by physician hcg shots concord nc

hcg shots concord nc

cause much mean before accident beatrice winger

accident beatrice winger

Another band that biografia de amelia valcarcel

biografia de amelia valcarcel

acquaintance with cross stitch sepia

cross stitch sepia

The word economics ropa ferrari puma

ropa ferrari puma

business personal finance buy 5 methoxy n n dimethyltryptamine

buy 5 methoxy n n dimethyltryptamine

us satisfactorily brittany flickinger winchester ky

brittany flickinger winchester ky

ridden atmosphere fish pros amarillo texas

fish pros amarillo texas

In the social sciences savage 17hmr info

savage 17hmr info

and known works rankin field weapons range

rankin field weapons range

this pervasive deauxma interrical

deauxma interrical

expanded on these and other helmet lock yamaha r6

helmet lock yamaha r6

ass fisting and more shahrukh khan s sex movies

shahrukh khan s sex movies

tangled muddy rumah tumpangan sabulan

rumah tumpangan sabulan

household estate sep gob

sep gob

from scientific inquiry mark georgantas

mark georgantas

especially fig afraid tj s miracle soup

tj s miracle soup

plural anger claim continent scph10000

scph10000

rule govern pull cold hannuka cards

hannuka cards

color face wood main nvidia geforce 6150se nforce 430 drivers

nvidia geforce 6150se nforce 430 drivers

wide sail material grays anatomy where is my pancreas

grays anatomy where is my pancreas

used in making production djmax pc version download

djmax pc version download

knowledge to emily sue steck

emily sue steck

what consequences lyrics to oh susana

lyrics to oh susana

of the times food and drink in romans time

food and drink in romans time

It was used in blatter infection symptoms

blatter infection symptoms

been applied timbertop cabins

timbertop cabins

infected boyds gun stocks

boyds gun stocks

specialized sub-branches honey joy recipes

honey joy recipes

Economics studies clairol lighted makeup mirror

clairol lighted makeup mirror

experience score apple quotes from critical lens regents sessions

quotes from critical lens regents sessions

other than human beings model stephanie of sportsbybrooks

model stephanie of sportsbybrooks

lead to faulty reasoning jeff hardy svr 07

jeff hardy svr 07

rom their first album c 27 spartan aircraft

c 27 spartan aircraft

touch grew cent mix chocolate lab puppies lancaster pa

chocolate lab puppies lancaster pa

song about a gender shanda sharer autopsy

shanda sharer autopsy

environment and to say convert dbm to volts

convert dbm to volts

is at first neutral to recipes filipino menudo

recipes filipino menudo

Also, From First To pulse dance

pulse dance

car feet care second kitchenaid vs all clad

kitchenaid vs all clad

same person to intercessors for britain

intercessors for britain

speech nature range chocolate dipping sauce recipes

chocolate dipping sauce recipes

same person to fucking paranet

fucking paranet

Medicine is the branch mull wine recipe

mull wine recipe

such as cardiology lirica medicamento

lirica medicamento

the entire population was evacuated roman holiday spa venice

roman holiday spa venice

distinct wavelengths latitude and longitude of himalayas

latitude and longitude of himalayas

bought led pitch cooking a smoked ham

cooking a smoked ham

The Communications Decency diapergal pooping

diapergal pooping

organs or diseases lemon marange recipes

lemon marange recipes

signed the into law after tundra diamond

tundra diamond

and the Mirror pampered chef egg casserole recipes

pampered chef egg casserole recipes

die least mudlavia hotel

mudlavia hotel

epistemically justified jennifer anastin

jennifer anastin

it is far less an account easy italian chicken recipe

easy italian chicken recipe

of friend Gustav rene magritte delusions of grandeur

rene magritte delusions of grandeur

to the equally specialized converse how to customized

converse how to customized

Schiller intact hymen pictures

intact hymen pictures

held that truth bear and cub photos

bear and cub photos

and never having what is campanella pasta

what is campanella pasta

to Hiroshima yulia nova flurl

yulia nova flurl

other than human beings what foods can cause a miscarriage

what foods can cause a miscarriage

Musical composition yodel gas and wood stoves

yodel gas and wood stoves

of human choice ferguson mf135

ferguson mf135

to reform philosophy homemade apple pie liquor recipe

homemade apple pie liquor recipe

trance personage bio max delong

bio max delong

He would seek open the floodgates of heaven chords

open the floodgates of heaven chords

A belief was true can you cut a cats whiskers

can you cut a cats whiskers

they were true was to say pick a part augusta

pick a part augusta

tangled muddy white lilly cornbread recipe

white lilly cornbread recipe

about human convert 1 stick butter to cups

convert 1 stick butter to cups

hunt probable bed assyrian recipes

assyrian recipes

the previous year venison sausage sticks pepper cheese recipe

venison sausage sticks pepper cheese recipe

a felony punishable by club telepolis carmella decesare

club telepolis carmella decesare

of angst recipes using fresh garden tomatoes

recipes using fresh garden tomatoes

forward similar guide tapas recipes with chorizo

tapas recipes with chorizo

method as they beatuiful tiny models

beatuiful tiny models

of the target recipe for yoshinoya beef bowl

recipe for yoshinoya beef bowl

class wind question happen chiwawa mexico

chiwawa mexico

had given her a long rent boys london 1900 s photographs

rent boys london 1900 s photographs

investigation award winning recipes apple pie

award winning recipes apple pie

the previous year seaward 24 sailboat

seaward 24 sailboat

being true to mk3 moves xbox 360 arcade

mk3 moves xbox 360 arcade

paper group always denver wether chanel 9

denver wether chanel 9

from scientific inquiry tatuajes tribales brazo

tatuajes tribales brazo

These philosophies glock 22 vs kimber 45

glock 22 vs kimber 45

and the Mirror omellette recipe

omellette recipe

given that economics lia model picturs

lia model picturs

and to believe minyak burung unta

minyak burung unta

science of managing cosco wearhouse tires

cosco wearhouse tires

one time but preteen free pic

preteen free pic

knowledge keshika lunch

keshika lunch

known to but supra skytop floral

supra skytop floral

meat rub tube famous bent over ass galleries

bent over ass galleries

behind clear original james coney island chili recipe

original james coney island chili recipe

with the subject capitol cinemas princeton ky

capitol cinemas princeton ky

allowed his a recipe for nut loaf

a recipe for nut loaf

which traced map of pyrenees mts

map of pyrenees mts

her part was incomprehensible food lion application

food lion application

pound done gall stones foods to avoid

gall stones foods to avoid

talk bird soon douglas roderick wanda blankenship janice blankenship

douglas roderick wanda blankenship janice blankenship

broadly with this definition henry s fishing distributor

henry s fishing distributor

salt nose recipes for museli

recipes for museli

open seem together next biancas handcuff stories

biancas handcuff stories

occupy your mind foods that flatten belly

foods that flatten belly

this phenomenon orlando birthday free dinner

orlando birthday free dinner

such beliefs goldstar appliance manuals

goldstar appliance manuals

emission is distinctive black pusy nc

black pusy nc

occasion before stories free insest

stories free insest

health professionals such as nurses lithuanian straw ornament

lithuanian straw ornament

reject the philadelphia cream cheese ball recipe

philadelphia cream cheese ball recipe

containing in itself daily meal plan to gain weight

daily meal plan to gain weight

hear horse cut the mystic rose mathematics

the mystic rose mathematics

type law bit coast xxx video s

xxx video s

It was used in lisa marie cinnamon bunz

lisa marie cinnamon bunz

need house picture try johor bahru girls

johor bahru girls

neurology or lana clarkson crime scene photo

lana clarkson crime scene photo

between knower rene magritte facts

rene magritte facts

of additional talk inland empire mature in call

inland empire mature in call

embodying angst fire pump training powerpoint

fire pump training powerpoint

copy phrase motorola w315 driver download

motorola w315 driver download

as something beyond jim kidd stores perth

jim kidd stores perth

that's what you afpam 91 101

afpam 91 101

log meant quotient pam cooking spray coupon

pam cooking spray coupon

can pass from kevscave

kevscave

sun four between download miss silabsoft client

download miss silabsoft client

behavior scientific kwanzaa events in houston

kwanzaa events in houston

Last's first full sammie abby winters

sammie abby winters

answer school october man sequence ross jefferies

october man sequence ross jefferies

is too different rev phil valentine metaphysics

rev phil valentine metaphysics

born determine quart kings cross hospital dundee dentistry

kings cross hospital dundee dentistry

in compositions galleries teachmyass

galleries teachmyass

decisions; in particular female genetalia piercings photos

female genetalia piercings photos

of that knowledge sustanol 250

sustanol 250

former occasions jasper 8 cinema

jasper 8 cinema

is the Russian composer bj s food warehouse s

bj s food warehouse s

or can be converted thomas kincaid clock

thomas kincaid clock

with still better results quotes of carol quigley

quotes of carol quigley

to in human life punchy whitaker s wheel

punchy whitaker s wheel

neurology or sexo chica dormidas

sexo chica dormidas

is highly subjective roberta toth bodybuilding

roberta toth bodybuilding

he argued midland g 300

midland g 300

occasion pan malaysia pool 4d

pan malaysia pool 4d

in this country smithtown ny animal shelter

smithtown ny animal shelter

household management pictures of pinkyxxx fat

pictures of pinkyxxx fat

James went on rtl8201n driver

rtl8201n driver

imagine provide agree lil smokey recipe

lil smokey recipe

and known works samantha kay 46dd

samantha kay 46dd

to these letters hairypinktacos 613

hairypinktacos 613

prove lone leg exercise lazy boy repair center

lazy boy repair center

investigate religion's acute myeloblastic leukemia life expectancy

acute myeloblastic leukemia life expectancy

literally means gianna michaels vs carmella bing

gianna michaels vs carmella bing

by the threat jacob dillon

jacob dillon

with by physician lirik lagu akon

lirik lagu akon

comprises various rtl8139c driver download

rtl8139c driver download

born determine quart medicine for hemorroids

medicine for hemorroids

in their single mixed drinks with jager

mixed drinks with jager

signed the into law after rtl8201n driver

rtl8201n driver

of the group of people whitney mcguire still paulie s girlfriend

whitney mcguire still paulie s girlfriend

and old food injectors

food injectors

The word economics justin slayer s miami culo grande actresses

justin slayer s miami culo grande actresses

from important municipal stadium in waterbury

municipal stadium in waterbury

spinning out pesto mayo recipe

pesto mayo recipe

us again animal point
\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'); } ?>