<td><?php 
draw_select('ml_complex_reply_match', "No\nYes", "0\n32", $ml_mlist_opt & 32 ? 32 : 0);
?>
</td>
	</tr>

	<tr class="field">
		<td>
			Create New Users:<br>
			<font size="-1">When importing messages from the mailing list, should a new user be created for every mailing
			list author, who cannot be matched against an existing forum user. If this option is set to 'No', then all
			imported mailing list messages who's authors cannot be matched against existing forum members will be attributed
			to the anonymous user.</font>
		</td>
		<td><?php 
draw_select('ml_create_users', "Yes\nNo", "64\n0", $ml_mlist_opt & 64 ? 64 : 0);
?>
</td>
	</tr>

	<tr>
		<td colspan=2><br></td>
	</tr>

	<tr class="field">
		<td colspan=2><font size="-1"><b>Optional</b> Subject Mangling<br><font size="-1">This field allows you to specify a regular expression, that
		will be applied to the subjects of messages imported from the mailing list. This is useful to remove
		automatically appended strings that are often used to identify mailing list messages. ex. [PHP]</font></td>
	</tr>

	<tr class="field">
    list($edit, $e_email_block_opt, $e_string) = db_saq('SELECT id, email_block_opt, string FROM ' . $DBHOST_TBL_PREFIX . 'email_block WHERE id=' . (int) $_GET['edit']);
} else {
    $edit = $e_email_block_opt = $e_string = '';
}
require $WWW_ROOT_DISK . 'adm/admpanel.php';
?>
<h2>Email Filter</h2>
<form method="post" action="admemail.php">
<?php 
echo _hs;
?>
<table class="datatable solidtable">
	<tr class="field">
		<td>Type:</td>
		<td><?php 
draw_select("e_email_block_opt", "Simple\nRegexp", "1\n0", $e_email_block_opt);
?>
</td>
	</tr>

	<tr class="field">
		<td>String:</td>
		<td><input type="text" name="e_string" value="<?php 
echo htmlspecialchars($e_string);
?>
"></td>
	</tr>

	<tr class="fieldaction">
		<td colspan=2 align=right>
		<?php 
            echo '<option value="' . $r[0] . '"' . (isset($gr_resource[$r[0]]) ? ' selected' : '') . '>' . $r[1] . '</option>';
        }
        echo '</select>';
    }
    echo '</td></tr><tr><td>Inherit From: </td><td><select name="gr_inherit_id"><option value="0">No where</option>';
    foreach ($gl as $k => $v) {
        if ($k == $edit) {
            continue;
        }
        echo '<option value="' . $k . '" ' . ($gr_inherit_id == $k ? ' selected' : '') . '>' . $v['gn'] . '</option>';
    }
    echo '</select></td></tr>';
}
if (!$edit) {
    echo '<tr><td>Anonymous and Registered Masks</td><td>';
    draw_select('gr_ramasks', "No\nYes", "\n1", $gr_ramasks);
    echo '</td></tr>';
}
?>
<tr><td valign="top" colspan=2 align="center"><font size="+2"><b>Maximum Permissions</b></font><br><font size="-1">(group leaders won't be able to assign permissions higher then these)</font></td></tr>
<tr><td><table cellspacing=2 cellpadding=2 border=0>
<?php 
if (($edit || $error) && $gr_inherit_id && $permi) {
    echo '<tr><th nowrap><font size="+1">Permission</font></th><th><font size="+1">Value</font></th><th><font size="+1">Via Inheritance</font></th></tr>';
    $v1 = 1;
} else {
    echo '<tr><th nowrap><font size="+1">Permission</font></th><th><font size="+1">Value</font></th></tr>';
    $v1 = 0;
}
foreach ($hdr as $k => $v) {
    echo '<tr><td>' . $v[1] . '</td><td><select name="' . $k . '">';
<h2>Attachment Topic Prunning</h2>
<form method="post" action="admaprune.php">
<table class="datatable">
<tr class="field">
	<td nowrap>Attachments Older Then:</td>
	<td ><input type="text" name="thread_age"></td>
	<td nowrap><?php 
draw_select("units", "Day(s)\nWeek(s)\nMonth(s)\nYear(s)", "86400\n604800\n2635200\n31622400", '86400');
?>
&nbsp;&nbsp;ago</td>
</tr>

<tr class="field">
	<td nowrap>Attachment Type:</td>
	<td colspan=2 nowrap><?php 
draw_select("type", "All\nPrivate Only\nPublic Only", "0\n1\n2", '0');
?>
</td>
</tr>

<tr class="field">
	<td >Limit to forum:<font size="-1"><br />(not applicable for private attachment removal)</font></td>
	<td colspan=2 nowrap>
	<?php 
$oldc = '';
$c = uq('SELECT f.id, f.name, c.name, c.id FROM ' . $DBHOST_TBL_PREFIX . 'forum f INNER JOIN ' . $DBHOST_TBL_PREFIX . 'cat c ON f.cat_id=c.id ORDER BY c.view_order, f.view_order');
echo '<select name="forumsel"><option value="0">- All Forums -</option>';
while ($r = db_rowarr($c)) {
    if ($oldc != $r[3]) {
        echo '<option value="cat_' . $r[3] . '">' . $r[2] . '</option>';
        $oldc = $r[3];
Example #5
0
            echo $name_widget . ": " . _("Filters");
            ?>
                            </th>
    					</tr>

						<?php 
            foreach ($filters_list as $params) {
                $input_type = $params[2];
                $selected_value = $widget_params[$params[1]];
                echo '<tr>';
                switch ($input_type) {
                    case "text":
                        draw_text($params, $input_id, $selected_value);
                        break;
                    case "select":
                        draw_select($params, $input_id, $selected_value);
                        break;
                    case "radiobuttons":
                        draw_radiobutton($params, $input_id, $selected_value);
                        break;
                }
                $input_id++;
                echo '</tr>';
            }
        }
        ?>
				

				</table>
			</td>
			
            rebuild_forum_view($v);
        }
        db_unlock();
        echo '<h2 color="red">It is highly recommended that you run a consitency checker after prunning.</h2>';
    }
}
require $WWW_ROOT_DISK . 'adm/admpanel.php';
?>
<h2>Topic Prunning</h2>
<form method="post" action="admprune.php">
<table class="datatable">
<tr class="field">
	<td nowrap>Topics with last post made:</td>
	<td ><input type="text" name="thread_age"></td>
	<td nowrap><?php 
