/
account_delete_page.php
51 lines (44 loc) · 1.44 KB
/
account_delete_page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 Mantis Team - mantisbt-dev@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
# --------------------------------------------------------
# $Revision: 1.9 $
# $Author: jlatour $
# $Date: 2002-08-15 20:35:00 $
#
# $Id: account_delete_page.php,v 1.9 2002-08-15 20:35:00 jlatour Exp $
# --------------------------------------------------------
?>
<?php
# This is the delete confirmation page
# The result is POSTed to account_delete.php3
?>
<?php include( 'core_API.php' ) ?>
<?php login_cookie_check() ?>
<?php
# check if users can't delete their own accounts
if ( OFF == $g_allow_account_delete ) {
print_header_redirect( 'account_page.php' );
}
# get protected state
$t_protected = get_current_user_field( 'protected' );
# protected account check
if ( ON == $t_protected ) {
print_mantis_error( ERROR_PROTECTED_ACCOUNT );
}
?>
<?php print_page_top1() ?>
<?php print_page_top2() ?>
<p>
<div align="center">
<?php print_hr( $g_hr_size, $g_hr_width ) ?>
<?php echo $s_confirm_delete_msg ?>
<form method="post" action="account_delete.php">
<input type="submit" value="<?php echo $s_delete_account_button ?>">
</form>
<?php print_hr( $g_hr_size, $g_hr_width ) ?>
</div>
<?php print_page_bot1( __FILE__ ) ?>