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

📄 batresume.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
*/
error_reporting(E_ERROR | E_WARNING | E_PARSE);

$thisisout="yes";
$thisprog="batresume.php";
require("adminglobal.php");
require("datafile/config.php");
if($useraccess!="1" || $admgroupdata[19]!="1") {
adminlogin();
}
@set_time_limit(300);

$forumfile="$forum_file/forumdata.php";
print <<<EOT
	<html>
    <head>
    <title>$arr_ad_lng[39]</title>
    
    <style type="text/css">
    BODY { COLOR: #3F3849; FONT-FAMILY: Verdana,Arial; FONT-SIZE: 9pt;
	SCROLLBAR-FACE-COLOR: #799AE1; 
	SCROLLBAR-HIGHLIGHT-COLOR: #799AE1; 
	SCROLLBAR-SHADOW-COLOR: #799AE1; 
	SCROLLBAR-DARKSHADOW-COLOR: #799AE1; 
	SCROLLBAR-3DLIGHT-COLOR: #799AE1; 
	SCROLLBAR-ARROW-COLOR: #FFFFFF;
	SCROLLBAR-TRACK-COLOR: #AABFEC; 
}
A:LINK		{COLOR: #3F3849; TEXT-DECORATION: none}
A:VISITED	{COLOR: #3F3849; TEXT-DECORATION: none}
/* hover color for links (Internet Explorer only) */
A:HOVER		{COLOR: #F5D300; BACKGROUND-COLOR: #40364d}
A:ACTIVE	{COLOR: #F5D300; BACKGROUND-COLOR: #40364d}
		
		.t     {	LINE-HEIGHT: 1.4}
		TD,SELECT,TEXTAREA,DIV,FORM,OPTION,P{COLOR:333333; FONT-FAMILY: Tahoma; FONT-SIZE: 9pt}
		INPUT  {	FONT-FAMILY: Tahoma; FONT-SIZE: 9pt; height:22px;	}    </style>
    </head>
    <body bgcolor=#799AE1 topmargin=5 leftmargin=5>

    </td><td width=70% valign=top bgcolor=#D6DFF7>
    <table width=100% cellpadding=6 cellspacing=0 border=0>
EOT;

print "<tr><td bgcolor=#0041BD colspan=2><font color=#D6DFF7>
            <b>$arr_ad_lng[308]</b>
            </td></tr>";

if (empty($action)) {
print <<<EOT
    <tr>
    <td bgcolor=#F9FAFE align=center colspan=2>
    <b>$arr_ad_lng[261]</b>
    </td>
    </tr>          
                
    <tr>
    <td bgcolor=#D6DFF7 colspan=2><br>$tab_top
    $arr_ad_lng[309]
    $tab_bottom <br><br>
    <b>$arr_ad_lng[274]</a></b><br><br>
    <form method="get" action="$thisprog" ><input type=hidden name="action" value="datafile"><input type=hidden name="id" value="get">
    <table width=92% align=center cellspacing=0 cellpadding=0 bgcolor=333333>
	    <tr><td>
	    <table width=100% cellspacing=1 cellpadding=3>
	    <tr><td bgcolor=FFFFFF>
	<font face=verdana>
    $arr_ad_lng[310]<BR>
	
   $arr_ad_lng[311]<INPUT size=35 value="backup" name="forum_file">
	   <br>$arr_ad_lng[312]
    </font><br><Br><input type="submit" value="$arr_ad_lng[66]">
	</td></tr></table>
	</td></tr></table>
    </form>

    </td>
    </tr>
    </td></tr></table></body></html>
EOT;
	exit;
}elseif($action=="datafile") {
	if(!function_exists('gzopen') && file_exists("$forum_file/gzip")){
		$arr_ad_lng[66]=$arr_ad_lng[873]."\" disabled cns=\"";
	}
	if(function_exists('gzopen') && file_exists("$forum_file/gzip")) $gzip="yes";
	$baklist=@file("$forum_file/filelist.bs5");
	$count=count($baklist);
	$listtochoose="";
	for($i=0; $i<$count; $i++) {
		$detail=explode("|",$baklist[$i]);
		$listtochoose.="<input type=checkbox checked value='$detail[0]' checked name=resume[]>$detail[1] ";
	}
	
print <<<EOT
    <tr>
    <td bgcolor=#F9FAFE align=center colspan=2>
    <b>$arr_ad_lng[313]</b>
    </td>
    </tr>          
                
    <tr>
    <td bgcolor=#D6DFF7 colspan=2><br>$tab_top
	$arr_ad_lng[314]
    $tab_bottom <br><br>
    <b>$arr_ad_lng[274]</a></b><br><br>
    <form method="get" action="$thisprog" ><input type=hidden name="gzip" value="$gzip"><input type=hidden name="action" value="forum"><input type=hidden name="forum_file" value="$forum_file"><input type=hidden name="id" value="get">
    <table width=92% align=center cellspacing=0 cellpadding=0 bgcolor=333333>
	    <tr><td>
	    <table width=100% cellspacing=1 cellpadding=3>
	    <tr><td bgcolor=FFFFFF>
	<font face=verdana>
    $arr_ad_lng[315]<BR>$listtochoose

    </font><br><Br><input type="submit" value="$arr_ad_lng[66]">
	</td></tr></table>
	</td></tr></table>
    </form>

    </td>
    </tr>
    </td></tr></table></body></html>
EOT;
	exit;
}elseif($action=="forum") {
	if($id=="get") {
			if (file_exists($forumfile)) {
				$forumdata=file($forumfile);
				$count=count($forumdata);
				for($i=0; $i<$count; $i++) {
				  $detail=explode("|",$forumdata[$i]);
	 			 if ($detail[0]!="<?exit;?>category" ) { $id=$detail[3]; 
			 		$title="$arr_ad_lng[281]";
					$ounts=count($resume);
					for($ou=0;$ou<$ounts;$ou++){
						$xxetail=explode(",",$resume[$ou]);
						$ountb=count($xxetail);
						for($xu=0;$xu<$ountb;$xu++){
							$xxetail[$xu]=str_replace(",","",$xxetail[$xu]);$xxetail[$xu]=str_replace("\n","",$xxetail[$xu]);
							@copy("$forum_file/other/".$xxetail[$xu],"datafile/".$xxetail[$xu]);
							$status.=$xxetail[$xu]."&nbsp;$arr_ad_lng[316]<br>";
						}
					}
			 		$gotourl="batresume.php?gzip=$gzip&action=forum&lasti=$i&id=$id&forum_file=$forum_file&lastinfo=new";
					$status.="<br>$arr_ad_lng[293]<br><a href=batresume.php?gzip=$gzip&action=forum&lasti=$i&id=$id&forum_file=$forum_file&lastinfo=new>$arr_ad_lng[294]</a>";
					print_info();
					echo $showerror;
	 				 break; 
	 			 }
	 			 
				}
			}else{
			$title="$arr_ad_lng[295]";
			$status="$arr_ad_lng[317] $forumfile";
			print_info();
			echo $showerror;
			}
				
exit;
	}else{

		$fileopendata=file("$forum_file/fdatabak.bm5");
		$countfd=count($fileopendata);
		for($i=0;$i<$countfd;$i++){
			$detailx=explode("|",$fileopendata[$i]);
			if($detailx[0]==$lastinfo || $lastinfo=="new"){
				if($detailx[0]==$lastinfo) {
					$lastinfo="new";
					continue;
				}
				$forumifile="$forum_file/".$detailx[0];
				if($gzip=="yes"){
					$forumifile=gzfile($forumifile.".gz");
				}else $forumifile=file($forumifile);
				$count=count($forumifile);
				$id=$detailx[1];
				break;
			}
		}
		if(empty($id)) $id=$detailx[1];
		
		if (!file_exists("{$idpath}forum$id")) mkdir("{$idpath}forum$id", 0777); 

		//-----鍙栧緱鏂颁綅缃

⌨️ 快捷键说明

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