khanat-code-old/code/web/app/app_achievements_admin/class/CSRAtom_class.php
kervala 47ccfe279a Changed: Don't use anymore the current SDK in registry (very unreliable)
Changed: Use the Windows SDK installed with VC++ or the most recent compatible one
2013-09-27 10:52:44 +02:00

22 lines
No EOL
496 B
PHP

<?php
class CSRAtom extends Node implements CSR {
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."'");
}
}
?>