}
}
require $WWW_ROOT_DISK . 'adm/admpanel.php';
$rdf_url = $WWW_ROOT . 'rdf.php';
?>
<h2>RDF Feed Configuration</h2>
<form method="post" action="admrdf.php"><?php 
echo _hs;
?>
<table class="datatable solidtable">
<?php 
print_bit_field('RDF Feed Enabled', 'RDF_ENABLED');
print_bit_field('RDF Authentication', 'RDF_AUTH');
print_reg_field('User id', 'RDF_AUTH_ID');
print_reg_field('Maximum number of result', 'RDF_MAX_N_RESULTS');
print_bit_field('Allow user data retrieval', 'RDF_ALLOW_USER_DATA');
?>
<tr class="fieldaction"><td colspan=2 align=right><input type="submit" name="btn_submit" value="Change Settings"></td></tr>
</table>
<input type="hidden" name="form_posted" value="1">
</form>
<br>
<table class="datatable">
<tr><th><b>Quick RDF Tutorial</b></th></tr>
<tr><td class="tutor">
If enabled, the RDF stream for your forum can be found at: <a href="<?php 
echo $rdf_url;
?>
" target="_blank"><?php 
echo $rdf_url;
?>
print_bit_field('Show Edited By Moderator', 'EDITED_BY_MOD');
print_reg_field('Edit Time Limit (minutes)', 'EDIT_TIME_LIMIT', 1);
print_bit_field('Display IP Publicly', 'DISPLAY_IP');
print_reg_field('Max Image Count', 'MAX_IMAGE_COUNT', 1);
print_reg_field('Number Of Moderators To Show', 'SHOW_N_MODS', 1);
print_bit_field('Public Stats', 'PUBLIC_STATS');
print_bit_field('Forum Info', 'FORUM_INFO');
print_reg_field('Forum Info Cache Age', 'STATS_CACHE_AGE', 1);
print_bit_field('Enable Affero<br><a href="http://www.affero.net/bbsteps.html" target=_blank>Click here for details</a>', 'ENABLE_AFFERO');
print_bit_field('Topic Rating', 'ENABLE_THREAD_RATING');
print_bit_field('Profile Image', 'ALLOW_PROFILE_IMAGE');
print_bit_field('Moderator Notification', 'MODERATED_POST_NOTIFY');
print_reg_field('Max History', 'MNAV_MAX_DATE', 1);
print_reg_field('Max Message Preview Length', 'MNAV_MAX_LEN', 1);
print_bit_field('Show PDF Generation Link', 'SHOW_PDF_LINK');
print_bit_field('Show Syndication Link', 'SHOW_XML_LINK');
print_bit_field('Attachment Referrer Check', 'DWLND_REF_CHK');
print_bit_field('Show Reply Reference', 'SHOW_REPL_LNK');
print_bit_field('Disable Report to Moderator', 'DISABLE_REPORT_LNK');
print_bit_field('Disable Ignore User', 'DISABLE_IGNORE_LIST');
if (function_exists('ob_gzhandler')) {
    print_bit_field('Use PHP compression', 'PHP_COMPRESSION_ENABLE');
    print_reg_field('PHP compression level', 'PHP_COMPRESSION_LEVEL', 1);
}
?>
<tr class="fieldaction"><td colspan=2 align=left><input type="submit" name="btn_submit" value="Set"></td></tr>
</table>
<input type="hidden" name="form_posted" value="1">
</form>
<?php 
require $WWW_ROOT_DISK . 'adm/admclose.php';
/* bail out if pdf extension is not avaliable */
if (!extension_loaded('pdf')) {
    echo 'Your PHP was not compiled with PDF extension support, therefor this feature is not avaliable.';
    require $WWW_ROOT_DISK . 'adm/admclose.php';
    exit;
}
$rdf_url = $WWW_ROOT . 'pdf.php';
?>
<h2>PDF Output Configuration</h2>
<form method="post" action="admpdf.php"><?php 
echo _hs;
?>
<table class="datatable solidtable">
<?php 
print_bit_field('PDF Output Enabled', 'PDF_ENABLED');
print_bit_field('Complete Forum Output', 'PDF_ALLOW_FULL');
$opts = "A0\nA1\nA2\nA3\nA4\nA5\nA6\nB5\nletter\nlegal\nledger";
$names = "A0: 2380 x 3368\nA1: 1684 x 2380\nA2: 1190 x 1684\nA3: 842 x 1190\nA4: 595 x 842\nA5: 421 x 595\nA6: 297 x 421\nB5: 501 x 709\nletter: 612 x 792\nlegal: 612 x 1008\nledger: 1224 x 792";
$sel = create_select('CF_PDF_PAGE', $names, $opts, $PDF_PAGE);
echo '<tr class="field"><td>Page Dimensions: <br><font size="-1">The sizes are in points, each point is 1/72 of an inch.</font></td><td valign="top">' . $sel . '</td></tr>';
print_reg_field('Horizontal Margin', 'PDF_WMARGIN', 1);
print_reg_field('Vertical Margin', 'PDF_HMARGIN', 1);
print_reg_field('Maximum CPU Time', 'PDF_MAX_CPU', 1);
?>
<tr class="fieldaction"><td colspan=2 align=right><input type="submit" name="btn_submit" value="Change Settings"></td></tr>
</table>
<input type="hidden" name="form_posted" value="1">
</form>
<br>
<table border=0 cellspacing=1 cellpadding=3>
<tr><th><b>Quick PDF Tutorial</b></th></tr>