mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-24 16:16:14 +00:00
ec524af567
--HG-- branch : gsoc2012-achievements
23 lines
No EOL
496 B
PHP
23 lines
No EOL
496 B
PHP
<?php
|
|
class CSRAtom implements CSR {
|
|
use Node;
|
|
|
|
function CSRAtom($data,$parent) {
|
|
$this->id = $data['atom_id'];
|
|
$this->parent = $parent;
|
|
}
|
|
|
|
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."'");
|
|
}
|
|
}
|
|
?>
|