/[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.4 - (show annotations)
Thu Mar 27 12:25:36 2025 UTC (11 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.3: +2 -2 lines
Refine

1 <?
2 require_once "./session_init.inc.php";
3
4 check_login();
5 ?>
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>

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