/[LeafOK_CVS]/fenglin/bbs/suicide.php
ViewVC logotype

Diff of /fenglin/bbs/suicide.php

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

Revision 1.2 by sysadm, Mon Sep 27 05:48:52 2004 UTC Revision 1.15 by sysadm, Wed Apr 23 04:51:55 2025 UTC
# Line 1  Line 1 
1  <?  <?php
2          require_once "./session_init.inc.php";          require_once "./session_init.inc.php";
3            require_once "./theme.inc.php";
4    
5            force_login();
6    
7            $result_set = array(
8                    "return" => array(
9                            "code" => 0,
10                            "message" => "",
11                            "errorFields" => array(),
12                    )
13            );
14    
15            if (!$_SESSION["BBS_priv"]->checkpriv(0, S_POST) ||
16                    $_SESSION["BBS_priv"]->checklevel(P_ADMIN_M | P_ADMIN_S | P_MAN_M | P_MAN_S))
17            {
18                    $result_set["return"]["code"] = -1;
19                    $result_set["return"]["message"] = "娌℃湁鏉冮檺";
20    
21                    mysqli_close($db_conn);
22                    exit(json_encode($result_set));
23            }
24    
25            if ($_SESSION["BBS_login_tm"] < time() - 60) // login earlier than 1 minute
26            {
27                    header ("Location: index.php?msg=1&redir=suicide.php");
28                    exit();
29            }
30    
31            // Output with theme view
32            $theme_view_file = get_theme_file("view/suicide", $_SESSION["BBS_theme_name"]);
33            if ($theme_view_file == null)
34            {
35                    exit(json_encode($result_set)); // Output data in Json
36            }
37            include $theme_view_file;
38  ?>  ?>
 <?  
 if ($_SESSION["BBS_uid"]==0)  
 {  
         include "./force_login.inc.php";  
         exit();  
 }  
   
 if (!$_SESSION["BBS_priv"]->checkpriv(0,S_POST) ||  
         $_SESSION["BBS_priv"]->checklevel(P_ADMIN_M) ||  
         $_SESSION["BBS_priv"]->checklevel(P_ADMIN_S) ||  
         $_SESSION["BBS_priv"]->checklevel(P_MAN_C))  
 {  
         error_msg("您目前无权使用此功能!",true);  
         exit();  
 }  
 ?>  
 <html>  
         <head>  
                 <meta http-equiv="Content-Type" content="text/html; charset=gb2312">  
                 <title>戒网与自杀</title>  
                 <link rel="stylesheet" href="css/default.css" type="text/css">  
                 <script language="JavaScript" src="/js/nw_open.js"></script>  
         </head>  
         <body>  
 <?  
 include "./member_service_guide.inc.php";  
 ?>  
                 <center>  
                         <p align="center" style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: red; FONT-FAMILY: 楷体_GB2312">  
                                 戒网与自杀  
                         </p>  
                         <form method="post" action="ban_self.php">  
                                 <table border="1" cellpadding="3" cellspacing="0" width="90%" bgcolor="#ffdead" id="TABLE1">  
                                         <tr>  
                                                 <td width="100%" colspan="2" align="middle" style="color:red">  
                                                         警告:在您戒网期间,您将不再拥有本站登陆权限!  
                                                 </td>  
                                         </tr>  
                                         <tr>  
                                                 <td width="100%" colspan="2" align="middle">  
                                                         戒网<input name="day" size=3>天 (不能超过生命值)  
                                                         <input type="submit" value="提交" name="Submit">  
                                                 </td>  
                                         </tr>  
                                 </table>  
                         </form>  
                         <table border="1" cellpadding="3" cellspacing="0" width="90%" bgcolor="#ffdead" id="TABLE1">  
                                 <tr>  
                                         <td width="100%" colspan="2" align="middle" style="color:red">  
                                                 警告:自杀不能恢复,您将失去一切!  
                                         </td>  
                                 </tr>  
                                 <tr>  
                                         <td width="100%" colspan="2" align="middle">  
                                                 只有经验值1000以上的帐号才可以申请自杀,自杀后您的生命值将减为30,且失去全站登陆权限,30天后您就……  
                                         </td>  
                                 </tr>  
                                 <tr>  
                                         <td width="100%" colspan="2" align="middle">  
                                                 <a class="s2" href="suicide_do.php" onclick="return window.confirm('真的要自杀?不能反悔的哦!');">我要自杀</a>  
                                         </td>  
                                 </tr>  
                         </table>  
                         <p>  
                                 <input type="button" value="关闭窗口" name="B3" onclick="self.close();">  
                         </p>  
                 </center>  
         </body>  
 </html>  


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

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