mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-13 21:34:48 +00:00
22 lines
463 B
PHP
22 lines
463 B
PHP
|
<?php
|
||
|
class CSRAtom implements CSR {
|
||
|
private $id;
|
||
|
|
||
|
function CSRAtom(&$data) {
|
||
|
$this->id = $data['atom_id'];
|
||
|
}
|
||
|
|
||
|
function grant($pid) {
|
||
|
$this->clear_all($pid); #empty database
|
||
|
}
|
||
|
|
||
|
function deny($pid) {
|
||
|
$this->clear_all($pid); #empty database
|
||
|
}
|
||
|
|
||
|
private function clear_all($pid) {
|
||
|
global $DBc;
|
||
|
$DBc->sqlQuery("DELETE FROM ach_player_atom WHERE apa_atom='".$this->getID()."' AND apa_player='".$pid."'");
|
||
|
}
|
||
|
}
|
||
|
?>
|