mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Start on GUI of forum admin, also #6 LAN improvements.
Work in progress.
This commit is contained in:
@@ -236,7 +236,7 @@ define("LAN_UPDATED_FAILED","Update Unsuccessful");
|
||||
define("LAN_NO_CHANGE","Nothing updated as no changes were made.");
|
||||
define("LAN_TRY_AGAIN","Please try again.");
|
||||
define("LAN_NEVER", "Never");
|
||||
|
||||
define("LAN_PRUNE", "Prune");
|
||||
define("LAN_RESET","Reset");
|
||||
define("LAN_CLEAR","Clear");
|
||||
// define("LAN_OK","OK"); // defined in e107_languages/English/English.php
|
||||
|
@@ -33,7 +33,7 @@ class forumAdmin
|
||||
$var['order']['link'] = e_SELF.'?order';
|
||||
$var['opt']['text'] = FORLAN_79;
|
||||
$var['opt']['link'] = e_SELF.'?opt';
|
||||
$var['prune']['text'] = FORLAN_59;
|
||||
$var['prune']['text'] = LAN_PRUNE;
|
||||
$var['prune']['link'] = e_SELF.'?prune';
|
||||
$var['rules']['text'] = FORLAN_123;
|
||||
$var['rules']['link'] = e_SELF.'?rules';
|
||||
@@ -193,11 +193,12 @@ class forumAdmin
|
||||
$txt = "
|
||||
<form method='post' action='".e_SELF.'?'.e_QUERY."'>
|
||||
<div style='text-align:center'>".FORLAN_180."<br /><br />
|
||||
<input type='submit' class='button' name='confirm' value='".FORLAN_181."' />
|
||||
".$frm->admin_button('confirm', LAN_UI_DELETE_LABEL, 'submit')."
|
||||
<input type='submit' class='button' name='confirm' value='".LAN_DELETE."' />
|
||||
</div>
|
||||
</form>
|
||||
";
|
||||
$ns->tablerender(FORLAN_181, $txt);
|
||||
$ns->tablerender(LAN_UI_DELETE_LABEL, $txt);
|
||||
}
|
||||
|
||||
function show_subs($id)
|
||||
@@ -207,11 +208,11 @@ class forumAdmin
|
||||
<form method='post' action='".e_SELF.'?'.e_QUERY."'>
|
||||
<table style='width:100%'>
|
||||
<tr>
|
||||
<td class='fcaption'>".FORLAN_151."</td>
|
||||
<td class='fcaption'>".FORLAN_31."</td>
|
||||
<td class='fcaption'>".FORLAN_32."</td>
|
||||
<td class='fcaption'>".FORLAN_37."</td>
|
||||
<td class='fcaption'>".FORLAN_20."</td>
|
||||
<td>".FORLAN_151."</td>
|
||||
<td>".FORLAN_31."</td>
|
||||
<td>".FORLAN_32."</td>
|
||||
<td>".FORLAN_37."</td>
|
||||
<td>".FORLAN_20."</td>
|
||||
</tr>
|
||||
";
|
||||
if($sql->db_Select('forum', 'forum_id, forum_name, forum_description, forum_order', "forum_sub = {$id} ORDER by forum_order ASC"))
|
||||
@@ -221,11 +222,11 @@ class forumAdmin
|
||||
{
|
||||
$txt .= "
|
||||
<tr>
|
||||
<td class='forumheader2' style='vertical-align:top'>{$sub['forum_id']}</td>
|
||||
<td class='forumheader2' style='vertical-align:top'><input class='tbox' type='text' name='subname[{$sub['forum_id']}]' value='{$sub['forum_name']}' size='30' maxlength='255' /></td>
|
||||
<td class='forumheader2' style='vertical-align:top'><textarea cols='60' rows='2' class='tbox' name='subdesc[{$sub['forum_id']}]'>{$sub['forum_description']}</textarea></td>
|
||||
<td class='forumheader2' style='vertical-align:top'><input class='tbox' type='text' name='suborder[{$sub['forum_id']}]' value='{$sub['forum_order']}' size='3' maxlength='4' /></td>
|
||||
<td class='forumheader2' style='vertical-align:top; text-align:center'>
|
||||
<td style='vertical-align:top'>{$sub['forum_id']}</td>
|
||||
<td style='vertical-align:top'><input class='tbox' type='text' name='subname[{$sub['forum_id']}]' value='{$sub['forum_name']}' size='30' maxlength='255' /></td>
|
||||
<td style='vertical-align:top'><textarea cols='60' rows='2' class='tbox' name='subdesc[{$sub['forum_id']}]'>{$sub['forum_description']}</textarea></td>
|
||||
<td style='vertical-align:top'><input class='tbox' type='text' name='suborder[{$sub['forum_id']}]' value='{$sub['forum_order']}' size='3' maxlength='4' /></td>
|
||||
<td style='vertical-align:top; text-align:center'>
|
||||
<a href='".e_SELF."?delete.{$sub['forum_id']}'>".ADMIN_DELETE_ICON."</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -233,7 +234,7 @@ class forumAdmin
|
||||
}
|
||||
$txt .= "
|
||||
<tr>
|
||||
<td class='forumheader3' colspan='5' style='text-align:center'><input type='submit' class='button' name='update_subs' value='".FORLAN_147."' /></td>
|
||||
<td colspan='5' style='text-align:center'>".$frm->admin_button('update_subs', LAN_UPDATE, 'update')."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='5' style='text-align:center'> </td>
|
||||
@@ -243,36 +244,37 @@ class forumAdmin
|
||||
}
|
||||
else
|
||||
{
|
||||
$txt .= "<tr><td colspan='5' class='forumheader3' style='text-align:center'>".FORLAN_146."</td>";
|
||||
$txt .= "<tr><td colspan='5' style='text-align:center'>".FORLAN_146."</td>";
|
||||
}
|
||||
|
||||
$txt .= "
|
||||
<tr>
|
||||
<td class='fcaption'>".FORLAN_151."</td>
|
||||
<td class='fcaption'>".FORLAN_31."</td>
|
||||
<td class='fcaption'>".FORLAN_32."</td>
|
||||
<td class='fcaption'>".FORLAN_37."</td>
|
||||
<td class='fcaption'> </td>
|
||||
<td>".FORLAN_151."</td>
|
||||
<td>".FORLAN_31."</td>
|
||||
<td>".FORLAN_32."</td>
|
||||
<td>".FORLAN_37."</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader2' style='vertical-align:top'> </td>
|
||||
<td class='forumheader2'><input class='tbox' type='text' name='subname_new' value='' size='30' maxlength='255' /></td>
|
||||
<td class='forumheader2'><textarea cols='60' rows='2' class='tbox' name='subdesc_new'></textarea></td>
|
||||
<td class='forumheader2'><input class='tbox' type='text' name='suborder_new' value='' size='3' maxlength='4' /></td>
|
||||
<td class='forumheader2'> </td>
|
||||
<td style='vertical-align:top'> </td>
|
||||
<td><input class='tbox' type='text' name='subname_new' value='' size='30' maxlength='255' /></td>
|
||||
<td><textarea cols='60' rows='2' class='tbox' name='subdesc_new'></textarea></td>
|
||||
<td><input class='tbox' type='text' name='suborder_new' value='' size='3' maxlength='4' /></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' colspan='5' style='text-align:center'><input type='submit' class='button' name='create_sub' value='".FORLAN_148."' /></td>
|
||||
<td colspan='5' style='text-align:center'>".$frm->admin_button('create_sub', FORLAN_148, 'submit')."</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
";
|
||||
$ns->tablerender(FORLAN_149, $txt);
|
||||
$ns->tablerender(FORLAN_149, $txt); // LAN
|
||||
}
|
||||
|
||||
function show_existing_forums($sub_action, $id, $mode = false)
|
||||
{
|
||||
global $e107, $for;
|
||||
$frm = e107::getForm();
|
||||
|
||||
$subList = $for->forumGetSubs();
|
||||
|
||||
@@ -285,15 +287,15 @@ class forumAdmin
|
||||
$text = "<form method='post' action='".e_SELF."?".e_QUERY."'>";
|
||||
}
|
||||
$text .= "
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<table style='".ADMIN_WIDTH."' class='table adminlist'>
|
||||
<tr>
|
||||
<td colspan='2' style='width:70%; text-align:center' class='fcaption'>".FORLAN_28."</td>
|
||||
<td style='width:30%; text-align:center' class='fcaption'>".FORLAN_80."</td>
|
||||
<td colspan='2' style='width:70%; text-align:center'>".FORLAN_28."</td>
|
||||
<td style='width:30%; text-align:center'>".FORLAN_80."</td>
|
||||
</tr>";
|
||||
|
||||
if (!$parent_amount = $e107->sql->db_Select('forum', '*', "forum_parent='0' ORDER BY forum_order ASC"))
|
||||
{
|
||||
$text .= "<tr><td class='forumheader3' style='text-align:center' colspan='3'>".FORLAN_29."</td></tr>";
|
||||
$text .= "<tr><td style='text-align:center' colspan='3'>".FORLAN_29."</td></tr>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -305,11 +307,11 @@ class forumAdmin
|
||||
{
|
||||
$text .= "
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader'>".$parent['forum_name']."
|
||||
<td colspan='2'>".$parent['forum_name']."
|
||||
<br /><b>".FORLAN_140.":</b> ".$e107->user_class->uc_get_classname($parent['forum_class'])." <b>".FORLAN_141.":</b> ".$e107->user_class->uc_get_classname($parent['forum_postclass'])."
|
||||
</td>";
|
||||
|
||||
$text .= "<td class='forumheader' style='text-align:center'>";
|
||||
$text .= "<td style='text-align:center'>";
|
||||
|
||||
if ($mode)
|
||||
{
|
||||
@@ -334,7 +336,7 @@ class forumAdmin
|
||||
$forumCount = $e107->sql->db_Select('forum', '*', "forum_parent='".$parent['forum_id']."' AND forum_sub = 0 ORDER BY forum_order ASC");
|
||||
if (!$forumCount)
|
||||
{
|
||||
$text .= "<td colspan='4' style='text-align:center' class='forumheader3'>".FORLAN_29."</td>";
|
||||
$text .= "<td colspan='4' style='text-align:center'>".FORLAN_29."</td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -347,8 +349,8 @@ class forumAdmin
|
||||
{
|
||||
$text .= "
|
||||
<tr>
|
||||
<td style='width:5%; text-align:center' class='forumheader3'>".IMAGE_new."</td>\n<td style='width:55%' class='forumheader3'><a href='".$e107->url->create('forum/forum/view', $forum)."'>".$e107->tp->toHTML($forum['forum_name'])."</a>";
|
||||
// <td style='width:5%; text-align:center' class='forumheader3'>".IMAGE_new."</td>\n<td style='width:55%' class='forumheader3'><a href='".e_PLUGIN."forum/forum_viewforum.php?{$forum['forum_id']}'>".$e107->tp->toHTML($forum['forum_name'])."</a>";
|
||||
<td style='width:5%; text-align:center'>".IMAGE_new."</td>\n<td style='width:55%'><a href='".$e107->url->create('forum/forum/view', $forum)."'>".$e107->tp->toHTML($forum['forum_name'])."</a>";
|
||||
// <td style='width:5%; text-align:center'>".IMAGE_new."</td>\n<td style='width:55%'><a href='".e_PLUGIN."forum/forum_viewforum.php?{$forum['forum_id']}'>".$e107->tp->toHTML($forum['forum_name'])."</a>";
|
||||
|
||||
$text .= "
|
||||
<br /><span class='smallblacktext'>".$e107->tp->toHTML($forum['forum_description'])." </span>
|
||||
@@ -356,7 +358,7 @@ class forumAdmin
|
||||
|
||||
</td>
|
||||
|
||||
<td colspan='2' class='forumheader3' style='text-align:center'>";
|
||||
<td colspan='2' style='text-align:center'>";
|
||||
|
||||
if ($mode)
|
||||
{
|
||||
@@ -392,7 +394,7 @@ class forumAdmin
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= "<tr>\n<td colspan='4' style='text-align:center' class='forumheader'>\n<input class='button' type='submit' name='update_order' value='".FORLAN_72."' />\n</td>\n</tr>\n</table>\n</form>";
|
||||
$text .= "<tr>\n<td colspan='4' style='text-align:center'>\n".$frm->admin_button('update_order', LAN_UPDATE, 'update')."\n</td>\n</tr>\n</table>\n</form>";
|
||||
$e107->ns->tablerender(FORLAN_37, $text);
|
||||
}
|
||||
|
||||
@@ -401,6 +403,7 @@ class forumAdmin
|
||||
function create_parents($sub_action, $id)
|
||||
{
|
||||
global $e107;
|
||||
$frm = e107::getForm();
|
||||
|
||||
$id = (int)$id;
|
||||
if ($sub_action == 'edit' && !$_POST['update_parent'])
|
||||
@@ -421,40 +424,40 @@ class forumAdmin
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
<form method='post' action='".e_SELF.'?'.e_QUERY."'>
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<table style='".ADMIN_WIDTH."' class='table adminform'>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_31.":</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:40%'>".FORLAN_31.":</td>
|
||||
<td style='width:60%'>
|
||||
<input class='tbox' type='text' name='forum_name' size='60' value='".$e107->tp->toForm($row['forum_name'])."' maxlength='250' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_23.":<br /><span class='smalltext'>(".FORLAN_24.")</span></td>
|
||||
<td style='width:60%' class='forumheader3'>".$e107->user_class->uc_dropdown('forum_class', $row['forum_class'], 'nobody,public,member,admin,classes')."</td>
|
||||
<td style='width:40%'>".FORLAN_23.":<br /><span class='smalltext'>(".FORLAN_24.")</span></td>
|
||||
<td style='width:60%'>".$e107->user_class->uc_dropdown('forum_class', $row['forum_class'], 'nobody,public,member,admin,classes')."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_142.":<br /><span class='smalltext'>(".FORLAN_143.")</span></td>
|
||||
<td style='width:60%' class='forumheader3'>".$e107->user_class->uc_dropdown("forum_postclass", $row['forum_postclass'], 'nobody,public,member,admin,classes')."</td>
|
||||
<td style='width:40%'>".FORLAN_142.":<br /><span class='smalltext'>(".FORLAN_143.")</span></td>
|
||||
<td style='width:60%'>".$e107->user_class->uc_dropdown("forum_postclass", $row['forum_postclass'], 'nobody,public,member,admin,classes')."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_184.":<br /><span class='smalltext'>(".FORLAN_185.")</span></td>
|
||||
<td style='width:60%' class='forumheader3'>".$e107->user_class->uc_dropdown('forum_threadclass', $row['forum_threadclass'], 'nobody,public,member,admin,classes')."</td>
|
||||
<td style='width:40%'>".FORLAN_184.":<br /><span class='smalltext'>(".FORLAN_185.")</span></td>
|
||||
<td style='width:60%'>".$e107->user_class->uc_dropdown('forum_threadclass', $row['forum_threadclass'], 'nobody,public,member,admin,classes')."</td>
|
||||
</tr>
|
||||
|
||||
<tr style='vertical-align:top'>
|
||||
<td colspan='2' style='text-align:center' class='forumheader'>";
|
||||
<td colspan='2' style='text-align:center'>";
|
||||
|
||||
if ($sub_action == 'edit')
|
||||
{
|
||||
$text .= "<input class='button' type='submit' name='update_parent' value='".FORLAN_25."' />";
|
||||
$text .= $frm->admin_button('update_parent', LAN_UPDATE, 'update');
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= "<input class='button' type='submit' name='submit_parent' value='".FORLAN_26."' />";
|
||||
$text .= $frm->admin_button('submit_parent', LAN_CREATE, 'submit');
|
||||
}
|
||||
|
||||
$text .= "</td>
|
||||
@@ -469,6 +472,7 @@ class forumAdmin
|
||||
function create_forums($sub_action, $id)
|
||||
{
|
||||
global $e107;
|
||||
$frm = e107::getForm();
|
||||
|
||||
$id = (int)$id;
|
||||
if ($sub_action == 'edit' && !$_POST['update_forum'])
|
||||
@@ -491,10 +495,10 @@ class forumAdmin
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
<form method='post' action='".e_SELF.'?'.e_QUERY."'>\n
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<table style='".ADMIN_WIDTH."' class='table adminform'>
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_22.":</td>
|
||||
<td style='width:60%' class='forumheader3'>";
|
||||
<td style='width:40%'>".FORLAN_22.":</td>
|
||||
<td style='width:60%'>";
|
||||
|
||||
$e107->sql->db_Select('forum', '*', 'forum_parent=0');
|
||||
$text .= "<select name='forum_parent' class='tbox'>\n";
|
||||
@@ -508,52 +512,52 @@ class forumAdmin
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_31.":
|
||||
<td style='width:40%'>".FORLAN_31.":
|
||||
<div class='smalltext'>".FORLAN_179."</div>
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
<input class='tbox' type='text' name='forum_name' size='60' value='".$e107->tp->toForm($fInfo['forum_name'])."' maxlength='250' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_32.": </td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:40%'>".FORLAN_32.": </td>
|
||||
<td style='width:60%'>
|
||||
<textarea class='tbox' name='forum_description' cols='50' rows='5'>".$e107->tp->toForm($fInfo['forum_description'])."</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_33.":<br /><span class='smalltext'>(".FORLAN_34.")</span></td>
|
||||
<td style='width:60%' class='forumheader3'>";
|
||||
<td style='width:40%'>".FORLAN_33.":<br /><span class='smalltext'>(".FORLAN_34.")</span></td>
|
||||
<td style='width:60%'>";
|
||||
$text .= $e107->user_class->uc_dropdown('forum_moderators', $fInfo['forum_moderators'], 'admin,classes');
|
||||
|
||||
$text .= "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_23.":<br /><span class='smalltext'>(".FORLAN_24.")</span></td>
|
||||
<td style='width:60%' class='forumheader3'>".$e107->user_class->uc_dropdown('forum_class', $fInfo['forum_class'], 'nobody,public,member,admin,classes')."</td>
|
||||
<td style='width:40%'>".FORLAN_23.":<br /><span class='smalltext'>(".FORLAN_24.")</span></td>
|
||||
<td style='width:60%'>".$e107->user_class->uc_dropdown('forum_class', $fInfo['forum_class'], 'nobody,public,member,admin,classes')."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_142.":<br /><span class='smalltext'>(".FORLAN_143.")</span></td>
|
||||
<td style='width:60%' class='forumheader3'>".$e107->user_class->uc_dropdown('forum_postclass', $fInfo['forum_postclass'], 'nobody,public,member,admin,classes')."</td>
|
||||
<td style='width:40%'>".FORLAN_142.":<br /><span class='smalltext'>(".FORLAN_143.")</span></td>
|
||||
<td style='width:60%'>".$e107->user_class->uc_dropdown('forum_postclass', $fInfo['forum_postclass'], 'nobody,public,member,admin,classes')."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>".FORLAN_184.":<br /><span class='smalltext'>(".FORLAN_185.")</span></td>
|
||||
<td style='width:60%' class='forumheader3'>".$e107->user_class->uc_dropdown('forum_threadclass', $fInfo['forum_threadclass'], 'nobody,public,member,admin,classes')."</td>
|
||||
<td style='width:40%'>".FORLAN_184.":<br /><span class='smalltext'>(".FORLAN_185.")</span></td>
|
||||
<td style='width:60%'>".$e107->user_class->uc_dropdown('forum_threadclass', $fInfo['forum_threadclass'], 'nobody,public,member,admin,classes')."</td>
|
||||
</tr>
|
||||
|
||||
<tr style='vertical-align:top'>
|
||||
<td colspan='2' style='text-align:center' class='forumheader'>";
|
||||
<td colspan='2' style='text-align:center'>";
|
||||
if ($sub_action == "edit")
|
||||
{
|
||||
$text .= "<input class='button' type='submit' name='update_forum' value='".FORLAN_35."' />";
|
||||
$text .= $frm->admin_button('update_forum', LAN_UPDATE, 'update');
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= "<input class='button' type='submit' name='submit_forum' value='".FORLAN_36."' />";
|
||||
$text .= $frm->admin_button('submit_forum', LAN_CREATE, 'submit');
|
||||
}
|
||||
$text .= "</td>
|
||||
</tr>
|
||||
@@ -566,20 +570,22 @@ class forumAdmin
|
||||
function show_message($message)
|
||||
{
|
||||
global $e107;
|
||||
$e107->ns->tablerender('', "<div style='text-align:center'><b>".$message."</b></div>");
|
||||
$e107->ns->tablerender('', "<div style='text-align:center'><b>".$message."</b></div>"); //FIX: v2 style = render?
|
||||
}
|
||||
|
||||
function show_tools()
|
||||
{
|
||||
global $sql, $ns, $tp;
|
||||
$frm = e107::getForm();
|
||||
|
||||
$txt = "
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
||||
<table style='width:".ADMIN_WIDTH."'>
|
||||
<table style='width:".ADMIN_WIDTH."' class='table adminlist'>
|
||||
<tr style='width:100%'>
|
||||
<td class='fcaption'>".FORLAN_156."</td>
|
||||
<td>".FORLAN_156."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3'>
|
||||
<td>
|
||||
";
|
||||
if($sql->db_Select("forum", "*", "1 ORDER BY forum_order"))
|
||||
{
|
||||
@@ -594,34 +600,34 @@ class forumAdmin
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='fcaption'>".FORLAN_158."</td>
|
||||
<td>".FORLAN_158."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3'>
|
||||
<td>
|
||||
<input type='checkbox' name='lastpost' value='1' /> ".FORLAN_159." <br />
|
||||
<input type='checkbox' name='lastpost_nothread' value='1' checked='checked' /> ".FORLAN_160."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='fcaption'>".FORLAN_161."</td>
|
||||
<td>".FORLAN_161."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3'>
|
||||
<td>
|
||||
<input type='checkbox' name='counts' value='1' /> ".FORLAN_162."<br />
|
||||
<input type='checkbox' name='counts_threads' value='1' /><span style='text-align: center'> ".FORLAN_182."<br />".FORLAN_183."</span><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='fcaption'>".FORLAN_163."</td>
|
||||
<td>".FORLAN_163."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3'>
|
||||
<td>
|
||||
<input type='checkbox' name='userpostcounts' value='1' /> ".FORLAN_164."<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3' style='text-align:center'>
|
||||
<input class='button' type='submit' name='tools' value='".FORLAN_165."' />
|
||||
<td style='text-align:center'>
|
||||
".$frm->admin_button('tools', LAN_EXECUTE, 'submit')."
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -635,6 +641,7 @@ class forumAdmin
|
||||
global $fPref, $ns, $sql;
|
||||
$e107 = e107::getInstance();
|
||||
$emessage = eMessage::getInstance();
|
||||
$frm = e107::getForm();
|
||||
|
||||
$poll_installed = plugInstalled('poll');
|
||||
|
||||
@@ -650,44 +657,44 @@ class forumAdmin
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."'>\n
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<table style='".ADMIN_WIDTH."' class='table adminform'>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_44."<br /><span class='smalltext'>".FORLAN_45."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('enclose') ? "<input type='checkbox' name='forum_enclose' value='1' checked='checked' />" : "<input type='checkbox' name='forum_enclose' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_44."<br /><span class='smalltext'>".FORLAN_45."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('enclose') ? "<input type='checkbox' name='forum_enclose' value='1' checked='checked' />" : "<input type='checkbox' name='forum_enclose' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_65."<br /><span class='smalltext'>".FORLAN_46."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_title' size='15' value='".$fPref->get('title')."' maxlength='100' /></td>
|
||||
<td style='width:75%'>".FORLAN_65."<br /><span class='smalltext'>".FORLAN_46."</span></td>
|
||||
<td style='width:25%;text-align:center' ><input class='tbox' type='text' name='forum_title' size='15' value='".$fPref->get('title')."' maxlength='100' /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_47."<br /><span class='smalltext'>".FORLAN_48."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('notify') ? "<input type='checkbox' name='email_notify' value='1' checked='checked' />" : "<input type='checkbox' name='email_notify' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_47."<br /><span class='smalltext'>".FORLAN_48."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('notify') ? "<input type='checkbox' name='email_notify' value='1' checked='checked' />" : "<input type='checkbox' name='email_notify' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_177."<br /><span class='smalltext'>".FORLAN_178."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('notify_on') ? "<input type='checkbox' name='email_notify_on' value='1' checked='checked' />" : "<input type='checkbox' name='email_notify_on' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_177."<br /><span class='smalltext'>".FORLAN_178."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('notify_on') ? "<input type='checkbox' name='email_notify_on' value='1' checked='checked' />" : "<input type='checkbox' name='email_notify_on' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_49."<br /><span class='smalltext'>".FORLAN_50."</span></td>";
|
||||
<td style='width:75%'>".FORLAN_49."<br /><span class='smalltext'>".FORLAN_50."</span></td>";
|
||||
if($poll_installed)
|
||||
{
|
||||
// <td class='forumheader'>".$e107->user_class->uc_dropdown("mods[{$f['forum_id']}]", $f['forum_moderators'], 'admin,classes')."</td>
|
||||
$text .= "<td style='width:25%;text-align:center' class='forumheader3' >".$e107->user_class->uc_dropdown('forum_poll', $fPref->get('poll'), 'admin,classes').'</td>';
|
||||
// <td>".$e107->user_class->uc_dropdown("mods[{$f['forum_id']}]", $f['forum_moderators'], 'admin,classes')."</td>
|
||||
$text .= "<td style='width:25%;text-align:center' >".$e107->user_class->uc_dropdown('forum_poll', $fPref->get('poll'), 'admin,classes').'</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= "<td style='width:25%;text-align:center' class='forumheader3' >".FORLAN_66."</td>";
|
||||
$text .= "<td style='width:25%;text-align:center' >".FORLAN_66."</td>";
|
||||
}
|
||||
$text .= "
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_70."<br /><span class='smalltext'>".FORLAN_71." <a href='".e_ADMIN."upload.php'>".FORLAN_130."</a> ". FORLAN_131."</span>";
|
||||
<td style='width:75%'>".FORLAN_70."<br /><span class='smalltext'>".FORLAN_71." <a href='".e_ADMIN."upload.php'>".FORLAN_130."</a> ". FORLAN_131."</span>";
|
||||
|
||||
if(!$pref['image_post'])
|
||||
{
|
||||
@@ -699,74 +706,74 @@ class forumAdmin
|
||||
}
|
||||
|
||||
$text .= "</td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('attach') ? "<input type='checkbox' name='forum_attach' value='1' checked='checked' />" : "<input type='checkbox' name='forum_attach' value='1' />")."</td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('attach') ? "<input type='checkbox' name='forum_attach' value='1' checked='checked' />" : "<input type='checkbox' name='forum_attach' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_134."<br /><span class='smalltext'>".FORLAN_135."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' size='3' maxlength='5' name='forum_maxwidth' value='".$fPref->get('maxwidth')."' /></td>
|
||||
<td style='width:75%'>".FORLAN_134."<br /><span class='smalltext'>".FORLAN_135."</span></td>
|
||||
<td style='width:25%;text-align:center' ><input class='tbox' type='text' size='3' maxlength='5' name='forum_maxwidth' value='".$fPref->get('maxwidth')."' /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_136."<br /><span class='smalltext'>".FORLAN_137."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('linkimg') ? "<input type='checkbox' name='forum_linkimg' value='1' checked='checked' />" : "<input type='checkbox' name='forum_linkimg' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_136."<br /><span class='smalltext'>".FORLAN_137."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('linkimg') ? "<input type='checkbox' name='forum_linkimg' value='1' checked='checked' />" : "<input type='checkbox' name='forum_linkimg' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_51."<br /><span class='smalltext'>".FORLAN_52."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('track') ? "<input type='checkbox' name='forum_track' value='1' checked='checked' />" : "<input type='checkbox' name='forum_track' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_51."<br /><span class='smalltext'>".FORLAN_52."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('track') ? "<input type='checkbox' name='forum_track' value='1' checked='checked' />" : "<input type='checkbox' name='forum_track' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_112."<br /><span class='smalltext'>".FORLAN_113."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('redirect') ? "<input type='checkbox' name='forum_redirect' value='1' checked='checked' />" : "<input type='checkbox' name='forum_redirect' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_112."<br /><span class='smalltext'>".FORLAN_113."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('redirect') ? "<input type='checkbox' name='forum_redirect' value='1' checked='checked' />" : "<input type='checkbox' name='forum_redirect' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_116."<br /><span class='smalltext'>".FORLAN_122."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('reported_post_email') ? "<input type='checkbox' name='reported_post_email' value='1' checked='checked' />" : "<input type='checkbox' name='reported_post_email' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_116."<br /><span class='smalltext'>".FORLAN_122."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('reported_post_email') ? "<input type='checkbox' name='reported_post_email' value='1' checked='checked' />" : "<input type='checkbox' name='reported_post_email' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_126."<br /><span class='smalltext'>".FORLAN_127."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('forum_tooltip') ? "<input type='checkbox' name='forum_tooltip' value='1' checked='checked' />" : "<input type='checkbox' name='forum_tooltip' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_126."<br /><span class='smalltext'>".FORLAN_127."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('forum_tooltip') ? "<input type='checkbox' name='forum_tooltip' value='1' checked='checked' />" : "<input type='checkbox' name='forum_tooltip' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_128."<br /><span class='smalltext'>".FORLAN_129."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_tiplength' size='15' value='".$fPref->get('tiplength')."' maxlength='20' /></td>
|
||||
<td style='width:75%'>".FORLAN_128."<br /><span class='smalltext'>".FORLAN_129."</span></td>
|
||||
<td style='width:25%;text-align:center' ><input class='tbox' type='text' name='forum_tiplength' size='15' value='".$fPref->get('tiplength')."' maxlength='20' /></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_53."<br /><span class='smalltext'>".FORLAN_54."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_eprefix' size='15' value='".$fPref->get('eprefix')."' maxlength='20' /></td>
|
||||
<td style='width:75%'>".FORLAN_53."<br /><span class='smalltext'>".FORLAN_54."</span></td>
|
||||
<td style='width:25%;text-align:center' ><input class='tbox' type='text' name='forum_eprefix' size='15' value='".$fPref->get('eprefix')."' maxlength='20' /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_55."<br /><span class='smalltext'>".FORLAN_56."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_popular' size='3' value='".$fPref->get('popular')."' maxlength='3' /></td>
|
||||
<td style='width:75%'>".FORLAN_55."<br /><span class='smalltext'>".FORLAN_56."</span></td>
|
||||
<td style='width:25%;text-align:center' ><input class='tbox' type='text' name='forum_popular' size='3' value='".$fPref->get('popular')."' maxlength='3' /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_57."<br /><span class='smalltext'>".FORLAN_58."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_postspage' size='3' value='".$fPref->get('postspage')."' maxlength='3' /></td>
|
||||
<td style='width:75%'>".FORLAN_57."<br /><span class='smalltext'>".FORLAN_58."</span></td>
|
||||
<td style='width:25%;text-align:center' ><input class='tbox' type='text' name='forum_postspage' size='3' value='".$fPref->get('postspage')."' maxlength='3' /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_186."<br /><span class='smalltext'>".FORLAN_187."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' ><input class='tbox' type='text' name='forum_threadspage' size='3' value='".$fPref->get('threadspage')."' maxlength='3' /></td>
|
||||
<td style='width:75%'>".FORLAN_186."<br /><span class='smalltext'>".FORLAN_187."</span></td>
|
||||
<td style='width:25%;text-align:center' ><input class='tbox' type='text' name='forum_threadspage' size='3' value='".$fPref->get('threadspage')."' maxlength='3' /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:75%' class='forumheader3'>".FORLAN_132."<br /><span class='smalltext'>".FORLAN_133."</span></td>
|
||||
<td style='width:25%;text-align:center' class='forumheader3' >".($fPref->get('hilightsticky') ? "<input type='checkbox' name='forum_hilightsticky' value='1' checked='checked' />" : "<input type='checkbox' name='forum_hilightsticky' value='1' />")."</td>
|
||||
<td style='width:75%'>".FORLAN_132."<br /><span class='smalltext'>".FORLAN_133."</span></td>
|
||||
<td style='width:25%;text-align:center' >".($fPref->get('hilightsticky') ? "<input type='checkbox' name='forum_hilightsticky' value='1' checked='checked' />" : "<input type='checkbox' name='forum_hilightsticky' value='1' />")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' style='text-align:center' class='forumheader'>
|
||||
<input class='button' type='submit' name='updateoptions' value='".FORLAN_61."' />
|
||||
<td colspan='2' style='text-align:center'>
|
||||
".$frm->admin_button('updateoptions', LAN_UPDATE, 'update')."
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -785,48 +792,48 @@ class forumAdmin
|
||||
$user = $sql -> db_Fetch();
|
||||
$con = new convert;
|
||||
$text = "<div style='text-align: center'>
|
||||
<table class='fborder' style='".ADMIN_WIDTH."'><tr>
|
||||
<td style='width:40%' class='forumheader3'>
|
||||
<table style='".ADMIN_WIDTH."' class='table adminlist'><tr>
|
||||
<td style='width:40%'>
|
||||
".FORLAN_171.":
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
<a href='".e_PLUGIN."forum/forum_viewtopic.php?".$row['gen_intdata'].".post' rel='external'>#".$row['gen_intdata']."</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>
|
||||
<td style='width:40%'>
|
||||
".FORLAN_173.":
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
".$row['gen_ip']."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>
|
||||
<td style='width:40%'>
|
||||
".FORLAN_174.":
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
<a href='".e_BASE."user.php?id.".$user['user_id']."'>".$user['user_name']."</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>
|
||||
<td style='width:40%'>
|
||||
".FORLAN_175.":
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
".$con -> convert_date($row['gen_datestamp'], "long")."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='width:40%' class='forumheader3'>
|
||||
<td style='width:40%'>
|
||||
".FORLAN_176.":
|
||||
</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
".$row['gen_chardata']."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='text-align:center' class='forumheader' colspan='2'>
|
||||
<td style='text-align:center' colspan='2'>
|
||||
".$rs->form_open("post", e_SELF."?sr", "", "", "", " onsubmit=\"return confirm_('sr',".$row['gen_datestamp'].")\"")."
|
||||
".$rs->form_button("submit", "delete[reported_{$row['gen_id']}]", FORLAN_172)."
|
||||
".$rs->form_close()."
|
||||
@@ -839,16 +846,16 @@ class forumAdmin
|
||||
$text = "<div style='text-align: center'>";
|
||||
if ($reported_total = $sql->db_Select("generic", "*", "gen_type='reported_post' OR gen_type='Reported Forum Post'"))
|
||||
{
|
||||
$text .= "<table class='fborder' style='".ADMIN_WIDTH."'>
|
||||
$text .= "<table style='".ADMIN_WIDTH."' class='table adminlist'>
|
||||
<tr>
|
||||
<td style='width:80%' class='fcaption'>".FORLAN_170."</td>
|
||||
<td style='width:20%; text-align:center' class='fcaption'>".FORLAN_80."</td>
|
||||
<td style='width:80%' >".FORLAN_170."</td>
|
||||
<td style='width:20%; text-align:center' >".FORLAN_80."</td>
|
||||
</tr>";
|
||||
while ($row = $sql->db_Fetch())
|
||||
{
|
||||
$text .= "<tr>
|
||||
<td style='width:80%' class='forumheader3'><a href='".e_SELF."?sr.".$row['gen_id']."'>".FORLAN_171." #".$row['gen_intdata']."</a></td>
|
||||
<td style='width:20%; text-align:center; vertical-align:top; white-space: nowrap' class='forumheader3'>
|
||||
<td style='width:80%'><a href='".e_SELF."?sr.".$row['gen_id']."'>".FORLAN_171." #".$row['gen_intdata']."</a></td>
|
||||
<td style='width:20%; text-align:center; vertical-align:top; white-space: nowrap'>
|
||||
".$rs->form_open("post", e_SELF."?sr", "", "", "", " onsubmit=\"return confirm_('sr',".$row['gen_datestamp'].")\"")."
|
||||
".$rs->form_button("submit", "delete[reported_{$row['gen_id']}]", FORLAN_172)."
|
||||
".$rs->form_close()."
|
||||
@@ -869,6 +876,7 @@ class forumAdmin
|
||||
function show_prune()
|
||||
{
|
||||
global $ns, $sql;
|
||||
$frm = e107::getForm();
|
||||
|
||||
// $sql -> db_Select("forum", "forum_id, forum_name", "forum_parent!=0 ORDER BY forum_order ASC");
|
||||
$qry = "
|
||||
@@ -882,28 +890,28 @@ class forumAdmin
|
||||
$sql -> db_Select_gen($qry);
|
||||
$forums = $sql -> db_getList();
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
$text = "
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."'>\n
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<table style='".ADMIN_WIDTH."' class='table adminlist'>
|
||||
<tr>
|
||||
<td style='text-align:center' class='forumheader3'>".FORLAN_60."</td>
|
||||
<td>".FORLAN_60."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td style='text-align:center' class='forumheader3'>".FORLAN_87."
|
||||
<td>".FORLAN_87."
|
||||
<input class='tbox' type='text' name='prune_days' size='6' value='' maxlength='3' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='text-align:center' class='forumheader3'>".FORLAN_2."<br />
|
||||
<td>".FORLAN_2."<br />
|
||||
".FORLAN_89." <input type='radio' name='prune_type' value='delete' />
|
||||
".FORLAN_90." <input type='radio' name='prune_type' value='make_inactive' checked='checked' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3'>".FORLAN_138.": <br />";
|
||||
<td>".FORLAN_138.": <br />";
|
||||
|
||||
foreach($forums as $forum)
|
||||
{
|
||||
@@ -915,14 +923,13 @@ class forumAdmin
|
||||
|
||||
|
||||
$text .= "<tr>
|
||||
<td colspan='2' style='text-align:center' class='forumheader'>
|
||||
<input class='button' type='submit' name='do_prune' value='".FORLAN_5."' />
|
||||
<td colspan='2' style='text-align:center'>
|
||||
".$frm->admin_button('do_prune', LAN_PRUNE, 'submit')."
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
$ns->tablerender(FORLAN_59, $text);
|
||||
</form>";
|
||||
$ns->tablerender(LAN_PRUNE, $text);
|
||||
}
|
||||
|
||||
|
||||
@@ -933,14 +940,15 @@ class forumAdmin
|
||||
$forumList = $for->forum_getforums('all');
|
||||
$parentList = $for->forum_getparents('list');
|
||||
$subList = $for->forumGetSubs('bysub');
|
||||
$frm = e107::getForm();
|
||||
|
||||
$txt = "<form method='post' action='".e_SELF."?".e_QUERY."'><table class='fborder' style='width:100%'><tr><td> </td>";
|
||||
$txt = "<form method='post' action='".e_SELF."?".e_QUERY."'><table style='width:100%' class='table adminlist'><tr><td> </td>";
|
||||
|
||||
foreach($parentList as $p)
|
||||
{
|
||||
$txt .= "
|
||||
<tr>
|
||||
<td colspan='2' class='fcaption'><strong>".$tp->toHTML($p['forum_name'])."</strong></td>
|
||||
<td colspan='2' ><strong>".$tp->toHTML($p['forum_name'])."</strong></td>
|
||||
</tr>
|
||||
";
|
||||
|
||||
@@ -948,16 +956,16 @@ class forumAdmin
|
||||
{
|
||||
$txt .= "
|
||||
<tr>
|
||||
<td class='forumheader'>{$f['forum_name']}</td>
|
||||
<td class='forumheader'>".$e107->user_class->uc_dropdown("mods[{$f['forum_id']}]", $f['forum_moderators'], 'admin,classes')."</td>
|
||||
<td>{$f['forum_name']}</td>
|
||||
<td>".$e107->user_class->uc_dropdown("mods[{$f['forum_id']}]", $f['forum_moderators'], 'admin,classes')."</td>
|
||||
</tr>
|
||||
";
|
||||
foreach($subList[$f['forum_id']] as $s)
|
||||
{
|
||||
$txt .= "
|
||||
<tr>
|
||||
<td class='forumheader3'> {$s['forum_name']}</td>
|
||||
<td class='forumheader3'>".$e107->user_class->uc_dropdown("mods[{$s['forum_id']}]", $s['forum_moderators'], 'admin,classes')."</td>
|
||||
<td> {$s['forum_name']}</td>
|
||||
<td>".$e107->user_class->uc_dropdown("mods[{$s['forum_id']}]", $s['forum_moderators'], 'admin,classes')."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
@@ -965,18 +973,19 @@ class forumAdmin
|
||||
}
|
||||
$txt .= "
|
||||
<tr>
|
||||
<td colspan='2' class='fcaption' style='text-align:center'>
|
||||
<input class='button' type='submit' name='setMods' value='".WMGLAN_4." ".FORLAN_33."' />
|
||||
<td colspan='2' style='text-align:center'>
|
||||
".$frm->admin_button('setMods', LAN_UPDATE, 'update')."
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table></form>";
|
||||
$ns->tablerender(FORLAN_33, $txt);
|
||||
$ns->tablerender(FORLAN_33, $txt); // FIX: LAN button update was WMGLAN_4." ".FORLAN_33)
|
||||
}
|
||||
|
||||
function show_rules()
|
||||
{
|
||||
global $sql, $pref, $ns, $tp;
|
||||
$frm = e107::getForm();
|
||||
|
||||
$sql->db_Select("wmessage");
|
||||
list($null) = $sql->db_Fetch();
|
||||
@@ -1006,12 +1015,12 @@ class forumAdmin
|
||||
$text = "
|
||||
<div style='text-align:center'>
|
||||
<form method='post' action='".e_SELF."?rules' id='wmform'>
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<table style='".ADMIN_WIDTH."' class='table adminform'>
|
||||
<tr>";
|
||||
|
||||
$text .= "
|
||||
|
||||
<td style='width:20%' class='forumheader3'>".WMGLAN_1.": <br />
|
||||
<td style='width:20%'>".WMGLAN_1.": <br />
|
||||
".WMGLAN_6.":";
|
||||
if ($guest_rules['gen_intdata'])
|
||||
{
|
||||
@@ -1022,7 +1031,7 @@ class forumAdmin
|
||||
$text .= "<input type='checkbox' name='guest_active' value='1' />";
|
||||
}
|
||||
$text .= "</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
<textarea class='tbox' name='guestrules' cols='70' rows='10'>$guesttext</textarea>
|
||||
<br />
|
||||
<input class='helpbox' type='text' name='helpguest' size='100' />
|
||||
@@ -1032,7 +1041,7 @@ class forumAdmin
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:20%' class='forumheader3'>".WMGLAN_2.": <br />
|
||||
<td style='width:20%'>".WMGLAN_2.": <br />
|
||||
".WMGLAN_6.":";
|
||||
if ($member_rules['gen_intdata'])
|
||||
{
|
||||
@@ -1043,17 +1052,17 @@ class forumAdmin
|
||||
$text .= "<input type='checkbox' name='member_active' value='1' />";
|
||||
}
|
||||
$text .= "</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
<textarea class='tbox' name='memberrules' cols='70' rows='10'>$membertext</textarea>
|
||||
<br />
|
||||
<input class='helpbox' type='text' name='helpmember' size='100' />
|
||||
<input class='helpbox' type='text' name='helpmember' size='100' />
|
||||
<br />
|
||||
".display_help('helpb', 1, 'addtext2', 'help2')."
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:20%' class='forumheader3'>".WMGLAN_3.": <br />
|
||||
<td style='width:20%'>".WMGLAN_3.": <br />
|
||||
".WMGLAN_6.": ";
|
||||
|
||||
if ($admin_rules['gen_intdata'])
|
||||
@@ -1066,7 +1075,7 @@ class forumAdmin
|
||||
}
|
||||
|
||||
$text .= "</td>
|
||||
<td style='width:60%' class='forumheader3'>
|
||||
<td style='width:60%'>
|
||||
<textarea class='tbox' name='adminrules' cols='70' rows='10'>$admintext</textarea>
|
||||
<br />
|
||||
<input class='helpbox' type='text' name='helpadmin' size='100' />
|
||||
@@ -1076,9 +1085,9 @@ class forumAdmin
|
||||
</tr>
|
||||
|
||||
<tr style='vertical-align:top'>
|
||||
<td class='forumheader'> </td>
|
||||
<td style='width:60%' class='forumheader'>
|
||||
<input class='button' type='submit' name='frsubmit' value='".WMGLAN_4."' />
|
||||
<td> </td>
|
||||
<td style='width:60%'>
|
||||
".$frm->admin_button('frsubmit', WMGLAN_4, 'submit')."
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@@ -33,8 +33,8 @@ define("FORLAN_21", "tick to confirm");
|
||||
define("FORLAN_22", "Parent");
|
||||
define("FORLAN_23", "Viewable by");
|
||||
define("FORLAN_24", "Indicates who can view the forum");
|
||||
define("FORLAN_25", "Update Parent");
|
||||
define("FORLAN_26", "Create Parent");
|
||||
//define("FORLAN_25", "Update Parent");
|
||||
//define("FORLAN_26", "Create Parent");
|
||||
define("FORLAN_27", "You need to define at least one forum parent before creating a forum.");
|
||||
define("FORLAN_28", "Forums");
|
||||
define("FORLAN_29", "No forums yet.");
|
||||
@@ -43,8 +43,8 @@ define("FORLAN_31", "Name");
|
||||
define("FORLAN_32", "Description");
|
||||
define("FORLAN_33", "Moderators");
|
||||
define("FORLAN_34", "Choose userclass for moderators of this forum");
|
||||
define("FORLAN_35", "Update Forum");
|
||||
define("FORLAN_36", "Create Forum");
|
||||
//define("FORLAN_35", "Update Forum");
|
||||
//define("FORLAN_36", "Create Forum");
|
||||
define("FORLAN_37", "Order");
|
||||
define("FORLAN_38", "Closed");
|
||||
define("FORLAN_39", "Members Only");
|
||||
@@ -67,9 +67,9 @@ define("FORLAN_55", "Popular thread threshold");
|
||||
define("FORLAN_56", "Number of posts made to a thread before it is marked as popular");
|
||||
define("FORLAN_57", "Posts per page");
|
||||
define("FORLAN_58", "Number of posts displayed per page");
|
||||
define("FORLAN_59", "Prune");
|
||||
//define("FORLAN_59", "Prune");
|
||||
define("FORLAN_60", "This will delete all threads that have not received a reply in the number of days you enter. <br /><b>Please be careful using this function!</b>");
|
||||
define("FORLAN_61", "Update Options");
|
||||
//define("FORLAN_61", "Update Options");
|
||||
define("FORLAN_62", "Forum Options");
|
||||
define("FORLAN_63", "Ranks");
|
||||
define("FORLAN_64", "Enter your levels here, if left blank generic stars will be used to denote level. Separate levels with comma. Maximum of 10 levels, lowest first.");
|
||||
@@ -78,7 +78,7 @@ define('FORLAN_66', 'Not installed');
|
||||
|
||||
define("FORLAN_70", "Enable file / image attachments");
|
||||
define("FORLAN_71", "Allow users to upload file or image with their forum post,");
|
||||
define("FORLAN_72", "Update Order");
|
||||
//define("FORLAN_72", "Update Order");
|
||||
define("FORLAN_73", "Order Updated");
|
||||
|
||||
define("FORLAN_75", "Parents");
|
||||
@@ -202,7 +202,7 @@ define("FORLAN_178", "Tick this to allow make the email notification checkbox be
|
||||
|
||||
define("FORLAN_179", "(Adding a * to the beginning of the forum name will make this forum a container for sub-forums only. The forum theme must support this option also.)");
|
||||
define("FORLAN_180", "Confirm delete operation");
|
||||
define("FORLAN_181", "Confirm Delete");
|
||||
//define("FORLAN_181", "Confirm Delete");
|
||||
define("FORLAN_182", "also recalculate replies for all threads in selected forum");
|
||||
define("FORLAN_183", "(this function is not allowed when selecting 'all forums' due to the number of queries it will generate)");
|
||||
|
||||
|
Reference in New Issue
Block a user