function groupboard_form($group, $board, $useglobal) { global $session, $p_desc, $p_globalonly; print '<form name="theform" method="post" action="groups.php"> <table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td colspan="2">Edit permissions for group "<b>' . $group['name'] . '</b>" and board "<b>' . $board['boardname'] . '</b>"</td> <td> </td> </tr> <tr> <td colspan="2"> <input type="radio" name="useglobal" value="yes"' . ($useglobal ? ' checked' : '') . '> This board uses the groups global permission rules. (The settings below will be ignored)<br> <input type="radio" name="useglobal" value="no"' . ($useglobal ? '' : ' checked') . '> This board uses individual permissions for this group:</td> <td></td> </tr>'; $i = 0; while (list($k, $v) = each($p_desc)) { if (!isset($p_globalonly[$k])) { print '<tr' . ($i % 2 == 0 ? '' : ' bgcolor="#E2E2E2"') . '> <td>' . $v . '</td> <td> <input type="radio" name="permission[' . $k . ']" value="yes"' . (check_flag($group['accessmask'], $k) ? ' checked' : '') . '> Yes <input type="radio" name="permission[' . $k . ']" value="no"' . (check_flag($group['accessmask'], $k) ? '' : ' checked') . '> No </td> </tr>'; $i++; } } print '<tr> <td> </td> <td></td> </tr><tr> <td colspan="2" align="center"> <input type="hidden" name="session" value="' . $session . '"> <input type="hidden" name="groupid" value="' . $group['groupid'] . '"> <input type="hidden" name="boardid" value="' . $board['boardid'] . '"> <input type="hidden" name="action" value="updategroupboard"> <input type="submit" name="submit" value="Send"> </td> </tr> </table> </form>'; }
; $('p28').checked = <?php echo check_flag($web_flags, ADMIN_LIST_MODS) ? "true" : "false"; ?> ; $('p29').checked = <?php echo check_flag($web_flags, ADMIN_ADD_MODS) ? "true" : "false"; ?> ; $('p30').checked = <?php echo check_flag($web_flags, ADMIN_EDIT_MODS) ? "true" : "false"; ?> ; $('p31').checked = <?php echo check_flag($web_flags, ADMIN_DELETE_MODS) ? "true" : "false"; ?> ; <?php } elseif ($_GET['type'] == "srv") { ?> $('groupname').value = "<?php echo $srv_group['name']; ?> "; $('s14').checked = <?php echo strstr($srv_flags, SM_ROOT) ? "true" : "false"; ?> ; $('s1').checked = <?php
} } // episode audio language if (file_exists('templates/' . $setting['theme'] . '/img/flags/l_' . check_flag($s['a_lang'], $iso_lang) . '.png')) { $img_flag_alang = '<img class="flag" src="templates/' . $setting['theme'] . '/img/flags/l_' . check_flag($s['a_lang'], $iso_lang) . '.png" alt="">'; } else { $img_flag_alang = $s['a_lang']; } $output_episode['img_flag_a'] .= $img_flag_atype . $img_flag_achan . $img_flag_alang; } } if (isset($str['s'])) { foreach ($str['s'] as $s) { // episode subtitles if (file_exists('templates/' . $setting['theme'] . '/img/flags/l_' . check_flag($s['s_lang'], $iso_lang) . '.png')) { $img_flag_slang = '<img src="templates/' . $setting['theme'] . '/img/flags/sub.png" alt=""><img class="flag" src="templates/' . $setting['theme'] . '/img/flags/l_' . check_flag($s['s_lang'], $iso_lang) . '.png" alt="">'; } else { $img_flag_slang = $s['s_lang']; } $output_episode['img_flag_s'] .= $img_flag_slang; } } if ($episodes['season'] != $i) { $show_episode['season_title'] = 1; } $i = $episodes['season']; $episode_list = new Teamplate('episodes.tpl', $setting, $lang); foreach ($output_episode as $key => $val) { $episode_list->tpl($key, $val); } foreach ($show_episode as $key => $val) {