/booka/newlayout

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/booka/newlayout
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
<?php
session_start();
/*
	removeUser.php
	TODO:here there is going to be "are you shore you want to remove this entery from tho database" thing.
*/
if(!$_SESSION[logedin]){
	
	sleep(.5);
	header('Location: ./BooKa.php');
	
}else {
	
	include "./inc/dbConnect.php";
	

	$db->queryexec("BEGIN;
	DELETE FROM users WHERE id = '{$_POST[id]}';
	COMMIT;") or die("could not remove {$_POST[id]} from table:");
	echo $db->error;
	
	sleep(.5);
	header('Location: ./BooKa.php?showadminpage=true&showrmuser=true');

}




?>