bzr branch
http://gegoxaren.bato24.eu/bzr/booka/trunk
29.1.1
by gustav.hartvigsson
Fixed a parsing error, namly replaced all <? with <?php. |
1 |
<?php
|
11
by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs. |
2 |
session_start(); |
3 |
/*
|
|
4 |
removeUser.php
|
|
19
by Gustav Hartvigsson
just a todo. |
5 |
TODO:here there is going to be "are you shore you want to remove this entery from tho database" thing.
|
11
by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs. |
6 |
*/
|
7 |
if(!$_SESSION[logedin]){ |
|
8 |
||
9 |
sleep(.5); |
|
10 |
header('Location: ./BooKa.php'); |
|
11 |
||
12 |
}else { |
|
13 |
||
14 |
include "./inc/dbConnect.php"; |
|
15 |
||
16 |
||
17 |
$db->queryexec("BEGIN; |
|
18 |
DELETE FROM users WHERE id = '{$_POST[id]}'; |
|
19 |
COMMIT;") or die("could not remove {$_POST[id]} from table:"); |
|
20 |
echo $db->error; |
|
21 |
||
22 |
sleep(.5); |
|
23 |
header('Location: ./BooKa.php?showadminpage=true&showrmuser=true'); |
|
24 |
||
25 |
}
|
|
26 |
||
27 |
||
28 |
||
29 |
||
30 |
?>
|