<?php if ($fid) { $db->query_str("UPDATE {$tab['ucscripts']} SET dls=dls+1 WHERE id='{$fid}'"); $file = get_ucscripts($fid); savetraffic(@filesize($file[path])); header("Content-Type: application/octetstream"); header("Content-Disposition: attachment; filename=" . @basename($file[path])); header("Pragma: no-cache"); header("Expires: 0"); $fp = @fopen($file[path], "rb"); $str = @fread($fp, @filesize($file[path])); @fclose($fp); die($str); exit; }
} } savetraffic(strlen($zip->file())); $dateiname = "PMs-Backup " . date("d-m-Y") . ".zip"; header("Content-Type: application/octetstream"); header("Content-Disposition: attachment; filename=" . $dateiname); header("Pragma: no-cache"); header("Expires: 0"); echo $zip->file(); exit; } ##### if ($dlsection == "pm" && !is_array($sourceid)) { $pm = getpm($sourceid); if ($pm[toid] != $login[id] && $pm[autid] != $login[id]) { eval("\$inc[action] = \"" . gettemplate("fail.access.noaccess") . "\";"); } else { $user = getuser($pm[autid]); $dateiname = "PM-Backup " . date("m-Y") . ".zip"; eval("\$pmdl = \"" . gettemplate("pm.dl") . "\";"); $zip->addFile($pmdl, "PM von {$user['user_name']}.txt"); savetraffic(strlen($zip->file())); header("Content-Type: application/octetstream"); header("Content-Disposition: attachment; filename=" . $dateiname); header("Pragma: no-cache"); header("Expires: 0"); echo $zip->file(); exit; } } ####
if (!$stopheaderoutput_main) { $output .= $inc[maintableclose]; } ## CLOSING MENU TABLE ## if (!$stopheaderoutput_main) { $output .= $inc[sworastats]; } ## STATS ## if (!$stopheaderoutput_head) { $output .= $inc[htmlfoot]; } ## LAST HTML TAGS ## /////////////////////////////// // Traffic /////////////////////////////// savetraffic($traffic = strlen($output) + 4); $thetraffic = $traffic / 1024; if (!$stopheaderoutput_head && !$stopheaderoutput_action) { $traffictext = "<!-- " . round($thetraffic, 4) . "Kb //-->\r\n"; $output = preg_replace("#^(<!.*>)#", "\\1\r\n{$traffictext}", $output); //$output = ("<!-- ".round($thetraffic,4)."Kb //-->\r\n") . $output; } /////////////////////////////// // DISCONNECT FROM SQL /////////////////////////////// $db->disconnect(); ////////////////////////////// // Ausgabe ////////////////////////////// style($output); flush();