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

Contents of /fenglin/bbs/user_suicide.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Tue Apr 29 11:55:32 2025 UTC (10 months, 2 weeks ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -1 lines
Remove redundant PHP closing tag

1 <?php
2 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=user_suicide.php");
28 exit();
29 }
30
31 // Output with theme view
32 $theme_view_file = get_theme_file("view/user_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;

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