/[LeafOK_CVS]/fenglin/manage/bbs_master_major.php
ViewVC logotype

Contents of /fenglin/manage/bbs_master_major.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Sat Mar 1 09:05:03 2025 UTC (12 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.1: +6 -6 lines
Convert GB2312 to UTF-8

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 $rs=mysql_query("select * from user_auth where UID=$uid and ".
33 "enable and expire_dt>now()")
34 or die("Query user status error!");
35 if (mysql_num_rows($rs)==0)
36 {
37 echo ("该用户不是认证用户!");
38 exit();
39 }
40 mysql_free_result($rs);
41
42 mysql_query("update section_master set major=1 where MID=$mid")
43 or die("Update data error!");
44
45 mysql_close($db_conn);
46 ?>
47 <html>
48 <head>
49 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
50 <title>版主转正</title>
51 <link rel="stylesheet" href="css/default.css" type="text/css">
52 </head>
53 <body>
54 <p align="center">
55 版主转正处理成功!
56 </p>
57 <p>
58 <a href="bbs_master_set.php">返回</a>
59 </p>
60 </body>
61 </html>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1