X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=1bf46a34ed36eaf18709c48d537f5d2100e64a91;hb=8e74a78fab641d685d534a821f114eda7c2cdd78;hp=7b26f010fdfd57b7490612a43c08726922e15268;hpb=e71902002186de31f72f2ceed43f90dfc2efd19e;p=brisk.git diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 7b26f01..1bf46a3 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -685,6 +685,36 @@ class Bin5_user extends User { return (FALSE); } + function destroy_data($tab_id) + { + do { + if (($tok = @ftok(FTOK_PATH."/bin5/table".$tab_id."/user".$this->table_pos, "B")) == -1) { + log_crit("BIN5 USER DATA REMOVE FAILED 1 [".FTOK_PATH."/bin5/table".$tab_id."/user".$this->table_pos."]"); + break; + } + + if (($shm = @shmop_open($tok, 'a', 0, 0)) == FALSE) { + log_crit("BIN5 USER DATA REMOVE FAILED 2"); + break; + } + if (shmop_delete($shm) == 0) { + log_crit("BIN5 USER DATA REMOVE FAILED 3"); + break; + } + $shm = FALSE; + + log_main("BIN5 USER DATA DESTROY SUCCESS"); + + // log_main("QUI CI ARRIVA [".$bri->user[0]->name."]"); + $ret = TRUE; + } while (0); + + if ($shm) + shm_detach($shm); + + return ($ret); + } + } // end class Bin5_user @@ -924,7 +954,7 @@ class Bin5 { - function destroy_data($table_idx) + function destroy_data() { GLOBAL $sess;