diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..de9b31f --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,35 @@ +Changelog Members + +Vers 0.8.8 (jacobi22) 16.02.18 +- remove another preprocess +Vers 0.8.7 (jacobi22) +- remove preprocess + +Vers 0.8.6 (jacobi22) ++ fix MYSQL-STRICT-Mode-Problem in install.php (field type text/blob cannot have a default value) ++ fix INSERT in add.group.php (missing fields) ++ fix INSERT in add_members.php (missing fields) ++ fix Undefined variable: f_memberpage_link in view.php ++ fix encoding & special chars in language/help-De.php ++ change style of the buttons for uniform design + +Vers 0.8.5 +- remove old continue(0) in files ++ fix mysql_error in files + +Vers 0.8.3: ++ fixed some PHP errors. + +Vers 0.8.2: ++ bugfixes inside install.php, save_group.php and save_member.php. + +Vers 0.8: ++ better picture handling, ++ some more improvments, ++ Drag&Drop sorting (WB 2.8 only) + +Vers 0.7: ++ use of WYSIWYG Editors. See the file module_settings.php + +Vers 0.6: ++ Minor bugfixes \ No newline at end of file diff --git a/add.php b/add.php old mode 100755 new mode 100644 diff --git a/add_group.php b/add_group.php old mode 100755 new mode 100644 index 3db80d0..f5ac0b8 --- a/add_group.php +++ b/add_group.php @@ -39,8 +39,18 @@ $position = $order->get_new($section_id); // Insert new row into database -$database->query("INSERT INTO ".TABLE_PREFIX."mod_members_groups (section_id,page_id,position,active) VALUES ('$section_id','$page_id','$position','1')"); - +$Sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_members_groups` SET ' + . '`section_id` = '.$section_id.', ' + . '`page_id` = '.$page_id.', ' + . '`position` = '.$position.', ' + . '`active` = 1,' + . '`group_desc` = \'\',' + . '`group_cache` = \'\',' + . '`group_search` = \'\' '; +$database->query($Sql); +if($database->is_error()) { + $admin->print_error("Zeile 53 - ".$database->get_error()); + } // Get the id $group_id = $database->get_one("SELECT LAST_INSERT_ID()"); diff --git a/add_member.php b/add_member.php old mode 100755 new mode 100644 index 54f23f1..f28a022 --- a/add_member.php +++ b/add_member.php @@ -51,8 +51,18 @@ // Insert new row into database -$database->query("INSERT INTO ".TABLE_PREFIX."mod_members (group_id,position,active,m_isalias) VALUES ('$group_id','$position','1','$isalias')"); - +#$database->query("INSERT INTO ".TABLE_PREFIX."mod_members (group_id,position,active,m_isalias) VALUES ('$group_id','$position','1','$isalias')"); +$Sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_members` SET ' + . '`group_id` = '.$group_id.', ' + . '`position` = '.$position.', ' + . '`active` = 1,' + . '`m_isalias` = \''.$isalias.'\',' + . '`m_long1` = \'\',' + . '`m_long2` = \'\' '; +$database->query($Sql); +if($database->is_error()) { + $admin->print_error("Zeile 64 - ".$database->get_error()); + } // Get the id $member_id = $database->get_one("SELECT LAST_INSERT_ID()"); diff --git a/backend.css b/backend.css old mode 100755 new mode 100644 index c533195..a364dea --- a/backend.css +++ b/backend.css @@ -99,7 +99,7 @@ padding:10px; background-color:#336600; color:#FFFFFF; -}*/ +} /* ------- module members NEW classes for drag n drop ------- */ .mod_members_wrapper {width: 100%; display: block; border: 1px #333 solid;} diff --git a/backend.js b/backend.js old mode 100755 new mode 100644 diff --git a/backend_body.js b/backend_body.js old mode 100755 new mode 100644 diff --git a/change_ghosts.php b/change_ghosts.php old mode 100755 new mode 100644 diff --git a/css.functions.php b/css.functions.php old mode 100755 new mode 100644 diff --git a/delete.php b/delete.php old mode 100755 new mode 100644 diff --git a/delete_group.php b/delete_group.php old mode 100755 new mode 100644 diff --git a/delete_member.php b/delete_member.php old mode 100755 new mode 100644 diff --git a/edit_css.php b/edit_css.php old mode 100755 new mode 100644 diff --git a/find_ghosts.php b/find_ghosts.php old mode 100755 new mode 100644 index aa657ac..a51e1e1 --- a/find_ghosts.php +++ b/find_ghosts.php @@ -32,11 +32,11 @@ require(WB_PATH.'/modules/admin.php'); // Load Language file if(LANGUAGE_LOADED) { - if(!file_exists(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php')) { - require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/EN.php'); - } else { - require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php'); - } + if(!file_exists(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php')) { + require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/EN.php'); + } else { + require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php'); + } } require('kram/module_settings.default.php'); @@ -61,13 +61,13 @@ - - - - + + + + -query("SELECT * FROM `".TABLE_PREFIX."mod_members` WHERE group_id = '1' ORDER BY m_sortt,m_name ASC"); -if($query_members->numRows() > 0) { - while($members = $query_members->fetchRow()) { - $isalias = 0 + (int)$members['m_isalias']; - $member_id = 0 + (int)$members['member_id']; - $countmembers++; - if ($isalias > 0) $countalias++; - - ?> - " onmouseover="this.style.backgroundColor = '#F1F8DD'" onmouseout="this.style.backgroundColor = '#ffffff'"> - - - - - - - - ' ; - //if ($countaliasofmembers > 0) {echo '';} +if($query_members->numRows() > 0) { + while($members = $query_members->fetchRow()) { + $isalias = 0 + (int)$members['m_isalias']; + $member_id = 0 + (int)$members['member_id']; + $countmembers++; + if ($isalias > 0) $countalias++; + + ?> + " onmouseover="this.style.backgroundColor = '#F1F8DD'" onmouseout="this.style.backgroundColor = '#ffffff'"> + + + + + + + + ' ; + //if ($countaliasofmembers > 0) {echo '';} } else { - echo ''; + echo ''; } ?>
  
  
- '; ?> - Modify - - - query("SELECT * FROM `".TABLE_PREFIX."mod_members` WHERE m_isalias = '$member_id'"); - $has_alias = $query_alias->numRows(); - if($has_alias > 0) { - echo ' ('.$has_alias.'*)'; - $countaliasofmembers += $has_alias; - } - } ?> - - '.$TEXT['ACTIVE'].': '; if($members['active'] == 1) { echo $TEXT['YES']; } else { echo $TEXT['NO']; } ?>
'.$countmembers.' '.$METEXT['ITEMS']; if ($countalias > 0) {echo ', '.$METEXT['PARTALIASES'].': '. $countalias; } if ($countaliasofmembers > 0) {echo ', (*)'. $METEXT['MEMWITHALIASES'].': '.$countaliasofmembers; } echo '
'.$METEXT['MEMBERS'].'hdgfhdgfhdfhfghdgfhfghgdfhdgfhfdghdfgh
+ '; ?> + Modify + + + query("SELECT * FROM `".TABLE_PREFIX."mod_members` WHERE m_isalias = '$member_id'"); + $has_alias = $query_alias->numRows(); + if($has_alias > 0) { + echo ' ('.$has_alias.'*)'; + $countaliasofmembers += $has_alias; + } + } ?> + + '.$TEXT['ACTIVE'].': '; if($members['active'] == 1) { echo $TEXT['YES']; } else { echo $TEXT['NO']; } ?>
'.$countmembers.' '.$METEXT['ITEMS']; if ($countalias > 0) {echo ', '.$METEXT['PARTALIASES'].': '. $countalias; } if ($countaliasofmembers > 0) {echo ', (*)'. $METEXT['MEMWITHALIASES'].': '.$countaliasofmembers; } echo '
'.$METEXT['MEMBERS'].'hdgfhdgfhdfhfghdgfhfghgdfhdgfhfdghdfgh
'.$TEXT['NONE_FOUND'].'
'.$TEXT['NONE_FOUND'].'
0) {echo '
'.$METEXT['INFODELETEMEMBER'].'
';} ?> - + - - - + +
- + 0) { - $m_selection = ''."\n"; - echo $m_selection ; - } else { - echo "no groups found" ; - }?> - + $m_selection = ''."\n"; + echo $m_selection ; + } else { + echo "no groups found" ; + }?> + - -
+ +
-print_footer(); diff --git a/frontend.css b/frontend.css new file mode 100644 index 0000000..dd6b0bd --- /dev/null +++ b/frontend.css @@ -0,0 +1,34 @@ +/* ------- module members ------- */ +/* ---------- Group ---------- */ +.members-head {text-align: left; border-bottom: 1px dotted #999999;margin-bottom:10px;} +.members-head h2 { font-weight:normal; } +.members-head p { margin:0 0 20px 0} + +/* ---------- Member ---------- */ +.members-member { + margin-bottom: 20px; + border-bottom: 1px dotted #999999; +} +.members-member td { + font-size: 1.0em; + text-align: left; +} +.members-member img {margin: 0; } + +.member-text {padding-left:8px;} +.member-name {margin:0;font-weight:normal;} +.member-score { + font-size: 1.3em; + margin:4px 0; + text-align: center; +} +.member-short1 {font-size: 1.0em; margin:4px 0;} +.member-long1 {font-size: 0.9em; margin:2px 0 6px 0;} + +.member-short2 {font-size: 0.9em; margin:6px 0 2px 0;} +.member-long2 {font-size: 0.8em; margin:2px 0;} + +.member-link {font-size: 1.0em; margin:4px 0;} +.member-page {font-size: 1.0em; margin:4px 0;} + +.members-showsortlink0 {display:none} \ No newline at end of file diff --git a/frontend.js b/frontend.js new file mode 100644 index 0000000..70522ef --- /dev/null +++ b/frontend.js @@ -0,0 +1,5 @@ +function showmembermail(n,d,t) { + var mail = n+'@'+d; + if (t=='') {t = mail;} + document.write(''+ t + ''); +} \ No newline at end of file diff --git a/ghost_member.php b/ghost_member.php old mode 100755 new mode 100644 diff --git a/help.php b/help.php old mode 100755 new mode 100644 index 9133f26..ee1de62 --- a/help.php +++ b/help.php @@ -83,7 +83,7 @@
- +
\ No newline at end of file diff --git a/img/Thumbs.db b/img/Thumbs.db old mode 100755 new mode 100644 index 05e14b6..be47756 Binary files a/img/Thumbs.db and b/img/Thumbs.db differ diff --git a/img/addalias.gif b/img/addalias.gif old mode 100755 new mode 100644 diff --git a/img/addgm.gif b/img/addgm.gif old mode 100755 new mode 100644 diff --git a/img/blind.gif b/img/blind.gif old mode 100755 new mode 100644 diff --git a/img/closebox.png b/img/closebox.png old mode 100755 new mode 100644 diff --git a/img/gactive0.gif b/img/gactive0.gif old mode 100755 new mode 100644 diff --git a/img/gactive1.gif b/img/gactive1.gif old mode 100755 new mode 100644 diff --git a/img/ghost.gif b/img/ghost.gif old mode 100755 new mode 100644 diff --git a/img/isalias.gif b/img/isalias.gif old mode 100755 new mode 100644 diff --git a/img/mactive00.gif b/img/mactive00.gif old mode 100755 new mode 100644 diff --git a/img/mactive01.gif b/img/mactive01.gif old mode 100755 new mode 100644 diff --git a/img/mactive10.gif b/img/mactive10.gif old mode 100755 new mode 100644 diff --git a/img/mactive11.gif b/img/mactive11.gif old mode 100755 new mode 100644 diff --git a/img/moda.gif b/img/moda.gif old mode 100755 new mode 100644 diff --git a/img/modg.gif b/img/modg.gif old mode 100755 new mode 100644 diff --git a/img/modm.gif b/img/modm.gif old mode 100755 new mode 100644 diff --git a/img/nopic.jpg b/img/nopic.jpg old mode 100755 new mode 100644 diff --git a/img/shadow/Thumbs.db b/img/shadow/Thumbs.db old mode 100755 new mode 100644 index 976c8cf..a00c24e Binary files a/img/shadow/Thumbs.db and b/img/shadow/Thumbs.db differ diff --git a/img/shadow/closebox.png b/img/shadow/closebox.png old mode 100755 new mode 100644 diff --git a/img/shadow/fancy_title_left.png b/img/shadow/fancy_title_left.png old mode 100755 new mode 100644 diff --git a/img/shadow/left.gif b/img/shadow/left.gif old mode 100755 new mode 100644 diff --git a/img/shadow/progress.png b/img/shadow/progress.png old mode 100755 new mode 100644 diff --git a/img/shadow/right.gif b/img/shadow/right.gif old mode 100755 new mode 100644 diff --git a/img/shadow/shadow_e.png b/img/shadow/shadow_e.png old mode 100755 new mode 100644 diff --git a/img/shadow/shadow_n.png b/img/shadow/shadow_n.png old mode 100755 new mode 100644 diff --git a/img/shadow/shadow_ne.png b/img/shadow/shadow_ne.png old mode 100755 new mode 100644 diff --git a/img/shadow/shadow_nw.png b/img/shadow/shadow_nw.png old mode 100755 new mode 100644 diff --git a/img/shadow/shadow_s.png b/img/shadow/shadow_s.png old mode 100755 new mode 100644 diff --git a/img/shadow/shadow_se.png b/img/shadow/shadow_se.png old mode 100755 new mode 100644 diff --git a/img/shadow/shadow_sw.png b/img/shadow/shadow_sw.png old mode 100755 new mode 100644 diff --git a/img/shadow/shadow_w.png b/img/shadow/shadow_w.png old mode 100755 new mode 100644 diff --git a/img/shadow/title_main.png b/img/shadow/title_main.png old mode 100755 new mode 100644 diff --git a/img/shadow/title_right.png b/img/shadow/title_right.png old mode 100755 new mode 100644 diff --git a/img/top_ghosts.gif b/img/top_ghosts.gif old mode 100755 new mode 100644 diff --git a/img/top_help.gif b/img/top_help.gif old mode 100755 new mode 100644 diff --git a/img/top_new.gif b/img/top_new.gif old mode 100755 new mode 100644 diff --git a/img/top_options.gif b/img/top_options.gif old mode 100755 new mode 100644 diff --git a/img/top_sort1.gif b/img/top_sort1.gif old mode 100755 new mode 100644 diff --git a/img/top_sort2.gif b/img/top_sort2.gif old mode 100755 new mode 100644 diff --git a/index.php b/index.php old mode 100755 new mode 100644 diff --git a/info.php b/info.php old mode 100755 new mode 100644 index d9f90c9..1b1efea --- a/info.php +++ b/info.php @@ -1,33 +1,33 @@ - - Copyright (C) 2004-2007, Ryan Djurovich - - Website Baker is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - Website Baker is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Website Baker; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - -$module_directory = 'members'; -$module_name = 'Members'; -$module_function = 'page'; -$module_version = '0.8.3'; -$module_platform = '2.7.x'; -$module_author = 'Chio:www.websitbaker.at, RuudE'; -$module_license = 'GNU General Public License'; -$module_description = 'A flexible module for listing and sorting anything. Supports aliases of items and caching of groups'; - + + Copyright (C) 2004-2007, Ryan Djurovich + + Website Baker is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + Website Baker is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Website Baker; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ + +$module_directory = 'members'; +$module_name = 'Members 0.8.7'; +$module_function = 'page'; +$module_version = '0.8.7'; +$module_platform = '2.7.x'; +$module_author = 'Chio:www.websitbaker.at, RuudE'; +$module_license = 'GNU General Public License'; +$module_description = 'A flexible module for listing and sorting anything. Supports aliases of items and caching of groups'; + ?> \ No newline at end of file diff --git a/install.php b/install.php old mode 100755 new mode 100644 index 0dca292..e2b54fc --- a/install.php +++ b/install.php @@ -43,7 +43,11 @@ . 'PRIMARY KEY (member_id)' . ' )'; $database->query($mod_members); - + + if($database->is_error()) { + $admin->print_error("mod_members - ".$database->get_error()); + } + $database->query("DROP TABLE IF EXISTS `".TABLE_PREFIX."mod_members_groups`"); $mod_members = 'CREATE TABLE `'.TABLE_PREFIX.'mod_members_groups` ( ' . '`group_id` INT NOT NULL AUTO_INCREMENT,' @@ -51,16 +55,18 @@ . '`page_id` INT NOT NULL DEFAULT \'0\',' . '`position` INT NOT NULL DEFAULT \'0\',' . '`active` INT NOT NULL DEFAULT \'0\',' - - . '`group_name` VARCHAR(255) NOT NULL DEFAULT \'\',' - . '`group_desc` TEXT NOT NULL DEFAULT \'\',' - - . '`group_cache` TEXT NOT NULL DEFAULT \'\',' - . '`group_search` TEXT NOT NULL DEFAULT \'\',' + . '`group_name` VARCHAR(255) NOT NULL DEFAULT \'\',' + . '`group_desc` TEXT NOT NULL ,' + . '`group_cache` TEXT NOT NULL,' + . '`group_search` TEXT NOT NULL,' . 'PRIMARY KEY (group_id)' . ' )'; $database->query($mod_members); + if($database->is_error()) { + $admin->print_error("mod_members_settings - ".$database->get_error()); + } + $database->query("DROP TABLE IF EXISTS `".TABLE_PREFIX."mod_members_settings`"); $mod_members = 'CREATE TABLE `'.TABLE_PREFIX.'mod_members_settings` ( ' . '`section_id` INT NOT NULL DEFAULT \'0\',' @@ -71,10 +77,8 @@ . '`t_short2` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`t_long1` VARCHAR(255) NOT NULL DEFAULT \'\',' . '`t_long2` VARCHAR(255) NOT NULL DEFAULT \'\',' - . '`header` TEXT NOT NULL,' . '`footer` TEXT NOT NULL,' - . '`grp_head` TEXT NOT NULL,' . '`grp_foot` TEXT NOT NULL,' . '`member_loop` TEXT NOT NULL,' @@ -91,7 +95,9 @@ . ' )'; $database->query($mod_members); - + if($database->is_error()) { + $admin->print_error("mod_members_settings - ".$database->get_error()); + } // Insert blank rows (there needs to be at least on row for the search to work) diff --git a/kram/add_settings.default.php b/kram/add_settings.default.php old mode 100755 new mode 100644 diff --git a/kram/frontend.default.css b/kram/frontend.default.css old mode 100755 new mode 100644 diff --git a/kram/frontend.default.js b/kram/frontend.default.js old mode 100755 new mode 100644 diff --git a/kram/functions.inc.php b/kram/functions.inc.php old mode 100755 new mode 100644 diff --git a/kram/getmemberpagelink.php b/kram/getmemberpagelink.php old mode 100755 new mode 100644 diff --git a/kram/getsettings.php b/kram/getsettings.php old mode 100755 new mode 100644 diff --git a/kram/memberlist.inc-t.php b/kram/memberlist.inc-t.php old mode 100755 new mode 100644 diff --git a/kram/memberlist.inc.php b/kram/memberlist.inc.php old mode 100755 new mode 100644 diff --git a/kram/module_settings.default.php b/kram/module_settings.default.php old mode 100755 new mode 100644 diff --git a/kram/reorderDND.php b/kram/reorderDND.php old mode 100755 new mode 100644 diff --git a/kram/tidy_up.inc.php b/kram/tidy_up.inc.php old mode 100755 new mode 100644 diff --git a/languages/DE.php b/languages/DE.php old mode 100755 new mode 100644 diff --git a/languages/EN.php b/languages/EN.php old mode 100755 new mode 100644 diff --git a/languages/NL.php b/languages/NL.php old mode 100755 new mode 100644 diff --git a/languages/help-DE.php b/languages/help-DE.php old mode 100755 new mode 100644 index f22eb71..0d8ba6f --- a/languages/help-DE.php +++ b/languages/help-DE.php @@ -21,7 +21,7 @@ */ -// Help file in German +// Help file in German... ?>


Hilfe für das "Members"- Module

@@ -157,7 +157,7 @@ [LINK]
  -

Externer Link oder eMail-Adresse, vom Fall abhängig:
+

Externer Link oder eMail-Adresse, vom Fall abhängig:
Eingabe: http://www.fremdedomain.de Linktext ODER mail@mail.de Linktext
Ausgabe: <a href="http://www.fremdedomain.de/">Linktext<a/>
ODER <a ref=mailto:"mail@mail.de">Linktext</a>
@@ -411,4 +411,4 @@ Die Variablen und Einstellungen sind dort beschrieben.
Die meisten der Variablen haben selbsterklärende Namen.

-

Weiteres dazu hier

+ diff --git a/languages/help-EN.php b/languages/help-EN.php old mode 100755 new mode 100644 diff --git a/languages/help-NL.php b/languages/help-NL.php old mode 100755 new mode 100644 diff --git a/modify.php b/modify.php old mode 100755 new mode 100644 index 878e03f..f139acd --- a/modify.php +++ b/modify.php @@ -33,11 +33,11 @@ // Load Language file if(LANGUAGE_LOADED) { - if(!file_exists(WB_PATH.'/modules/members/languages/'.LANGUAGE.'.php')) { - require_once(WB_PATH.'/modules/members/languages/EN.php'); - } else { - require_once(WB_PATH.'/modules/members/languages/'.LANGUAGE.'.php'); - } + if(!file_exists(WB_PATH.'/modules/members/languages/'.LANGUAGE.'.php')) { + require_once(WB_PATH.'/modules/members/languages/EN.php'); + } else { + require_once(WB_PATH.'/modules/members/languages/'.LANGUAGE.'.php'); + } } if (!defined('THEME_URL')) define ("THEME_URL", ADMIN_URL); @@ -57,7 +57,7 @@ $settings_fetch = $query_settings->fetchRow(); $sort_grp_name = $settings_fetch['sort_grp_name']; if ($sort_grp_name == 1) {$sort_grp_by = "group_name";} else {$sort_grp_by = "position";} - + $sort_mem_name = $settings_fetch['sort_mem_name']; $sort_mem_desc = $settings_fetch['sort_mem_desc']; @@ -91,8 +91,8 @@ 0 AND $admin->get_group_id() != 1 ) {} else { echo ''. $TEXT['SETTINGS']. '' ;}?> 0) {echo ''. $METEXT['MANAGEGHOSTS'].''; } ?> '. $METEXT['SORT'].''; } ?> - '. $MENU['HELP']; ?> - + '. $MENU['HELP']; ?> +
@@ -102,80 +102,76 @@ query("SELECT * FROM `".TABLE_PREFIX."mod_members_groups` WHERE section_id = '$section_id' ORDER BY ".$sort_grp_by." ASC"); $countquery_groups = $query_groups->numRows(); if($countquery_groups > 0) { $countgroups = 0; - while($group_fetch = $query_groups->fetchRow()) { - $group_id = $group_fetch['group_id']; - $group_active = $group_fetch['active']; - $countgroups++; - - ?> - - - - - - - - - - - query("SELECT * FROM `".TABLE_PREFIX."mod_members` WHERE group_id = '$group_id' ORDER BY ".$sort_by); - - $countquery_members = $query_members->numRows(); - if($countquery_members > 0) { - $countmembers = 0; - $countalias = 0; - $countaliasofmembers = 0; - include('kram/memberlist.inc.php'); - //echo '' ; - - } - echo ''; - //---------------------------------- - - - - + while($group_fetch = $query_groups->fetchRow()) { + $group_id = $group_fetch['group_id']; + $group_active = $group_fetch['active']; + $countgroups++; + + ?> + + + + + + + + + + + query("SELECT * FROM `".TABLE_PREFIX."mod_members` WHERE group_id = '$group_id' ORDER BY ".$sort_by); + + $countquery_members = $query_members->numRows(); + if($countquery_members > 0) { + $countmembers = 0; + $countalias = 0; + $countaliasofmembers = 0; + include('kram/memberlist.inc.php'); + //echo '' ; + + } + echo ''; + //---------------------------------- + + + + } ?> - +
- Modify Group - Add Member - '.$group_fetch['group_name']; ?> - 1 AND $sort_grp_name != 1) {echo '^';} else {echo " ";}?> - - v';} else {echo " ";}?> - - - X - -
'.$countmembers.'/'.$countquery_members.' '.$METEXT['ITEMS']; if ($countalias > 0) {echo ', '.$METEXT['PARTALIASES'].': '. $countalias; } if ($countaliasofmembers > 0) {echo ', (*)'. $METEXT['MEMWITHALIASES'].': '.$countaliasofmembers; } echo '
'.$TEXT['ADD'].' '.$METEXT['MEMBER'].'
+ Modify Group + Add Member + '.$group_fetch['group_name']; ?> + 1 AND $sort_grp_name != 1) {echo '^';} else {echo " ";}?> + + v';} else {echo " ";}?> + + + X + +
'.$countmembers.'/'.$countquery_members.' '.$METEXT['ITEMS']; if ($countalias > 0) {echo ', '.$METEXT['PARTALIASES'].': '. $countalias; } if ($countaliasofmembers > 0) {echo ', (*)'. $METEXT['MEMWITHALIASES'].': '.$countaliasofmembers; } echo '
'.$TEXT['ADD'].' '.$METEXT['MEMBER'].'
- '.$TEXT['ADD'].' '.$METEXT['GROUP'].''; + echo ''.$TEXT['ADD'].' '.$METEXT['GROUP'].''; } //echo '
sort_by: '.$sort_by.'
'; css_edit(); echo '
'; ?> - + - diff --git a/modify_group.php b/modify_group.php old mode 100755 new mode 100644 index a87b22c..4ba9735 --- a/modify_group.php +++ b/modify_group.php @@ -128,14 +128,14 @@ function show_wysiwyg_editor($name,$id,$content,$width,$height) { - - + + + echo $back_url; ?>';" style="width: 100px; margin-top: 5px;" class="btn w3-blue-wb w3-hover-green w3-round-small" /> diff --git a/modify_member.php b/modify_member.php old mode 100755 new mode 100644 index de8075e..b93489c --- a/modify_member.php +++ b/modify_member.php @@ -47,11 +47,11 @@ // Load Language file if(LANGUAGE_LOADED) { - if(!file_exists(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php')) { - require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/EN.php'); - } else { - require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php'); - } + if(!file_exists(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php')) { + require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/EN.php'); + } else { + require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php'); + } } @@ -71,51 +71,51 @@ if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) { - function show_wysiwyg_editor($name,$id,$content,$width,$height) { - echo ''; - } + function show_wysiwyg_editor($name,$id,$content,$width,$height) { + echo ''; + } } else { - $id_list=array("m_long1","m_long2"); - require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php'); + $id_list=array("m_long1","m_long2"); + require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php'); } -$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members WHERE member_id = '$member_id'"); +$query_content = $database->query("SELECT * FROM `".TABLE_PREFIX."mod_members` WHERE `member_id` = '$member_id'"); $fetch_content = $query_content->fetchRow(); $isalias = (int)$fetch_content['m_isalias']; $group_id = (int)$fetch_content['group_id']; $from = 0; -if(isset($_GET['from']) AND is_numeric($_GET['from'])) { $from = (int) $_GET['from']; } +if(isset($_GET['from']) AND is_numeric($_GET['from'])) { $from = (int) $_GET['from']; } //the Group Selection box: $m_selection = ''; @@ -123,21 +123,21 @@ function show_wysiwyg_editor($name,$id,$content,$width,$height) { $query_settings = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members_settings WHERE section_id = '$section_id'"); if($query_settings->numRows() > 0) { - $settings_fetch = $query_settings->fetchRow(); - $pic_loc = $settings_fetch['pic_loc']; - - $listextensions = $settings_fetch['extensions']; - if (''.$listextensions=='') { - $listextensions = ".gif|.GIF|.jpg|.JPG|.png|.PNG|.jpeg|.JPEG"; - } else { - $learray = explode(' ', $listextensions); - $listextensions = ''; - foreach ($learray as $ext) { - $listextensions .= '|.'.$ext.'|.'.strtoupper($ext); - } - $listextensions = substr($listextensions, 1, strlen($listextensions)); - } - $sort_mem_name = $settings_fetch['sort_mem_name']; + $settings_fetch = $query_settings->fetchRow(); + $pic_loc = $settings_fetch['pic_loc']; + + $listextensions = $settings_fetch['extensions']; + if (''.$listextensions=='') { + $listextensions = ".gif|.GIF|.jpg|.JPG|.png|.PNG|.jpeg|.JPEG"; + } else { + $learray = explode(' ', $listextensions); + $listextensions = ''; + foreach ($learray as $ext) { + $listextensions .= '|.'.$ext.'|.'.strtoupper($ext); + } + $listextensions = substr($listextensions, 1, strlen($listextensions)); + } + $sort_mem_name = $settings_fetch['sort_mem_name']; } //Field usage default: @@ -147,14 +147,14 @@ function show_wysiwyg_editor($name,$id,$content,$width,$height) { if ($html_allowed > 2) {$longusage1 = 2; $longusage2 = 2;} if(!isset($settings_fetch['various_values'])){ - $database->query("ALTER TABLE `".TABLE_PREFIX."mod_members_settings` ADD `various_values` VARCHAR(255) NOT NULL DEFAULT ''"); - echo '

Database Field "various_values" added

'; + $database->query("ALTER TABLE `".TABLE_PREFIX."mod_members_settings` ADD `various_values` VARCHAR(255) NOT NULL DEFAULT ''"); + echo '

Database Field "various_values" added

'; } else { - if ($settings_fetch['various_values'] != '') { - $vv = explode(',',$settings_fetch['various_values']); - $longusage1 = (int) $vv[0]; - $longusage2 = (int) $vv[1]; - } + if ($settings_fetch['various_values'] != '') { + $vv = explode(',',$settings_fetch['various_values']); + $longusage1 = (int) $vv[0]; + $longusage2 = (int) $vv[1]; + } } @@ -163,255 +163,255 @@ function show_wysiwyg_editor($name,$id,$content,$width,$height) {
- - - - - - - - - - - - - + + - +
-
:
- -
- - 0) { - //m_sortt: Sort by Text - echo '
'.$METEXT['M_SORT_T'].'
'; - echo '
- '.$METEXT['SORTERHELP'].'
'; - } else { - echo ''; - } - //Both Members and Alias can have a own score: - if ($sort_mem_name == 3) { - echo '
'.$METEXT['M_SORT_V'].'
'; - echo '
'; - } else { - echo ''; - } - - - - //------------------------------------------------------------- - // the picture: - - if ($pic_loc <> "") { - - if ($isalias > 0) { - //is an alias: - $query = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members WHERE member_id = '".$isalias."'"); - if($query->numRows() <> 1) { - //Maybe delete alias here and then die?? - die("Error: No such member"); - } - $aliasof = $query->fetchRow(); - $picfile = $aliasof['m_picture']; - if ($picfile == "" OR $pic_loc == "") { $previewpic = WB_URL . '/modules/'.$mod_dir.'/img/nopic.jpg'; } else { $previewpic = WB_URL.''.MEDIA_DIRECTORY.''.$pic_loc.'/'.$picfile; } - if ( strpos($picfile, '//') !== false) {$previewpic = $picfile;} - echo ''; - } else { - //is NO alias, get picture selection: - echo $TEXT['IMAGE'].":"; - // this piece of code scans the given directory and creates the selector - - if ($pic_loc == "") { $file_dir = "";} else { $file_dir= WB_PATH.'/'.MEDIA_DIRECTORY.'/'.$pic_loc; } - $picfile = $fetch_content['m_picture']; - if ($picfile == "" OR $pic_loc == "") { $previewpic = WB_URL.'/modules/'.$mod_dir.'/img/nopic.jpg'; } else { $previewpic = WB_URL.''.MEDIA_DIRECTORY.''.$pic_loc.'/'.$picfile; } - - if ($show_picture == 2) { //Options - $check_pic_dir=is_dir("$file_dir"); - if ($check_pic_dir=='1') { - $pic_dir=opendir($file_dir); - - echo '\n"; - } else { - echo $METEXT['DIRECTORY'].$pic_loc.$METEXT['NOT_EXIST']; - } - } - - if ($show_picture == 1) { //AJAX - - echo ''; - //echo '
'; - echo '

'.$METEXT['OPENPICTABLE'].'

'; - } - - - if ( strpos($picfile, '//') !== false) {$previewpic = $picfile;} - echo ''; - - } //end is NO Alias - } // end if ($pic_loc <> "") - - ?> - -
- - '; - $the_divend = '" style="width: 99%;" maxlength="255" />'."\n"; - - if ($isalias > 0) { - //________________________________________________ - //Is Alias: - echo ''; - - echo '

'.$METEXT['IS_ALIAS_OF'].'

'; - echo $the_div.$aliasof['m_name'].''; - - - foreach ($memberfieldorderarray as $posfieldname) { - - if ($posfieldname=='short1') { - $m_short1 = stripslashes($aliasof['m_short1']); - if ($m_short1 <> "") {echo $the_div.stripslashes($settings_fetch['t_short1']).':
'.stripslashes($aliasof['m_short1']).'';} - } - if ($posfieldname=='long1') { - $m_long1 = stripslashes($aliasof['m_long1']); - if ($m_long1 <> "") {echo $the_div.stripslashes($settings_fetch['t_long1']).':
'.stripslashes($aliasof['m_long1']).'';} - } - if ($posfieldname=='short2') { - $m_short2 = stripslashes($aliasof['m_short2']); - if ($m_short2 <> "") {echo $the_div.stripslashes($settings_fetch['t_short2']).':
'.stripslashes($aliasof['m_short2']).'';} - } - if ($posfieldname=='long2') { - $m_long2 = stripslashes($aliasof['m_long2']); - if ($m_long2 <> "") {echo $the_div.stripslashes($settings_fetch['t_long2']).':
'.stripslashes($aliasof['m_long2']).'';} - } - if ($posfieldname=='memberpage_id') { - $m_memberpage_id = stripslashes($aliasof['m_memberpage_id']); - if ($m_memberpage_id > 0 ) {echo $the_div.stripslashes($settings_fetch['t_memberpage_id']).': '.stripslashes($aliasof['m_memberpage_id']).'';} - } - if ($posfieldname=='link') { - $m_link = stripslashes($aliasof['m_link']); - if ($m_link <> "") {echo $the_div.stripslashes($settings_fetch['t_link']).': '.stripslashes($aliasof['m_link']).'';} - } - } - - } else { - //________________________________________________ - //is NO alias: - - $html_spch = 0; - echo $the_div.$TEXT['NAME'].'
 

'; - } else { // use a simple area: - echo $the_div.stripslashes($settings_fetch['t_long1']).':
'; - } - } - } - if ($posfieldname=='short2') { - if ($settings_fetch['t_short2'] <> '') { - echo $the_div.stripslashes($settings_fetch['t_short2']).':
 

'; - } else { // use a simple area: - echo $the_div.stripslashes($settings_fetch['t_long2']).':
'; - } - } - } - if ($posfieldname=='link') { - if ($settings_fetch['t_link'] <> '') { echo $the_div.stripslashes($settings_fetch['t_link']).':
numRows() == 1) { - $fetch_pages = $query_pages->fetchRow(); - $thememp = '(found: '.$fetch_pages['link'].PAGE_EXTENSION.')'; - } else { - $thememp = 'page_id '.$memp.' not found'; - } - } - echo "\n".$the_div.stripslashes($settings_fetch['t_memberpage_id']).': '.$thememp.''."\n"; - } - } - } //end foreach - //echo '

'; if ($html_allowed != 1) {echo $METEXT['HTMLNOTALLOWED']; } else {echo $METEXT['HTMLALLOWED']; } echo '

'; - } //end is NO alias - - // Members AND Alias: - echo '
'.$TEXT['ACTIVE']; ?>:
- /> -   - /> - -
- - "") { echo ' - - - + + + + + + + + + + +
+
:
+ +
+ + 0) { + //m_sortt: Sort by Text + echo '
'.$METEXT['M_SORT_T'].'
'; + echo '
+ '.$METEXT['SORTERHELP'].'
'; + } else { + echo ''; + } + //Both Members and Alias can have a own score: + if ($sort_mem_name == 3) { + echo '
'.$METEXT['M_SORT_V'].'
'; + echo '
'; + } else { + echo ''; + } + + + + //------------------------------------------------------------- + // the picture: + + if ($pic_loc <> "") { + + if ($isalias > 0) { + //is an alias: + $query = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members WHERE member_id = '".$isalias."'"); + if($query->numRows() <> 1) { + //Maybe delete alias here and then die?? + die("Error: No such member"); + } + $aliasof = $query->fetchRow(); + $picfile = $aliasof['m_picture']; + if ($picfile == "" OR $pic_loc == "") { $previewpic = WB_URL . '/modules/'.$mod_dir.'/img/nopic.jpg'; } else { $previewpic = WB_URL.''.MEDIA_DIRECTORY.''.$pic_loc.'/'.$picfile; } + if ( strpos($picfile, '//') !== false) {$previewpic = $picfile;} + echo ''; + } else { + //is NO alias, get picture selection: + echo $TEXT['IMAGE'].":"; + // this piece of code scans the given directory and creates the selector + + if ($pic_loc == "") { $file_dir = "";} else { $file_dir= WB_PATH.'/'.MEDIA_DIRECTORY.'/'.$pic_loc; } + $picfile = $fetch_content['m_picture']; + if ($picfile == "" OR $pic_loc == "") { $previewpic = WB_URL.'/modules/'.$mod_dir.'/img/nopic.jpg'; } else { $previewpic = WB_URL.''.MEDIA_DIRECTORY.''.$pic_loc.'/'.$picfile; } + + if ($show_picture == 2) { //Options + $check_pic_dir=is_dir("$file_dir"); + if ($check_pic_dir=='1') { + $pic_dir=opendir($file_dir); + + echo '\n"; + } else { + echo $METEXT['DIRECTORY'].$pic_loc.$METEXT['NOT_EXIST']; + } + } + + if ($show_picture == 1) { //AJAX + + echo ''; + //echo '
'; + echo '

'.$METEXT['OPENPICTABLE'].'

'; + } + + + if ( strpos($picfile, '//') !== false) {$previewpic = $picfile;} + echo ''; + + } //end is NO Alias + } // end if ($pic_loc <> "") + + ?> + +
+ + '; + $the_divend = '" style="width: 99%;" maxlength="255" />'."\n"; + + if ($isalias > 0) { + //________________________________________________ + //Is Alias: + echo ''; + + echo '

'.$METEXT['IS_ALIAS_OF'].'

'; + echo $the_div.$aliasof['m_name'].''; + + + foreach ($memberfieldorderarray as $posfieldname) { + + if ($posfieldname=='short1') { + $m_short1 = stripslashes($aliasof['m_short1']); + if ($m_short1 <> "") {echo $the_div.stripslashes($settings_fetch['t_short1']).':
'.stripslashes($aliasof['m_short1']).'';} + } + if ($posfieldname=='long1') { + $m_long1 = stripslashes($aliasof['m_long1']); + if ($m_long1 <> "") {echo $the_div.stripslashes($settings_fetch['t_long1']).':
'.stripslashes($aliasof['m_long1']).'';} + } + if ($posfieldname=='short2') { + $m_short2 = stripslashes($aliasof['m_short2']); + if ($m_short2 <> "") {echo $the_div.stripslashes($settings_fetch['t_short2']).':
'.stripslashes($aliasof['m_short2']).'';} + } + if ($posfieldname=='long2') { + $m_long2 = stripslashes($aliasof['m_long2']); + if ($m_long2 <> "") {echo $the_div.stripslashes($settings_fetch['t_long2']).':
'.stripslashes($aliasof['m_long2']).'';} + } + if ($posfieldname=='memberpage_id') { + $m_memberpage_id = stripslashes($aliasof['m_memberpage_id']); + if ($m_memberpage_id > 0 ) {echo $the_div.stripslashes($settings_fetch['t_memberpage_id']).': '.stripslashes($aliasof['m_memberpage_id']).'';} + } + if ($posfieldname=='link') { + $m_link = stripslashes($aliasof['m_link']); + if ($m_link <> "") {echo $the_div.stripslashes($settings_fetch['t_link']).': '.stripslashes($aliasof['m_link']).'';} + } + } + + } else { + //________________________________________________ + //is NO alias: + + $html_spch = 0; + echo $the_div.$TEXT['NAME'].'
 

'; + } else { // use a simple area: + echo $the_div.stripslashes($settings_fetch['t_long1']).':
'; + } + } + } + if ($posfieldname=='short2') { + if ($settings_fetch['t_short2'] <> '') { + echo $the_div.stripslashes($settings_fetch['t_short2']).':
 

'; + } else { // use a simple area: + echo $the_div.stripslashes($settings_fetch['t_long2']).':
'; + } + } + } + if ($posfieldname=='link') { + if ($settings_fetch['t_link'] <> '') { echo $the_div.stripslashes($settings_fetch['t_link']).':
numRows() == 1) { + $fetch_pages = $query_pages->fetchRow(); + $thememp = '(found: '.$fetch_pages['link'].PAGE_EXTENSION.')'; + } else { + $thememp = 'page_id '.$memp.' not found'; + } + } + echo "\n".$the_div.stripslashes($settings_fetch['t_memberpage_id']).': '.$thememp.''."\n"; + } + } + } //end foreach + //echo '

'; if ($html_allowed != 1) {echo $METEXT['HTMLNOTALLOWED']; } else {echo $METEXT['HTMLALLOWED']; } echo '

'; + } //end is NO alias + + // Members AND Alias: + echo '
'.$TEXT['ACTIVE']; ?>:
+ /> +   + /> + +
+ + "") { echo ' + + + - - - - - + + + + +
- - - - - - - -
+ + + + + + + +
@@ -423,13 +423,13 @@ function show_wysiwyg_editor($name,$id,$content,$width,$height) { - + is_authenticated() && $admin->get_permission('member', 'module'))) { - die("Sorry, no access!"); + die("Sorry, no access!"); } else { - $mod_dir = basename(dirname(__FILE__)); - // Load Language file - if(LANGUAGE_LOADED) { - if(!file_exists(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php')) { - require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/EN.php'); - } else { - require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php'); - } - } - - - require_once(WB_PATH.'/modules/'.$mod_dir.'/kram/module_settings.default.php'); - require_once(WB_PATH.'/modules/'.$mod_dir.'/module_settings.php'); - - // Get Settings - $query_settings = $database->query("SELECT pic_loc,extensions FROM ".TABLE_PREFIX."mod_members_settings WHERE section_id = '$section_id'"); - $fetch_settings = $query_settings->fetchRow(); - $picture_dir = MEDIA_DIRECTORY.$fetch_settings['pic_loc']; - echo ' + $mod_dir = basename(dirname(__FILE__)); + // Load Language file + if(LANGUAGE_LOADED) { + if(!file_exists(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php')) { + require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/EN.php'); + } else { + require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php'); + } + } + + + require_once(WB_PATH.'/modules/'.$mod_dir.'/kram/module_settings.default.php'); + require_once(WB_PATH.'/modules/'.$mod_dir.'/module_settings.php'); + + // Get Settings + $query_settings = $database->query("SELECT pic_loc,extensions FROM ".TABLE_PREFIX."mod_members_settings WHERE section_id = '$section_id'"); + $fetch_settings = $query_settings->fetchRow(); + $picture_dir = MEDIA_DIRECTORY.$fetch_settings['pic_loc']; + echo '
close
 
+ + if ($picture_dir != '') { + + $file_dir= WB_PATH.''.$picture_dir; + + $check_pic_dir=is_dir("$file_dir"); + $allpreviews = ''; + if ($check_pic_dir=='1') { + $pic_dir=opendir($file_dir); + $picextensions = ".gif|.GIF|.jpg|.JPG|.png|.PNG|.jpeg|.JPEG"; + + $listextensions = $fetch_settings['extensions']; + if (''.$listextensions=='') { + $listextensions = ".gif|.GIF|.jpg|.JPG|.png|.PNG|.jpeg|.JPEG"; + } else { + $learray = explode(' ', $listextensions); + $listextensions = ''; + foreach ($learray as $ext) { + $listextensions .= '|.'.$ext.'|.'.strtoupper($ext); + } + $listextensions = substr($listextensions, 1, strlen($listextensions)); + } + + + + while ($file=readdir($pic_dir)) { + if ($file != "." && $file != "..") { + if (preg_match('#'.$listextensions.'#',$file)) { + if (preg_match('#'.$picextensions.'#',$file)) { + $thepreview = '
'; + } else { + $showfile = str_replace('-',' ',$file); + $showfile = str_replace('_',' ',$showfile); + $thepreview = ''; + } + $allpreviews = $thepreview.$allpreviews; + } + } + } + echo $allpreviews; + } else { + echo $METEXT['DIRECTORY'].$picture_dir.$METEXT['NOT_EXIST']; + } + + } else { + echo $METEXT['DIRECTORY'].$picture_dir.$METEXT['NOT_EXIST']; + } + + echo '
close
 
'; - - if ($picture_dir != '') { - - $file_dir= WB_PATH.''.$picture_dir; - - $check_pic_dir=is_dir("$file_dir"); - $allpreviews = ''; - if ($check_pic_dir=='1') { - $pic_dir=opendir($file_dir); - $picextensions = ".gif|.GIF|.jpg|.JPG|.png|.PNG|.jpeg|.JPEG"; - - $listextensions = $fetch_settings['extensions']; - if (''.$listextensions=='') { - $listextensions = ".gif|.GIF|.jpg|.JPG|.png|.PNG|.jpeg|.JPEG"; - } else { - $learray = explode(' ', $listextensions); - $listextensions = ''; - foreach ($learray as $ext) { - $listextensions .= '|.'.$ext.'|.'.strtoupper($ext); - } - $listextensions = substr($listextensions, 1, strlen($listextensions)); - } - - - - while ($file=readdir($pic_dir)) { - if ($file != "." && $file != "..") { - if (ereg($listextensions,$file)) { - if (ereg($picextensions,$file)) { - $thepreview = '
'; - } else { - $showfile = str_replace('-',' ',$file); - $showfile = str_replace('_',' ',$showfile); - $thepreview = ''; - } - $allpreviews = $thepreview.$allpreviews; - } - } - } - echo $allpreviews; - } else { - echo $METEXT['DIRECTORY'].$picture_dir.$METEXT['NOT_EXIST']; - } - - } else { - echo $METEXT['DIRECTORY'].$picture_dir.$METEXT['NOT_EXIST']; - } - - echo '
 
 
'; - -} + +} ?> \ No newline at end of file diff --git a/modify_settings.php b/modify_settings.php old mode 100755 new mode 100644 index 28e2504..d8a0bf3 --- a/modify_settings.php +++ b/modify_settings.php @@ -49,68 +49,69 @@ if ($use_presets) { echo 'Presets'; } if ($use_getfrom || $use_presets) echo "
"; -if ($use_getfrom) { - echo ''; - echo ' - '; - +if ($use_getfrom) { + echo ''; + echo ' + '; + } -if ($use_presets) { - //get presets - $thelanguage = strtolower(LANGUAGE); - if (!is_dir(WB_PATH.'/modules/'.$mod_dir.'/presets-'.$thelanguage)) { $thelanguage = 'en';} - $presets_files = WB_PATH.'/modules/'.$mod_dir.'/presets-'.$thelanguage; - echo ''; +if ($use_presets) { + //get presets + $thelanguage = strtolower(LANGUAGE); + if (!is_dir(WB_PATH.'/modules/'.$mod_dir.'/presets-'.$thelanguage)) { $thelanguage = 'en';} + $presets_files = WB_PATH.'/modules/'.$mod_dir.'/presets-'.$thelanguage; + echo ''; - echo ' + echo ''; - - - } + + $presets_dir = opendir($presets_files); + while ($file=readdir($presets_dir)) { + if ($file != "." && $file != "..") { + $fileextensions = ".js"; + if (preg_match('#'.$fileextensions.'#',$file)) { + $filename = substr($file, 0, -3); + if ($filename == "default") continue; + echo ''; + } + } + } + echo ' +
NOTE: the presets-option will change the setting. If you dont want to keep the changes, do NOT save!
'; + + + } echo '
'; $query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members_settings WHERE section_id = '$section_id'"); -$fetch_content = $query_content->fetchRow(); +$fetch_content = $query_content->fetchRow(); //Default: $longusage1 = 0; $longusage2 = 0; @@ -119,14 +120,14 @@ if ($html_allowed > 2) {$longusage1 = 2; $longusage2 = 2;} if(!isset($fetch_content['various_values'])){ - $database->query("ALTER TABLE `".TABLE_PREFIX."mod_members_settings` ADD `various_values` VARCHAR(255) NOT NULL DEFAULT ''"); - echo '

Database Field "various_values" added

'; + $database->query("ALTER TABLE `".TABLE_PREFIX."mod_members_settings` ADD `various_values` VARCHAR(255) NOT NULL DEFAULT ''"); + echo '

Database Field "various_values" added

'; } else { - if ($fetch_content['various_values'] != '') { - $vv = explode(',',$fetch_content['various_values']); - $longusage1 = (int) $vv[0]; - $longusage2 = (int) $vv[1]; - } + if ($fetch_content['various_values'] != '') { + $vv = explode(',',$fetch_content['various_values']); + $longusage1 = (int) $vv[0]; + $longusage2 = (int) $vv[1]; + } } @@ -135,94 +136,94 @@
- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
: - - -
: - -
: - - - -
: - - - -
: - - - -
: - - - -
: - - - -
: + + +
: + +
: + + + +
: + + + +
: + + + +
: + + + +
: + + + +
@@ -240,14 +241,14 @@
:
- -
:
+ +
Memberpage ID
@@ -262,13 +263,13 @@
:
- -
:
+ +
Link/Mail
@@ -277,86 +278,86 @@
-
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
: 20) {$thefieldcontentlines = 20;} - echo ' -
: 20) {$thefieldcontentlines = 20;} - echo ' -

-
20) {$thefieldcontentlines = 20;} - echo ' -
 
-
20) {$thefieldcontentlines = 20;} - echo ' -
 
20) {$thefieldcontentlines = 20;} - echo ' -

: 20) {$thefieldcontentlines = 20;} + echo ' +
: 20) {$thefieldcontentlines = 20;} + echo ' +

