Changeset 7855 for extensions/PWG_Stuffs/include/class.inc.php
- Timestamp:
- Nov 23, 2010, 3:59:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/include/class.inc.php
r7541 r7855 36 36 37 37 $query = ' 38 SELECT id, name, type, datas, users,groups, show_title, id_line, width38 SELECT id, name, type, datas, groups, show_title, id_line, width 39 39 FROM ' . STUFFS_TABLE . ' 40 WHERE id = 0 OR ( 41 users LIKE "%' . $user['status'] . '%" 40 WHERE users LIKE "%' . $user['status'] . '%" 42 41 '; 43 42 … … 55 54 else return; 56 55 57 $query .= ' )56 $query .= ' 58 57 ORDER BY pos ASC;'; 59 58 … … 71 70 foreach ($this->modules as $module) 72 71 { 73 if (!empty($module['groups']))74 {75 $authorized_groups = explode(',', $module['groups']);76 if (array_intersect($this->user_groups, $authorized_groups) == array()) continue;77 }78 79 72 if ($module['type'] == 'MainBlock') 80 73 { 81 global $user; 82 if (strpos($module['users'], $user['status']) === false) 74 $this->pos = 'end'; 75 if (!empty($module['datas']) 76 and $datas = unserialize($module['datas']) 77 and $datas['hide']) 83 78 { 84 79 add_event_handler('loc_end_index', 'hide_main_block'); 85 80 } 86 $this->pos = 'end';87 81 continue; 82 } 83 if (!empty($module['groups'])) 84 { 85 $authorized_groups = explode(',', $module['groups']); 86 if (array_intersect($this->user_groups, $authorized_groups) == array()) continue; 88 87 } 89 88
Note: See TracChangeset
for help on using the changeset viewer.