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 ("
" . $source . "