1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Carry across some mods from 0.7

This commit is contained in:
e107steved
2007-07-23 21:13:34 +00:00
parent 76f74ae9fd
commit ebce2b96e8
4 changed files with 76 additions and 33 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_admin.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:35:12 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2007-07-23 21:13:34 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
$eplug_admin = true;
@@ -986,7 +986,22 @@ class forum
function show_prefs()
{
global $pref, $ns;
global $pref, $ns, $sql;
if($sql->db_Count('plugin','(*)', "where plugin_path = 'poll' AND plugin_installflag = 1"))
{
$poll_installed = true;
}
else
{
$poll_installed = false;
if($pref['forum_poll'] == 1)
{
$pref['forum_poll'] = 0;
save_prefs();
}
}
$text = "<div style='text-align:center'>
<form method='post' action='".e_SELF."?".e_QUERY."'>\n
<table style='".ADMIN_WIDTH."' class='fborder'>
@@ -1012,8 +1027,16 @@ class forum
</tr>
<tr>
<td style='width:75%' class='forumheader3'>".FORLAN_49."<br /><span class='smalltext'>".FORLAN_50."</span></td>
<td style='width:25%;text-align:center' class='forumheader3' >".($pref['forum_poll'] ? "<input type='checkbox' name='forum_poll' value='1' checked='checked' />" : "<input type='checkbox' name='forum_poll' value='1' />")."</td>
<td style='width:75%' class='forumheader3'>".FORLAN_49."<br /><span class='smalltext'>".FORLAN_50."</span></td>";
if($poll_installed)
{
$text .= "<td style='width:25%;text-align:center' class='forumheader3' >".($pref['forum_poll'] ? "<input type='checkbox' name='forum_poll' value='1' checked='checked' />" : "<input type='checkbox' name='forum_poll' value='1' />")."</td>";
}
else
{
$text .= "<td style='width:25%;text-align:center' class='forumheader3' >".FORLAN_66."</td>";
}
$text .= "
</tr>
<tr>
@@ -1223,8 +1246,8 @@ class forum
<tr>
<td style='text-align:center' class='forumheader3'>".FORLAN_2."<br />
".FORLAN_89." <input type='radio' name='prune_type' value='".FORLAN_3."' />&nbsp;&nbsp;&nbsp;
".FORLAN_90." <input type='radio' name='prune_type' value='".FORLAN_111."' checked='checked' />
".FORLAN_89." <input type='radio' name='prune_type' value='delete' />&nbsp;&nbsp;&nbsp;
".FORLAN_90." <input type='radio' name='prune_type' value='make_inactive' checked='checked' />
</td>
</tr>