Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: management.php 4049 2008-07-26 22:11:03Z Tikitiki $
| * $Id: management.php 4131 2008-08-19 15:31:39Z Tikitiki $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 618 | Zeile 618 |
---|
if(!$errors) {
|
if(!$errors) {
|
| if($pid < 0) { $pid = 0; }
|
$insert_array = array( "name" => $db->escape_string($mybb->input['title']), "description" => $db->escape_string($mybb->input['description']),
| $insert_array = array( "name" => $db->escape_string($mybb->input['title']), "description" => $db->escape_string($mybb->input['description']),
|
Zeile 641 | Zeile 645 |
---|
"modthreads" => intval($mybb->input['modthreads']), "mod_edit_posts" => intval($mybb->input['mod_edit_posts']), "modattachments" => intval($mybb->input['modattachments']),
|
"modthreads" => intval($mybb->input['modthreads']), "mod_edit_posts" => intval($mybb->input['mod_edit_posts']), "modattachments" => intval($mybb->input['modattachments']),
|
"style" => intval($mybb->input['fstyle']),
| "style" => intval($mybb->input['style']),
|
"overridestyle" => intval($mybb->input['overridestyle']), "rulestype" => intval($mybb->input['rulestype']), "rulestitle" => $db->escape_string($mybb->input['rulestitle']),
| "overridestyle" => intval($mybb->input['overridestyle']), "rulestype" => intval($mybb->input['rulestype']), "rulestitle" => $db->escape_string($mybb->input['rulestitle']),
|
Zeile 955 | Zeile 959 |
---|
} if($mybb->input['permissions'][$usergroup['gid']][$forum_permission])
|
} if($mybb->input['permissions'][$usergroup['gid']][$forum_permission])
|
{
| {
|
$value = $mybb->input['permissions'][$usergroup['gid']][$forum_permission]; }
| $value = $mybb->input['permissions'][$usergroup['gid']][$forum_permission]; }
|
Zeile 1068 | Zeile 1072 |
---|
if(!$errors) {
|
if(!$errors) {
|
| if($pid < 0) { $pid = 0; }
|
$update_array = array( "name" => $db->escape_string($mybb->input['title']), "description" => $db->escape_string($mybb->input['description']),
| $update_array = array( "name" => $db->escape_string($mybb->input['title']), "description" => $db->escape_string($mybb->input['description']),
|
Zeile 1090 | Zeile 1098 |
---|
"modthreads" => intval($mybb->input['modthreads']), "mod_edit_posts" => intval($mybb->input['mod_edit_posts']), "modattachments" => intval($mybb->input['modattachments']),
|
"modthreads" => intval($mybb->input['modthreads']), "mod_edit_posts" => intval($mybb->input['mod_edit_posts']), "modattachments" => intval($mybb->input['modattachments']),
|
"style" => intval($mybb->input['fstyle']),
| "style" => intval($mybb->input['style']),
|
"overridestyle" => intval($mybb->input['overridestyle']), "rulestype" => intval($mybb->input['rulestype']), "rulestitle" => $db->escape_string($mybb->input['rulestitle']),
| "overridestyle" => intval($mybb->input['overridestyle']), "rulestype" => intval($mybb->input['rulestype']), "rulestitle" => $db->escape_string($mybb->input['rulestitle']),
|
Zeile 2035 | Zeile 2043 |
---|
foreach($forum_cache as $forum) {
|
foreach($forum_cache as $forum) {
|
$forums_by_parent[$forum['pid']][$val['disporder']][$forum['fid']] = $forum;
| $forums_by_parent[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
|
} }
| } }
|
Zeile 2094 | Zeile 2102 |
---|
{ if($forum['description']) {
|
{ if($forum['description']) {
|
| $forum['description'] = preg_replace("#&(?!\#[0-9]+;)#si", "&", $forum['description']);
|
$forum['description'] = "<br /><small>".$forum['description']."</small>"; }
| $forum['description'] = "<br /><small>".$forum['description']."</small>"; }
|
Zeile 2141 | Zeile 2150 |
---|
++$donecount; if($donecount == $mybb->settings['subforumsindex']) {
|
++$donecount; if($donecount == $mybb->settings['subforumsindex']) {
|
if(count($children) > $donecount)
| if(subforums_count($forums_by_parent[$pid]) > $donecount)
|
{
|
{
|
$sub_forums .= $comma.$lang->sprintf($lang->more_subforums, (count($children) - $donecount));
| $sub_forums .= $comma.$lang->sprintf($lang->more_subforums, (subforums_count($forums_by_parent[$pid]) - $donecount));
|
return; } }
| return; } }
|