예제 #1
0
파일: pcadmin_grp.php 프로젝트: bianle/www2
        $newtype = 5;
    } elseif (!$_GET["statusers"]) {
        $newtype = 3;
    } else {
        $newtype = 1;
    }
    if (!$_GET["isgroup"] && !pc_is_groupwork($pcc)) {
        $newtype--;
    }
    $query = "UPDATE users SET createtime = createtime , pctype = " . $newtype . "  WHERE uid = " . $pcc["UID"] . " LIMIT 1;";
    mysql_query($query, $link);
    if ($_GET["isgroup"] && !pc_is_groupwork($pcc)) {
        pc_convertto_group($link, $pcc);
    }
    $action = "调整 " . $pcc["USER"] . " 的BLOG参数(N:" . $newtype . ";O:" . $pcc["TYPE"] . ")";
    pc_logs($link, $action, "", $pcc["USER"]);
    unset($_GET["userid"]);
}
if ($_GET["userid"]) {
    $pcc = pc_load_infor($link, $_GET["userid"]);
    if (!$pcc) {
        html_error_quit($_GET["userid"] . "尚无BLOG");
        exit;
    }
    ?>
	
<form action="<?php 
    echo $_SERVER["PHP_SELF"];
    ?>
" method="get">
<input type="hidden" name="conv" value="1">
예제 #2
0
파일: pcadmin_app.php 프로젝트: bianle/www2
function pc_reject_apply($link, $userid, $applyAgain)
{
    global $currentuser;
    if (!$userid) {
        return FALSE;
    }
    if ($applyAgain != 3) {
        $applyAgain = 2;
    }
    $query = "UPDATE newapply SET apptime = apptime ,manager = '" . addslashes($currentuser["userid"]) . "',management = '" . $applyAgain . "' WHERE username = '******';";
    if (!mysql_query($query, $link)) {
        $errstr = "MySQL Error: " . mysql_error($link);
        pc_db_close($link);
        exit($errstr);
    }
    //log一下
    $action = $currentuser["userid"] . " 驳回 " . $userid . " 的BLOG申请(www)";
    if ($applyAgain == 3) {
        $content = $action . ";\n并不允许再申请BLOG。";
    } else {
        $content = "";
    }
    pc_logs($link, $action, $content, $userid);
}
예제 #3
0
파일: pcadmin_log.php 프로젝트: bianle/www2
require "pcadmin_inc.php";
pc_admin_check_permission();
$link = pc_db_connect();
$blogadmin = intval($_COOKIE["BLOGADMIN"]);
if ($_GET["act"] == "login" && !$blogadmin) {
    $blogadmin = time();
    $action = $currentuser[userid] . " 登录Blog管理员";
    $comment = $currentuser[userid] . " 于 " . date("Y-m-d H:i:s", $blogadmin) . " 自 " . $_SERVER["REMOTE_ADDR"] . " 登录本站Blog管理员。";
    pc_logs($link, $action, $comment);
    setcookie("BLOGADMIN", $blogadmin);
}
if ($_GET["act"] == "logout" && $blogadmin) {
    $action = $currentuser[userid] . " 退出Blog管理员登录";
    $comment = $currentuser[userid] . " 于 " . date("Y-m-d H:i:s") . " 自 " . $_SERVER["REMOTE_ADDR"] . " 退出本站Blog管理员登录。历时 " . intval((time() - $blogadmin) / 60) . " 分钟。";
    pc_logs($link, $action, $comment);
    unset($blogadmin);
    setcookie("BLOGADMIN");
}
pc_html_init("gb2312", $pcconfig["BBSNAME"] . "Blog管理员登录");
pc_admin_navigation_bar();
?>
<br/><br/><br/><br/>
<?php 
if ($blogadmin) {
    ?>
<p align="center">
用户名:<font color=red><?php 
    echo $currentuser[userid];
    ?>
</font><br/>
예제 #4
0
파일: pcadmin_bla.php 프로젝트: bianle/www2
$buserid = $_GET["userid"];
if ($_GET["act"] == "add" && $buserid) {
    $lookupuser = array();
    if (bbs_getuser($buserid, $lookupuser) == 0) {
        echo "<script language=\"javascript\">alert('用户" . $buserid . "不存在!');</script>";
    } else {
        $buserid = $lookupuser["userid"];
        pc_add_blacklist($link, $buserid);
        $action = $currentuser[userid] . " 封禁 " . $buserid . " 在Blog中的评论权限";
        pc_logs($link, $action, "", $buserid);
    }
}
if ($_GET["act"] == "del" && $buserid) {
    pc_del_blacklist($link, $buserid);
    $action = $currentuser[userid] . " 恢复 " . $buserid . " 在Blog中的评论权限";
    pc_logs($link, $action, "", $buserid);
}
$query = "SELECT * FROM blacklist WHERE uid = 0;";
$result = mysql_query($query, $link);
$num = mysql_num_rows($result);
pc_admin_navigation_bar();
?>
<br />
<p align="center">Blog黑名单</p>
<center>
<table cellspacing=0 cellpadding=5 width=90% class=t1 border=0>
	<tr>
		<td class=t2 width=50>序号</td>
		<td class=t2>用户名</td>
		<td class=t2 width=80>添加者</td>
		<td class=t2 width=100>添加时间</td>