2016-01-10 11:01:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class beta5_alliance_deleteRank {
|
|
|
|
|
2024-12-31 00:25:05 +01:00
|
|
|
public function __construct($lib) {
|
2016-01-10 11:01:49 +01:00
|
|
|
$this->lib = $lib;
|
|
|
|
$this->db = $this->lib->game->db;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Deletes a rank from an alliance's ACL
|
|
|
|
function run($aid, $rId, $nrId) {
|
|
|
|
$this->db->query("UPDATE player SET a_grade=$nrId WHERE alliance=$aid AND a_status='IN' AND a_grade=$rId");
|
|
|
|
$this->db->query("DELETE FROM alliance_grade WHERE alliance=$aid AND id=$rId");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|