root/dev/mods/known_members/settings.php @ 52

Revision 52, 1.0 KB (checked in by knifee, 14 years ago)

Adds a 'Known Members' link to the corp_details page. Shows all known members of that corp.

Settings allow you to turn this off for the owner of the board.

Line 
1<?php
2require_once("common/class.page.php");
3require_once("common/admin_menu.php");
4
5if ($_POST['submit'])
6{
7if($_POST['known_members_own']){
8        $config->setConfig('known_members_own', '1');
9        }
10        else
11        {
12        $config->setConfig('known_members_own', '0');
13        }
14        $html .= "Setting Saved";
15}
16
17$page = new Page("Settings - known members");
18
19$html .= "<div class=block-header2>Global options</div>";
20$html .= "<form id=options name=options method=post action=>";
21$html .= "<table class=kb-subtable>";
22$html .= "<tr><td><b>Show details of Own Corp?:</b></td><td><input type=checkbox name=known_members_own id=known_members_own";
23if ($config->getConfig('known_members_own'))
24{
25    $html .= " checked=\"checked\"";
26}
27$html .= "></td></tr>";
28$html .= "<tr><td width=120></td><td><input type=submit name=submit value=\"Save\"></td></tr>";
29$html .= "</table>";
30
31$html .= "</form>";
32
33$page->setContent($html);
34$page->addContext($menubox->generate());
35$page->generate();
36?>
Note: See TracBrowser for help on using the browser.