<?php
/*
BMForum Bulletin Board Systems
Code Name: Datium! (MySQL)
This is a freeware, but don't change the copyright information.
A SourceForge Project.
Web Site: http://www.bmforum.com
Copyright (C) Bluview Technology
*/
if (!defined('INBMFORUM')) die("Access Denied");
require_once("include/version.php");
// -----------------------------------------------------------
// PHP 5.1 supported.
// -----------------------------------------------------------
require("include/db/db_{$sqltype}.php");
require("lang/$language/global.php");
set_magic_quotes_runtime(0);
$mqgpc = get_magic_quotes_gpc();
$rggps = ini_get("register_globals");
if ($mqgpc == 0) {
if ($rggps == 0) {
@extract(addsd($_SESSION), EXTR_SKIP);
@extract(addsd($_POST), EXTR_SKIP);
@extract(addsd($_GET), EXTR_SKIP);
} else {
@extract(addsd($_SESSION), EXTR_OVERWRITE);
@extract(addsd($_POST), EXTR_OVERWRITE);
@extract(addsd($_GET), EXTR_OVERWRITE);
}
} else {
@extract($_SESSION, EXTR_SKIP);
@extract($_POST, EXTR_SKIP);
@extract($_GET, EXTR_SKIP);
}
// END
$begin_time = micro_time();
bmbdb_connect($db_server, $db_username, $db_password, $db_name, 0, $mysqlchar);
$timestamp = mktime();
$datestime = $timestamp + ($time_1 * 60 * 60);
$nowhours = gmdate("H", $datestime);
$ddwtail = explode("|", $scclose);
$querynum = 0;
$tmpdir = getdate($timestamp);
if ($saveattbyym == 1) $monthdir = "month" . $tmpdir['year'] . $tmpdir['mon'] . "/";
$tmpdir = $tmpdir['year'] . $tmpdir['yday'];
if (!$sess_cust) {
@session_save_path("tmp");
}
@session_name('bmsess');
@session_cache_limiter("private, post-check=0, pre-check=0, max-age=0");
@session_start();
$ip = $_SERVER['REMOTE_ADDR'];
$ip1 = $_SERVER['HTTP_X_FORWARDED_FOR'];
if (($ip1 != "") && ($ip1 != "unknown")) $ip = $ip1;
$ip = str_replace('|', '', htmlspecialchars(addslashes($ip)));
// --refresh check --
$cookietime = $timestamp + 3153600;
$REQUEST_URI = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : $_SERVER['PHP_SELF'];
if ($refresh_allowed) {
if ($REQUEST_URI == $_COOKIE['lastpath'] && ($timestamp - $_COOKIE['lastvisit_fr'] < $refresh_allowed)) {
@header("Content-Type: $encode_info");
die("$gl[374]");
}
bmb_setcookie('lastpath', $REQUEST_URI);
bmb_setcookie('lastvisit_fr', $timestamp);
}
$ugsocount = 0;
include_once("datafile/cache/usergroup.php");
include_once("datafile/cache/forumdata.php");
$addquery = $plusug = "";
// Filter
if (!is_numeric($forumid)) $forumid = "";
if (!is_numeric($tid)) $tid = "";
if (!is_numeric($filename)) $filename = "";
if (!is_numeric($article) && $article != "all" && $article != "multi") $article = "";
$actionreason = htmlspecialchars ($actionreason);
// END
$username = $tcode_item = $tcode_count = "";
if (!empty($_SESSION['bmforumerboardidnum']) && !empty($_SESSION['bmforumerboardpwd']) && checkpass("", $_SESSION['bmforumerboardpwd'], $_SESSION['bmforumerboardidnum'])) {
// Copyright(C) Blue Magic Board BMForum.com
$login_status = 1;
if ($_COOKIE['bmforumerboardidnum'] == $_SESSION['bmforumerboardidnum']) {
$password = $_SESSION['bmforumerboardpwd'];
} else {
if (checkpass("", $_COOKIE['bmforumerboardpbmfym'], $_COOKIE['bmforumerboardidnum'])) {
$password = $_COOKIE['bmforumerboardpbmfym'];
} else {
$usermoney = $userpoint = $userbym = $postamount = $login_status = 0;
add_guest();
}
}
if ($login_status != 0) {
getUserInfo();
if ($username != "") add_online();
$o_username = urlencode($username);
// 记入上次访问时间开始
if ($hisipa != $ip) {
$hisipc = $hisipb;
$hisipb = $hisipa;
$hisipa = $ip;
}
$tlastvisit = $timestamp;
}
} elseif (!empty($_COOKIE['bmforumerboardidnum']) && !empty($_COOKIE['bmforumerboardpbmfym']) && checkpass("", $_COOKIE['bmforumerboardpbmfym'], $_COOKIE['bmforumerboardidnum'])) {
// Logon
$login_status = 1;
// Read vars from cookie&session;
$bmforumerboardpwd = $_COOKIE['bmforumerboardpbmfym'];
$password = $_COOKIE['bmforumerboardpbmfym'];
$bmblogonskin = $_COOKIE['bmbskin'];
$privacy = $_COOKIE['privacybym'];
$TNM = $_COOKIE['TNM'];
$_SESSION["bmforumerboardpwd"] = $_COOKIE['bmforumerboardpbmfym'];
$_SESSION["bmforumerboardidnum"] = $_COOKIE['bmforumerboardidnum'];
$_SESSION["privacy"] = $_COOKIE['privacybym'];
$_SESSION["TNM"] = $_COOKIE['TNM'];
// Processing Data
getUserInfo();
if ($usertype[22] == 1) error_reporting(E_ERROR | E_WARNING | E_PARSE);
if ($username != "bmforumerboardid") add_online();
$o_username = urlencode($username);
// Last Visit
list($openit, $eudate, $eugroup) = explode(",", $foreuser);
if ($openit == "yes" && $timestamp >= $eudate) {
$addquery = " ugnum='" . str_replace("\n", "", $eugroup) . "',";
$foreuser = "";
}
if ($hisipa != $ip) {
$hisipc = $hisipb;
$hisipb = $hisipa;
$hisipa = $ip;
}
$tlastvisit = $timestamp;
$lastlogin = $timestamp;
$nquery = "UPDATE {$database_up}userlist SET $addquery foreuser='$foreuser',hisipa='$hisipa',hisipb='$hisipb',hisipc='$hisipc',tlastvisit='$tlastvisit',lastlogin='$lastlogin' WHERE userid='$userid'";
$result = bmbdb_query($nquery);
} else {
$usermoney = $userpoint = $userbym = $postamount = $login_status = 0;
add_guest();
}
// Check permission
if ($usertype[22] == 1 && $login_status == 1) error_reporting(E_ERROR | E_WARNING | E_PARSE);
// Ban IP&ID
idbanned();
ipbanned();
$log_hash = substr(md5($password.$userid), 0, 6);
// -------------- Processed Time ------------
function micro_time()
{
preg_match('/^0(\\.\d+) (\d+)$/', microtime(), $tmp);
return (real)$tmp[2] . $tmp[1];
}
// ---------Display the Message Table-------------------
function msg_box($title, $content, $showtips = '1')
{
global $bm_skin, $pgo, $temfilename, $gl;
if ($showtips) {
$msg_box_title = "$gl[375] $title";
$msg_box_detail = "$gl[376] {$title} $gl[377]<br /><br />";
} else {
$msg_box_title = "$title";
}
require("newtem/$temfilename/global.php");
echo $pgo[0];
}
// +------------------------------------------------------------------------------------------------------
// ---------Display the Navigation Bar-------------------
function navi_bar($des = "", $l2 = "", $l3 = "", $echorefresh = "yes", $nolimit = "1")
{
global $bbs_title, $pgo, $fjsjump, $echonaved, $snavi_bar_url, $snavi_bar, $otherimages, $navimode;
if ($nolimit == 0 && $echonaved == 1) return;
$echonaved = 1;
$closepic = "<a href=\"$site_url\"><img border=\"0\" src=\"$otherimages/system/closedfold.gif\" alt=\"$site_name\" /></a>";
$openpic = " >> ";
$barpic = "";
$space = "";
if (empty($des)) global $des;
$count = count($snavi_bar);
if ($fjsjump) $fjsjump_t = "onmouseover=\"showmenu(event,linkset[0],0);\" onmouseout=\"delayhidemenu();\"";
print $pgo[4] . $space . $closepic . "<a href=\"index.php\" $fjsjump_t>$bbs_title</a>";
if ($l3) $l2pic = $closepic;
else $l2pic = $openpic;
if ($navimode == newmode) {
for ($i = 0; $i < $count; $i++) {
echo $space . $barpic . $openpic;
if (!empty($snavi_bar_url[$i])) echo "<a href=\"$snavi_bar_url[$i]\">$snavi_bar[$i]</a>";
else echo $snavi_bar[$i];
}
} else {
echo $space . $barpic . $openpic . "$l2";
if ($l3) echo $space . $space . $barpic . $openpic . $l3;
}
print $pgo[5] . $des;
echo $pgo[6];
}
// +----------------------------------------------------------
没有合适的资源?快使用搜索试试~ 我知道了~
商业源码-编程源码-BMForum 2007 v5.6 多国语言版.zip
共731个文件
gif:399个
php:237个
htm:51个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 29 浏览量
2022-06-14
20:43:51
上传
评论
收藏 1.12MB ZIP 举报
温馨提示
商业源码-编程源码-BMForum 2007 v5.6 多国语言版.zip
资源推荐
资源详情
资源评论
收起资源包目录
商业源码-编程源码-BMForum 2007 v5.6 多国语言版.zip (731个子文件)
520070221 2KB
520070609 416B
bsd01.bs5 652B
styles.css 14KB
styles.css 12KB
itemcontent.css 4KB
editor.css 4KB
fbxslt.css 3KB
admin.css 3KB
avatar.dat 164B
logo.gif 16KB
logosmall.gif 14KB
toolbar_002.gif 13KB
toolbarbutton.background.gif 13KB
toolbar.Horizontal.background.gif 13KB
b1.gif 6KB
b17.gif 6KB
b12.gif 6KB
b14.gif 6KB
b6.gif 6KB
b16.gif 6KB
b4.gif 6KB
b2.gif 6KB
b19.gif 6KB
b7.gif 5KB
b10.gif 5KB
b15.gif 5KB
b9.gif 5KB
b5.gif 5KB
b13.gif 5KB
b3.gif 5KB
b11.gif 5KB
normal.gif 5KB
b18.gif 5KB
b.gif 5KB
b8.gif 5KB
icon1200.gif 4KB
icon2001.gif 4KB
05.gif 3KB
icon2100.gif 3KB
icon1001.gif 3KB
icon1800.gif 3KB
icon8000.gif 2KB
38.gif 2KB
29.gif 2KB
icon9000.gif 2KB
1.gif 2KB
5.gif 2KB
icon5000.gif 2KB
48.gif 2KB
20.gif 2KB
icon1000.gif 2KB
icon1100.gif 2KB
icon1300.gif 2KB
a.gif 2KB
icon1500.gif 2KB
forum_new.gif 2KB
33.gif 2KB
23.gif 2KB
icon7000.gif 2KB
forum.gif 2KB
11.gif 2KB
45.gif 2KB
41.gif 2KB
icon9100.gif 2KB
icon3000.gif 1KB
43.gif 1KB
8.gif 1KB
icon1400.gif 1KB
forum_lock.gif 1KB
icon4000.gif 1KB
icon9200.gif 1KB
20.gif 1KB
newpm.gif 1KB
outboxpm.gif 1KB
icon2000.gif 1KB
inboxpm.gif 1KB
51.gif 1KB
deletepm.gif 1KB
14.gif 1KB
10.gif 1KB
13.gif 1KB
39.gif 1KB
18.gif 1KB
46.gif 1KB
icon1600.gif 1KB
2.gif 1KB
icon4600.gif 1KB
15.gif 1KB
menubg.gif 1KB
50.gif 1KB
url_d.gif 1KB
37.gif 1KB
42.gif 1KB
36.gif 1KB
26.gif 1KB
7.gif 1KB
mytopiclocked.gif 1KB
mytopichot.gif 1KB
url.gif 1KB
共 731 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
programxh
- 粉丝: 17
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功