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

Diff of /fenglin/manage/bbs_master_major.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 by sysadm, Sat Mar 1 09:05:03 2025 UTC Revision 1.5 by sysadm, Fri Mar 28 05:50:03 2025 UTC
# Line 1  Line 1 
1  <?  <?
2            require_once "../lib/db_open.inc.php";
3          require_once "./session_init.inc.php";          require_once "./session_init.inc.php";
4  ?>  ?>
5  <?  <?
6  include "./check.inc.php";  check_login();
7            
8  if (!($_SESSION["MNG_priv"]["master_op"] & 0x8))  if (!($_SESSION["MNG_priv"]["master_op"] & 0x8))
9  {  {
10          echo ("没有权限!");          echo ("没有权限!");
# Line 12  if (!($_SESSION["MNG_priv"]["master_op"] Line 13  if (!($_SESSION["MNG_priv"]["master_op"]
13    
14  $p_id=intval($_GET["p_id"]);  $p_id=intval($_GET["p_id"]);
15    
 $db_conn=include "./db_open.inc.php";  
   
16  $rs=mysql_query("select MID,UID from section_master where ".  $rs=mysql_query("select MID,UID from section_master where ".
17          "MID=$p_id and enable=1 and formal=1 and major=0")          "MID=$p_id and enable=1 and formal=1 and major=0")
18          or die("Query data error!");          or die("Query data error!");
# Line 28  else Line 27  else
27          exit();          exit();
28  }  }
29  mysql_free_result($rs);  mysql_free_result($rs);
   
 $rs=mysql_query("select * from user_auth where UID=$uid and ".  
         "enable and expire_dt>now()")  
         or die("Query user status error!");  
 if (mysql_num_rows($rs)==0)  
 {  
         echo ("该用户不是认证用户!");  
         exit();  
 }  
 mysql_free_result($rs);  
30    
31  mysql_query("update section_master set major=1 where MID=$mid")  mysql_query("update section_master set major=1 where MID=$mid")
32          or die("Update data error!");          or die("Update data error!");


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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