| 1 |
<?
|
| 2 |
require_once "./session_init.inc.php";
|
| 3 |
?>
|
| 4 |
<?
|
| 5 |
include "./check.inc.php";
|
| 6 |
|
| 7 |
if (!($_SESSION["MNG_priv"]["master_op"] & 0x8))
|
| 8 |
{
|
| 9 |
echo ("没有权限!");
|
| 10 |
exit();
|
| 11 |
}
|
| 12 |
|
| 13 |
$p_id=intval($_GET["p_id"]);
|
| 14 |
|
| 15 |
$db_conn=include "./db_open.inc.php";
|
| 16 |
|
| 17 |
$rs=mysql_query("select MID,UID from section_master where ".
|
| 18 |
"MID=$p_id and enable=1 and formal=1 and major=0")
|
| 19 |
or die("Query data error!");
|
| 20 |
if ($row=mysql_fetch_array($rs))
|
| 21 |
{
|
| 22 |
$mid=$row["MID"];
|
| 23 |
$uid=$row["UID"];
|
| 24 |
}
|
| 25 |
else
|
| 26 |
{
|
| 27 |
echo ("Data not found!");
|
| 28 |
exit();
|
| 29 |
}
|
| 30 |
mysql_free_result($rs);
|
| 31 |
|
| 32 |
mysql_query("update section_master set major=1 where MID=$mid")
|
| 33 |
or die("Update data error!");
|
| 34 |
|
| 35 |
mysql_close($db_conn);
|
| 36 |
?>
|
| 37 |
<html>
|
| 38 |
<head>
|
| 39 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
| 40 |
<title>版主转正</title>
|
| 41 |
<link rel="stylesheet" href="css/default.css" type="text/css">
|
| 42 |
</head>
|
| 43 |
<body>
|
| 44 |
<p align="center">
|
| 45 |
版主转正处理成功!
|
| 46 |
</p>
|
| 47 |
<p>
|
| 48 |
<a href="bbs_master_set.php">返回</a>
|
| 49 |
</p>
|
| 50 |
</body>
|
| 51 |
</html>
|