Changeset 10743


Ignore:
Timestamp:
May 2, 2011, 9:57:04 PM (9 years ago)
Author:
ddtddt
Message:

[extensions] - AddInfousers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AddInfousers/initprofileadmin.php

    r10574 r10743  
    8989INSERT INTO ' . $prefixeTable . 'AddInfo_users(id,info1,info2,info3,info4,info5,info6,info7)VALUES ("'.$_POST['inserID'].'","'.$_POST['inser'].'","'.$_POST['inser2'].'","'.$_POST['inser3'].'","'.$_POST['inser4'].'","'.$_POST['inser5'].'","'.$_POST['inser6'].'","'.$_POST['inser7'].'");';
    9090    pwg_query($q);
     91}
    9192
     93add_event_handler('delete_user', 'addInfousersPT3');
    9294
     95function addInfousersPT3($user_id)
     96{
     97global $prefixeTable;
     98
     99        $query = '
     100DELETE
     101  FROM ' . ADDINFOUSERS_TABLE . '
     102  WHERE id = '.$user_id.'
     103  ;';
     104$result = pwg_query($query);
    93105}
    94106
Note: See TracChangeset for help on using the changeset viewer.