📄 job.php
字号:
<?
if($addpicjob==addpic)
{
require("userdata/style.php");
if (empty($dir) || ($dir!="act" && $dir!="act1" && $dir!="act2" && $dir!="act3" && $dir!="act4")) exit;
?>
<html>
<head><title>增加的表情符号列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
p,input,select{font-size:9pt; color:#333333; FONT-FAMILY: 宋体}
TABLE{BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 2px }
td{BORDER-RIGHT: 1px; BORDER-TOP: 0px; FONT-SIZE: 9pt; color:#333333; font-family:宋体}
BODY {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
SCROLLBAR-HIGHLIGHT-COLOR: <?=$titlecolor?>;
SCROLLBAR-SHADOW-COLOR: <?=$titlecolor?>;
SCROLLBAR-ARROW-COLOR: <?=$titlefontcolor?>;
SCROLLBAR-TRACK-COLOR: <?=$backgroundcolor?>;
SCROLLBAR-BASE-COLOR: <?=$titlecolor?>;
}
-->
</style>
</head>
<body
<? echo "bgcolor=$backgroundcolor>";
echo "<table cellspacing=0 cellpadding=0 width=97% bgcolor=$bordercolor border=0>
<tr>
<td height=1></td>
</tr>
</table>
<table border=1 cellpadding=4 cellspacing=0 width=97% bordercolor=000033>
<tr bgcolor=$titlecolor>
<td colspan=5 bgcolor=$titlecolor><b><font color='$titlefontcolor'>-=> 增加的表情符号</font></b></td>
</tr>
<tr bgcolor=$subcolor>
<td colspan=5><font color=$cautioncolor>使用说明:将图片下面的字符串([img]……[/img])复制粘贴入文章内即可。</font></td></tr></table>";
$dh=opendir("images/$dir");
$i=0;
while ($imagefile=readdir($dh)) {
if (($imagefile!=".") && ($imagefile!="..") && ($imagefile!="") && !strpos($imagefile,"dmin")) {$i++; if ($i%4==1) echo "<table border=1 cellpadding=4 cellspacing=0 width=97% bordercolor='$bordercolor'><tr bgcolor=$backgroundcolor>\n";
echo "<td align=center><img src=\"images/$dir/$imagefile\"><br><font color=333333>[img]images/</font>$dir/$imagefile<font color=333333>[/img]</font></td>\n";
if ($i%4==0) echo "</tr></table>\n";}
}
closedir($dh);
}
if($qqjob==qq)
{
$tencent="http://search.tencent.com/cgi-bin/friend/oicq_find?oicq_no=";
$img="http://img.tencent.com/face/s/0-2.gif";
$tp="";
if ($qq) {
$fp=fopen("$tencent$qq","r");
while ($buffer = fgets($fp, 4096)) {
$tp.=$buffer;
}
fclose($fp);
$p=strpos($tp,"ShowResult(\"FFFFFF\",\"");
if ($p>0) {
$pp=strpos($tp,"\",\"$qq\",\"");
if ($pp>0) {
$img=substr($tp,0,$pp);
$img=substr($img,$p+21);
//echo $img;
}
}
}
Header("Location: $img");
}
if($previewjob==preview)
{
require("userdata/style.php");
require("ofstarcode.php");
?>
<title><?=$bbs_title?> > 帖子预览</title>
<style type="text/css">
<!--
p,input,select{font-size:9pt; color:333333; FONT-FAMILY: 宋体}
TABLE{BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 2px }
td{BORDER-RIGHT: 1px; BORDER-TOP: 0px; FONT-SIZE: 9pt; color:#000000; font-family:宋体}
td{word-break:break-all}
a {text-decoration:none; }
a:hover {LEFT: 1px;POSITION: relative; TOP: 1px; TEXT-DECORATION;}
BODY {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
COLOR: #CCAAAA;
}
TEXTAREA {FONT-SIZE: 9pt; FONT-FAMILY: 宋体}
.menu {
FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); VISIBILITY: hidden; POSITION: absolute;
height:20px; z-index:1; background-color: #FEFEFF; layer-background-color: #FEFEFF; border: 1px none #500000;
}
.title { color:<?=$titlefontcolor?> }
.cau { color:<?=$cautioncolor?> }
-->
</style>
<TABLE cellSpacing=1 cellPadding=5 width=<?=$tablewidth?> border=0 >
<TBODY>
<TR bgColor=6699CC>
<TD bgColor=<?=$titlecolor?> colSpan=3 height=27 ><B class=title>-=>
</B><FONT color=<?=$titlefontcolor?>>帖子预览</FONT></TD></TR>
<TR>
<TD bgColor=ffffff>
<?php
$nhbody=safe_convert($nhbody);
$nhbody=convert($nhbody,$ftbcode_post);
echo $nhbody;
?>
</td></TR></TBODY></TABLE>
<?
}
if($duserjob==dump)
{
set_time_limit(0);
if (empty($username)) $username=$HTTP_COOKIE_VARS['ftbadminid'];
if (empty($password)) $password=$HTTP_COOKIE_VARS['ftbadminpwd'];
if (file_exists("bbsdata/manager.php")) include("bbsdata/manager.php");
else die("超级用户设置错误,请重新运行安装程式");
if ($username!=$manager || $password!=$manager_pwd) {
header("Location: admin.php");
exit;
}
$t=time();
include("bbsdata/config.php");
$dh=opendir("$userpath/");
//------送出header -------------
header("Content-disposition: filename=user_$t.ftb");
header("Content-type: application/octetstream");
header("Pragma: no-cache");
header("Expires: 0");
while ($userfile=readdir($dh)) {
if (($userfile!=".") && ($userfile!="..")) {
print trim(readfromfile("$userpath/$userfile"))."\n";
}
}
closedir($dh);
}
if($md5sigle==1)
{
$yeye=md5(filesize("template/panel4.php"));
echo $yeye;
}
if($md5sigle==2)
{
$yeye=md5(filesize("template/panel4.php")+filesize("template/face_facehome.php"));
echo $yeye;
}
if($dumpforumjob==dumpforum)
{
set_time_limit(0);
require("bbsdata/config.php");
if (empty($username)) $username=$HTTP_COOKIE_VARS['ftbadminid'];
if (empty($password)) $password=$HTTP_COOKIE_VARS['ftbadminpwd'];
if (file_exists("bbsdata/manager.php")) include("bbsdata/manager.php");
else die("超级用户设置错误,请重新运行安装程式");
if ($username!=$manager || $password!=$manager_pwd || !file_exists("{$idpath}forum$id")) {
header("Location: admin.php");
exit;
}
$t=time();
//------送出header -------------
header("Content-disposition: filename=forum$id_$t.ftb");
header("Content-type: application/octetstream");
header("Pragma: no-cache");
header("Expires: 0");
$dh=opendir("{$idpath}forum$id/");
while ($postfile=readdir($dh)) {
if (ereg("^f_[0-9]+$",$postfile)) {
$pfile="{$idpath}forum$id/$postfile";
print "-post-\n";
print readfromfile($pfile);
if (file_exists("$pfile.u")) {
print "--u--\n";
$temp=trim(readfromfile("$pfile.u"));
$temp.="\n";
print $temp;
} elseif (file_exists("$pfile.sta")) {
print "-sta-\n";
$temp=trim(readfromfile("$pfile.sta"));
$temp.="\n";
print $temp;
}
}
}
closedir($dh);
}
function readfromfile($file_name) {
$filenum=fopen($file_name,"r");
flock($filenum,LOCK_SH);
$file_data=fread($filenum,filesize($file_name));
fclose($filenum);
return $file_data;
}
if($listpicjob==listpit)
{?>
<style type=text/css><--
body {FONT-SIZE: 9pt }
th {FONT-SIZE: 9pt }
td {FONT-SIZE: 9pt ;line-height: 12pt}
-->
A{color: #0000cc;TEXT-DECORATION: none}
A:hover {COLOR: #ff0000; TEXT-DECORATION: underline}
</style>
<?
require("userdata/style.php");
echo "<table cellspacing=0 cellpadding=1 width=$tablewidth bgcolor=$bordercolor border=0 align=center>
<tr>
<td height=1></td>
</tr>
</table>
<table align=center border=0 cellpadding=1 cellspacing=0 width=$tablewidth bordercolor=$bordercolor>
<tr bgcolor=$titlecolor>
<td colspan=5 bgcolor=$titlecolor><b><font color=$titlefontcolor>-=> 所有的头像</font></b></td>
</tr>
<tr>
<td colspan=5><font color=$cautioncolor>将会不定期的增加。</font></td></tr></table>";
$dh=opendir("images/$dir");
$i=0;
while ($imagefile=readdir($dh)) {
if (($imagefile!=".") && ($imagefile!="..") && ($imagefile!="") && !strpos($imagefile,"dmin")) {$i++; if ($i%4==1) echo "<table border=0 cellpadding=0 cellspacing=0 width=$tablewidth bordercolor=$bordercolor align=center><tr bgcolor=$backgroundcolor>\n";
echo "<td align=center><img src=\"images/$dir/$imagefile\"><br>$imagefile</td>\n";
if ($i%4==0) echo "</tr></table>\n";}
}
closedir($dh);
}
if($votepiejob==votepie)
{
require("function.php");
require("bbsdata/config.php");
// dl("php_gd.dll"); //载入GD绘图函数库
if (!file_exists("{$idpath}forum$forumid/$filename.sta")) exit;
$votedata=file("{$idpath}forum$forumid/$filename.sta");
$detail=explode("|",$votedata[1]);
$count=min(count($detail),6);
for ($i=0; $i<$count; $i++) list($labLst[],$datLst[])=explode(",",$detail[$i]);
define("ANGLE_STEP",5);
$a=70; $b=40; $v=10;
$ox=5+$a; $oy=5+$b;
$clrLst=array(0x777799,0x8ad500,0xeed805,0xFF0000,0xe46101,0x333366);
$img=imagecreate(150,100);
for($i=0;$i<count($clrLst);$i++) $clrLst[$i]=chx_getindexcolor($img,$clrLst[$i]);
$clrbk=imagecolorallocate($img,0xEE,0xEE,0xF5);
$clrt=imagecolorallocate($img,0x00,0x00,0x00);
imagefill($img,0,0,$clrbk);
$tot=0;
$c=count($datLst);
for($i=0;$i<$c;$i++) $tot+=$datLst[$i];
if ($tot==0) {$tot=$c; for($i=0;$i<$c;$i++) $datLst[$i]=1; }
$sd=0;
$ed=0;
for($i=0; $i<$c; $i++){
$sd=$ed;
$ed+=$datLst[$i]/$tot*360;
chx_sector3d($img,$ox,$oy,$a,$b,$v,$sd,$ed,$clrLst[$i]);
}
header("Content-type:image/png");
imagePNG($img);
}
function safe_convert($d) {
$d = str_replace("\t","",$d);
$d = str_replace("<","<",$d);
$d = str_replace(">",">",$d);
$d = str_replace("\r","<br>",$d);
$d = str_replace("\n","",$d);
$d = str_replace("|","│",$d);
$d = str_replace(" "," ",$d);
return $d;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -