-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_deleteuser.php
executable file
·47 lines (43 loc) · 1.91 KB
/
admin_deleteuser.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
<?php
/*
Tabula Rasa was originally developed as a student productivity tracker
for use by the Public Services Department at Pitts Theology Library at
Emory University, Atlanta, Georgia, USA
by John Peterson http://github.com/johndpeterson/tabularasa
Tabula Rasa is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Tabula Rasa is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Tabula Rasa. If not, see <http://www.gnu.org/licenses/>.
*/
//Do not remove - essential to login system
include_once 'include/processes.php';
include "include/nav.php";
//Verifies user is admin and logged in.
$Admin_Process = new Admin_Process;
$Admin_Process->check_status($_SERVER['SCRIPT_NAME']);
$delete = $Admin_Process->delete_user($con,$_POST, $_POST['delete']);
// Inserts Navigation Bar
?>
<title><?php echo Site_Name; ?> | Admin | Delete User</title>
<link href="include/style.css" rel="stylesheet" type="text/css">
<body>
<div align="center">
<div style="width:200px;">
<form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']."?login=".$_GET['login']; ?>">
<b>Delete User : <?php echo $_GET['login']; ?></b>
<div class="red"><?php echo $delete; ?></div>
<div class="label">Yes <input name="check" type="radio" value="yes" /> No <input name="check" type="radio" value="no" />
<div >
<input name="login" type="hidden" class="textfield" id="textfield" value="<?php echo $_GET['login']; ?> " />
<input name="delete" type="submit" class="textfield" id="delete" value="Continue" />
</div>
</form>
</div>
</body>
</html>