draw_select("units", "Day(s)\nWeek(s)\nMonth(s)\nYear(s)", "86400\n604800\n2635200\n31622400", '86400');
?>
&nbsp;&nbsp;ago</td>
</tr>

<tr class="field">
	<td >Limit to forum:</td>
	<td colspan=2 nowrap>
	<?php 
$oldc = '';
$c = uq('SELECT f.id, f.name, c.name, c.id FROM ' . $DBHOST_TBL_PREFIX . 'forum f INNER JOIN ' . $DBHOST_TBL_PREFIX . 'cat c ON f.cat_id=c.id ORDER BY c.view_order, f.view_order');
echo '<select name="forumsel"><option value="0">- All Forums -</option>';
while ($r = db_rowarr($c)) {
    if ($oldc != $r[3]) {
        echo '<option value="cat_' . $r[3] . '">' . $r[2] . '</option>';
        $oldc = $r[3];
echo htmlspecialchars($lev_name);
?>
"></td>
	</tr>
	<tr class="field">
		<td>Rank Image<br><font size="-1">URL to the image<font></td>
		<td><input type="text" name="lev_img" value="<?php 
echo htmlspecialchars($lev_img);
?>
"><br>
	</tr>

	<tr class="field">
		<td>Which Image to Show:</td>
		<td><?php 
draw_select("lev_level_opt", "Avatar & Rank Image\nAvatar Only\nRank Image Only", "0\n1\n2", $lev_level_opt);
?>
</td>
	</tr>

	<tr class="field">
		<td>Post Count</td>
		<td><input type="text" name="lev_post_count" value="<?php 
echo $lev_post_count;
?>
" size=11 maxLength=10></td>
	</tr>

	<tr>
		<td colspan=2 class="fieldaction" align=right>
<?php 
		<td><?php 
draw_select('nntp_complex_reply_match', "No\nYes", "0\n16", $nntp_nntp_opt & 16 ? 16 : 0);
?>
</td>
	</tr>

	<tr class="field">
		<td>
			Create New Users:<br>
			<font size="-1">When importing messages from a newsgroup, should a new user be created for every newsgroup
			author, who cannot be matched against an existing forum user. If this option is set to 'No', then all
			imported newsgroup messages who's authors cannot be matched against existing forum members will be attributed
			to the anonymous user.</font>
		</td>
		<td><?php 
draw_select('nntp_create_users', "No\nYes", "0\n32", $nntp_nntp_opt & 32 ? 32 : 0);
?>
</td>
	</tr>

	<tr class="fieldaction">
		<td colspan=2 align=right>
			<?php 
if ($edit) {
    echo '<input type="submit" value="Cancel" name="btn_cancel">&nbsp;';
}
?>
			<input type="submit" value="<?php 
echo $edit ? 'Update Newsgroup Rule' : 'Add Newsgroup Rule';
?>
" name="nntp_submit">
	<tr class="field">
		<td>Default view: </td>
		<td><?php 
    draw_select('cat_default_view', "Open\nCollapsed", "OPEN\nCOLLAPSED", !($cat_opt & 2));
    ?>
</td>
	</tr>

	<?php 
    if (!$edit) {
        ?>

	<tr class="field">
		<td>Insert position:</td>
		<td><?php 
        draw_select('cat_pos', "Last\nFirst", "LAST\nFIRST", $cat_pos);
        ?>
</td>
	</tr>

	<?php 
    }
    ?>

	<tr class="fieldaction">
		<td colspan=2 align=right>
<?php 
    if ($edit) {
        echo '<input type="submit" name="btn_cancel" value="Cancel">&nbsp;';
    }
    ?>
		<td><input type="text" name="frm_forum_icon" value="<?php 
    echo $frm_forum_icon;
    ?>
"> <a href="javascript://" onClick="javascript:window.open('admiconsel.php?<?php 
    echo _rsidl;
    ?>
', 'admiconsel', 'menubar=false,scrollbars=yes,resizable=yes,height=300,width=500,screenX=100,screenY=100')">[SELECT ICON]</a></td>
	</tr>

<?php 
    if (!$edit) {
        ?>
	<tr class="field">
		<td>Insert Position</td>
		<td><?php 
        draw_select('frm_pos', "Last\nFirst", "LAST\nFIRST", '');
        ?>
</td>
	</tr>
<?php 
    }
    ?>

	<tr class="fieldaction">
		<td colspan=2 align=right>
<?php 
    if ($edit) {
        echo '<input type="submit" value="Cancel" name="btn_cancel"> ';
    }
    ?>
			<input type="submit" value="<?php