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

📄 action.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
📖 第 1 页 / 共 3 页
字号:
                exit;
        }
function print_bar() {
global $forum_name,$forumid;
headguide("您正处在<br>ftb论坛 <br>的帖子评分程式中",
"<a href=\"thread.php?forumid=$forumid\">$forum_name</a>",
"帖子评分程式","no");
}
	if (!$filename || !$forumid || !ereg("^f_[0-9]+$",$filename)) exit;
	if (!file_exists("{$idpath}forum$forumid/$filename")) exit;
	$articlelist=file("{$idpath}forum$forumid/$filename");
	$count=count($articlelist);
	if (!isset($article) || !$articlelist[$article]) exit;
	list($articletitle,$author,$articlecontent,$time,$area,$icon,$p,$rvrc,$pfuser,$buyers)=explode("|",$articlelist[$article]);
	
if (ereg("[0-9]{1,3}$",$rvrc)) {
                $status="此贴已评";
                include("header.php");echo"$headertp";
                print_bar();
                print_err();
                require("footer.php");echo"$footertp";
                exit;
        }
if ($username==$author && $username != $manager)
{
                $status="不要评自己的贴";
                include("header.php");echo"$headertp";
                print_bar();
                print_err();
                require("footer.php");echo"$footertp";
                exit;
        }
if ($step != 2)
{ include("header.php");echo"$headertp";
print_bar();
$time=getfulldate($time);
$rvrcm=$rvrc1/10;
if (strlen($articlecontent)>300) $articlecontent=substr($articlecontent,0,294)."......";
?><table width=<?=$tablewidth ?> border=0 cellspacing=0 cellpadding=0 align=center bgcolor=<?=$bordercolor ?>>
 <tr>
 <td>
  <table width=100% border=0 cellspacing=1 cellpadding=3>
   <tr> 
    <td class=title bgcolor=<?=$titlecolor ?>><b>帖子评分程式</b></td>
   </tr>
   <tr bgcolor=<?=$list_color2?>> 
    <td><br><div align="center"><br>
<form action=action.php?starwwjob=starww  method=post method=POST>
你要把《<b><?=$articletitle ?></b>》 评为<font color=red><b> <?=$rvrcm ?></b> </font>分吗?
<br>此贴作者:<?=$author ?>  发表时间:<?=$time ?> 主要内容如下:
<table cellpadding=0 cellspacing=0 border=0 WIDTH=94% bgcolor=#000000 align=center><tr><td><table width=100% cellpadding=5 cellspacing=1 border=0><TR><TD BGCOLOR=#EFF3F9>
<div align="center"><?=$articlecontent ?></div>
</td></tr>
</table></td></tr></table>
<br><input type=submit value=' 确 认 继 续 ' 
onClick="location.href='javascript:history.back(1)';" 
style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
<input type=hidden name=filename value=<?=$filename ?>>
<input type=hidden name=rvrc1 value=<?=$rvrc1 ?>>
<input type=hidden name=username value=<?=$username ?>>
<input type=hidden name=forumid value=<?=$forumid ?>>
<input type=hidden name=article value=<?=$article ?>>
<input type=hidden name=step value='2'></form>
<a href='javascript:history.back(1)'>返回前一页</a></div>
</td>
   </tr>
   <tr align=left> 
    <td bgcolor=<?=$titlecolor ?>>&nbsp;</td>
   </tr>
  </table>
 </td>
 </tr>
</table>            
     <?          
                require("footer.php");echo"$footertp";
                exit;
   }
	$file_line=array($articletitle,
					$author,
					$articlecontent,
					$timestamp,
					$area,
                                        $icon,$p,$rvrc,$pfuser,$buyers);
			if ($usesignature=="checkbox") {$file_line[6]='1';} else {$file_line[6]='0';}
			$file_line[7]=$rvrc1;
                        $file_line[8]=$username;
                        $articlelist[$article]=implode("|",$file_line)."|\n";

			
			$articlelist=implode("",$articlelist);
			writetofile("{$idpath}forum$forumid/$filename",$articlelist);
                        $useri=get_user_info($author);	
        $useri[16]=$useri[16]+$rvrc1;
	$uu=implode('|',$useri);
	writetofile("$userpath/$author.php",$uu);
