BMForum

 更新时间:2016年11月25日 16:14  点击:1450
BMForum 拥有论坛程序中前所未有的领先技术和舒适的用户体验。
国内首家 打破传统分类方式 —— 主题随意贴(Tags、标签)
只要发帖时指定一个 Tag,就可以令帖子联系更紧密!
先进的 AJAX 技术 普遍用于发帖和浏览
快速翻页浏览、快速回复,一切如飞。
 
国内首家 论坛邀请注册方式
论坛用户可以通过自己的努力邀请其他人加入!
根据 XHTML1.0 + CSS 标准构建程序
论坛程序完全符合W3C国际标准,风格制作更简单。
 
国内首家 可视化发帖,让发帖更轻松
通过可视化发帖,方便、安全地张贴想要的内容
强大的后台管理,方便的快速定位
通过论坛程序内置的“我想”菜单方便找到你所想的
高效的论坛性能
论坛程序负载承受能力空前绝后
全球首家 多附件同时上传、附件图文混排
使用 BMForum 论坛程序,论坛发帖易如反掌
国内首家 领先的多国语言 UTF-8 编码
国际、港澳台交流更紧密
强大的用户组权限控制系统
所有用户根据论坛程序中的用户组权限识别权限
下载
http://www.bmforum.com/down/

