/[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.6 - (show annotations)
Wed Apr 9 06:03:56 2025 UTC (11 months, 1 week ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +0 -0 lines
Error occurred while calculating annotation data.
FILE REMOVED
Remove legacy files

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

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