//增减威望后发短消息通知作者
$page=floor($article/$read_perpage)+1;
$rvrc1=$rvrc1/10;
if($rvrc1>=0) {$ofstar="奖励";$ofrvrc="增加了".$rvrc1."点";}
	else {$ofstar="惩罚";$ofrvrc="减少了".$rvrc1*(-1)."点";}
if (file_exists("userdata/$msgpath/{$author}1.php")) $msg=file("userdata/$msgpath/{$author}1.php"); else $msg[0]="";
$new="<?die;?>|系统信息|你的文章被评分啦~|$timestamp|你在<b>[<a href=\"thread.php?forumid=$forumid\" target=blank><font color=blue>$forum_name</font></a>]</b>发表的文章:<a href=\"read.php?forumid=$forumid&filename=$filename&page=$page#$article\" target=blank><font color=blue>$articletitle</font></a>受到<font color=blue>$file_line[8]</font>的<font color=red>$ofstar</font>,你的威望因此<font color=red>$ofrvrc</font>。|0|\n";
$old=implode("",$msg);
writetofile("userdata/$msgpath/{$author}1.php",$new.$old);
//增减威望后发短消息通知作者
			jump_page("read.php?forumid=$forumid&filename=$filename","评分成功");
}
if($viewadminjob==viewadmin)
{
$forumid=111;//用于在线详情
require("userdata/style.php");
$add_title=" &gt;斑竹之家";
require("header.php");echo"$headertp";

$des="您现在正查看{$bbs_title}斑竹之家";
headguide($des,"斑竹之家");

?>
<table width=<?=$tablewidth?> border=0 cellspacing=0 cellpadding=0 align=center bgcolor=<?=$bordercolor?>>
<tr>
<td>
<table width=100% border=0 cellspacing=1 cellpadding=3 align=center>
<tr>
<td bgColor=<?=$titlecolor?>><font color=ffffff><?=$bbs_title?>斑竹之家</font></td>
</tr>
<tr bgcolor=ffffff> 
<td>
<br>

<div align="center">    
  <center>    
  <table border="0" cellpadding="0" cellspacing="0" width="720">    
    <tr>    
      <td colspan="2"><font color=blue>论坛坛主</font>:<a href=profile.php?job=show&target=<?=$surpadmin?>><?=$surpadmin?></a><?
	  $dh=opendir("userdata/admin");
	while ($userfile=readdir($dh)) {
		if (($userfile!=".") && ($userfile!="..") && ($userfile!="") && strpos($userfile,".php")) { 
			$userid=explode("|",readfromfile("userdata/admin/$userfile"));
            echo"&nbsp;<a href=\"profile.php?job=show&target=$userid[1]\">$userid[1]</a>";
		}
	}?> </td>    
    </tr>    
    <tr>    
      <td colspan="2">
	  </td>   
    </tr>   
    <tr>   
      <td  colspan="2">
<?
$superadminfile="bbsdata/superadmin.php";
	if (file_exists($superadminfile)) {
		include($superadminfile);
		$admin_count=file($superadminfile);
		$count1=count($admin_count)-1;
		if($count1<0) $count1=0;
	}else $count1=0;
?> 
	  
<table><tr><td width=150><font color=blue>总版主:<font color=red><?=$count1?></font>  人</td>
<td><font color=blue>发贴&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><font color=blue>威望&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><font color=blue>金钱&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><font color=blue>最后登陆</td>
<td><font color=blue>失踪天数</td>
<td align=center><font color=blue>评价&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<? 
for($a=0;$a<$count1;$a++){
if(file_exists("$userpath/$superadmin[$a].php")&&$superadmin[$a]!="") {
$useri=get_user_info($superadmin[$a]);
$rvrc=floor($useri[16]/10);
$disappear=floor(($tdtime-$useri[18])/86400)+1;
if($disappear>15) $pj="<font color=red>此总版主超过半个月没来了,小心点哦~</font>";
else $pj="此总版主15天之内有登陆";
if($disappear<=7) $pj="此总版主7天之内有登陆";
if($disappear<=3) $pj="此总版主比较勤快,加油哦~";
$lastlogin=getfulldate($useri[18]);
echo "<tr><td><a href=profile.php?job=show&target=".$superadmin[$a].">".$superadmin[$a]."</a></td><td>$useri[13]</td><td>$rvrc</td><td>$useri[24]</td><td>$lastlogin</td><td align=center>$disappear</td><td>$pj</td></tr>";
}
}
?>
</table></td> 
 
    </tr>   
    <tr>   
      <td align="center"></td> 
      <td align="center"></td>   
    </tr>   
    <tr>   
      <td colspan="2"><br><table><tr><td width=150><font color=blue>现任斑竹:
<?
if (file_exists("bbsdata/admin.php")) {
	$adminlist=file("bbsdata/admin.php");
	$count3=count($adminlist);
	echo "<font color=red>".$count3."</font> 人</td>";
	echo "
	<td><font color=blue>发贴&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td><font color=blue>威望&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td><font color=blue>金钱&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td><font color=blue>最后登陆</td>
	<td><font color=blue>失踪天数</td>
	<td align=center><font color=blue>评价&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>";
	$forumlist=file("bbsdata/forumdata.php");
	$count2=count($forumlist);
	for ($i=0; $i<$count3; $i++) {
		$detail=explode("|", trim($adminlist[$i]));
		for ($b=0;$b<$count2;$b++){
			$forumnum=explode("|", trim($forumlist[$b]));
			if ($detail[0]==$forumnum[3]){
if(file_exists("$userpath/$detail[1].php")&&$detail[1]!="") {
$useri=get_user_info($detail[1]);
$rvrc=floor($useri[16]/10);
$disappear=floor(($tdtime-$useri[18])/86400)+1;
if($disappear>15) $pj="<font color=red>此版主超过半个月没来了,小心点哦~</font>";
else $pj="此版主15天之内有登陆";
if($disappear<=7) $pj="此版主7天之内有登陆";
if($disappear<=3) $pj="此版主比较勤快,加油哦~";
$lastlogin=getfulldate($useri[18]);
				echo "<tr><td><font color=green>".$forumnum[1]."</font>:<a href=profile.php?job=show&target=".$detail[1].">".$detail[1]."</a></td><td>$useri[13]</td><td>$rvrc</td><td>$useri[24]</td><td>$lastlogin</td><td align=center>$disappear</td><td>$pj</td></tr>";
			}
		}
	}
}
}
	  
	  ?>
</table></td>
    </tr>
    <tr>   
      <td align="center"></td> 
      <td align="center"></td>   
    </tr>
<tr>   
      <td colspan="2">
 <?
$tb_userfile="bbsdata/tbuser.php";
	if (file_exists($tb_userfile)) {
		include($tb_userfile);
		$tb_count=file($tb_userfile);
		$count4=count($tb_count)-1;
		if($count4<0) $count4=0;
}
else $count4=0;
?>
<br><table><tr><td width=150><font color=blue>荣誉会员:<font color=red><?=$count4?></font> 人</td>
<td><font color=blue>发贴&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><font color=blue>威望&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><font color=blue>金钱&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><font color=blue>最后登陆</td>
<td><font color=blue>失踪天数</td>
<td align=center><font color=blue>评价&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<? 
for($a=0;$a<$count4;$a++){
if(file_exists("$userpath/$tbuser[$a].php")&&$tbuser[$a]!="") {
$useri=get_user_info($tbuser[$a]);
$rvrc=floor($useri[16]/10);
$disappear=floor(($tdtime-$useri[18])/86400)+1;
if($disappear>15) $pj="<font color=red>此荣誉会员超过半个月没来了,小心点哦~</font>";
else $pj="此荣誉会员15天之内有登陆";
if($disappear<=7) $pj="此荣誉会员7天之内有登陆";
if($disappear<=3) $pj="此荣誉会员比较勤快,加油哦~";
$lastlogin=getfulldate($useri[18]);
echo "<tr><td><a href=profile.php?job=show&target=".$tbuser[$a].">".$tbuser[$a]."</a></td><td>$useri[13]</td><td>$rvrc</td><td>$useri[24]</td><td>$lastlogin</td><td align=center>$disappear</td><td>$pj</td></tr>";
}
}
?>
</table></td>
    </tr> 
  </table>  
  </center>  
</div> 
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
require("footer.php");echo"$footertp";
}

⌨️ 快捷键说明

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