2016-01-10 11:01:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class beta5_alliance_modifyForum {
|
|
|
|
|
2024-12-31 10:42:58 +01:00
|
|
|
function __construct($lib) {
|
2016-01-10 11:01:49 +01:00
|
|
|
$this->lib = $lib;
|
|
|
|
$this->db = $this->lib->game->db;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Modifies an alliance forum
|
|
|
|
function run($id, $name, $userPost, $description) {
|
|
|
|
$this->db->query(
|
|
|
|
"UPDATE af_forum SET title='".addslashes($name)."',user_post=".($userPost?'TRUE':'FALSE').",description='".addslashes($description)
|
|
|
|
."' WHERE id=$id"
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|