⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dumpforum.php

📁 bmb的论坛
💻 PHP
字号:
<?
/*
 BMForum Plus! Bulletin Board Systems
 Version : Plus!
 
 This is a freeware, but don't change the copyright information.
 A SourceForge Project - GNU Licence project.
 Web Site: http://www.bmforum.com
 Copyright (C) Bluview Technology
*/
$thisisout="yes";
require("datafile/config.php");
require("adminglobal.php");
if($useraccess!="1" || $admgroupdata[17]!="1") {
adminlogin();
}

@set_time_limit(300);
if (empty($username)) $username=$_COOKIE['bmfadminid'];
if (empty($password)) $password=$_COOKIE['bmfadminpwd'];


	$t=time();

//------閫佸嚭header -------------
	header("Content-disposition: filename=forum$id_$t.bmb");
	header("Content-type: application/octetstream");
	header("Pragma: no-cache");
	header("Expires: 0");
	
	$dh=opendir("{$idpath}forum$id/");
	while (false !== ($postfile = readdir($dh))) {
		if (ereg("^f_[0-9]+$",$postfile)) {
			$pfile="{$idpath}forum$id/$postfile";
			print "-post-\n";
			print str_replace("[/img]\n\n","[/img]<br><br>",readfromfile($pfile));
			if (file_exists("$pfile.buy")) {
				print "--buy--\n";
				$temp=trim(readfromfile("$pfile.buy"));
				$temp.="\n";
				print $temp;
			} elseif (file_exists("$pfile.sta")) {
				print "-sta-\n";
				$temp=trim(readfromfile("$pfile.sta"));
				$temp.="\n";
				print $temp;
			}
		}
	}
	closedir($dh);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -