| Mod Description | Updates your Invisionboard 1.3.1, inserts all known security fixes and adds more essential features. |
| Mod Compatibility | Invision Power Board 1.3.1 |
| Mod Category | ACP Mod |
| Mod Author | Peter |
| Mod Author's Email | Peter@ibforen.de |
| Info File | sources/mods/sec_update_131_C/mod_sec_update_131_howto.htm |
| Mod Version | 2.7.1 |
| Comment | Distribution is not allowed. Download from ibforen.de All changes could be recognized by mod_token This html-howto was created with The ModInstaller 1.3.3 by Peter@ibforen.de, released on 1st June, 2011 Creation time July 29, 2011 It is not for public use. Attention
|
| Mod Token | mod_sec_update_131 |
| Changed file | Changed function |
| sources/Admin/admin_functions.php | admin_functions(..) |
| sources/Admin/admin_functions.php | build_jump_menu(..) |
| sources/Admin/admin_functions.php | build_tree(..) |
| sources/Admin/admin_functions.php | class properties or methods |
| sources/Admin/admin_functions.php | done_screen(..) |
| sources/Admin/admin_functions.php | get_date(..) |
| sources/Admin/admin_pages.php | body |
| sources/Admin/admin_skin.php | admin_skin(..) |
| sources/Admin/admin_skin.php | class properties or methods |
| sources/Admin/admin_skin.php | frame_set(..) |
| sources/Admin/admin_skin.php | get_css(..) |
| sources/Admin/admin_skin.php | js_template_tools(..) |
| sources/Admin/admin_skin.php | make_page_jump(..) |
| sources/Admin/admin_skin.php | menu_cat_expanded(..) |
| sources/Admin/admin_skin.php | menu_top(..) |
| sources/Admin/admin_skin.php | print_top(..) |
| sources/Admin/ad_forums.php | delete_form(..) |
| sources/Admin/ad_forums.php | dosubdelete(..) |
| sources/Admin/ad_forums.php | do_new(..), do_edit(..), doeditsub(..) |
| sources/Admin/ad_forums.php | edit_form(..) |
| sources/Admin/ad_forums.php | edit_form(..), subedit(..) |
| sources/Admin/ad_forums.php | new_form(..) |
| sources/Admin/ad_forums.php | subdeleteform(..) |
| sources/Admin/ad_forums.php | subedit(..) |
| sources/Admin/ad_groups.php | do_delete(..) |
| sources/Admin/ad_groups.php | group_form(..) |
| sources/Admin/ad_groups.php | save_group(..) |
| sources/Admin/ad_imagemacros.php | export(..) |
| sources/Admin/ad_imagemacros.php | show_macros(..) |
| sources/Admin/ad_index.php | index_page(..) |
| sources/Admin/ad_languages.php | ad_langs(..) |
| sources/Admin/ad_languages.php | class properties or methods |
| sources/Admin/ad_languages.php | do_form(..) |
| sources/Admin/ad_languages.php | show_file(..) |
| sources/Admin/ad_member.php | change_name_complete(..) |
| sources/Admin/ad_member.php | change_name_start(..) |
| sources/Admin/ad_member.php | delete_lookup_form(..) |
| sources/Admin/ad_member.php | dodelete(..) |
| sources/Admin/ad_member.php | dodelete(..), do_edit_form(..) |
| sources/Admin/ad_member.php | domod(..) |
| sources/Admin/ad_member.php | doprune(..) |
| sources/Admin/ad_member.php | do_add(..) |
| sources/Admin/ad_member.php | do_advanced_search(..) |
| sources/Admin/ad_member.php | do_bulk_mail(..) |
| sources/Admin/ad_member.php | temp_ban_complete(..) |
| sources/Admin/ad_member.php | temp_ban_start(..) |
| sources/Admin/ad_moderator.php | add_two(..) |
| sources/Admin/ad_prefs.php | ad_prefs(..) |
| sources/Admin/ad_prefs.php | get_html(..) |
| sources/Admin/ad_profilefields.php | ad_fields(..) |
| sources/Admin/ad_profilefields.php | main_form(..) |
| sources/Admin/ad_profilefields.php | main_save(..) |
| sources/Admin/ad_profilefields.php | main_screen(..) |
| sources/Admin/ad_remote_template.php | print_css_searchlinks(..), print_searchlinks(..) |
| sources/Admin/ad_settings.php | ad_settings(..) |
| sources/Admin/ad_settings.php | avatars(..) |
| sources/Admin/ad_settings.php | class properties or methods |
| sources/Admin/ad_settings.php | dates(..) |
| sources/Admin/ad_settings.php | do_guidelines(..) |
| sources/Admin/ad_settings.php | guidelines(..) |
| sources/Admin/ad_settings.php | pm(..) |
| sources/Admin/ad_settings.php | post(..) |
| sources/Admin/ad_settings.php | secure(..) |
| sources/Admin/ad_settings.php | upload_emoticon(..) |
| sources/Admin/ad_settings.php | url(..) |
| sources/Admin/ad_skin_import.php | set_import(..), safe_set_import(..) |
| sources/Admin/ad_stylesets.php | list_sets(..) |
| sources/Admin/ad_stylesets.php | list_sets(..), list_sets(..) |
| sources/Admin/ad_templates.php | checkcheckall(..), edit_bit(..) |
| sources/Admin/ad_templates.php | do_edit(..) |
| sources/Admin/ad_templates.php | do_form(..) |
| sources/Admin/ad_templates.php | edit_bit(..) |
| sources/Admin/ad_templates.php | list_current(..), list_current(..) |
| sources/Admin/ad_templates.php | pop_win(..) |
| sources/Admin/ad_templates.php | show_cats(..) |
| sources/Admin/ad_templates.php | upload_form(..), show_cats(..), edit_bit(..) |
A. Find in function subdeleteform(..)
|
$DB->query("SELECT c.id, c.name, f.id as forum_id, f.subwrap, f.name as forum_name, f.parent_id, f.category FROM ibf_categories c, ibf_forums f WHERE c.id > 0 ORDER BY c.position, f.position"); |
|
//-- mod_sec_update_131 begin $DB->query("SELECT name, subwrap, sub_can_post FROM ibf_forums WHERE id = '{$IN['f']}'"); if (!$DB->get_num_rows()) { $ADMIN->error("Could not determine the forum ID to delete."); } $r = $DB->fetch_row(); $name = $r['name']; $subwrap = $r['subwrap']; $sub_can_post = $r['sub_can_post']; if ($subwrap && $sub_can_post) { $query = "SELECT f.id, f.name, f.parent_id, f.subwrap, f.sub_can_post, c.id as cat_id, c.name as cat FROM ibf_forums f LEFT JOIN ibf_categories c ON (c.id=f.category) WHERE f.redirect_on <> 1 ORDER BY c.position, c.id, f.position, f.id"; $DB->query($query); if ($DB->get_num_rows()) { $cats = array(); $forums = array(); $children = array(); while ($r = $DB->fetch_row()) { if ($IN['f'] == $r['id']) { $name = $r['name']; continue; } $forums[$r['cat_id']][$r['id']] = $r; if ($r['parent_id'] != -1) $children[$r['parent_id']][$r['id']] = $r; if ($last_cat_id != $r['cat_id']) { $cats[$r['cat_id']] = $r['cat']; $last_cat_id = $r['cat_id']; } } $post_form .= "<select name='MOVE_ID_F' class='dropdown'>\n"; foreach ($cats as $cat_id => $cat) { if (count($forums[$cat_id])) { $post_form .= "<optgroup label='$cat'>\n"; foreach ($forums[$cat_id] as $fid => $forum) { if ($forum['parent_id'] != -1) continue; if ($forum['subwrap'] && count($children[$fid])) { if (!$forum['sub_can_post']) { $post_form .= "<optgroup label=' {$forum['name']}'>\n"; } else { $post_form .= "<option value='$fid' label=' {$forum['name']}'> {$forum['name']}</option>\n"; } foreach ($children[$fid] as $cid => $child) { $post_form .= "<option value='$cid' label=' {$child['name']}'> {$child['name']}</option>\n"; } if (!$forum['sub_can_post']) { $post_form .= "</optgroup>\n"; } } else $post_form .= "<option value='$fid' label=' {$forum['name']}'> {$forum['name']}</option>\n"; } $post_form .= "</optgroup>\n"; } } $post_form .= "</select>\n"; unset ($cats); unset ($forums); unset ($children); } } $query = "SELECT id, name FROM ibf_categories ORDER BY position, id"; $DB->query($query); $cats = array(); if ($DB->get_num_rows()) { while ($r = $DB->fetch_row()) { $cats[$r['id']] = $r['name']; } } $query = "SELECT id, name, category FROM ibf_forums WHERE parent_id = -1 AND redirect_on <> 1 AND id <> '{$IN['f']}' ORDER BY category, position"; $DB->query($query); $forums = array(); if ($DB->get_num_rows()) { while ($r = $DB->fetch_row()) { $forums[$r['category']][$r['id']] = $r['name']; } $cat_form .= "<select name='MOVE_ID' class='dropdown'>\n"; foreach ($cats as $cat_id => $cat) { $cat_form .= "<option value='c_{$cat_id}' style='font-weight:bold;font-style:italic;'>$cat</option>\n"; if (count($forums[$cat_id])) { foreach ($forums[$cat_id] as $fid => $forum) { $cat_form .= "<option value='c_{$cat_id}_f_{$fid}'> $forum</option>\n"; } } } $cat_form .= "</select>\n"; unset ($cats); unset ($forums); } //-- mod_sec_update_131 end /*-- mod_sec_update_131 exclude begin $DB->query("SELECT c.id, c.name, f.id as forum_id, f.subwrap, f.name as forum_name, f.parent_id, f.category FROM ibf_categories c, ibf_forums f WHERE c.id > 0 ORDER BY c.position, f.position"); |
B. Find in function subdeleteform(..)
|
$ADMIN->page_title = "Removing Sub |
|
-- mod_sec_update_131 exclude end */ $ADMIN->page_title = "Removing Sub |
C. Find in function subdeleteform(..)
|
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dosubdelete'), |
|
//-- mod_sec_update_131 begin $ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dosubdelete'), 2 => array( 'act' , 'forum' ), 3 => array( 'f' , $IN['f'] ), 4 => array( 'name' , $name ), ) ); $SKIN->td_header[] = array( " " , "40%" ); $SKIN->td_header[] = array( " " , "60%" ); $ADMIN->html .= $SKIN->start_table( "Required" ); $ADMIN->html .= $SKIN->add_td_row( array( "<b>Forum to remove: </b>" , $name ) ); if ($subwrap && $sub_can_post) $ADMIN->html .= $SKIN->add_td_row( array( "<b>Move all <i>existing topics and posts in this forum</i> to which forum?</b>" , $post_form ) ); $ADMIN->html .= $SKIN->add_td_row( array( "<b>Move all <i>existing subforums in this forum</i> to which parent?</b>" , $cat_form ) ); $ADMIN->html .= $SKIN->end_form("Move sub forums and remove this forum"); $ADMIN->html .= $SKIN->end_table(); $ADMIN->output(); //-- mod_sec_update_131 end $ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dosubdelete'), |
D. Find in function dosubdelete(..)
|
$parent = preg_replace( "/^f_/", "", $IN['MOVE_ID'] ); |
|
$parent = preg_replace( "/^f_/", "", $IN['MOVE_ID'] ); //-- mod_sec_update_131 begin $cat = preg_replace( "/^c_(\d+).*$/e", "\\1", $IN['MOVE_ID'] ); $parent = preg_replace( "/^c.*_/e", "", $IN['MOVE_ID'] ); //-- mod_sec_update_131 end |
E. Find in function dosubdelete(..)
|
// Move sub forums... |
|
//-- mod_sec_update_131 begin $DB->query("UPDATE ibf_forums SET category='$cat', parent_id='$parent' WHERE parent_id='".$IN['f']."'"); $DB->query("DELETE FROM ibf_forums WHERE id='".$IN['f']."'"); $DB->query("DELETE FROM ibf_moderators WHERE forum_id='".$IN['f']."'"); if ($parent != -1) { $DB->query("UPDATE ibf_forums SET subwrap=1 WHERE id='".$IN['MOVE_ID']."'"); } if (isset($IN['MOVE_ID_F'])) { $DB->query("UPDATE ibf_topics SET forum_id='".$IN['MOVE_ID_F']."' WHERE forum_id='".$IN['f']."'"); $DB->query("UPDATE ibf_posts SET forum_id='".$IN['MOVE_ID_F']."' WHERE forum_id='".$IN['f']."'"); $DB->query("UPDATE ibf_polls SET forum_id='".$IN['MOVE_ID_F']."' WHERE forum_id='".$IN['f']."'"); $DB->query("UPDATE ibf_voters SET forum_id='".$IN['MOVE_ID_F']."' WHERE forum_id='".$IN['f']."'"); $this->recount($IN['MOVE_ID_F']); } $ADMIN->save_log("Removed sub-forum '{$IN['name']}'"); $ADMIN->done_screen("Forum Removed", "Forum Control", "act=cat" ); //-- mod_sec_update_131 end // Move sub forums... |
F. Find in function delete_form(..)
|
$DB->query("SELECT id, name FROM ibf_forums ORDER BY position"); |
|
//-- mod_sec_update_131 begin $query = "SELECT f.id, f.name, f.parent_id, f.subwrap, f.sub_can_post, c.id as cat_id, c.name as cat FROM ibf_forums f LEFT JOIN ibf_categories c ON (c.id=f.category) WHERE f.redirect_on <> 1 ORDER BY c.position, c.id, f.position, f.id"; $DB->query($query); if ($DB->get_num_rows()) { $cats = array(); $forums = array(); $children = array(); while ($r = $DB->fetch_row()) { if ($IN['f'] == $r['id']) { $name = $r['name']; continue; } $forums[$r['cat_id']][$r['id']] = $r; if ($r['parent_id'] != -1) $children[$r['parent_id']][$r['id']] = $r; if ($last_cat_id != $r['cat_id']) { $cats[$r['cat_id']] = $r['cat']; $last_cat_id = $r['cat_id']; } } $form .= "<select name='MOVE_ID' class='dropdown'>\n"; foreach ($cats as $cat_id => $cat) { if (count($forums[$cat_id])) { $form .= "<optgroup label='$cat'>\n"; foreach ($forums[$cat_id] as $fid => $forum) { if ($forum['parent_id'] != -1) continue; if ($forum['subwrap'] && count($children[$fid])) { if (!$forum['sub_can_post']) { $form .= "<optgroup label=' {$forum['name']}'>\n"; } else { $form .= "<option value='$fid' label=' {$forum['name']}'> {$forum['name']}</option>\n"; } foreach ($children[$fid] as $cid => $child) { $form .= "<option value='$cid' label=' {$child['name']}'> {$child['name']}</option>\n"; } if (!$forum['sub_can_post']) { $form .= "</optgroup>\n"; } } else $form .= "<option value='$fid' label=' {$forum['name']}'> {$forum['name']}</option>\n"; } $form .= "</optgroup>\n"; } } $form .= "</select>\n"; unset ($cats); unset ($forums); unset ($children); } //-- mod_sec_update_131 end /*-- mod_sec_update_131 exclude begin $DB->query("SELECT id, name FROM ibf_forums ORDER BY position"); |
G. Find in function delete_form(..)
|
$ADMIN->page_title = "Removing forum '$name'"; |
|
-- mod_sec_update_131 exclude end */ $ADMIN->page_title = "Removing forum '$name'"; |
H. Find in function delete_form(..)
|
$SKIN->form_dropdown( "MOVE_ID", $form_array ) |
|
//-- mod_sec_update_131 begin TRUE?$form: //-- mod_sec_update_131 end $SKIN->form_dropdown( "MOVE_ID", $form_array ) |
I. Find in function new_form(..)
|
$SKIN->form_dropdown("CATEGORY", $cats) ) ); |
|
$SKIN->form_dropdown("CATEGORY", $cats) ) ); //-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, 'mod_sec_update_ad_lang', $ADMIN->lang_id); $this->lang['topic_thread_options'] = str_replace("{url}", $SKIN->base_url."&act=op&code=post", $this->lang['topic_thread_options']); $options[] = array(0, $this->lang['topic_thread_options_not_allowed']); $options[] = array(1, $this->lang['topic_thread_options_allowed_global']); $options[] = array(2, $this->lang['topic_thread_options_allowed_normal']); $options[] = array(3, $this->lang['topic_thread_options_allowed_thread']); $ADMIN->html .= $SKIN->add_td_basic( $this->lang['topic_thread_title'], 'left', 'catrow2' ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['topic_thread_options'] , $SKIN->form_dropdown("topic_thread", $options, $forum['topic_thread'] ) ) ); //-- mod_sec_update_131 end |
J. Find in function edit_form(..)
|
$SKIN->form_dropdown("CATEGORY", $cats, $real_parent) ) ); |
|
$SKIN->form_dropdown("CATEGORY", $cats, $real_parent) ) ); //-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, 'mod_sec_update_ad_lang', $ADMIN->lang_id); $this->lang['topic_thread_options'] = str_replace("{url}", $SKIN->base_url."&act=op&code=post", $this->lang['topic_thread_options']); $options[] = array(0, $this->lang['topic_thread_options_not_allowed']); $options[] = array(1, $this->lang['topic_thread_options_allowed_global']); $options[] = array(2, $this->lang['topic_thread_options_allowed_normal']); $options[] = array(3, $this->lang['topic_thread_options_allowed_thread']); $ADMIN->html .= $SKIN->add_td_basic( $this->lang['topic_thread_title'], 'left', 'catrow2' ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['topic_thread_options'] , $SKIN->form_dropdown("topic_thread", $options, $forum['topic_thread'] ) ) ); //-- mod_sec_update_131 end |
K. Find in function subedit(..)
|
$SKIN->form_dropdown("CATEGORY", $cats, $forum['category']) ) ); |
|
$SKIN->form_dropdown("CATEGORY", $cats, $forum['category']) ) ); //-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, 'mod_sec_update_ad_lang', $ADMIN->lang_id); $this->lang['topic_thread_options'] = str_replace("{url}", $SKIN->base_url."&act=op&code=post", $this->lang['topic_thread_options']); $options[] = array(0, $this->lang['topic_thread_options_not_allowed']); $options[] = array(1, $this->lang['topic_thread_options_allowed_global']); $options[] = array(2, $this->lang['topic_thread_options_allowed_normal']); $options[] = array(3, $this->lang['topic_thread_options_allowed_thread']); $ADMIN->html .= $SKIN->add_td_basic( $this->lang['topic_thread_title'], 'left', 'catrow2' ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['topic_thread_options'] , $SKIN->form_dropdown("topic_thread", $options, $forum['topic_thread'] ) ) ); //-- mod_sec_update_131 end |
L. Find in function new_form(..)
|
$SKIN->form_yes_no("inc_postcount", 1 ) ) ); |
|
$SKIN->form_yes_no("inc_postcount", 1 ) ) ); //-- mod_sec_update_131 begin $edit_time = "<span id='edit_time' style='display:none'>".$this->lang['forum_edit_time']." ".$SKIN->form_simple_input("edit_time", $forum['edit_time'], "5")."</span>"; $js = "onChange='javascript:if (this.options[this.selectedIndex].value==1) document.getElementById(\"edit_time\").style.display=\"inline\"; else document.getElementById(\"edit_time\").style.display=\"none\"'"; $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['forum_editable'], $SKIN->form_dropdown("editable", array( 0 => array( "global", $this->lang['forum_editable_global']), 1 => array( "overwrite", $this->lang['forum_editable_overwrite']), 2 => array( "always", $this->lang['forum_editable_always']), ), 0, $js ).$edit_time ) ); //-- mod_sec_update_131 end |
M. Find in function edit_form(..), subedit(..)
|
$SKIN->form_yes_no("inc_postcount", $forum['inc_postcount'] ) ) ); |
|
$SKIN->form_yes_no("inc_postcount", $forum['inc_postcount'] ) ) ); //-- mod_sec_update_131 begin if ($forum['editable'] == "overwrite") $display = "inline"; else $display = "none"; $edit_time = "<span id='edit_time' style='display:$display'>".$this->lang['forum_edit_time']." ".$SKIN->form_simple_input("edit_time", $forum['edit_time'], "5")."</span>"; $js = "onChange='javascript:if (this.options[this.selectedIndex].value==\"overwrite\") document.getElementById(\"edit_time\").style.display=\"inline\"; else document.getElementById(\"edit_time\").style.display=\"none\"'"; $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['forum_editable'], $SKIN->form_dropdown("editable", array( 0 => array( "global", $this->lang['forum_editable_global']), 1 => array( "overwrite", $this->lang['forum_editable_overwrite']), 2 => array( "always", $this->lang['forum_editable_always']), ), $forum['editable'], $js ).$edit_time ) ); //-- mod_sec_update_131 end |
N. Find in function do_new(..), do_edit(..), doeditsub(..)
|
'notify_modq_emails'=> $IN['notify_modq_emails'], |
|
'notify_modq_emails'=> $IN['notify_modq_emails'], //-- mod_sec_update_131 begin 'topic_thread' => intval($IN['topic_thread']), 'editable' => $IN['editable'], 'edit_time' => intval($IN['edit_time']), //-- mod_sec_update_131 end |
A. Find in function show_macros(..)
|
$DB->query("SELECT * from ibf_macro WHERE macro_set='".$IN['id']."'"); |
|
//-- mod_sec_update_131 begin if (is_dir(ROOT_PATH."style_images/".$skin['img_dir']."/".$ADMIN->lang_id) ) $skin['img_dir'] .= "/".$ADMIN->lang_id; if (TRUE) $DB->query("SELECT * from ibf_macro WHERE macro_set='".$IN['id']."' ORDER BY macro_value"); else //-- mod_sec_update_131 end $DB->query("SELECT * from ibf_macro WHERE macro_set='".$IN['id']."'"); |
B. Find in function export(..)
|
$DB->query("SELECT macro_replace, macro_value FROM ibf_macro WHERE macro_set='".$IN['id']."'"); |
|
//-- mod_sec_update_131 begin if (TRUE) $DB->query("SELECT * from ibf_macro WHERE macro_set='".$IN['id']."' ORDER BY macro_value"); else //-- mod_sec_update_131 end $DB->query("SELECT macro_replace, macro_value FROM ibf_macro WHERE macro_set='".$IN['id']."'"); |
A. Find in function save_group(..)
|
if ($IN['id'] == $INFO['admin_group'] and $IN['g_access_cp'] != 1) |
|
//-- mod_sec_update_131 begin if ($INFO['admin_group'] == $IN['id']) { if ($MEMBER['mgroup'] != $INFO['admin_group']) $ADMIN->error("Sorry, you are unable to edit that group as it's the root admin group"); } //-- mod_sec_update_131 end if ($IN['id'] == $INFO['admin_group'] and $IN['g_access_cp'] != 1) |
B. Find in function group_form(..)
|
$prefix = preg_replace( "/'/", "'", $group['prefix'] ); |
|
//-- mod_sec_update_131 begin $group['prefix'] = preg_replace( "/&/", "&" , $group['prefix']); $group['suffix'] = preg_replace( "/&/", "&" , $group['suffix']); //-- mod_sec_update_131 end $prefix = preg_replace( "/'/", "'", $group['prefix'] ); |
C. Find in function do_delete(..)
|
if ( $DB->get_num_rows() != 2 ) { $ADMIN->error("Could not resolve the ID's passed to group deletion"); } |
|
if ( $DB->get_num_rows() != 2 ) { $ADMIN->error("Could not resolve the ID's passed to group deletion"); } //-- mod_sec_update_131 begin if ($INFO['admin_group'] == $IN['id']) { $ADMIN->error("You can not delete the preset groups. You can rename them and edit the functionality"); } if ($INFO['admin_group'] == $IN['to_id']) { if ($MEMBER['mgroup'] != $INFO['admin_group']) $ADMIN->error("You can not move members to this group."); } //-- mod_sec_update_131 end |
D. Find in function save_group(..)
|
if ($type == 'edit') { $rstring = $DB->compile_db_update_string( $db_string ); |
|
//-- mod_sec_update_131 begin $db_string['g_acp_perms'] = base64_decode($IN['g_acp_perms']); $db_string['g_can_view_online'] = intval($IN['g_can_view_online']); $db_string['g_can_view_on_off'] = intval($IN['g_can_view_on_off']); //-- mod_sec_update_131 end if ($type == 'edit') { $rstring = $DB->compile_db_update_string( $db_string ); |
E. Find in function group_form(..)
|
$SKIN->form_yes_no("g_access_offline", $group['g_access_offline'] ) ) ); |
|
$SKIN->form_yes_no("g_access_offline", $group['g_access_offline'] ) ) ); //-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, 'mod_sec_update_ad_lang', $ADMIN->lang_id); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['ad_group_can_view_online_list'], $SKIN->form_yes_no("g_can_view_online", $group['g_can_view_online'] ) ) ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['ad_group_can_view_on_off'], $SKIN->form_yes_no("g_can_view_on_off", $group['g_can_view_on_off'] ) ) ); //-- mod_sec_update_131 end |
F. Find in function group_form(..)
|
$SKIN->form_yes_no("g_access_cp", $group['g_access_cp'] ) |
|
$SKIN->form_yes_no("g_access_cp", $group['g_access_cp'] ) //-- mod_sec_update_131 begin ." <script language='Javascript' type='text/javascript'> <!-- function acp_perm_pop() { url = '{$ADMIN->base_url}&act=sec_update&code=acp_perms&id={$IN['id']}&perms=' + document.adform.g_acp_perms.value; w = window.open(url, 'ACP_PERMISSIONS', 'width=700,height=450,top=0,left=0,resizable=yes,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,dependent=yes'); w.focus(); return false; } //--> </script> <a href='javascript:void(0);' onClick='return acp_perm_pop();' style='text-decoration:none;'><button id='button' style='cursor:pointer;color:red;font-weight:bold'>{$this->lang['ad_tuning_access']}</button></a> <textarea name='g_acp_perms' style='display:none;' readonly='readonly'>".base64_encode($group['g_acp_perms'])."</textarea> " //-- mod_sec_update_131 end |
A. Find in function index_page(..)
|
unset($$k); } |
|
unset($$k); } //-- mod_sec_update_131 begin global $_SET_PCRE; if (!$_SET_PCRE) { $limit = intval(@ini_get("pcre.backtrack_limit")); if ($limit > -1 && $limit <= 100000) { $_SET_PCRE = 1; @ini_set("pcre.backtrack_limit", "1000000"); } $limit = intval(@ini_get("pcre.recursion_limit")); if ($limit > -1 && $limit <= 100000) { $_SET_PCRE = 1; @ini_set("pcre.recursion_limit", "1000000"); } } if (!$INFO['set_pcre'] || ($INFO['set_pcre'] != $_SET_PCRE)) { $INFO = $ADMIN->rebuild_config(array('set_pcre' => $_SET_PCRE)); } //-- mod_sec_update_131 end |
B. Find in function index_page(..)
|
$ad_notes = "<form action='{$ADMIN->base_url}&act=index&save=1' method='post'> |
|
//-- mod_sec_update_131 begin $notes['cs_value'] = $std->clean_value($notes['cs_value']); $notes['cs_value'] = str_replace("<br>", "\n", $notes['cs_value']); //-- mod_sec_update_131 end $ad_notes = "<form action='{$ADMIN->base_url}&act=index&save=1' method='post'> |
C. Find in function index_page(..)
|
// Printy-poos //--------------------------------- |
|
// Printy-poos //--------------------------------- //-- mod_sec_update_131 begin $lang = $std->load_words($lang, "mod_sec_update_ad_lang", $ADMIN->lang_id); $version_info = "<b><a href='http://www.php.net' target='_blank'>PHP</a> {$lang['version']}:</b> $phpv<br /> <b><a href='http://www.mysql.com' target='_blank'>MySQL</a> {$lang['version']}:</b> ".$this->mysql_version; if (!$INFO['not_get_update_info']) { $my_version = 0; $DB->query("SHOW TABLES FROM `{$DB->obj['sql_database']}` LIKE '{$DB->obj['sql_tbl_prefix']}mods'"); if (!$DB->get_num_rows()) { $my_version_info = "<br /><span style='color:red;font-weight:bold;font-size:12pt'>{$lang['no_installer']}</span>"; } else { $DB->query("SELECT version FROM ibf_mods WHERE mod_token='mod_sec_update_131'"); if (!$DB->get_num_rows()) { $my_version_info = "<span style='color:red;font-weight:bold;font-size:12pt'>{$lang['mod_not_installed']}</span>"; } else { $r = $DB->fetch_row(); $my_version_info = "<span style='color:black;font-weight:bold;font-size:12pt'>".$r['version']."</span>"; $my_version = $r['version']; } } $errno = 0; $errstr = ""; $url = parse_url("http://www.ibforen.de/forum/update_info.php?version=".$my_version); $url['query'] = str_replace("&", "&", $url['query']); $fp = @fsockopen ($url['host'], 80, $errno, $errstr, 3); if ($fp && !$errno && !$errstr) { @fwrite ($fp, "GET {$url['path']}?{$url['query']}#{$url['fragment']} HTTP/1.0\r\nHost: {$url['host']}\r\n\r\n"); while (!feof($fp)) { $update .= @fgets($fp,1024); } @fclose($fp); $update = explode("\n", $update); $update_info[1] = array_pop($update); $update_info[0] = array_pop($update); unset($update); } if (!is_array($update_info)) $update_version_info = $lang['no_updates']; else { $size = "12pt"; $color = "blue"; $update_version = trim($update_info[0]); $update_version_info = $update_version; if (!$update_version) $update_version_info = $my_version; if (isset($update_info[1])) $update_version_info = "<a href='".trim($update_info[1])."' target='_blank' style='color:{color};font-size:{size};font-weight:bold;' title='{$lang['goto_updates']}'>$update_version_info</a>"; $update_version_info = "<span style='color:{color};font-size:{size};font-weight:bold;'>$update_version_info</span>"; if ($update_version) { $size = "18pt"; $color = "red"; } $update_version_info = str_replace("{color}", $color, $update_version_info); $update_version_info = str_replace("{size}", $size, $update_version_info); } $update_html = " <div style='border:1px dotted #555;padding:6px;background-color:#EEF2F7;'> <b style='font-size:12px;color:#336699'>{$lang['title_updates']} <a href='http://www.ibforen.de' target='_blank' title='{$lang['home_of_updates']}'>ibforen.de</a></b> <br /><br />{$lang['installed_version']}: <b>$my_version_info</b> <br /><br />{$lang['available_version']}: $update_version_info </div>"; $ADMIN->html .= " <table width='100%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='65%' valign='middle' align='center' style='padding:6px;background-color:#FAFFAF;'>{$ad_notes}</td> <td style='width:10px'> </td> <td width='35%' valign='top' align='left'>$update_html<br /><br />$version_info</td> </tr> </table><br />\n"; } else if (TRUE) $ADMIN->html .= "<table width='100%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='80%' valign='middle' align='center' style='padding:6px;background-color:#FAFFAF;'>{$ad_notes}</td> <td style='width:10px'> </td> <td width='18%' valign='top' align='left'>{$version_info}</td> </tr> </table><br />\n"; else //-- mod_sec_update_131 end |
D. Find in function index_page(..)
|
if ($dh = opendir( |
|
//-- mod_sec_update_131 begin if (FALSE) //-- mod_sec_update_131 end if ($dh = opendir( |
E. Find in function index_page(..)
|
if ($MEMBER['mgroup'] == $INFO['admin_group']) |
|
//-- mod_sec_update_131 begin $DB->query("SELECT count(*) as requests FROM ibf_requests WHERE done_date = '' OR done_date IS NULL"); $r = $DB->fetch_row(); $req_count = $r['requests']; $DB->query("SELECT * FROM ibf_requests WHERE done_date = '' OR done_date IS NULL ORDER BY request_date DESC LIMIT 1"); $req_last = $DB->fetch_row(); $DB->query("SELECT * FROM ibf_requests WHERE done_date = '' OR done_date IS NULL ORDER BY request_date ASC LIMIT 1"); $req_first = $DB->fetch_row(); if ($req_count > 0) { $SKIN->td_header[] = array( "<a href='{$SKIN->base_url}&act=requests'>".$lang['user_requests_count']."</a>", "20%" ); $SKIN->td_header[] = array( $lang['user_requests_first'], "20%" ); $SKIN->td_header[] = array( $lang['user_requests_date'], "20%" ); $SKIN->td_header[] = array( $lang['user_requests_last'], "20%" ); $SKIN->td_header[] = array( $lang['user_requests_date'], "20%" ); $ADMIN->html .= $SKIN->start_table( $lang['user_requests'] ); $ADMIN->html .= $SKIN->add_td_row(array("<center>".$r['requests']."</center>", "<center><a href='{$INFO['board_url']}/index.{$INFO['php_ext']}?act=Profile&MID={$req_last['member_id']}' target='User'>{$req_last['member_name']}</a></center>", "<center>".$std->get_date($req_last['request_date'], "LONG")."</center>", "<center><a href='{$INFO['board_url']}/index.{$INFO['php_ext']}?act=Profile&MID={$req_first['member_id']}' target='User'>{$req_first['member_name']}</a></center>", "<center>".$std->get_date($req_first['request_date'], "LONG")."</center>", ), "center" ); $ADMIN->html .= $SKIN->end_table(); $ADMIN->html .= $SKIN->add_td_spacer(); } require_once (ROOT_PATH."sources/mods/sec_update_131_A/mod_sec_update_func.php"); $xajax = new mod_sec_update_xajax(); if ($IN['get_uploads_size']) $xajax->process("ad_uploads_size", "process_xajax"); else $uploads_size = $xajax->process("ad_uploads_size", "get_javascript"); //-- mod_sec_update_131 end if ($MEMBER['mgroup'] == $INFO['admin_group']) |
F. Find in function index_page(..)
|
$ADMIN->html .= $SKIN->add_td_row( array( "<a href='{$SKIN->base_url}&act=mem&code=mod |
|
//-- mod_sec_update_131 begin if ($MEMBER['mgroup'] == $INFO['admin_group']) //-- mod_sec_update_131 end $ADMIN->html .= $SKIN->add_td_row( array( "<a href='{$SKIN->base_url}&act=mem&code=mod |
G. Find in function index_page(..)
|
<form name='DOIT' action=''> "; |
|
<form name='DOIT' action=''> "; //-- mod_sec_update_131 begin $edit_member = TRUE; $edit_cat = TRUE; $edit_forum = TRUE; if ($MEMBER['mgroup'] != $INFO['admin_group']) { if (file_exists(ROOT_PATH."sources/mods/sec_update_131_A/mod_sec_update_ad_func.php")) { global $mod_sec_update; require_once(ROOT_PATH."sources/mods/sec_update_131_A/mod_sec_update_ad_func.php"); $IN['act'] = "mem"; $IN['code'] = "edit"; $edit_member = $mod_sec_update->test_access(); $IN['act'] = "cat"; $IN['code'] = "new"; $edit_cat = $mod_sec_update->test_access(); $IN['act'] = "forum"; $IN['code'] = "newsp"; $edit_forum = $mod_sec_update->test_access(); } else { die("Could not call required function from file 'sources/mods/sec_update_131_A/mod_sec_update_ad_func.php'<br />Does it exist?"); } } if ($edit_member) //-- mod_sec_update_131 end |
H. Find in function index_page(..)
|
id='button' onClick='edit_member()'>" ) ); |
|
id='button' onClick='edit_member()'>" ) ); //-- mod_sec_update_131 begin if ($edit_cat) //-- mod_sec_update_131 end |
I. Find in function index_page(..)
|
id='button' onClick='new_cat()'>" ) ); |
|
id='button' onClick='new_cat()'>" ) ); //-- mod_sec_update_131 begin if ($edit_forum) //-- mod_sec_update_131 end |
A. Find in function ad_langs(..)
|
unset($$k); } |
|
unset($$k); } //-- mod_sec_update_131 begin if (!isset($INFO['default_language']) || empty($INFO['default_language'])) { $ADMIN->rebuild_config( array( 'default_language' => "en" ) ); $std->boink_it($SKIN->base_url."&act=lang"); } //-- mod_sec_update_131 end |
B. Find in function show_file(..)
|
$v = stripslashes($v); |
|
//-- mod_sec_update_131 begin $v = str_replace("\\\\", "\\\\\\\\", $v ); // Have we some intended backslashes? //-- mod_sec_update_131 end $v = stripslashes($v); |
C. Find in function do_form(..)
|
if ($row['lauthor'] and $row['lemail']) |
|
//-- mod_sec_update_131 begin usort($form_array, array("ad_langs", "cmp_lang_array")); //-- mod_sec_update_131 end if ($row['lauthor'] and $row['lemail']) |
D. Find
|
} ?> |
|
//-- mod_sec_update_131 begin function cmp_lang_array($a, $b) { return strcasecmp($a[0], $b[0]); } //-- mod_sec_update_131 end } ?> |
A. Find in function do_bulk_mail(..)
|
'MOST_DATE'], 'SHORT' |
|
'MOST_DATE'], 'SHORT' //-- mod_sec_update_131 begin , TRUE //-- mod_sec_update_131 end |
B. Find in function change_name_complete(..)
|
$DB->query("SELECT name, email FROM ibf_members WHERE id='".$IN['mid']."'"); |
|
//-- mod_sec_update_131 begin if (TRUE) $DB->query("SELECT name, email, mgroup FROM ibf_members WHERE id='".$IN['mid']."'"); else //-- mod_sec_update_131 end $DB->query("SELECT name, email FROM ibf_members WHERE id='".$IN['mid']."'"); |
C. Find in function change_name_complete(..)
|
$mid = $IN['mid']; // Save me poor ol' carpels |
|
//-- mod_sec_update_131 begin if ($INFO['admin_group'] == $member['mgroup']) { if ($MEMBER['mgroup'] != $INFO['admin_group']) $ADMIN->error("You cannot edit this member."); } //-- mod_sec_update_131 end $mid = $IN['mid']; // Save me poor ol' carpels |
D. Find in function change_name_start(..)
|
$DB->query("SELECT name FROM ibf_members WHERE id='".$IN['mid']."'"); |
|
//-- mod_sec_update_131 begin if (TRUE) $DB->query("SELECT name, mgroup FROM ibf_members WHERE id='".$IN['mid']."'"); else //-- mod_sec_update_131 end $DB->query("SELECT name FROM ibf_members WHERE id='".$IN['mid']."'"); |
E. Find in function change_name_start(..)
|
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dochangename' ), |
|
//-- mod_sec_update_131 begin if ($INFO['admin_group'] == $member['mgroup']) { if ($MEMBER['mgroup'] != $INFO['admin_group']) $ADMIN->error("You cannot edit this member."); } //-- mod_sec_update_131 end $ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dochangename' ), |
F. Find in function delete_lookup_form(..)
|
$DB->query("SELECT id, name FROM ibf_members WHERE name LIKE '".$IN['USER_NAME']."%'"); |
|
//-- mod_sec_update_131 begin $IN['USER_NAME'] = str_replace( '|', '|', $IN['USER_NAME']); $IN['USER_NAME'] = str_replace( '*', '%', $IN['USER_NAME']); //-- mod_sec_update_131 end $DB->query("SELECT id, name FROM ibf_members WHERE name LIKE '".$IN['USER_NAME']."%'"); |
G. Find in function domod(..)
|
$DB->query("DELETE FROM ibf_members WHERE id IN(".implode( ",",$ids ).")"); |
|
$DB->query("DELETE FROM ibf_members WHERE id IN(".implode( ",",$ids ).")"); //-- mod_sec_update_131 begin $DB->query("DELETE FROM ibf_sessions WHERE member_id IN(".implode( ",",$ids ).")"); $DB->query("DELETE FROM ibf_admin_sessions WHERE MEMBER_ID IN(".implode( ",",$ids ).")"); //-- mod_sec_update_131 end |
H. Find in function do_advanced_search(..)
|
$rq = "name LIKE '".$IN['USER_NAME']."%'"; |
|
//-- mod_sec_update_131 begin $IN['USER_NAME'] = str_replace( '|', '|', $IN['USER_NAME']); $IN['USER_NAME'] = str_replace( '*', '%', $IN['USER_NAME']); //-- mod_sec_update_131 end $rq = "name LIKE '".$IN['USER_NAME']."%'"; |
I. Find in function do_add(..)
|
$DB->query("SELECT id FROM ibf_members WHERE LOWER(name)='".$IN['name']."'"); |
|
//-- mod_sec_update_131 begin if ($INFO['admin_group'] == $IN['mgroup']) { if ($MEMBER['mgroup'] != $INFO['admin_group']) $IN['mgroup'] = $ibforums->vars['member_group']; } $member_name = str_replace( '|', '|', trim($IN['name'])); $IN['name'] = strtolower(str_replace( '|', '|', trim($IN['name']))); //-- mod_sec_update_131 end $DB->query("SELECT id FROM ibf_members WHERE LOWER(name)='".$IN['name']."'"); |
J. Find in function do_add(..)
|
$DB->query("SELECT id FROM ibf_members WHERE LOWER(name)='".$IN['name']."'"); |
|
$DB->query("SELECT id FROM ibf_members WHERE LOWER(name)='".$IN['name']."'"); //-- mod_sec_update_131 begin $IN['name'] = $member_name; //-- mod_sec_update_131 end |
K. Find in function dodelete(..), do_edit_form(..)
|
if ($mem['id'] == "") |
|
//-- mod_sec_update_131 begin if ($INFO['admin_group'] == $mem['mgroup']) { if ($MEMBER['mgroup'] != $INFO['admin_group'] || ($IN['code'] == "dodelete" && $mem['id'] == $MEMBER['id'])) $ADMIN->error("You cannot edit or delete this member."); } //-- mod_sec_update_131 end if ($mem['id'] == "") |
L. Find in function temp_ban_start(..)
|
$ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dobanmember' ), |
|
//-- mod_sec_update_131 begin if ($INFO['admin_group'] == $member['mgroup']) { if ($MEMBER['mgroup'] != $INFO['admin_group']) $ADMIN->error("You cannot ban this member."); } //-- mod_sec_update_131 end $ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'dobanmember' ), |
M. Find in function temp_ban_complete(..)
|
//+------------------------------- // Work out end date |
|
//-- mod_sec_update_131 begin if ($INFO['admin_group'] == $member['mgroup']) { if ($MEMBER['mgroup'] != $INFO['admin_group']) $ADMIN->error("You cannot ban this member."); } //-- mod_sec_update_131 end //+------------------------------- // Work out end date |
N. Find in function doprune(..)
|
$DB->query("SELECT id FROM ibf_members WHERE ".$query); |
|
//-- mod_sec_update_131 begin if (TRUE) $DB->query("SELECT id,mgroup FROM ibf_members WHERE ".$query); else //-- mod_sec_update_131 end $DB->query("SELECT id FROM ibf_members WHERE ".$query); |
O. Find in function doprune(..)
|
$ids[] = $i['id']; |
|
//-- mod_sec_update_131 begin if ($INFO['admin_group'] == $i['mgroup']) { if ($MEMBER['mgroup'] != $INFO['admin_group'] || $i['id'] == $MEMBER['id']) continue; } //-- mod_sec_update_131 end $ids[] = $i['id']; |
P. Find in function doprune(..)
|
$id_string = implode( "," , $ids ); |
|
//-- mod_sec_update_131 begin if (!count($ids)) $ADMIN->error("Could not find any members that matched the prune criteria"); //-- mod_sec_update_131 end $id_string = implode( "," , $ids ); |
Q. Find in function doprune(..)
|
$DB->query("DELETE from ibf_members WHERE id IN(".$id_string.")"); |
|
//-- mod_sec_update_131 begin $DB->query("DELETE from ibf_admin_sessions WHERE MEMBER_ID IN(".$id_string.")"); $DB->query("DELETE from ibf_sessions WHERE member_id IN(".$id_string.")"); //-- mod_sec_update_131 end $DB->query("DELETE from ibf_members WHERE id IN(".$id_string.")"); |
R. Find in function dodelete(..)
|
$DB->query("DELETE from ibf_members WHERE id='".$IN['MEMBER_ID']."'"); |
|
//-- mod_sec_update_131 begin $DB->query("DELETE from ibf_admin_sessions WHERE MEMBER_ID='".$IN['MEMBER_ID']."'"); $DB->query("DELETE from ibf_sessions WHERE member_id='".$IN['MEMBER_ID']."'"); //-- mod_sec_update_131 end $DB->query("DELETE from ibf_members WHERE id='".$IN['MEMBER_ID']."'"); |
Find in function add_two(..)
|
$DB->query("SELECT id, name FROM ibf_members WHERE name LIKE '".$IN['USER_NAME']."%'"); |
|
//-- mod_sec_update_131 begin $IN['USER_NAME'] = str_replace( '|', '|', trim($IN['USER_NAME'])); //-- mod_sec_update_131 end $DB->query("SELECT id, name FROM ibf_members WHERE name LIKE '".$IN['USER_NAME']."%'"); |
A. Find in function ad_prefs(..)
|
$std->my_setcookie( 'acpprefs', |
|
//-- mod_sec_update_131 begin $DB->query("REPLACE INTO ibf_acp_config (member_id, name, value) VALUES ('".$MEMBER['id']."', 'acpprefs', '".$IN['menu'] .','. $IN['tx'] .','. $IN['ty'] .','. $IN['preview']."')"); //-- mod_sec_update_131 end $std->my_setcookie( 'acpprefs', |
B. Find in function ad_prefs(..)
|
list( $state, $tx, $ty, $prev_show ) = explode( ",", $cookie ); } |
|
list( $state, $tx, $ty, $prev_show ) = explode( ",", $cookie ); } //-- mod_sec_update_131 begin else { $DB->query("SELECT value FROM ibf_acp_config WHERE member_id='".$MEMBER['id']."' AND name='acpprefs'"); if ($r = $DB->fetch_row()) list($state, $tx, $ty, $prev_show) = explode( ",", $r['value'] ); } //-- mod_sec_update_131 end |
C. Find in function get_html(..)
|
return $hit_muhl; |
|
//-- mod_sec_update_131 begin $table = <<<EOT <fieldset style='padding:10px'> <legend>Your ACP Prefs</legend> <table width='100%' cellspacing='4' cellpadding='4' border='0'> <tr> <td width='45%'><strong>Save ACP Menu State</strong></td> <td width='55%'><select class='textinput' name='menu'><option value='1' {$this->s_yes}>Yes</option><option value='0' {$this->s_no}>No</option></select></td> </tr> <tr> <td><strong>Template's Textbox Size</strong></td> <td><input class='textinput' type='text' size='3' name='tx' value='{$this->tx}' /> <strong>X</strong> <input class='textinput' type='text' size='3' name='ty' value='{$this->ty}' /></td> </tr> <tr> <td><strong>Show Macro Preview?</strong></td> <td><select class='textinput' name='preview'><option value='1' {$this->p_yes}>Yes</option><option value='0' {$this->p_no}>No</option></select></td> </tr> <tr> <td colspan='2' style='text-align:center'><input type='submit' class='textinput' style='color:red;font-weight:bold;' value='Save' /> <input type='submit' class='textinput' value='Close' onClick='self.close()' /></td> </tr> </fieldset> EOT; $hit_muhl = preg_replace("`\<fieldset.*?\/fieldset\>`is", $table, $hit_muhl); //-- mod_sec_update_131 end return $hit_muhl; |
A. Find in function ad_fields(..)
|
switch($IN['code']) |
|
//-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, 'mod_sec_update_ad_lang', $ADMIN->lang_id); //-- mod_sec_update_131 end switch($IN['code']) |
B. Find in function main_save(..)
|
'fshowreg' => $IN['fshowreg'], |
|
'fshowreg' => $IN['fshowreg'], //-- mod_sec_update_131 begin 'fsearchable' => $IN['fsearchable'], //-- mod_sec_update_131 end |
C. Find in function main_form(..)
|
$SKIN->form_yes_no("fhide", $fields['fhide'] ) ) ); |
|
$SKIN->form_yes_no("fhide", $fields['fhide'] ) ) ); //-- mod_sec_update_131 begin $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['pfields_searchable'], $SKIN->form_yes_no("fsearchable", $fields['fsearchable'] ) ) ); //-- mod_sec_update_131 end |
D. Find in function main_screen(..)
|
$SKIN->td_header[] = array( "Delete" , "10%" ); |
|
$SKIN->td_header[] = array( "Delete" , "10%" ); //-- mod_sec_update_131 begin $fields = array("birthday" => "birthday", "website" => "website", "icq_number" => "icq", "aim_name" => "aol", "yahoo" => "yahoo", "msnname" => "msn", "location" => "location", "interests" => "interests"); if ($IN['code'] == "save") { global $HTTP_POST_VARS; foreach ($fields as $field => $desc) { $config[] = implode(",", array($field, intval($IN[$field."_reg"]), intval($IN[$field."_req"]), intval($IN[$field."_searchable"]))); } $master["profile_fields"] = implode("|", $config); $ADMIN->rebuild_config($master); $ADMIN->save_log("Board Settings Profile Field Services Updated"); $ADMIN->done_screen("Profile Field Settings Updated", "Profile Field Control", "act=field" ); } $ADMIN->page_title = $this->lang['pfields_title']; $SKIN->td_header = array(); $SKIN->td_header[] = array( $this->lang['pfield_name'], "20%" ); $SKIN->td_header[] = array( $this->lang['pfield_type'], "10%" ); $SKIN->td_header[] = array( $this->lang['pfield_topic'], "22%" ); $SKIN->td_header[] = array( $this->lang['pfield_required'], "8%" ); $SKIN->td_header[] = array( $this->lang['pfield_hidden'], "8%" ); $SKIN->td_header[] = array( $this->lang['pfield_register'], "8%" ); $SKIN->td_header[] = array( $this->lang['pfield_searchable'], "8%" ); $SKIN->td_header[] = array( $this->lang['pfield_edit'], "8%" ); $SKIN->td_header[] = array( $this->lang['pfield_delete'], "8%" ); //-- mod_sec_update_131 end |
E. Find in function main_screen(..)
|
$DB->query("SELECT * FROM ibf_pfields_data"); |
|
//-- mod_sec_update_131 begin if (TRUE) $DB->query("SELECT * FROM ibf_pfields_data ORDER BY forder"); else //-- mod_sec_update_131 end $DB->query("SELECT * FROM ibf_pfields_data"); |
F. Find in function main_screen(..)
|
$ADMIN->html .= $SKIN->add_td_row( array( "<b>{$r['ftitle']}</b>" , |
|
//-- mod_sec_update_131 begin if ($r['fsearchable'] == 1) $search = '<center><span style="color:red">Y</span></center>'; else $search = " "; //-- mod_sec_update_131 end $ADMIN->html .= $SKIN->add_td_row( array( "<b>{$r['ftitle']}</b>" , |
G. Find in function main_screen(..)
|
$regi, |
|
$regi, //-- mod_sec_update_131 begin $search, //-- mod_sec_update_131 end |
H. Find in function main_screen(..)
|
$ADMIN->html .= $SKIN->add_td_basic("<a href='{$ADMIN->base_url}&act=field&code=add' class='fauxbutton'>ADD NEW FIELD</a></center>", "center", "pformstrip"); $ADMIN->html .= $SKIN->end_table(); |
|
$ADMIN->html .= $SKIN->add_td_basic("<a href='{$ADMIN->base_url}&act=field&code=add' class='fauxbutton'>ADD NEW FIELD</a></center>", "center", "pformstrip"); $ADMIN->html .= $SKIN->end_table(); //-- mod_sec_update_131 begin $SKIN->td_header[] = array($this->lang['pfield_name'] , "30%" ); $SKIN->td_header[] = array($this->lang['pfield_reg'] , "10%" ); $SKIN->td_header[] = array($this->lang['pfield_req'] , "10%" ); $SKIN->td_header[] = array($this->lang['pfield_searchable'] , "10%" ); $SKIN->td_header[] = array(" " , "40%" ); $ADMIN->html .= $SKIN->start_table($this->lang['pfields_title_sys']); $ADMIN->html .= $SKIN->start_form( array( 1 => array( 'code' , 'save' ), 2 => array( 'act' , 'field' ), ) ); $settings = array(); $config = explode("|", $INFO['profile_fields']); for ($i = 0; $i < count($config); $i++) { $value = explode(",", $config[$i]); $settings[$value[0]] = array($value[1], $value[2], $value[3]); } foreach ($fields as $field => $desc) { $ADMIN->html .= $SKIN->add_td_row(array("<b>".$this->lang["pfield_".$desc]."</b>" , "<center>".$SKIN->form_checkbox($field."_reg", $settings[$field][0] )."</center>", "<center>".$SKIN->form_checkbox($field."_req", $settings[$field][1] )."</center>", "<center>".$SKIN->form_checkbox($field."_searchable", $settings[$field][2] )."</center>", " ", ) ); } $ADMIN->html .= $SKIN->end_form($this->lang['pfield_save']); $ADMIN->html .= $SKIN->end_table(); //-- mod_sec_update_131 end |
A. Find in function ad_settings(..)
|
'guests_ava', |
|
//-- mod_sec_update_131 begin 'guests_attach', 'profile_allow_ibc', //-- mod_sec_update_131 end 'guests_ava', |
B. Find in function ad_settings(..)
|
'allow_flash','new_reg_notify' |
|
//-- mod_sec_update_131 begin 'reportpost_pm', //-- mod_sec_update_131 end 'allow_flash','new_reg_notify' |
C. Find in function ad_settings(..)
|
'display_max_topics', |
|
'display_max_topics', //-- mod_sec_update_131 begin 'display_topic_preview', 'display_topic_thread', 'display_topic_thread_global', 'display_topic_thread_default', 'allow_multi_quote', 'post_icons', //-- mod_sec_update_131 end |
D. Find in function ad_settings(..)
|
case 'dodates': |
|
case 'dodates': //-- mod_sec_update_131 begin $current_version = (int)str_replace('.', '', phpversion()); if ($current_version < 420) { $magic = ini_get ('magic_quotes_gpc'); } else { $a = ini_get_all(); $magic = $a['magic_quotes_gpc']['global_value']; unset ($a); } if (!$magic) { global $HTTP_POST_VARS; $HTTP_POST_VARS['clock_short'] = addslashes($HTTP_POST_VARS['clock_short']); $HTTP_POST_VARS['clock_joined'] = addslashes($HTTP_POST_VARS['clock_joined']); $HTTP_POST_VARS['clock_long'] = addslashes($HTTP_POST_VARS['clock_long']); } $this->save_config( array ( 'time_offset','dst_in_use', 'use_relative_date', 'clock_short','clock_joined','clock_long', 'time_adjust' ) ); break; //-- mod_sec_update_131 end |
E. Find in function ad_settings(..)
|
$this->save_config( array ( 'number_format', 'html_dir','safe_mode_skins', 'board_name','board_url','home_name','home_url', 'disable_gzip', 'html_url','upload_url', 'upload_dir', 'print_headers', 'header_redirect', 'debug_level', 'sql_debug' ) ); |
|
//-- mod_sec_update_131 begin global $HTTP_POST_VARS; $HTTP_POST_VARS['board_start'] = mktime(0,0,0,intval($IN['month']),intval($IN['day']),intval($IN['year'])) - $INFO['time_offset'] - $INFO['time_adjust']; $IN['board_start'] = $HTTP_POST_VARS['board_start']; $this->save_config( array ( 'board_start', 'ip2loc_service', 'ip2loc_user', 'ip2loc_pwd', 'number_format', 'html_dir','safe_mode_skins', 'board_name','board_url','home_name','home_url', 'disable_gzip', 'html_url','upload_url', 'upload_dir', 'print_headers', 'header_redirect', 'debug_level', 'sql_debug' ) ); break; //-- mod_sec_update_131 end $this->save_config( array ( 'number_format', 'html_dir','safe_mode_skins', 'board_name','board_url','home_name','home_url', 'disable_gzip', 'html_url','upload_url', 'upload_dir', 'print_headers', 'header_redirect', 'debug_level', 'sql_debug' ) ); |
F. Find in function ad_settings(..)
|
$this->save_config( array ( 'show_max_msg_list', 'msg_allow_code', 'msg_allow_html' ) ); |
|
//-- mod_sec_update_131 begin if (true) $this->save_config( array ( 'show_max_msg_list', 'msg_allow_code', 'msg_allow_html', 'msg_preview' ) ); else //-- mod_sec_update_131 end $this->save_config( array ( 'show_max_msg_list', 'msg_allow_code', 'msg_allow_html' ) ); |
G. Find in function do_guidelines(..)
|
$master['gl_show'] = $IN['gl_show']; |
|
//-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, "mod_sec_update_ad_lang", $ADMIN->lang_id); $lang = $IN['lang']; $lang_file = ROOT_PATH."/lang/$lang"; if (!is_dir($lang_file) ) $ADMIN->error($this->lang['error_lang_dir']); $lang_file .= "/lang_glines.php"; $fh = @fopen($lang_file, "wb"); if (!$fh) $ADMIN->error($this->lang['error_lang_file']); $text = array(); $text['gl_link'] = $IN['gl_link']; $text['gl_title'] = $IN['gl_title']; $text['gl_guidelines'] = stripslashes($HTTP_POST_VARS['gl_guidelines']); $text['gl_guidelines'] = str_replace( "<br>", "<br />", $text['gl_guidelines']); $text['terms_of_use'] = stripslashes($HTTP_POST_VARS['terms_of_use']); $text['terms_of_use'] = str_replace( "<br>", "<br />", $text['terms_of_use']); $start = "<?php\n\n"; foreach($text as $k => $v) { $v = preg_replace("/'/", "'", $v); $v = preg_replace("/</", "<", $v ); $v = preg_replace("/>/", ">", $v ); $v = preg_replace("/&/", "&", $v ); $v = preg_replace("/\r/", "", $v ); $start .= "\n".'$lang['."'$k'".'] = "'.addslashes($v).'";'; } $start .= "\n\n?".">"; @fwrite($fh, $start, strlen($start) ); @fclose($fh); $master['gl_show'] = $IN['gl_show']; $ADMIN->rebuild_config($master); $ADMIN->save_log("Board Guidelines Updated"); $ADMIN->done_screen("Forum Configurations updated", "Administration CP Home", "act=index" ); //-- mod_sec_update_131 end $master['gl_show'] = $IN['gl_show']; |
H. Find in function guidelines(..)
|
$this->common_header('doglines', 'Board Guidelines/Rules', 'You may change the configuration below'); |
|
$this->common_header('doglines', 'Board Guidelines/Rules', 'You may change the configuration below'); //-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, "mod_sec_update_ad_lang", $ADMIN->lang_id); $lang = $ADMIN->lang_id; if (!$lang) $lang = "en"; if (isset($IN['lang'])) $lang = $IN['lang']; $DB->query("SELECT ldir, lname FROM ibf_languages WHERE 1 ORDER BY lname"); while ($r = $DB->fetch_row()) { $langs[] = array($r['ldir'], $r['lname']); } $js = "onChange='window.location.href=\"".$ADMIN->base_url."&act=op&code=glines&lang=\"+this.options[this.selectedIndex].value;'"; $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['choose_language'] , $SKIN->form_dropdown( "lang", $langs, $lang, $js) ) ); if (file_exists(ROOT_PATH."lang/".$lang."/lang_glines.php")) { $this->lang = $std->load_words($this->lang, "lang_glines", $ADMIN->lang_id); } else { $DB->query("SELECT * FROM ibf_cache_store WHERE cs_key='boardrules'"); $r = $DB->fetch_row(); $this->lang['gl_guidelines'] = $r['cs_value']; $this->lang['gl_guidelines'] = $std->my_br2nl($this->lang['gl_guidelines']); $l = $std->load_words($l, "lang_register", $lang); $this->lang['terms_of_use'] = $l['click_wrap']; $this->lang['gl_link'] = $INFO['gl_link']; $this->lang['gl_title'] = $INFO['gl_title']; unset($l); } $ADMIN->html .= "<input type='hidden' name='lang' value='$lang' />\n"; $ADMIN->html .= $SKIN->add_td_basic( $this->lang['title_guide_lines'], "left", "catrow2"); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['item_gl_show'], $SKIN->form_yes_no( "gl_show", $INFO['gl_show'] ) ) ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['item_gl_link'], $SKIN->form_input( "gl_link", $this->lang['gl_link'] ) ) ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['item_gl_title'], $SKIN->form_input( "gl_title", $this->lang['gl_title'] ) ) ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['item_gl_glines'], $SKIN->form_textarea( "gl_guidelines", $this->lang['gl_guidelines'], 65, 20 ) ) ); $ADMIN->html .= $SKIN->add_td_basic( $this->lang['title_terms_of_use'], "left", "catrow2"); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['item_terms_of_use'], $SKIN->form_textarea( "terms_of_use", $std->my_br2nl($this->lang['terms_of_use']), 65, 20 ) ) ); $this->common_footer(); die; //-- mod_sec_update_131 end |
I. Find in function pm(..)
|
$SKIN->form_input( "show_max_msg_list", $INFO['show_max_msg_list'] ) ) ); |
|
$SKIN->form_input( "show_max_msg_list", $INFO['show_max_msg_list'] ) ) ); //-- mod_sec_update_131 begin $lang = $std->load_words($lang, 'mod_sec_update_ad_lang', $ADMIN->lang_id); $ADMIN->html .= $SKIN->add_td_row( array( $lang['msg_preview'] , $SKIN->form_yes_no( "msg_preview", $INFO['msg_preview'] ) ) ); //-- mod_sec_update_131 end |
J. Find in function url(..)
|
$SKIN->form_input( "upload_dir", $INFO['upload_dir'] ) ) ); |
|
$SKIN->form_input( "upload_dir", $INFO['upload_dir'] ) ) ); //-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, "mod_sec_update_ad_lang", $ADMIN->lang_id); $start = explode('.', date("Y.m.d", $INFO['board_start']+$INFO['time_offset']+$INFO['time_adjust'])); $ADMIN->html .= $SKIN->add_td_row( array("<b>{$this->lang['board_start_date']}</b><input type='hidden' name='board_start' value='0'>" , "{$this->lang['year']} ".$SKIN->form_dropdown( "year" , $this->make_year() , $start[0] ).' '. "{$this->lang['month']} ".$SKIN->form_dropdown( "month" , $this->make_month(), $start[1] ).' '. "{$this->lang['day']} ".$SKIN->form_dropdown( "day" , $this->make_day() , $start[2] ) ) ); $ADMIN->html .= $SKIN->add_td_basic( $this->lang['ip2loc_title'], 'left', 'catrow2' ); include ROOT_PATH."sources/mods/sec_update_131_A/ip2loc/services.php"; if (is_array($IP2LOC)) { $service_array[] = array(0 => "auto", 1 => $this->lang['ip2loc_auto']); $access = "<span id='ip2loc_auto' style='display:none;'></span>"; foreach($IP2LOC as $service) { $service_array[] = array(0 => $service['id'], 1 => $service['name']); $show_js .= "document.getElementById('ip2loc_{$service['id']}').style.display='none';"; $display = "none"; if ($service['id'] == $INFO['ip2loc_service']) $display = "inline"; $access .= "<span id='ip2loc_{$service['id']}' style='display:$display;'>"; if (isset($service['user'])) $access .= "<b>".$service['user']."</b> ".$SKIN->form_simple_input("ip2loc_user", $INFO['ip2loc_user'], 30); if (isset($service['pwd'])) $access .= " <b>".$service['pwd']."</b> ".$SKIN->form_simple_input("ip2loc_pwd", $INFO['ip2loc_pwd'], 30); $access .= "<br /><br /><a href='http://{$service['website']}' target=_blank'>{$service['website']}</a>"; if (isset($this->lang['ip2loc_service_'.$service['id']])) $access .= $this->lang['ip2loc_service_'.$service['id']]; $access .= "</span>"; } } $js = "onChange='showAccessCode(this.options[this.selectedIndex].value)'"; $ADMIN->html .= " <script type='text/javascript'>function showAccessCode(id) { $show_js; document.getElementById('ip2loc_' + id).style.display='inline'; }</script>"; $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['ip2loc_service'] , $SKIN->form_dropdown( "ip2loc_service", $service_array, $INFO['ip2loc_service'], $js )." ".$access ) ); //-- mod_sec_update_131 end |
K. Find in function upload_emoticon(..)
|
@chmod( $INFO['html_dir'].'emoticons'."/".$FILE_NAME, 0777 ); } |
|
@chmod( $INFO['html_dir'].'emoticons'."/".$FILE_NAME, 0777 ); } //-- mod_sec_update_131 begin $img_size = @getimagesize( $INFO['html_dir'].'emoticons'."/".$FILE_NAME ); if (!is_array($img_size)) $img_size = @getimagesize($INFO['html_dir'].'emoticons'."/".$FILE_NAME, $info ); if (!is_array($img_size)) { @unlink($INFO['html_dir'].'emoticons'."/".$FILE_NAME); $ADMIN->error("Wrong file type"); } switch($FILE_TYPE) { case 'image/gif': $ext = '.gif'; break; case 'image/jpeg': $ext = '.jpg'; break; case 'image/pjpeg': $ext = '.jpg'; break; case 'image/x-png': $ext = '.png'; break; case 'image/png': $ext = '.png'; break; } if (function_exists("imagecreatefromgif")) { $image = $INFO['html_dir'].'emoticons'."/".$FILE_NAME; switch($ext) { case '.gif' : $im = @imagecreatefromgif($image); break; case '.jpg': $im = @imagecreatefromjpeg($image); break; case '.png': $im = @imagecreatefrompng($image); break; } if ($im) { imagedestroy($im); } elseif ($ext == ".gif" || $ext == ".jpg" || $ext == ".png") { @unlink($image); $ADMIN->error("Wrong file type"); } } //-- mod_sec_update_131 end |
L. Find in function dates(..)
|
$this->common_header('dodates', 'Dates', 'Define date formats'); |
|
//-- mod_sec_update_131 begin require ROOT_PATH."sources/mods/sec_update_131_A/mod_sec_update_ad_func.php"; $mod_sec_update->dates(); exit(); //-- mod_sec_update_131 end $this->common_header('dodates', 'Dates', 'Define date formats'); |
M. Find in function post(..)
|
$INFO['img_ext'] = |
|
//-- mod_sec_update_131 begin $this->lang = $std->load_words($this->lang, 'mod_sec_lang', $ADMIN->lang_id); $this->lang = $std->load_words($this->lang, 'mod_sec_update_ad_lang', $ADMIN->lang_id); $INFO['pre_pinned'] = $this->lang['pre_pinned']; $INFO['pre_moved'] = $this->lang['pre_moved']; $INFO['pre_polls'] = $this->lang['pre_polls']; //-- mod_sec_update_131 end $INFO['img_ext'] = |
N. Find in function post(..)
|
, $INFO['pre_pinned'] |
|
, $INFO['pre_pinned'] //-- mod_sec_update_131 begin , "text", " readonly='readonly' ") .(" ".$this->lang['pre_info'] //-- mod_sec_update_131 end |
O. Find in function post(..)
|
, $INFO['pre_moved'] |
|
, $INFO['pre_moved'] //-- mod_sec_update_131 begin , "text", " readonly='readonly' ") .(" ".$this->lang['pre_info'] //-- mod_sec_update_131 end |
P. Find in function post(..)
|
, $INFO['pre_polls'] |
|
, $INFO['pre_polls'] //-- mod_sec_update_131 begin , "text", " readonly='readonly' ") .(" ".$this->lang['pre_info'] //-- mod_sec_update_131 end |
Q. Find in function post(..)
|
$SKIN->form_yes_no( "etfilter_shout", $INFO['etfilter_shout'] ) ) ); |
|
$SKIN->form_yes_no( "etfilter_shout", $INFO['etfilter_shout'] ) ) ); //-- mod_sec_update_131 begin $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['topic_preview'], $SKIN->form_yes_no( "display_topic_preview", $INFO['display_topic_preview'] ) ) ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['topic_thread'], $SKIN->form_yes_no( "display_topic_thread", $INFO['display_topic_thread'] ) ) ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['topic_thread_global'], $SKIN->form_yes_no( "display_topic_thread_global", $INFO['display_topic_thread_global'] ) ) ); $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['topic_thread_default'], $SKIN->form_yes_no( "display_topic_thread_default", $INFO['display_topic_thread_default'] ) ) ); //-- mod_sec_update_131 end |
R. Find in function post(..)
|
$SKIN->form_input( "max_emos", $INFO['max_emos'] ) ) ); |
|
$SKIN->form_input( "max_emos", $INFO['max_emos'] ) ) ); //-- mod_sec_update_131 begin $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['post_icons'], $SKIN->form_yes_no( "post_icons", isset($INFO['post_icons'])?$INFO['post_icons']:1 ) ) ); //-- mod_sec_update_131 end |
S. Find in function post(..)
|
$SKIN->form_yes_no( "strip_quotes", $INFO['strip_quotes'] ) ) ); |
|
$SKIN->form_yes_no( "strip_quotes", $INFO['strip_quotes'] ) ) ); //-- mod_sec_update_131 begin $ADMIN->html .= $SKIN->add_td_row( array( $this->lang['topic_multi_quote'], $SKIN->form_yes_no( "allow_multi_quote", $INFO['allow_multi_quote'] ) ) ); //-- mod_sec_update_131 end |
T. Find in function avatars(..)
|
$SKIN->form_yes_no( "sig_allow_ibc", $INFO['sig_allow_ibc'] ) ) ); |
|
$SKIN->form_yes_no( "sig_allow_ibc", $INFO['sig_allow_ibc'] ) ) ); //-- mod_sec_update_131 begin $lang = $std->load_words($lang, "mod_sec_update_ad_lang", $ADMIN->lang_id); $ADMIN->html .= $SKIN->add_td_row( array( $lang['profile_allow_ibc'], $SKIN->form_yes_no( "profile_allow_ibc", $INFO['profile_allow_ibc'] ) ) ); //-- mod_sec_update_131 end |
U. Find in function avatars(..)
|
$ADMIN->html .= $SKIN->add_td_basic( 'Guest Permissions', 'left', 'catrow2' ); //----------------------------------------------------------------------------------------------------------- |
|
$ADMIN->html .= $SKIN->add_td_basic( 'Guest Permissions', 'left', 'catrow2' ); //----------------------------------------------------------------------------------------------------------- //-- mod_sec_update_131 begin $ADMIN->html .= $SKIN->add_td_row( array( $lang['guests_view_attach'] , $SKIN->form_yes_no( "guests_attach", $INFO['guests_attach'] ) ) ); //-- mod_sec_update_131 end |
V. Find in function secure(..)
|
$SKIN->form_yes_no( "disable_reportpost", $INFO['disable_reportpost'] ) ) ); // |
|
$SKIN->form_yes_no( "disable_reportpost", $INFO['disable_reportpost'] ) ) ); // //-- mod_sec_update_131 begin $lang = $std->load_words($this->lang, "mod_sec_update_ad_lang", $ADMIN->lang_id); $ADMIN->html .= $SKIN->add_td_row( array( $lang['ad_reportpost_pm'], $SKIN->form_yes_no( "reportpost_pm", $INFO['reportpost_pm'] ) ) ); //-- mod_sec_update_131 end |
W. Find
|
} ?> |
|
//-- mod_sec_update_131 begin function make_year() { $time_now = getdate(); $return = array(); $start_year = 1990; $latest_year = intval($time_now['year']); if ($latest_year == $start_year) { $start_year -= 1; } for ( $y = $start_year; $y <= $latest_year; $y++ ) { $return[] = array( $y, $y); } return $return; } function make_month() { global $std, $INFO; $return = array(); for ( $m = 1 ; $m <= 12; $m++ ) { $return[] = array( $m, $m<10?("0".$m):$m ); } return $return; } function make_day() { $return = array(); for ( $d = 1 ; $d <= 31; $d++ ) { $return[] = array( $d, $d<10?("0".$d):$d ); } return $return; } //-- mod_sec_update_131 end } ?> |
Find in function set_import(..), safe_set_import(..)
|
$new_name = stripslashes( $this->name_translated )." (Import)".$set['new_id']; |
|
//-- mod_sec_update_131 begin if (TRUE) $new_name = stripslashes( $this->name_translated )." (Import)"; else //-- mod_sec_update_131 end $new_name = stripslashes( $this->name_translated )." (Import)".$set['new_id']; |
A. Find in function list_sets(..), list_sets(..)
|
$default = ' '; |
|
//-- mod_sec_update_131 begin $extra = " [sid=".$r['sid']."] ".$extra; //-- mod_sec_update_131 end $default = ' '; |
B. Find in function list_sets(..)
|
$DB->query("SELECT * FROM ibf_skins"); |
|
//-- mod_sec_update_131 begin if (TRUE) $DB->query("SELECT * FROM ibf_skins ORDER BY sname"); else //-- mod_sec_update_131 end $DB->query("SELECT * FROM ibf_skins"); |
C. Find in function list_sets(..)
|
$DB->query("SELECT * FROM ibf_skins WHERE uid NOT IN(".implode(",",$used_ids).")"); |
|
//-- mod_sec_update_131 begin if (TRUE) $DB->query("SELECT * FROM ibf_skins WHERE uid NOT IN(".implode(",",$used_ids).") ORDER BY sname"); else //-- mod_sec_update_131 end $DB->query("SELECT * FROM ibf_skins WHERE uid NOT IN(".implode(",",$used_ids).")"); |
A. Find in function admin_functions(..)
|
$this->base_url = $INFO['board_url']."/admin.".$INFO['php_ext']."?adsess=".$IN['AD_SESS']; |
|
$this->base_url = $INFO['board_url']."/admin.".$INFO['php_ext']."?adsess=".$IN['AD_SESS']; //-- mod_sec_update_131 begin $this->base_url = $INFO['board_url']."/".ADMIN_SCRIPT_NAME."?adsess=".$IN['AD_SESS']; //-- mod_sec_update_131 end |
B. Find in function get_date(..)
|
function get_date($date="", $method="") |
|
//-- mod_sec_update_131 begin function set_time_replace() { global $ADMIN, $MEMBER, $INFO, $std; $this->time_options = array( 'JOINED' => $INFO['clock_joined'], 'SHORT' => $INFO['clock_short'], 'LONG' => $INFO['clock_long'] ); $this->lang = $std->load_words($this->lang, 'lang_date', $ADMIN->lang_id); $this->Date_Replace_Array = array( "January" => $this->lang['M1'], "February" => $this->lang['M2'], "March" => $this->lang['M3'], "April" => $this->lang['M4'], "May" => $this->lang['M5'], "June" => $this->lang['M6'], "July" => $this->lang['M7'], "August" => $this->lang['M8'], "September" => $this->lang['M9'], "October" => $this->lang['M10'], "November" => $this->lang['M11'], "December" => $this->lang['M12'], "Jan" => $this->lang['m1'], "Feb" => $this->lang['m2'], "Mar" => $this->lang['m3'], "Apr" => $this->lang['m4'], "May" => $this->lang['m5'], "Jun" => $this->lang['m6'], "Jul" => $this->lang['m7'], "Aug" => $this->lang['m8'], "Sep" => $this->lang['m9'], "Oct" => $this->lang['m10'], "Nov" => $this->lang['m11'], "Dec" => $this->lang['m12'], "Sunday" => $this->lang['D0'], "Monday" => $this->lang['D1'], "Tuesday" => $this->lang['D2'], "Wednesday" => $this->lang['D3'], "Thursday" => $this->lang['D4'], "Friday" => $this->lang['D5'], "Saturday" => $this->lang['D6'], "Sun" => $this->lang['d0'], "Mon" => $this->lang['d1'], "Tue" => $this->lang['d2'], "Wed" => $this->lang['d3'], "Thu" => $this->lang['d4'], "Fri" => $this->lang['d5'], "Sat" => $this->lang['d6'] ); } function get_date($date = "", $method = "") { if (!$date) { return '--'; } if (empty($method)) { $method = 'LONG'; } if ($this->offset_set == 0) { $this->offset = $this->get_time_offset(); $this->offset_set = 1; } if (!isset($this->Date_Replace_Array)) { $this->set_time_replace(); } if ($this->time_options[$method] != "") { return Strtr(gmdate((isset($this->lang["time_format_".$method])?$this->lang["time_format_".$method]:$this->time_options[$method]), ($date + $this->offset) ), $this->Date_Replace_Array); } else { return Strtr(gmdate($method, ($date + $this->offset) ), $this->Date_Replace_Array); } } function get_time_offset() { global $MEMBER, $INFO; $d = 0; if (!$MEMBER['id'] || ($MEMBER['time_offset'] === "" && !$MEMBER['dst_in_use'])) { $d = ($INFO['time_offset'] + $INFO['dst_in_use'])*3600 + ($INFO['time_adjust']) * 60; } else { $d = ($MEMBER['time_offset'] + $MEMBER['dst_in_use'])*3600 + ($INFO['time_adjust']) * 60; } return $d; } //-- mod_sec_update_131 end /*-- mod_sec_update_131 exclude begin function get_date($date="", $method="") |
C. Find in function get_date(..)
|
return gmdate($this->time_options[$method], ($date + $this->time_offset) ); } |
|
return gmdate($this->time_options[$method], ($date + $this->time_offset) ); } -- mod_sec_update_131 exclude end */ |
D. Find in function done_screen(..)
|
function done_screen($title, $link_text="", $link_url="" |
|
function done_screen($title, $link_text="", $link_url="" //-- mod_sec_update_131 begin , $custom_link= array() //-- mod_sec_update_131 end |
E. Find in function done_screen(..)
|
$this->html .= $SKIN->add_td_basic( "<a href='{$this->base_url}&{$link_url}' target='body'>Go to: $link_text</a>", "center" ); |
|
$this->html .= $SKIN->add_td_basic( "<a href='{$this->base_url}&{$link_url}' target='body'>Go to: $link_text</a>", "center" ); //-- mod_sec_update_131 begin if (is_array($custom_link)) foreach ($custom_link as $url=>$text) { $this->html .= $SKIN->add_td_basic( "<a href='{$this->base_url}&{$url}' target='body'>Go to: $text</a>", "center" ); } //-- mod_sec_update_131 end |
F. Find in function build_jump_menu(..)
|
function build_jump_menu() |
|
-- mod_sec_update_131 exclude end */ function build_jump_menu() |
G. Find in function build_tree(..)
|
function build_tree() { |
|
//-- mod_sec_update_131 begin function build_tree() { global $IN, $std, $INFO, $PAGES, $CATS, $SKIN, $DESC; $html = $SKIN->get_men_js(); $links = ""; foreach($CATS as $cid => $name) { $ADMIN->jump_menu .= "<optgroup label='$name'>\n"; if ( preg_match( "/(?:^|,)$cid(?:,|$)/", $IN['show'] ) ) { $display_s = "block"; $display_c = "none"; } else { $display_s = "none"; $display_c = "block"; } foreach($PAGES[ $cid ] as $pid => $pdata) { if ( $pdata[2] != "" ) if ( ! @is_dir( ROOT_PATH.$pdata[2] ) ) continue; $links .= $SKIN->menu_cat_link($pdata[1], $pdata[0], $pdata[3]); } $html .= $SKIN->menu_cat_expanded( $name, $links, $cid, $display_s ); unset($links); $html .= $SKIN->menu_cat_collapsed( $name, $cid, $DESC[ $cid ], $display_c ); $ADMIN->jump_menu .= "</optgroup>\n"; } return $html; } //-- mod_sec_update_131 end /*-- mod_sec_update_131 exclude begin function build_tree() { |
H. Find
|
} ?> |
|
//-- mod_sec_update_131 begin function adjust_skin_info(&$skin_names, &$bit_names){ if (is_array($skin_names)) foreach ($skin_names as $k => $v) { $v[0] .= " ($k.php)"; $skin_names[$k] = $v; } if (is_array($bit_names)) foreach ($bit_names as $k => $v) { foreach ($v as $f => $d) $v[$f] .= " (function $f)"; $bit_names[$k] = $v; } } //-- mod_sec_update_131 end } ?> |
Find
|
?> |
|
//-- mod_sec_update_131 begin $PAGES[5][9][0] = "Profile Fields"; unset($PAGES[1]); unset($CATS[1]); unset($DESC[1]); unset($PAGES[2][20]); unset($PAGES[7][7]); $PAGES[6][] = array( 'User Requests', 'act=requests' ); $PAGES[11][] = array( 'Online Stats', 'act=online' ); $PAGES[11][] = array( 'User Requests', 'act=requests' ); //-- mod_sec_update_131 end ?> |
A. Find in function admin_skin(..)
|
$this->base_url = $INFO['board_url']."/admin.".$INFO['php_ext']."?adsess=".$IN['AD_SESS']; |
|
$this->base_url = $INFO['board_url']."/admin.".$INFO['php_ext']."?adsess=".$IN['AD_SESS']; //-- mod_sec_update_131 begin global $std, $MEMBER, $ADMIN; $this->base_url = $INFO['board_url']."/".ADMIN_SCRIPT_NAME."?adsess=".$IN['AD_SESS']; $this->board_url = $INFO['board_url']."/index.php?adsess=".$IN['AD_SESS']; //-- mod_sec_update_131 end |
B. Find in function js_template_tools(..)
|
function js_template_tools() { |
|
function js_template_tools() { //-- mod_sec_update_131 begin global $INFO; return " <script language='javascript'> <!-- var baseUrl = \"{$this->base_url}\"; function restore(suid, expand) { if (confirm(\"Are you sure you want to restore the template?\\nALL UNSAVED CHANGES WILL BE LOST!\")) self.location.href= baseUrl + '&act=templ&code=edit_bit&suid=' + suid + '&expand=' + expand; else alert (\"Restore Cancelled\"); } function edit_box_size(cols, rows) { if (cols == '') cols = 80; if (rows == '') rows = 40; userCols = prompt(\"Enter the number of columns for the text area (width)\", cols); if ( (userCols != null) && (userCols != \"\") ) { userRows = prompt(\"Enter the number of rows for the text area (height)\", rows); if ( (userRows != null) && (userRows != \"\") ) { document.cookie = '{$INFO['cookie_id']}' + 'ad_tempform='+userRows+'-'+userCols+'; path={$INFO['cookie_path']}; domain={$INFO['cookie_domain']}; expires=Wed, 1 Jan 2020 00:00:00 GMT;'; alert('Edit box preferences updated.\\nThe changes will take effect next time the edit screen is loaded'); } else alert('You must enter a value for the number of rows'); } else alert('You must enter a value for the number of columns'); } function pop_win(theUrl, winName, theWidth, theHeight) { if (winName == '') winName = 'Preview'; if (theHeight == '') theHeight = 400; if (theWidth == '') theWidth = 400; window.open('{$this->base_url}&act=rtempl&'+theUrl,winName,'width='+theWidth+',height='+theHeight+',resizable=yes,scrollbars=yes'); } //--> </script> "; //-- mod_sec_update_131 end |
C. Find in function make_page_jump(..)
|
return "<a href='#' title=\"Jump to a page...\" onclick=\"multi_page_jump('$ub',$tp,$pp);\">Pages:</a>"; |
|
//-- mod_sec_update_131 begin return "<span class='page_link' ><a title='Jump to a page...' href=\"javascript:multi_page_jump('$ub',$tp,$pp);\">Pages</a></span>"; //-- mod_sec_update_131 end return "<a href='#' title=\"Jump to a page...\" onclick=\"multi_page_jump('$ub',$tp,$pp);\">Pages:</a>"; |
D. Find in function get_css(..)
|
"<style type='text/css'> |
|
//-- mod_sec_update_131 begin " <style type='text/css'> .page_link {border:1px solid #8FA8C4;padding-left:5px;padding-right:5px;padding-top:2px;padding-bottom:2px;background-color: #F1F7FE;} .page_link a:link, .page_link a:visited, .page_link a:active{text-decoration: none;color:#000000;} .page_link_active {font-weight:bold;border:1px solid #345487; padding:5px;padding-top:4px;padding-bottom:4px;background-color: #FFCCCC;} div.domTT { border: 1px solid #333333; background-color: #333333 } div.domTT .caption { font-family: serif; font-size: 12px; font-weight: bold; padding: 1px 2px; color: #FFFFFF } div.domTT a:link { text-decoration: none; color: #FFFFFF } div.domTT a:visited { text-decoration: none; color: #FFFFFF } div.domTT a:active { text-decoration: none; color: #0000FF } div.domTT a:hover { text-decoration: none; color: #FF0000 } div.domTT .contents { font-size: 11px; font-family: sans-serif; padding: 3px 2px; background-color: #F1F1FF } div.domTT .contents a:link { text-decoration: none; color: #000000 } div.domTT .contents a:visited { text-decoration: none; color: #777777 } div.domTT .contents a:active { text-decoration: none; color: #0000FF } div.domTT .contents a:hover { text-decoration: none; color: #FF0000 } div.domTTlegend { border: 1px solid #333333; background-color: #333333 } div.domTTlegend .caption { font-family: serif; font-size: 12px; font-weight: bold; padding: 1px 2px; color: #FFFFFF } div.domTTlegend a:link { text-decoration: none; color: #000000 } div.domTTlegend a:visited { text-decoration: none; color: #000000 } div.domTTlegend a:active { text-decoration: none; color: #FF0000 } div.domTTlegend a:hover { color: #FF0000; text-decoration: none } div.domTTlegend .contents { font-size: 10px; font-family: sans-serif; padding: 3px 2px; background-color: #F1F1FF } img { border:none; } </style> ". //-- mod_sec_update_131 end "<style type='text/css'> |
E. Find in function print_top(..)
|
$css = $this->get_css(); |
|
$css = $this->get_css(); //-- mod_sec_update_131 begin $css .= " <script language=\"javascript\" type=\"text/javascript\" src=\"{$INFO['board_url']}/html/domLibm.js\"></script> <script language=\"javascript\" type=\"text/javascript\" src=\"{$INFO['board_url']}/html/domTTm.js\"></script> <script language=\"javascript\" type=\"text/javascript\" src=\"{$INFO['board_url']}/html/domTT_drag.js\"></script> <script type=\"text/javascript\" language=\"javascript\" src=\"{$INFO['board_url']}/html/fadomaticm.js\"></script> "; //-- mod_sec_update_131 end |
F. Find in function menu_top(..)
|
$pop_win = $this->js_pop_win(); |
|
$pop_win = $this->js_pop_win(); //-- mod_sec_update_131 begin global $ADMIN, $MEMBER; if ($MEMBER['mgroup'] == $INFO['admin_group']) $board_acp_session = "<div width='100%' class='item'><img src='{$this->img_url}/item.gif' border='0' alt='' valign='absmiddle'> <a href=\"{$this->board_url}\" target='body' onClick='makeActive(this.parentNode)' title='{$ADMIN->lang['board_acp_session_title']}'>{$ADMIN->lang['board_acp_session']}</a></div>"; return "<html> <head><title>Menu</title> <style type='text/css'> TABLE, TR, TD { font-family:Verdana, Arial;font-size: 9px; color:#000 } BODY { font: 9px Verdana; color:#000; background-color:#FFF; margin:0px 3px 0px 3px; padding:0px; } a:link, a:visited { color:#000; text-decoration:none; } a:hover { cursor:pointer; color:#FF0000; text-decoration:underline;} a:active { text-color:#0000FF; font-weight:bold;} img { vertical-align:middle } #title { font-size:10px; font-weight:bold; line-height:150%; color:#FFFFFF; height: 24px; background-image: url({$this->img_url}/tile_back.gif); } #title a:link, #title a:visited, #title a:active { text-decoration: none; color : #555555 } .desc { font-size:9px; color: #000; background-color:#DFE6EF; padding:2px 0px 2px 5px; line-height:1.2em; } .plain { font-size:9px; color: #000; background-color:#EEF2F7; padding:2px 0px 2px 5px; line-height:1.7em; } .item { font-size:9px; color: #000; background-color:#EEF2F7; font-weight:normal; } .item_active { font-size:11px; color: #000; background-color:#CCCC99; font-weight:bold; } .tableborder { border:1px solid #345487;background-color:#FFF; } .cattitle { font-size:10px; font-weight:bold; line-height:150%; background-color:#C4DCF7; color:#000; padding:5px 4px 5px 5px; background-image: url({$this->img_url}/tile_sub.gif); border-bottom:1px solid #345487; } .cattitle a:link, .cattitle a:visited, .cattitle a:active { text-decoration: underline; color:#000; } </style> $pop_win <script language='javascript'> <!-- function makeActive(element) { e = document.getElementsByTagName('div'); for (var i=0; i < e.length; i++) { if (e[i].className=='item_active') e[i].className='item'; } element.className='item_active'; } //--> </script> </head> <body marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor='#FFF'> <div align='center'><img src='{$this->img_url}/ad-logo.jpg' border='0' style='width:100%'></div> <div class='tableborder'> <div class='plain'> <img src='{$this->img_url}/item.gif' border='0' alt='' valign='absmiddle'> <a href='{$this->base_url}&act=menu&show=all' target='menu'>{$ADMIN->lang['expand']}</a> · <a href='{$this->base_url}&act=menu&show=none' target='menu'>{$ADMIN->lang['reduce']}</a> Menu<br /> $board_acp_session <div class='item' style='width:30%;float:left;'><img src='{$this->img_url}/item.gif' border='0' alt='' valign='absmiddle'> <a href='{$this->base_url}&act=index' target='body' onClick='makeActive(this.parentNode)' title='{$ADMIN->lang['acp_title']}'>{$ADMIN->lang['acp']}</a></div><div class='item' style='float:left;width:30%;'><img src='{$this->img_url}/item.gif' border='0' alt='' valign='absmiddle'> <a href='{$INFO['board_url']}/index.{$INFO['php_ext']}' target='body' onClick='makeActive(this.parentNode)' title='{$ADMIN->lang['board_title']}'>{$ADMIN->lang['board']}</a></div> <br clear='both' /> <img src='{$this->img_url}/item.gif' border='0' alt='' valign='absmiddle'> {$ADMIN->lang['support']} <div width='100%' class='item'><img src='{$this->img_url}/item.gif' border='0' alt='' valign='absmiddle'> <a href=\"javascript:pop_win('&act=prefs', 'prefs', 400, 200 )\" onClick='makeActive(this.parentNode)' title='{$ADMIN->lang['acp_prefs_title']}'>{$ADMIN->lang['acp_prefs']}</a></div> <img src='{$this->img_url}/item.gif' border='0' alt='' valign='absmiddle'> <a href='{$this->base_url}&act=logout' style='text-decoration:none;'><button style='font-weight:bold;font-size:12px;color:red;' onclick='document.location.href=\"{$this->base_url}&act=logout\"' title='{$ADMIN->lang['logout_title']}'> {$ADMIN->lang['logout']} </button></a> </div> </div> <br /> "; //-- mod_sec_update_131 end |
G. Find in function menu_cat_expanded(..)
|
function menu_cat_expanded($name="", $links="", $id = "") { |
|
//-- mod_sec_update_131 begin function get_men_js() { global $IN, $INFO; return " <script type='text/javascript' language='javascript'> <!-- var DHTML = (document.getElementById || document.all || document.layers); var myAgent = navigator.userAgent.toLowerCase(); var myVersion = parseInt(navigator.appVersion); var is_ie = ((myAgent.indexOf(\"msie\") != -1) && (myAgent.indexOf(\"opera\") == -1)); function getObj(name) { if (document.getElementById) { return document.getElementById(name); } else if (document.all) { return document.all[name]; } else if (document.layers) { return document.layers[name]; } } function show(id) { if (!DHTML) return true; s = getObj(\"men_s_\" + id); c = getObj(\"men_c_\" + id); if (!s || !c) return true; s.style.display = s.style.display == 'none' ? 'block': 'none'; c.style.display = c.style.display == 'none' ? 'block' : 'none'; cookie = decodeURIComponent(document.cookie); if (cookie) { var Search = /acpprefs=(.*?)(;|$)/i; menu = Search.exec(cookie); if (menu) menu = menu[1]; if (!menu || !menu[0]) return false; Search = /acpmenu=(.*?)(;|$)/i; cookie = Search.exec(cookie); if (cookie) cookie = cookie[1]; if (cookie) { eval(\"cookie = cookie.replace(/^\" + id + \"$/, '');\"); eval(\"cookie = cookie.replace(/^\" + id + \",/, '');\"); eval(\"cookie = cookie.replace(/,\" + id + \"$/, '');\"); eval(\"cookie = cookie.replace(/,\" + id + \",/, ',');\"); } } if (s.style.display == 'block') if (cookie) cookie += ',' + id; else cookie = id; expires = new Date(); if (cookie) expires.setTime(expires.getTime() + 31536000000); else expires.setTime(expires.getTime() - 1); cookie = encodeURIComponent(cookie); document.cookie = \"{$INFO['cookie_id']}\" + \"acpmenu=\" + cookie + \"; path={$INFO['cookie_path']};domain={$INFO['cookie_domain']}; expires=\" + expires.toGMTString(); return false; } //--> </script> "; } function menu_cat_expanded($name="", $links="", $id = "", $display = "block") { global $IN, $ADMIN; $save = intval($INFO['menu']); return "<div id='men_s_$id' style='display:$display;'>\n <a name='cat$id'></a> <div class='tableborder'> <div class='cattitle'> <a href='{$this->base_url}&act=menu&show={$IN['show']}&out=$id' target='menu' onClick='return show(\"$id\");' ><img src='{$this->img_url}/minus.gif' border='0' title='{$ADMIN->lang['reduce']}'></a> <a href='{$this->base_url}&act=menu&show={$IN['show']}&out=$id' target='menu' onClick='return show(\"$id\");' title='{$ADMIN->lang['reduce']}' >$name</a> </div> <div class='plain'>$links</div> </div> <br /> </div> "; } //+-------------------------------------------------------------------- function menu_cat_collapsed($name="", $id = "", $desc="", $display = "block") { global $IN, $ADMIN; $save = intval($INFO['menu']); return "<div id='men_c_$id' style='display:$display;'>\n <div class='tableborder'> <div class='cattitle'> <a href='{$this->base_url}&act=menu&show=,{$IN['show']},$id#cat$id' target='menu' onClick='return show(\"$id\");' ><img src='{$this->img_url}/plus.gif' border='0' alt='Collapse Category' title='{$ADMIN->lang['expand']}'></a> <a href='{$this->base_url}&act=menu&show=,{$IN['show']},$id#cat$id' target='menu' onClick='return show(\"$id\");' title='{$ADMIN->lang['expand']}'>$name</a> </div> <div class='desc'>$desc</div> </div> <br /> </div> "; } function menu_cat_link($url="", $name="", $urltype=0) { global $INFO; if ( $urltype == 1 ) $theurl = $INFO['board_url'].'/index.'.$INFO['php_ext'].'?'; else $theurl = $this->base_url; return "<div width='100%' name='item'><img src='{$this->img_url}/item.gif' border='0' alt='' valign='absmiddle'> <a href='{$theurl}&$url' target='body' onClick='makeActive(this.parentNode)'>$name</a></div>"; } //-- mod_sec_update_131 end /*-- mod_sec_update_131 exclude begin function menu_cat_expanded($name="", $links="", $id = "") { |
H. Find in function frame_set(..)
|
function frame_set() { |
|
-- mod_sec_update_131 exclude end */ function frame_set() { |
I. Find in function frame_set(..)
|
$frames = "<html> |
|
//-- mod_sec_update_131 begin $frames = "<html> <head><title>Invision Power Board Administration Center</title></head> <frameset cols='215, *' frameborder='no' border='0' framespacing='0'> <frame name='menu' noresize scrolling='auto' src='{$this->base_url}&act=menu'> <frame name='body' noresize scrolling='auto' src='{$this->base_url}&act=index'> </frameset> </html>"; return $frames; //-- mod_sec_update_131 end $frames = "<html> |
J. Find
|
} ?> |
|
//-- mod_sec_update_131 begin function pop_up_window($title, $text) { global $INFO; $css = $this->get_css(); $html = <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>$title</title> $css </head> <body> <div style='text-align:left'> $text </div> </body> </html> EOF; if ($INFO['disable_gzip'] != 1) { $buffer = ob_get_contents(); ob_end_clean(); ob_start('ob_gzhandler'); print $buffer; } if ($INFO['print_headers']) { @header("HTTP/1.0 200 OK"); @header("HTTP/1.1 200 OK"); @header("Content-type: text/html"); if ($ibforums->vars['nocache']) { @header("Cache-Control: no-cache, must-revalidate, max-age=0"); @header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); @header("Pragma: no-cache"); } } echo ($html); exit; } //-- mod_sec_update_131 end } ?> |
Find in function print_css_searchlinks(..), print_searchlinks(..)
|
require './sources/Admin/skin_info.php'; |
|
require './sources/Admin/skin_info.php'; //-- mod_sec_update_131 begin $ADMIN->adjust_skin_info($skin_names, $bit_names); //-- mod_sec_update_131 end |
A. Find in function upload_form(..), show_cats(..), edit_bit(..)
|
require './sources/Admin/skin_info.php'; |
|
require './sources/Admin/skin_info.php'; //-- mod_sec_update_131 begin $ADMIN->adjust_skin_info($skin_names, $bit_names); //-- mod_sec_update_131 end |
B. Find in function checkcheckall(..), edit_bit(..)
|
// If easy name is available, use it |
|
// If easy name is available, use it //-- mod_sec_update_131 begin $sec_arry[ $i['suid'] ]['easy_name'] = ($non_default++).": function ".$i['func_name']; //-- mod_sec_update_131 end |
C. Find in function show_cats(..)
|
while ( $group = $DB->fetch_row($all_cats) ) { |
|
while ( $group = $DB->fetch_row($all_cats) ) { //-- mod_sec_update_131 begin $sort_name = isset($skin_names[ $group['group_name'] ])?strtoupper($skin_names[ $group['group_name'] ][0]):"0".strtoupper($group['group_name']); $groups[$sort_name] = $group; } ksort($groups); foreach ($groups as $group) { $non_default = 1000; //-- mod_sec_update_131 end |
D. Find in function pop_win(..)
|
$new_q = $DB->query("SELECT func_name, LENGTH(section_content) as sec_length, suid FROM ibf_skin_templates WHERE set_id='{$IN['id']}' AND group_name='{$group['group_name']}'"); |
|
//-- mod_sec_update_131 begin if (TRUE) $new_q = $DB->query("SELECT func_name, LENGTH(section_content) as sec_length, suid FROM ibf_skin_templates WHERE set_id='{$IN['id']}' AND group_name='{$group['group_name']}' ORDER BY suid"); else //-- mod_sec_update_131 end $new_q = $DB->query("SELECT func_name, LENGTH(section_content) as sec_length, suid FROM ibf_skin_templates WHERE set_id='{$IN['id']}' AND group_name='{$group['group_name']}'"); |
E. Find in function edit_bit(..)
|
$DB->query("SELECT * FROM ibf_skin_templates WHERE suid IN (".implode(",",$ids).")"); |
|
//-- mod_sec_update_131 begin if (TRUE) $DB->query("SELECT * FROM ibf_skin_templates WHERE suid IN (".implode(",",$ids).") ORDER BY suid"); else //-- mod_sec_update_131 end $DB->query("SELECT * FROM ibf_skin_templates WHERE suid IN (".implode(",",$ids).")"); |
F. Find in function do_form(..)
|
$SKIN->form_input('url', $row['url']), ) ); |
|
$SKIN->form_input('url', $row['url']), ) ); //-- mod_sec_update_131 begin $ADMIN->html .= $SKIN->add_td_row( array("<b>Skin directory</b>","Skin/s".$IN['id'],) ); //-- mod_sec_update_131 end |
G. Find in function list_current(..), list_current(..)
|
$ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['skname'] |
|
//-- mod_sec_update_131 begin $r['skname'] .= " (Skin/s".$r['skid'].")"; //-- mod_sec_update_131 end $ADMIN->html .= $SKIN->add_td_row( array( "<b>".stripslashes($r['skname'] |
H. Find in function do_edit(..)
|
$ADMIN->done_screen("Template file(s) updated", "Manage Templates in template set: {$row['skname']}", "act=templ&code=edit&id={$template['set_id']}" ); |
|
//-- mod_sec_update_131 begin foreach ($ids as $id) { $query .= "&cb_".$id."=1"; } $query .= "&expand=".$ids[0]; $ADMIN->done_screen("Template file(s) updated", "Manage Templates in template set: {$row['skname']}", "act=templ&code=edit&id={$template['set_id']}", array("act=templ&code=edit_bit".$query => "Back to last edited skin function") ); exit(); //-- mod_sec_update_131 end $ADMIN->done_screen("Template file(s) updated", "Manage Templates in template set: {$row['skname']}", "act=templ&code=edit&id={$template['set_id']}" ); |