/booka/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/booka/trunk

« back to all changes in this revision

Viewing changes to removeUser.php

  • Committer: Gustav Hartvigsson
  • Date: 2009-12-04 16:51:06 UTC
  • Revision ID: gego@quad-20091204165106-wumf1gzbskkuai0g
merging Neo to trunk. freezing neo branshs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?
 
2
session_start();
 
3
/*
 
4
        removeUser.php
 
5
        here there is going to be "are you shore you want to remove this entery from tho database" thing.
 
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
?>