mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00

* (internal) new function: OTS_Guild::hasMember(OTS_Player $player) * (internal) new function: Forum::hasAccess($board_id)
11 lines
420 B
PHP
11 lines
420 B
PHP
<?php
|
|
|
|
// add new forum.guild and forum.access fields
|
|
if(!fieldExist('guild', TABLE_PREFIX . 'forum_boards')) {
|
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum_boards` ADD `guild` TINYINT(1) NOT NULL DEFAULT 0 AFTER `closed`;");
|
|
}
|
|
|
|
if(!fieldExist('access', TABLE_PREFIX . 'forum_boards')) {
|
|
$db->query("ALTER TABLE `" . TABLE_PREFIX . "forum_boards` ADD `access` TINYINT(1) NOT NULL DEFAULT 0 AFTER `guild`;");
|
|
}
|
|
?>
|