+
20) {$thefieldcontentlines = 20;} + echo ' +
 
+
20) {$thefieldcontentlines = 20;} + echo ' +
 
20) {$thefieldcontentlines = 20;} + echo ' +

- - - - - -
- - - - - -
+ + + + + +
+ + + + + +
Open presets file

'; } +if ($use_presets == true) { echo '

Open presets file

'; } echo "\n\n \n\n"; // Print admin footer $admin->print_footer(); diff --git a/modify_sort.php b/modify_sort.php old mode 100755 new mode 100644 diff --git a/module_settings.php b/module_settings.php new file mode 100644 index 0000000..756f24e --- /dev/null +++ b/module_settings.php @@ -0,0 +1,38 @@ + + + $previewpic_wha = 'width="150" alt="preview"'; //attribute of the preview pic (modify-member) + +?> diff --git a/move_down.php b/move_down.php old mode 100755 new mode 100644 diff --git a/move_up.php b/move_up.php old mode 100755 new mode 100644 diff --git a/presets-en/asian-restaurant.js b/presets-en/asian-restaurant.js old mode 100755 new mode 100644 diff --git a/presets-en/picture-menue.js b/presets-en/picture-menue.js old mode 100755 new mode 100644 diff --git a/presets-en/portfolio-highslide.js b/presets-en/portfolio-highslide.js old mode 100755 new mode 100644 diff --git a/presets-en/restaurant.js b/presets-en/restaurant.js old mode 100755 new mode 100644 diff --git a/presets-en/speisekarte.js b/presets-en/speisekarte.js old mode 100755 new mode 100644 diff --git a/presets-en/thumbshots.js b/presets-en/thumbshots.js old mode 100755 new mode 100644 diff --git a/presets-en/turnier.js b/presets-en/turnier.js old mode 100755 new mode 100644 diff --git a/save_group.php b/save_group.php old mode 100755 new mode 100644 diff --git a/save_member.php b/save_member.php old mode 100755 new mode 100644 diff --git a/save_settings.php b/save_settings.php old mode 100755 new mode 100644 diff --git a/search.php b/search.php old mode 100755 new mode 100644 diff --git a/uninstall.php b/uninstall.php old mode 100755 new mode 100644 diff --git a/upgrade.php b/upgrade.php old mode 100755 new mode 100644 index 2470764..f8ab684 --- a/upgrade.php +++ b/upgrade.php @@ -32,7 +32,7 @@ if($database->query("ALTER TABLE `".TABLE_PREFIX."mod_members_settings` ADD `extensions` VARCHAR(255) NOT NULL DEFAULT ''")) { echo 'Database Field extensions added successfully
'; } - echo ''.mysql_error().'
'; + echo ''.mysqli_error().'
'; } else { echo 'Database Field extensions exists, update not needed
'; } @@ -41,7 +41,7 @@ if($database->query("ALTER TABLE `".TABLE_PREFIX."mod_members_settings` ADD `various_values` VARCHAR(255) NOT NULL DEFAULT ''")) { echo 'Database Field various_values added successfully
'; } - echo ''.mysql_error().'
'; + echo ''.mysqli_error().'
'; } else { echo 'Database Field various_values exists, update not needed
'; } diff --git a/view.php b/view.php old mode 100755 new mode 100644 index 5aa552c..c7cf936 --- a/view.php +++ b/view.php @@ -1,383 +1,383 @@ - - Copyright (C) 2004-2007, Ryan Djurovich - - Website Baker is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - Website Baker is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Website Baker; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - -// Must include code to stop this file being access directly -if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } - -$mod_dir = basename(dirname(__FILE__)); -require(WB_PATH . '/modules/'.$mod_dir.'/kram/module_settings.default.php'); -require(WB_PATH.'/modules/'.$mod_dir.'/module_settings.php'); - - -// Load Language file -if(LANGUAGE_LOADED) { - require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/EN.php'); - if(file_exists(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php')) { - require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php'); - } -} - -// Load CSS file -// check if frontend.css file needs to be included into the of view.php -if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) && file_exists(WB_PATH .'/modules/'.$mod_dir.'/frontend.css')) { - echo '\n"; - - echo ''; -} - - -// Get information on what groups and members are sorted by -$query_settings = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members_settings WHERE section_id = '$section_id'"); -if($query_settings->numRows() <> 1) { die('No settings'); } -$settings_fetch = $query_settings->fetchRow(); - -$hide_email = (int)$settings_fetch['hide_email']; -$pic_loc = $settings_fetch['pic_loc']; - -$sort_grp_name = $settings_fetch['sort_grp_name']; -if ($sort_grp_name == 1) {$sort_grp_by = "group_name";} else {$sort_grp_by = "position";} - - -//Handle long fields (text, html or wysiwyg) -//Default: -if ($html_allowed > 3) {$html_allowed = 3;} -$longusage1 = 0; $longusage2 = 0; -if ($html_allowed > 0) {$longusage1 = 1; $longusage2 = 1;} -if ($html_allowed > 1) {$longusage1 = 2; $longusage2 = 0;} -if ($html_allowed > 2) {$longusage1 = 2; $longusage2 = 2;} - -if(!isset($settings_fetch['various_values'])){ - $database->query("ALTER TABLE `".TABLE_PREFIX."mod_members_settings` ADD `various_values` VARCHAR(255) NOT NULL DEFAULT ''"); - echo '

