{$f_lg['cat_name']}
 
"; } function echo_forum($type, $id = false, $sub_id = false){ global $db, $f_lg, $user_group, $category_list, $forum_list, $sub_id; if ($type == "new") { $act = "forum_add"; $button = $f_lg['button_add']; category_list($id); forum_list($sub_id); $access_forum = access_forum($user_group, '0'); $f_form['postcount'] = 1; } if ($type == "edit") { include(SYSTEM_DIR.'/classes/parse.class.php'); $parse = new ParseFilter(); $result = $db->query("SELECT * FROM " . PREFIX . "_forum_forums WHERE id = '$id'"); while ($row = $db->get_row($result)) { $f_form['name'] = stripslashes(preg_replace(array("'\"'", "'\''"), array(""", "'"),$row['name'])); $f_form['description'] = stripslashes(preg_replace(array("'\"'", "'\''"), array(""", "'"),$row['description'])); $f_form['password'] = stripslashes(preg_replace(array("'\"'", "'\''"), array(""", "'"),$row['password'])); $f_form['rules_name'] = stripslashes(preg_replace(array("'\"'", "'\''"), array(""", "'"),$row['rules_title'])); $f_form['rules'] = $parse->decodeBBCodes($row['rules'], false); $f_form['icon'] = stripslashes(preg_replace(array("'\"'", "'\''"), array(""", "'"),$row['icon'])); $sel_id = $row['main_id']; $forum_id = $row['id']; $parentid = $row['parentid']; $f_form['postcount'] = $row['postcount']; $f_form['fixpost'] = $row['fixpost']; $f_form['banner'] = stripslashes($row['banner']); $f_form['q_reply'] = intval($row['q_reply']); $f_form['i_edit'] = intval($row['i_edit']); } $act = "forum_save&id=$forum_id"; $button = $f_lg['button_edit']; category_list($sel_id); forum_list($parentid); $access_forum = access_forum($user_group, $forum_id); } echo "
{$f_lg['forum_mset']}
{$f_lg['forum_name']}
{$f_lg['forum_descr']}
{$f_lg['forum_icon']} [?]
{$f_lg['password']}
{$f_lg['forum_cat']}
{$f_lg['forum_for']}

{$f_lg['forum_posts_conf']}
{$f_lg['forum_postcount']} ".makeDropDown(array("1"=>$f_lg['yes'],"0"=>$f_lg['no']), "postcount", $f_form['postcount'])."
{$f_lg['forum_fixpost']} ".makeDropDown(array("1"=>$f_lg['yes'],"0"=>$f_lg['no']), "fixpost", $f_form['fixpost'])."
{$f_lg['forum_q_reply']} ".makeDropDown(array("1"=>$f_lg['yes'],"0"=>$f_lg['no']), "q_reply", $f_form['q_reply'])."
{$f_lg['forum_i_edit']} ".makeDropDown(array("1"=>$f_lg['yes'],"0"=>$f_lg['no']), "i_edit", $f_form['i_edit'])."

{$f_lg['forum_rules']}
{$f_lg['forum_rules1']}
{$f_lg['forum_rules2']}

{$f_lg['forum_banner']}
{$f_lg['forum_banner2']}

{$f_lg['forum_access']}
{$access_forum}
 
"; } function echo_rank($type, $id = false){ global $db, $f_lg; if ($type == "new") { $act = "rank_add"; $button = $f_lg['button_add']; } if ($type == "edit") { $act = "rank_save&id=$id"; $button = $f_lg['button_edit']; $result = $db->super_query("SELECT * FROM " . PREFIX . "_forum_titles WHERE id = '$id'"); $t_name = $result['title']; $t_posts = $result['posts']; $t_pips = $result['pips']; } echo "
{$f_lg['titles_nname']}
{$f_lg['titles_npost']}
{$f_lg['titles_npips']}
 
"; } if(!defined('DLE_FORUM')){ exit; } function echo_mail($name, $text, $description) { echo "
{$description}
"; } function echo_rank_style () { global $config; $style = << .rank { width: 85px; height: 16px; } .unit-rank { list-style: none; margin: 0px; padding: 0px; width: 85px; height: 16px; position: relative; background-image: url('{THEME}/forum/images/rating.gif'); background-position: top left; background-repeat: repeat-x; } .unit-rank li { text-indent: -90000px; padding: 0px; margin: 0px; float: left; } .unit-rank li a { display: block; width: 17px; height: 16px; text-decoration: none; text-indent: -9000px; z-index: 17; position: absolute; padding: 0px; } .unit-rank li a:hover { background-image: url('{THEME}/forum/images/rating.gif'); background-position: left center; z-index: 2; left: 0px; } .unit-rank a.r1-unit { left: 0px; } .unit-rank a.r1-unit:hover { width: 17px; } .unit-rank a.r2-unit { left: 17px; } .unit-rank a.r2-unit:hover { width: 34px; } .unit-rank a.r3-unit { left: 34px; } .unit-rank a.r3-unit:hover { width: 51px; } .unit-rank a.r4-unit { left: 51px; } .unit-rank a.r4-unit:hover { width: 68px; } .unit-rank a.r5-unit { left: 68px; } .unit-rank a.r5-unit:hover { width: 85px; } .unit-rank li.current-rank { background-image: url('{THEME}/forum/images/rating.gif'); background-position: left bottom; position: absolute; height: 16px; display: block; text-indent: -9000px; z-index: 1; } HTML; echo str_replace('{THEME}', $config['http_home_url'].'templates/'.$config['skin'], $style); } ?>