<?
//请自己修改下面变量.
$newsnum=7;
$space=20;
$width=400;
$headclass="class5";
$lowerclass="class6";
//变量设置结束.
print "<html><head><link rel=stylesheet href=dark.css></head><body>";
$opened=$QUERY_STRING;
if ($opened=="") { $opened="-1"; }
print "<table><tr><td class=class5><a target=_blank href=http://www.php.net>www.php.net</a></td></tr>";
$file=file('http://www.php.net');
$where="";
$a=0;
while ($a<count($file)) {
$file[$a]=chop ($file[$a]);
if ($file[$a]=="<!--http://www.php.net/-->") {
$where=$a;
break 1;
}
$a ;
}
$file=file('http://www.php.net');
$a=$where 1;
$b=0;
while ($b<$newsnum) {
if (substr($file[$a],0,4)=="<h3>" & substr($file[$a],-6,5)=="</h3>" | substr($file[$a],0,4)=="<h3>" & substr($file[$a],-7,5)=="</h3>") {
$from=$to;
$to=$a;
}
if ($to==$a & $from!="") {
$c=$from;
if ($b==$opened) {
while ($c<$to) {
if (substr($file[$c],0,9)=="<img src=") {
$file[$c]="";
}
$file[$c]=eregi_replace("src="","src="http://www.php.net/",$file[$c]);
$file[$c]=eregi_replace("href="","href="http://www.php.net/",$file[$c]);
$file[$c]=eregi_replace("<h3>","</td></tr><tr><td width=$width class=$headclass><a href=$PHP_SELF?-1>",$file[$c]);
$file[$c]=eregi_replace("</h3>","</a></td></tr><tr><td width=$width class=$lowerclass>",$file[$c]);
<?php
/*我的程序在国外的SREVER上,自己编的程序存放到哪,我很难记清。
所以编了一个简单的目录递归函数,查看我的程序,很方便的。
*/
function tree($directory)
{
$mydir=dir($directory);
echo "<ul>
";
while($file=$mydir->read()){
if((is_dir("$directory/$file")) AND ($file!=".") AND ($file!=".."))
{echo "<li><font color="#ff00cc"><b>$file</b></font></li>
";
tree("$directory/$file");
}
else
echo "<li>$file</li>
";
}
echo "</ul>
";
$mydir->close();
}
//start the program
echo "<h2>目录为粉红色</h2>
";
tree(".");
?>

<?php
/***
hit_count表只一个字段hit_count
page_visit_record表是用来控制一个IP一天内只产生一个计数器跳动
CREATE TABLE page_visit_record (
visit_time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
remote_addr char(15) NOT NULL,
visit_page char(60) NOT NULL,
KEY visit_time (visit_time, visit_page),
PRIMARY KEY (visit_time)
);
***/
include("config.inc.php3");
$query="select count(*) as tong from page_visit_record where remote_addr='$REMOTE_ADDR' and date_format(visit_time,'%Y-%m-%d')=curdate()";
$result=@mysql_query($query,$dbconnect);
$has_count=@mysql_result($result,0,"tong");
@mysql_query("lock tables hit_count write",$dbconnect);
$query="select * from hit_count";
$result=@mysql_query($query,$dbconnect);
if(@mysql_num_rows($result)>0){
$cur_count=@mysql_result($result,0,"hit_count");
if($has_count==0){
$cur_count++;
$query="update hit_count set hit_count='$cur_count'";
@mysql_query($query,$dbconnect);
}
@mysql_query("unlock tables",$dbconnect);
}
else{
$cur_count=1;
$query="insert into hit_count (hit_count) values ('$cur_count')";
@mysql_query($query,$dbconnect);
@mysql_query("unlock tables",$dbconnect);
}
while(strlen($cur_count)<8)
$cur_count="0$cur_count";
$visit_time=date("Y-m-d H:i:s");
$query="insert into page_visit_record (visit_time,remote_addr,visit_page) values ('$visit_time','$REMOTE_ADDR','$page')";
@mysql_query($query,$dbconnect);
Header("Content-type: image/gif");
$im = imagecreate(56,16);
$black = ImageColorAllocate($im, 0,0,0);
$blue = ImageColorAllocate($im, 0,0,255);
$white = ImageColorAllocate($im, 255,255,255);
$yellow = ImageColorAllocate($im, 255,255,0);
imagerectangle($im, 0, 0, 54, 14, $blue);
//imagestring($im, 2, 4, 1, $cur_count, $yellow);
imagestring($im, 2, 4, 1, $cur_count, $yellow);
ImageGif($im);
ImageDestroy($im);
?>   
<?php
class popMail
{
var $user='sanshi0815@tom.com';
var $pwd='1234';
var $popFp;
var $msg;
var $welcome = '欢迎使用叁石pop 接收邮件!';
function popMail($popHost='pop.tom.com',$popPort=110)
{
$this->msg = array();
$this->msg[] = $this->welcome;
if ( $this->openPop($popHost,$popPort))
{
$this->msg[] = 'pop server connect success!';
}else{
print_r( $this->msg );
}
}
function checkCommon($com,$msg)
{
echo $cod = empty($com)? $this->getServerMsg() : $this->putServerMsg( $com );
$this->msg[] = ereg( "^ OK" ,$cod )? $msg : $com .' exec is fauiler!error:'.$cod ;
if( !ereg( "^ OK" ,$cod ) )
{
echo $cod;
print_r($this->msg);
$this->closeStmp();
exit(0);
}
}
function init()
{
$greeting='';
$rn=' ';
//$this->checkCommon('',"connect");
//echo $this->putServerMsg("APOP ".$this->user ." ".$this->pwd.$rn);
// $this->checkCommon("USER ",'user');
echo $this->putServerMsg("USER $this->user".$rn);
echo $this->putServerMsg("PASS $this->pwd".$rn);
print_r( $this->msg );
}
function openPop($popHost,$popPort=110)
{
if( empty($popHost) )
{
$this->msg[] = 'pop host is null!';
return false;
}
if( $fp = fsockopen($popHost,$popPort))
{
$this->popFp = $fp;
//echo $this->getServerMsg();
return true;
}
$this->msg[] = 'pop server connect failure';
return false;
}
function getServerMsg()
{
if( empty( $this->popFp ) )
{
$this->msg[] = 'popFp is null!';
print_r($this->msg);
return false;
}
return fgets( $this->popFp,512);
[!--infotagslink--]

相关文章

  • C++ STL标准库std::vector的使用详解

    vector是表示可以改变大小的数组的序列容器,本文主要介绍了C++STL标准库std::vector的使用详解,文中通过示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下...2022-03-06
  • 一文彻底理解js原生语法prototype,__proto__和constructor

    作为一名前端工程师,必须搞懂JS中的prototype、__proto__与constructor属性,相信很多初学者对这些属性存在许多困惑,容易把它们混淆,下面这篇文章主要给大家介绍了关于js原生语法prototype,__proto__和constructor的相关资料,需要的朋友可以参考下...2021-10-24
  • php KindEditor文章内分页的实例方法

    我们这里介绍php与KindEditor编辑器使用时如何利用KindEditor编辑器的分页功能实现文章内容分页,KindEditor编辑器在我们点击分页时会插入代码,我们只要以它为分切符,就...2016-11-25
  • python-for x in range的用法(注意要点、细节)

    这篇文章主要介绍了python-for x in range的用法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧...2021-05-10
  • Go应用中优雅处理Error的技巧总结

    在程序员中,尤其是go新手,经常听到的一个讨论话题是:如何处理错误,这篇文章主要给大家介绍了关于Go应用中优雅处理Error的一些相关技巧,需要的朋友可以参考下...2021-09-08
  • vue项目页面嵌入代码块vue-prism-editor的实现

    这篇文章主要介绍了vue项目页面嵌入代码块vue-prism-editor的实现,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下...2020-10-30
  • 使用Python的pencolor函数实现渐变色功能

    这篇文章主要介绍了使用Python的pencolor函数实现渐变色功能,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下...2021-03-09
  • php取整函数ceil,floor,round的用法及介绍

    ceil 是向上进位得到一个值的函数;floor 是舍掉小数位得到一个值的函数;round 是用来四舍五入的函数ceil定义和用法:ceil() 函数向上舍入为最接近的整数。...2013-09-28
  • forum.php怎么打开?

    本文介绍了forum.php的打开方法,不会的同学可以参考一下。 虚拟空间,网页管理端, 会有一个默认访问页面(找一下,是这个意思,可能会有所不同),内容一般是 index.html index...2017-07-06
  • Vue.js中轻松解决v-for执行出错的三个方案

    v-for标签可以用来遍历数组,将数组的每一个值绑定到相应的视图元素中去,下面这篇文章主要给大家介绍了关于在Vue.js中轻松解决v-for执行出错的三个方案,文中通过示例代码介绍的非常详细,对大家具有一定的参考学习价值,需要的朋友们下面来一起看看吧。...2017-06-15
  • Pytorch之扩充tensor的操作

    这篇文章主要介绍了Pytorch之扩充tensor的操作,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧...2021-03-05
  • Javascript for in的缺陷总结

    这篇文章主要介绍了Javascript for in的缺陷总结的相关资料,需要的朋友可以参考下...2017-02-08
  • 百度编辑器ueditor修改图片上传默认路径

    本案例非通用,仅作笔记以备用 修改后的结果是 百度编辑器里上传的图片路径为/d/file/upload1...2014-07-03
  • Navicat for MySQL 11注册码\激活码汇总

    Navicat for MySQL注册码用来激活 Navicat for MySQL 软件,只要拥有 Navicat 注册码就能激活相应的 Navicat 产品。这篇文章主要介绍了Navicat for MySQL 11注册码\激活码汇总,需要的朋友可以参考下...2020-11-23
  • 解决Docker中的error during connect异常情况

    这篇文章主要介绍了解决Docker中的error during connect异常情况,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧...2020-11-22
  • SQLServer 错误: 15404,无法获取有关 Windows NT 组/用户 WIN-8IVSNAQS8T7\Administrator 的信息

    SQLServer 错误: 15404,无法获取有关 Windows NT 组/用户 'WIN-8IVSNAQS8T7\Administrator' 的信息,错误代码 0x534。 [SQLSTATE 42000] (ConnIsLoginSysAdmin)...2021-07-15
  • shell中的for循环用法详解

    这篇文章主要介绍了shell中的for循环用法详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧...2020-07-11
  • python Tensor和Array对比分析

    今天小编就为大家分享一篇python Tensor和Array对比分析,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧...2020-04-27
  • Java反应式框架Reactor中的Mono和Flux

    这篇文章主要介绍了Java反应式框架Reactor中的Mono和Flux,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下...2021-07-25
  • error LNK2019: 无法解析的外部符号 问题的解决办法

    error LNK2019: 无法解析的外部符号 问题的解决办法,需要的朋友可以参考一下...2020-04-25