Database Field "various_values" added

'; -} else { - if ($settings_fetch['various_values'] != '') { - $vv = explode(',',$settings_fetch['various_values']); - $longusage1 = (int) $vv[0]; - $longusage2 = (int) $vv[1]; - } -} - -$differentsorting = 0; -if(isset($_GET['sort']) AND is_numeric($_GET['sort'])) { - $differentsorting = (int)$_GET['sort']; - $use_caching = 0; -} - - - - - - -$alloutput = ''; - -// Loop through groups -$query_groups = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members_groups WHERE section_id = '".$section_id."' AND active = '1' ORDER BY ".$sort_grp_by." ASC"); - -if($query_groups->numRows() > 0) { - $header = $settings_fetch['header']; - $listgroup_links = 0; - $listgroup_links_output = ''; - if ( strpos($header, '[LIST_GROUP_LINKS]') !== false) {$listgroup_links = 1;} - if ( strpos($header, '[LIST_GROUP_LINKS_FULL]') !== false) {$listgroup_links = 2; $use_caching = 0;} - - $listmembers_links = 0; - if ( strpos($settings_fetch['grp_head'], '[LIST_MEMBERS_LINKS]') !== false) {$listmembers_links = 1;} - - - - - while($group = $query_groups->fetchRow()) { - $group_id = (int)$group['group_id']; - - //Cache - $output = ''; - if ($use_caching == 1) { - $query_content = $database->query("SELECT group_cache FROM ".TABLE_PREFIX."mod_members_groups WHERE group_id = '$group_id'"); - if($query_content->numRows() > 0) { - $fetch_cache = $query_content->fetchRow(); - $output = $fetch_cache['group_cache']; - if (strlen($output) > 10) { - $vars = array( '[WB_URL]', '[PAGE_TITLE]', '[MENU_TITLE]', '[PAGES_DIRECTORY]', '[MEDIA_DIRECTORY]', '[LANGUAGE]' ); - $values = array (WB_URL, PAGE_TITLE, MENU_TITLE, PAGES_DIRECTORY, MEDIA_DIRECTORY, LANGUAGE); - $output = str_replace($vars, $values, $output); - $wb->preprocess($output); - //echo cache and continue, dont do the rest. - $alloutput .= $output; continue; - } - } - } - - //create output and maybe rebuild cache: - $output = ''; - $listmembers_links_output = ''; - - $m_groupname = $group['group_name']; $f_groupname=''; - if ($m_groupname != '') { - $f_groupname = '<'.$block_tag.' class="mgroup-name">'.$m_groupname.''; - if ($listgroup_links == 1) {$listgroup_links_output .= '
  • '.$m_groupname."
  • \n";} - if ($listgroup_links == 2) {$listgroup_links_output .= '
  • '.$m_groupname."\n\n
  • \n";} - - } - } - if ($listgroup_links == 2) {$listgroup_links_output .= "\n\n\n";} - - //Group Header - - - $vars = array( '[GROUPNAME]', '[GROUPDESC]', '[GROUP_ID]', '{GROUPNAME}', '{GROUPDESC}' ); - $values = array ($m_groupname, $m_groupdesc, $group_id, $f_groupname, $f_groupdesc); - $groupheader = str_replace($vars, $values, $settings_fetch['grp_head']); - if ($listmembers_links == 1) { - $listmembers_links_output = ''; - $groupheader = str_replace('[LIST_MEMBERS_LINKS]', $listmembers_links_output, $groupheader); - } - if ($listgroup_links > 0) { $groupheader = ''.$groupheader;} - //Group Output - $output = $groupheader.$output.$settings_fetch['grp_foot']; - //Some values will not be cached, because the might have been changed in the meantime. - - //Prepare str_replace - $vars = array( '[WB_URL]', '[PAGE_TITLE]', '[MENU_TITLE]', '[PAGES_DIRECTORY]', '[MEDIA_DIRECTORY]', '[LANGUAGE]' ); - $values = array (WB_URL, PAGE_TITLE, MENU_TITLE, PAGES_DIRECTORY, MEDIA_DIRECTORY, LANGUAGE); - - //If we came here, the cache has to be rebuilt sometimes: - - //if one is logged in, we allways rebuild it; because most admins have a look at their pages before they log out. - //So this will be the best way. - if ($use_caching == 1 OR $wb->is_authenticated() ) { - if ($differentsorting == 0) { //dont change cache, if sorting is different - $database->query("UPDATE ".TABLE_PREFIX."mod_members_groups SET group_cache= '".$output."' WHERE group_id = '$group_id' "); - - //Prepare for search: - $text = str_replace($vars, $values, $output); - $text = strip_tags($text); - $text = preg_replace('/\s+/', ' ', $text); - $text = addslashes($text); - $database->query("UPDATE ".TABLE_PREFIX."mod_members_groups SET group_search= '".$text."' WHERE group_id = '$group_id' "); - echo "\n\n"; - } - } - - - $output = str_replace($vars, $values, $output); - $wb->preprocess($output); - $alloutput .= stripslashes($output); - - } - -} - -// Print header -//echo ""; -$header = stripslashes($settings_fetch['header']); -$vars = array( '[WB_URL]', '[PAGE_TITLE]', '[MENU_TITLE]', '[PAGES_DIRECTORY]', '[MEDIA_DIRECTORY]', '[LANGUAGE]', '[REVERSESORTING]' ); -$values = array (WB_URL, PAGE_TITLE, MENU_TITLE, PAGES_DIRECTORY, MEDIA_DIRECTORY, LANGUAGE, $reversesorting); -$header = str_replace($vars, $values, $header); - -//Footer -$footer = stripslashes($settings_fetch['footer']); -$footer = str_replace($vars, $values, $footer); - -if ($listgroup_links == 1) { - $listgroup_links_output = ''; - $header = str_replace('[LIST_GROUP_LINKS]', $listgroup_links_output, $header); -} -if ($listgroup_links == 2) { - $listgroup_links_output = ''; - $header = str_replace('[LIST_GROUP_LINKS_FULL]', $listgroup_links_output, $header); -} - -echo $header; - -echo $alloutput; - -echo $footer; - + + Copyright (C) 2004-2007, Ryan Djurovich + + Website Baker is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + Website Baker is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Website Baker; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ + +// Must include code to stop this file being access directly +if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } + +$mod_dir = basename(dirname(__FILE__)); +require(WB_PATH . '/modules/'.$mod_dir.'/kram/module_settings.default.php'); +require(WB_PATH.'/modules/'.$mod_dir.'/module_settings.php'); + + +// Load Language file +if(LANGUAGE_LOADED) { + require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/EN.php'); + if(file_exists(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php')) { + require_once(WB_PATH.'/modules/'.$mod_dir.'/languages/'.LANGUAGE.'.php'); + } +} + +// Load CSS file +// check if frontend.css file needs to be included into the of view.php +if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) && file_exists(WB_PATH .'/modules/'.$mod_dir.'/frontend.css')) { + echo '\n"; + + echo ''; +} + + +// Get information on what groups and members are sorted by +$query_settings = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members_settings WHERE section_id = '$section_id'"); +if($query_settings->numRows() <> 1) { die('No settings'); } +$settings_fetch = $query_settings->fetchRow(); + +$hide_email = (int)$settings_fetch['hide_email']; +$pic_loc = $settings_fetch['pic_loc']; + +$sort_grp_name = $settings_fetch['sort_grp_name']; +if ($sort_grp_name == 1) {$sort_grp_by = "group_name";} else {$sort_grp_by = "position";} + + +//Handle long fields (text, html or wysiwyg) +//Default: +if ($html_allowed > 3) {$html_allowed = 3;} +$longusage1 = 0; $longusage2 = 0; +if ($html_allowed > 0) {$longusage1 = 1; $longusage2 = 1;} +if ($html_allowed > 1) {$longusage1 = 2; $longusage2 = 0;} +if ($html_allowed > 2) {$longusage1 = 2; $longusage2 = 2;} + +if(!isset($settings_fetch['various_values'])){ + $database->query("ALTER TABLE `".TABLE_PREFIX."mod_members_settings` ADD `various_values` VARCHAR(255) NOT NULL DEFAULT ''"); + echo '

    Database Field "various_values" added

    '; +} else { + if ($settings_fetch['various_values'] != '') { + $vv = explode(',',$settings_fetch['various_values']); + $longusage1 = (int) $vv[0]; + $longusage2 = (int) $vv[1]; + } +} + +$differentsorting = 0; +if(isset($_GET['sort']) AND is_numeric($_GET['sort'])) { + $differentsorting = (int)$_GET['sort']; + $use_caching = 0; +} + + + + + + +$alloutput = ''; + +// Loop through groups +$query_groups = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_members_groups WHERE section_id = '".$section_id."' AND active = '1' ORDER BY ".$sort_grp_by." ASC"); + +if($query_groups->numRows() > 0) { + $header = $settings_fetch['header']; + $listgroup_links = 0; + $listgroup_links_output = ''; + if ( strpos($header, '[LIST_GROUP_LINKS]') !== false) {$listgroup_links = 1;} + if ( strpos($header, '[LIST_GROUP_LINKS_FULL]') !== false) {$listgroup_links = 2; $use_caching = 0;} + + $listmembers_links = 0; + if ( strpos($settings_fetch['grp_head'], '[LIST_MEMBERS_LINKS]') !== false) {$listmembers_links = 1;} + + + + + while($group = $query_groups->fetchRow()) { + $group_id = (int)$group['group_id']; + + //Cache + $output = ''; + if ($use_caching == 1) { + $query_content = $database->query("SELECT group_cache FROM ".TABLE_PREFIX."mod_members_groups WHERE group_id = '$group_id'"); + if($query_content->numRows() > 0) { + $fetch_cache = $query_content->fetchRow(); + $output = $fetch_cache['group_cache']; + if (strlen($output) > 10) { + $vars = array( '[WB_URL]', '[PAGE_TITLE]', '[MENU_TITLE]', '[PAGES_DIRECTORY]', '[MEDIA_DIRECTORY]', '[LANGUAGE]' ); + $values = array (WB_URL, PAGE_TITLE, MENU_TITLE, PAGES_DIRECTORY, MEDIA_DIRECTORY, LANGUAGE); + $output = str_replace($vars, $values, $output); + //echo cache and continue, dont do the rest. + $alloutput .= $output; continue; + } + } + } + + //create output and maybe rebuild cache: + $output = ''; + $listmembers_links_output = ''; + + $m_groupname = $group['group_name']; $f_groupname=''; + if ($m_groupname != '') { + $f_groupname = '<'.$block_tag.' class="mgroup-name">'.$m_groupname.''; + if ($listgroup_links == 1) {$listgroup_links_output .= '
  • '.$m_groupname."
  • \n";} + if ($listgroup_links == 2) {$listgroup_links_output .= '
  • '.$m_groupname."\n\n
  • \n";} + + } + } + if ($listgroup_links == 2) {$listgroup_links_output .= "\n\n\n";} + + //Group Header + + + $vars = array( '[GROUPNAME]', '[GROUPDESC]', '[GROUP_ID]', '{GROUPNAME}', '{GROUPDESC}' ); + $values = array ($m_groupname, $m_groupdesc, $group_id, $f_groupname, $f_groupdesc); + $groupheader = str_replace($vars, $values, $settings_fetch['grp_head']); + if ($listmembers_links == 1) { + $listmembers_links_output = ''; + $groupheader = str_replace('[LIST_MEMBERS_LINKS]', $listmembers_links_output, $groupheader); + } + if ($listgroup_links > 0) { $groupheader = ''.$groupheader;} + //Group Output + $output = $groupheader.$output.$settings_fetch['grp_foot']; + //Some values will not be cached, because the might have been changed in the meantime. + + //Prepare str_replace + $vars = array( '[WB_URL]', '[PAGE_TITLE]', '[MENU_TITLE]', '[PAGES_DIRECTORY]', '[MEDIA_DIRECTORY]', '[LANGUAGE]' ); + $values = array (WB_URL, PAGE_TITLE, MENU_TITLE, PAGES_DIRECTORY, MEDIA_DIRECTORY, LANGUAGE); + + //If we came here, the cache has to be rebuilt sometimes: + + //if one is logged in, we allways rebuild it; because most admins have a look at their pages before they log out. + //So this will be the best way. + if ($use_caching == 1 OR $wb->is_authenticated() ) { + if ($differentsorting == 0) { //dont change cache, if sorting is different + $database->query("UPDATE ".TABLE_PREFIX."mod_members_groups SET group_cache= '".$output."' WHERE group_id = '$group_id' "); + + //Prepare for search: + $text = str_replace($vars, $values, $output); + $text = strip_tags($text); + $text = preg_replace('/\s+/', ' ', $text); + $text = addslashes($text); + $database->query("UPDATE ".TABLE_PREFIX."mod_members_groups SET group_search= '".$text."' WHERE group_id = '$group_id' "); + echo "\n\n"; + } + } + + + $output = str_replace($vars, $values, $output); + $alloutput .= stripslashes($output); + + } + +} + +// Print header +//echo ""; +$header = stripslashes($settings_fetch['header']); +$vars = array( '[WB_URL]', '[PAGE_TITLE]', '[MENU_TITLE]', '[PAGES_DIRECTORY]', '[MEDIA_DIRECTORY]', '[LANGUAGE]', '[REVERSESORTING]' ); +$values = array (WB_URL, PAGE_TITLE, MENU_TITLE, PAGES_DIRECTORY, MEDIA_DIRECTORY, LANGUAGE, $reversesorting); +$header = str_replace($vars, $values, $header); + +//Footer +$footer = stripslashes($settings_fetch['footer']); +$footer = str_replace($vars, $values, $footer); + +if ($listgroup_links == 1) { + $listgroup_links_output = ''; + $header = str_replace('[LIST_GROUP_LINKS]', $listgroup_links_output, $header); +} +if ($listgroup_links == 2) { + $listgroup_links_output = ''; + $header = str_replace('[LIST_GROUP_LINKS_FULL]', $listgroup_links_output, $header); +} + +echo $header; + +echo $alloutput; + +echo $footer; + ?> \ No newline at end of file