@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -47,21 +47,21 @@ discard block |
||
47 | 47 | |
48 | 48 | $focus = new User(); |
49 | 49 | $focus->retrieve($_REQUEST['record']); |
50 | -if ( !is_admin($focus) ) { |
|
50 | +if (!is_admin($focus)) { |
|
51 | 51 | $sugar_smarty = new Sugar_Smarty(); |
52 | 52 | $sugar_smarty->assign('MOD', $mod_strings); |
53 | 53 | $sugar_smarty->assign('APP', $app_strings); |
54 | 54 | $sugar_smarty->assign('APP_LIST', $app_list_strings); |
55 | 55 | |
56 | - $categories = ACLAction::getUserActions($_REQUEST['record'],true); |
|
56 | + $categories = ACLAction::getUserActions($_REQUEST['record'], true); |
|
57 | 57 | |
58 | 58 | //clear out any removed tabs from user display |
59 | - if(!$GLOBALS['current_user']->isAdminForModule('Users')){ |
|
59 | + if (!$GLOBALS['current_user']->isAdminForModule('Users')) { |
|
60 | 60 | $tabs = $focus->getPreference('display_tabs'); |
61 | 61 | global $modInvisList; |
62 | - if(!empty($tabs)){ |
|
63 | - foreach($categories as $key=>$value){ |
|
64 | - if(!in_array($key, $tabs) && !in_array($key, $modInvisList) ){ |
|
62 | + if (!empty($tabs)) { |
|
63 | + foreach ($categories as $key=>$value) { |
|
64 | + if (!in_array($key, $tabs) && !in_array($key, $modInvisList)) { |
|
65 | 65 | unset($categories[$key]); |
66 | 66 | |
67 | 67 | } |
@@ -72,13 +72,13 @@ discard block |
||
72 | 72 | |
73 | 73 | $names = array(); |
74 | 74 | $names = ACLAction::setupCategoriesMatrix($categories); |
75 | - if(!empty($names))$tdwidth = 100 / sizeof($names); |
|
75 | + if (!empty($names))$tdwidth = 100 / sizeof($names); |
|
76 | 76 | $sugar_smarty->assign('APP', $app_list_strings); |
77 | 77 | $sugar_smarty->assign('CATEGORIES', $categories); |
78 | 78 | $sugar_smarty->assign('TDWIDTH', $tdwidth); |
79 | 79 | $sugar_smarty->assign('ACTION_NAMES', $names); |
80 | 80 | |
81 | - $title = getClassicModuleTitle( '',array($mod_strings['LBL_MODULE_NAME'],$mod_strings['LBL_ROLES_SUBPANEL_TITLE']), ''); |
|
81 | + $title = getClassicModuleTitle('', array($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_ROLES_SUBPANEL_TITLE']), ''); |
|
82 | 82 | |
83 | 83 | $sugar_smarty->assign('TITLE', $title); |
84 | 84 | $sugar_smarty->assign('USER_ID', $focus->id); |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | |
89 | 89 | //this gets its layout_defs.php file from the user not from ACLRoles so look in modules/Users for the layout defs |
90 | 90 | require_once('include/SubPanel/SubPanelTiles.php'); |
91 | - $modules_exempt_from_availability_check=array('Users'=>'Users','ACLRoles'=>'ACLRoles',); |
|
91 | + $modules_exempt_from_availability_check = array('Users'=>'Users', 'ACLRoles'=>'ACLRoles',); |
|
92 | 92 | $subpanel = new SubPanelTiles($focus, 'UserRoles'); |
93 | 93 | |
94 | - echo $subpanel->display(true,true); |
|
94 | + echo $subpanel->display(true, true); |
|
95 | 95 | } |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -72,7 +74,9 @@ discard block |
||
72 | 74 | |
73 | 75 | $names = array(); |
74 | 76 | $names = ACLAction::setupCategoriesMatrix($categories); |
75 | - if(!empty($names))$tdwidth = 100 / sizeof($names); |
|
77 | + if(!empty($names)) { |
|
78 | + $tdwidth = 100 / sizeof($names); |
|
79 | + } |
|
76 | 80 | $sugar_smarty->assign('APP', $app_list_strings); |
77 | 81 | $sugar_smarty->assign('CATEGORIES', $categories); |
78 | 82 | $sugar_smarty->assign('TDWIDTH', $tdwidth); |
@@ -242,12 +242,12 @@ discard block |
||
242 | 242 | return ($a < $b) ? -1 : 1; |
243 | 243 | } |
244 | 244 | /** |
245 | - * function mark_relationships_deleted($id) |
|
246 | - * |
|
247 | - * special case to delete acl_roles_actions relationship |
|
248 | - * |
|
249 | - * @param ACLRole GUID $id |
|
250 | - */ |
|
245 | + * function mark_relationships_deleted($id) |
|
246 | + * |
|
247 | + * special case to delete acl_roles_actions relationship |
|
248 | + * |
|
249 | + * @param ACLRole GUID $id |
|
250 | + */ |
|
251 | 251 | function mark_relationships_deleted($id){ |
252 | 252 | //we need to delete the actions relationship by hand (special case) |
253 | 253 | $date_modified = db_convert("'".TimeDate::getInstance()->nowDb()."'", 'datetime'); |
@@ -258,10 +258,10 @@ discard block |
||
258 | 258 | |
259 | 259 | /** |
260 | 260 | * toArray() |
261 | - * returns this role as an array |
|
262 | - * |
|
263 | - * @return array of fields with id, name, description |
|
264 | - */ |
|
261 | + * returns this role as an array |
|
262 | + * |
|
263 | + * @return array of fields with id, name, description |
|
264 | + */ |
|
265 | 265 | function toArray($dbOnly = false, $stringOnly = false, $upperKeys=false){ |
266 | 266 | $array_fields = array('id', 'name', 'description'); |
267 | 267 | $arr = array(); |
@@ -276,11 +276,11 @@ discard block |
||
276 | 276 | } |
277 | 277 | |
278 | 278 | /** |
279 | - * fromArray($arr) |
|
280 | - * converts an array into an role mapping name value pairs into files |
|
281 | - * |
|
282 | - * @param Array $arr |
|
283 | - */ |
|
279 | + * fromArray($arr) |
|
280 | + * converts an array into an role mapping name value pairs into files |
|
281 | + * |
|
282 | + * @param Array $arr |
|
283 | + */ |
|
284 | 284 | function fromArray($arr){ |
285 | 285 | foreach($arr as $name=>$value){ |
286 | 286 | $this->$name = $value; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | 41 | |
42 | -class ACLRole extends SugarBean{ |
|
42 | +class ACLRole extends SugarBean { |
|
43 | 43 | var $module_dir = 'ACLRoles'; |
44 | 44 | var $object_name = 'ACLRole'; |
45 | 45 | var $table_name = 'acl_roles'; |
@@ -52,16 +52,16 @@ discard block |
||
52 | 52 | |
53 | 53 | var $created_by; |
54 | 54 | |
55 | - public function __construct(){ |
|
55 | + public function __construct() { |
|
56 | 56 | parent::__construct(); |
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | 60 | * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead |
61 | 61 | */ |
62 | - public function ACLRole(){ |
|
62 | + public function ACLRole() { |
|
63 | 63 | $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code'; |
64 | - if(isset($GLOBALS['log'])) { |
|
64 | + if (isset($GLOBALS['log'])) { |
|
65 | 65 | $GLOBALS['log']->deprecated($deprecatedMessage); |
66 | 66 | } |
67 | 67 | else { |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | * @param GUID $action_id - the ACL Action id |
88 | 88 | * @param int $access - the access level ACL_ALLOW_ALL ACL_ALLOW_NONE ACL_ALLOW_OWNER... |
89 | 89 | */ |
90 | -function setAction($role_id, $action_id, $access){ |
|
90 | +function setAction($role_id, $action_id, $access) { |
|
91 | 91 | $relationship_data = array('role_id'=>$role_id, 'action_id'=>$action_id,); |
92 | 92 | $additional_data = array('access_override'=>$access); |
93 | - $this->set_relationship('acl_roles_actions',$relationship_data,true, true,$additional_data); |
|
93 | + $this->set_relationship('acl_roles_actions', $relationship_data, true, true, $additional_data); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @param GUID $user_id |
102 | 102 | * @return a list of ACLRole objects |
103 | 103 | */ |
104 | -function getUserRoles($user_id, $getAsNameArray = true){ |
|
104 | +function getUserRoles($user_id, $getAsNameArray = true) { |
|
105 | 105 | |
106 | 106 | //if we don't have it loaded then lets check against the db |
107 | 107 | $additional_where = ''; |
@@ -114,10 +114,10 @@ discard block |
||
114 | 114 | $result = $GLOBALS['db']->query($query); |
115 | 115 | $user_roles = array(); |
116 | 116 | |
117 | - while($row = $GLOBALS['db']->fetchByAssoc($result) ){ |
|
117 | + while ($row = $GLOBALS['db']->fetchByAssoc($result)) { |
|
118 | 118 | $role = new ACLRole(); |
119 | 119 | $role->populateFromRow($row); |
120 | - if($getAsNameArray) |
|
120 | + if ($getAsNameArray) |
|
121 | 121 | $user_roles[] = $role->name; |
122 | 122 | else |
123 | 123 | $user_roles[] = $role; |
@@ -133,11 +133,11 @@ discard block |
||
133 | 133 | * @param GUID $user_id |
134 | 134 | * @return a list of ACLRole Names |
135 | 135 | */ |
136 | -function getUserRoleNames($user_id){ |
|
136 | +function getUserRoleNames($user_id) { |
|
137 | 137 | |
138 | 138 | $user_roles = sugar_cache_retrieve("RoleMembershipNames_".$user_id); |
139 | 139 | |
140 | - if(!$user_roles){ |
|
140 | + if (!$user_roles) { |
|
141 | 141 | //if we don't have it loaded then lets check against the db |
142 | 142 | $additional_where = ''; |
143 | 143 | $query = "SELECT acl_roles.* ". |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $result = $GLOBALS['db']->query($query); |
150 | 150 | $user_roles = array(); |
151 | 151 | |
152 | - while($row = $GLOBALS['db']->fetchByAssoc($result) ){ |
|
152 | + while ($row = $GLOBALS['db']->fetchByAssoc($result)) { |
|
153 | 153 | $user_roles[] = $row['name']; |
154 | 154 | } |
155 | 155 | |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * @param boolean $returnAsArray - should it return the results as an array of arrays or as an array of ACLRoles |
167 | 167 | * @return either an array of array representations of acl roles or an array of ACLRoles |
168 | 168 | */ |
169 | -function getAllRoles($returnAsArray = false){ |
|
169 | +function getAllRoles($returnAsArray = false) { |
|
170 | 170 | $db = DBManagerFactory::getInstance(); |
171 | 171 | $query = "SELECT acl_roles.* FROM acl_roles |
172 | 172 | WHERE acl_roles.deleted=0 ORDER BY name"; |
@@ -174,12 +174,12 @@ discard block |
||
174 | 174 | $result = $db->query($query); |
175 | 175 | $roles = array(); |
176 | 176 | |
177 | - while($row = $db->fetchByAssoc($result) ){ |
|
177 | + while ($row = $db->fetchByAssoc($result)) { |
|
178 | 178 | $role = new ACLRole(); |
179 | 179 | $role->populateFromRow($row); |
180 | - if($returnAsArray){ |
|
180 | + if ($returnAsArray) { |
|
181 | 181 | $roles[] = $role->toArray(); |
182 | - }else{ |
|
182 | + } else { |
|
183 | 183 | $roles[] = $role; |
184 | 184 | } |
185 | 185 | |
@@ -197,41 +197,41 @@ discard block |
||
197 | 197 | * @param GUID $role_id |
198 | 198 | * @return array of actions |
199 | 199 | */ |
200 | -function getRoleActions($role_id, $type='module'){ |
|
200 | +function getRoleActions($role_id, $type = 'module') { |
|
201 | 201 | global $beanList; |
202 | 202 | //if we don't have it loaded then lets check against the db |
203 | 203 | $additional_where = ''; |
204 | 204 | $db = DBManagerFactory::getInstance(); |
205 | 205 | $query = "SELECT acl_actions.*"; |
206 | 206 | //only if we have a role id do we need to join the table otherwise lets use the ones defined in acl_actions as the defaults |
207 | - if(!empty($role_id)){ |
|
208 | - $query .=" ,acl_roles_actions.access_override "; |
|
207 | + if (!empty($role_id)) { |
|
208 | + $query .= " ,acl_roles_actions.access_override "; |
|
209 | 209 | } |
210 | - $query .=" FROM acl_actions "; |
|
210 | + $query .= " FROM acl_actions "; |
|
211 | 211 | |
212 | - if(!empty($role_id)){ |
|
213 | - $query .= " LEFT JOIN acl_roles_actions ON acl_roles_actions.role_id = '$role_id' AND acl_roles_actions.action_id = acl_actions.id AND acl_roles_actions.deleted = 0"; |
|
212 | + if (!empty($role_id)) { |
|
213 | + $query .= " LEFT JOIN acl_roles_actions ON acl_roles_actions.role_id = '$role_id' AND acl_roles_actions.action_id = acl_actions.id AND acl_roles_actions.deleted = 0"; |
|
214 | 214 | } |
215 | 215 | $query .= " WHERE acl_actions.deleted=0 ORDER BY acl_actions.category, acl_actions.name"; |
216 | 216 | $result = $db->query($query); |
217 | 217 | $role_actions = array(); |
218 | 218 | |
219 | - while($row = $db->fetchByAssoc($result) ){ |
|
219 | + while ($row = $db->fetchByAssoc($result)) { |
|
220 | 220 | $action = new ACLAction(); |
221 | 221 | $action->populateFromRow($row); |
222 | - if(!empty($row['access_override'])){ |
|
222 | + if (!empty($row['access_override'])) { |
|
223 | 223 | $action->aclaccess = $row['access_override']; |
224 | - }else{ |
|
224 | + } else { |
|
225 | 225 | $action->aclaccess = ACL_ALLOW_DEFAULT; |
226 | 226 | |
227 | 227 | } |
228 | 228 | //#27877 . If there is no this module in beanlist , we will not show them in UI, no matter this module was deleted or not in ACL_ACTIONS table. |
229 | - if(empty($beanList[$action->category])){ |
|
229 | + if (empty($beanList[$action->category])) { |
|
230 | 230 | continue; |
231 | 231 | } |
232 | 232 | //end |
233 | 233 | |
234 | - if(!isset($role_actions[$action->category])){ |
|
234 | + if (!isset($role_actions[$action->category])) { |
|
235 | 235 | $role_actions[$action->category] = array(); |
236 | 236 | } |
237 | 237 | |
@@ -263,10 +263,10 @@ discard block |
||
263 | 263 | * |
264 | 264 | * @param ACLRole GUID $id |
265 | 265 | */ |
266 | -function mark_relationships_deleted($id){ |
|
266 | +function mark_relationships_deleted($id) { |
|
267 | 267 | //we need to delete the actions relationship by hand (special case) |
268 | 268 | $date_modified = db_convert("'".TimeDate::getInstance()->nowDb()."'", 'datetime'); |
269 | - $query = "UPDATE acl_roles_actions SET deleted=1 , date_modified=$date_modified WHERE role_id = '$id' AND deleted=0"; |
|
269 | + $query = "UPDATE acl_roles_actions SET deleted=1 , date_modified=$date_modified WHERE role_id = '$id' AND deleted=0"; |
|
270 | 270 | $this->db->query($query); |
271 | 271 | parent::mark_relationships_deleted($id); |
272 | 272 | } |
@@ -277,13 +277,13 @@ discard block |
||
277 | 277 | * |
278 | 278 | * @return array of fields with id, name, description |
279 | 279 | */ |
280 | - function toArray($dbOnly = false, $stringOnly = false, $upperKeys=false){ |
|
280 | + function toArray($dbOnly = false, $stringOnly = false, $upperKeys = false) { |
|
281 | 281 | $array_fields = array('id', 'name', 'description'); |
282 | 282 | $arr = array(); |
283 | - foreach($array_fields as $field){ |
|
284 | - if(isset($this->$field)){ |
|
283 | + foreach ($array_fields as $field) { |
|
284 | + if (isset($this->$field)) { |
|
285 | 285 | $arr[$field] = $this->$field; |
286 | - }else{ |
|
286 | + } else { |
|
287 | 287 | $arr[$field] = ''; |
288 | 288 | } |
289 | 289 | } |
@@ -296,8 +296,8 @@ discard block |
||
296 | 296 | * |
297 | 297 | * @param Array $arr |
298 | 298 | */ |
299 | - function fromArray($arr){ |
|
300 | - foreach($arr as $name=>$value){ |
|
299 | + function fromArray($arr) { |
|
300 | + foreach ($arr as $name=>$value) { |
|
301 | 301 | $this->$name = $value; |
302 | 302 | } |
303 | 303 | } |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -63,8 +65,7 @@ discard block |
||
63 | 65 | $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code'; |
64 | 66 | if(isset($GLOBALS['log'])) { |
65 | 67 | $GLOBALS['log']->deprecated($deprecatedMessage); |
66 | - } |
|
67 | - else { |
|
68 | + } else { |
|
68 | 69 | trigger_error($deprecatedMessage, E_USER_DEPRECATED); |
69 | 70 | } |
70 | 71 | self::__construct(); |
@@ -117,10 +118,11 @@ discard block |
||
117 | 118 | while($row = $GLOBALS['db']->fetchByAssoc($result) ){ |
118 | 119 | $role = new ACLRole(); |
119 | 120 | $role->populateFromRow($row); |
120 | - if($getAsNameArray) |
|
121 | - $user_roles[] = $role->name; |
|
122 | - else |
|
123 | - $user_roles[] = $role; |
|
121 | + if($getAsNameArray) { |
|
122 | + $user_roles[] = $role->name; |
|
123 | + } else { |
|
124 | + $user_roles[] = $role; |
|
125 | + } |
|
124 | 126 | } |
125 | 127 | |
126 | 128 | return $user_roles; |
@@ -179,7 +181,7 @@ discard block |
||
179 | 181 | $role->populateFromRow($row); |
180 | 182 | if($returnAsArray){ |
181 | 183 | $roles[] = $role->toArray(); |
182 | - }else{ |
|
184 | + } else{ |
|
183 | 185 | $roles[] = $role; |
184 | 186 | } |
185 | 187 | |
@@ -221,7 +223,7 @@ discard block |
||
221 | 223 | $action->populateFromRow($row); |
222 | 224 | if(!empty($row['access_override'])){ |
223 | 225 | $action->aclaccess = $row['access_override']; |
224 | - }else{ |
|
226 | + } else{ |
|
225 | 227 | $action->aclaccess = ACL_ALLOW_DEFAULT; |
226 | 228 | |
227 | 229 | } |
@@ -252,8 +254,9 @@ discard block |
||
252 | 254 | // Fallback to array key if translation is empty |
253 | 255 | $a = empty($app_list_strings['moduleList'][$a]) ? $a : $app_list_strings['moduleList'][$a]; |
254 | 256 | $b = empty($app_list_strings['moduleList'][$b]) ? $b : $app_list_strings['moduleList'][$b]; |
255 | - if ($a == $b) |
|
256 | - return 0; |
|
257 | + if ($a == $b) { |
|
258 | + return 0; |
|
259 | + } |
|
257 | 260 | return ($a < $b) ? -1 : 1; |
258 | 261 | } |
259 | 262 | /** |
@@ -283,7 +286,7 @@ discard block |
||
283 | 286 | foreach($array_fields as $field){ |
284 | 287 | if(isset($this->$field)){ |
285 | 288 | $arr[$field] = $this->$field; |
286 | - }else{ |
|
289 | + } else{ |
|
287 | 290 | $arr[$field] = ''; |
288 | 291 | } |
289 | 292 | } |
@@ -61,29 +61,29 @@ discard block |
||
61 | 61 | $role_name = ''; |
62 | 62 | $return= array('module'=>'ACLRoles', 'action'=>'index', 'record'=>''); |
63 | 63 | if(!empty($_REQUEST['record'])){ |
64 | - $role->retrieve($_REQUEST['record']); |
|
65 | - $categories = ACLRole::getRoleActions($_REQUEST['record']); |
|
66 | - $role_name = $role->name; |
|
67 | - if(!empty($_REQUEST['isDuplicate'])){ |
|
68 | - //role id is stripped here in duplicate so anything using role id after this will not have it |
|
69 | - $role->id = ''; |
|
70 | - $sugar_smarty->assign('ISDUPLICATE', $_REQUEST['record']); |
|
71 | - $duplicateString=translate('LBL_DUPLICATE_OF', 'ACLRoles'); |
|
72 | - }else{ |
|
73 | - $return['record']= $role->id; |
|
74 | - $return['action']='DetailView'; |
|
75 | - } |
|
64 | + $role->retrieve($_REQUEST['record']); |
|
65 | + $categories = ACLRole::getRoleActions($_REQUEST['record']); |
|
66 | + $role_name = $role->name; |
|
67 | + if(!empty($_REQUEST['isDuplicate'])){ |
|
68 | + //role id is stripped here in duplicate so anything using role id after this will not have it |
|
69 | + $role->id = ''; |
|
70 | + $sugar_smarty->assign('ISDUPLICATE', $_REQUEST['record']); |
|
71 | + $duplicateString=translate('LBL_DUPLICATE_OF', 'ACLRoles'); |
|
72 | + }else{ |
|
73 | + $return['record']= $role->id; |
|
74 | + $return['action']='DetailView'; |
|
75 | + } |
|
76 | 76 | |
77 | 77 | }else{ |
78 | - $categories = ACLRole::getRoleActions(''); |
|
78 | + $categories = ACLRole::getRoleActions(''); |
|
79 | 79 | } |
80 | 80 | $sugar_smarty->assign('ROLE', $role->toArray()); |
81 | 81 | $tdwidth = 10; |
82 | 82 | |
83 | 83 | if(isset($_REQUEST['return_module'])){ |
84 | - $return['module']=$_REQUEST['return_module']; |
|
85 | - if(isset($_REQUEST['return_id']))$return['record']=$_REQUEST['return_id']; |
|
86 | - if(isset($_REQUEST['return_record'])){$return['record']=$_REQUEST['return_record'];} |
|
84 | + $return['module']=$_REQUEST['return_module']; |
|
85 | + if(isset($_REQUEST['return_id']))$return['record']=$_REQUEST['return_id']; |
|
86 | + if(isset($_REQUEST['return_record'])){$return['record']=$_REQUEST['return_record'];} |
|
87 | 87 | if(isset($_REQUEST['return_action'])){$return['action']=$_REQUEST['return_action'];} |
88 | 88 | if ( !empty($return['record']) ) { |
89 | 89 | $return['action'] = 'DetailView'; |
@@ -100,18 +100,18 @@ discard block |
||
100 | 100 | $params = array(); |
101 | 101 | $params[] = "<a href='index.php?module=ACLRoles&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>"; |
102 | 102 | if(empty($role->id)){ |
103 | - $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL']; |
|
103 | + $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL']; |
|
104 | 104 | }else{ |
105 | - $params[] = $role->get_summary_text(); |
|
105 | + $params[] = $role->get_summary_text(); |
|
106 | 106 | } |
107 | 107 | echo getClassicModuleTitle("ACLRoles", $params, true); |
108 | 108 | |
109 | 109 | $buttons = array( |
110 | - "<input title=".$app_strings['LBL_SAVE_BUTTON_TITLE']." id='save_button' |
|
110 | + "<input title=".$app_strings['LBL_SAVE_BUTTON_TITLE']." id='save_button' |
|
111 | 111 | accessKey=".$app_strings['LBL_SAVE_BUTTON_KEY']." class='button primary' |
112 | 112 | onclick=\"this.form.action.value='Save';return check_form('EditView');\" |
113 | 113 | type='submit' name='button' value=".$app_strings['LBL_SAVE_BUTTON_LABEL']." >", |
114 | - "<input title=".$app_strings['LBL_CANCEL_BUTTON_TITLE']." |
|
114 | + "<input title=".$app_strings['LBL_CANCEL_BUTTON_TITLE']." |
|
115 | 115 | class='button cancel_button' accessKey=".$app_strings['LBL_CANCEL_BUTTON_KEY']." |
116 | 116 | type='submit' name='save' value=".$app_strings['LBL_CANCEL_BUTTON_LABEL']." |
117 | 117 | onclick=\"document.EditView.action.value='".$return['action']."';document.EditView.module.value='".$return['module']."';document.EditView.record.value='".$return['record']."';document.EditView.submit();\">", |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -41,14 +41,14 @@ discard block |
||
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | -global $app_list_strings;// $modInvisList; |
|
44 | +global $app_list_strings; // $modInvisList; |
|
45 | 45 | |
46 | 46 | $sugar_smarty = new Sugar_Smarty(); |
47 | 47 | |
48 | 48 | $sugar_smarty->assign('MOD', $mod_strings); |
49 | 49 | $sugar_smarty->assign('APP', $app_strings); |
50 | 50 | $sugar_smarty->assign('ISDUPLICATE', ''); |
51 | -$duplicateString=''; |
|
51 | +$duplicateString = ''; |
|
52 | 52 | //mass localization |
53 | 53 | /*foreach($modInvisList as $modinvisname){ |
54 | 54 | $app_list_strings['moduleList'][$modinvisname] = $modinvisname; |
@@ -59,33 +59,33 @@ discard block |
||
59 | 59 | }*/ |
60 | 60 | $role = new ACLRole(); |
61 | 61 | $role_name = ''; |
62 | -$return= array('module'=>'ACLRoles', 'action'=>'index', 'record'=>''); |
|
63 | -if(!empty($_REQUEST['record'])){ |
|
62 | +$return = array('module'=>'ACLRoles', 'action'=>'index', 'record'=>''); |
|
63 | +if (!empty($_REQUEST['record'])) { |
|
64 | 64 | $role->retrieve($_REQUEST['record']); |
65 | 65 | $categories = ACLRole::getRoleActions($_REQUEST['record']); |
66 | - $role_name = $role->name; |
|
67 | - if(!empty($_REQUEST['isDuplicate'])){ |
|
66 | + $role_name = $role->name; |
|
67 | + if (!empty($_REQUEST['isDuplicate'])) { |
|
68 | 68 | //role id is stripped here in duplicate so anything using role id after this will not have it |
69 | 69 | $role->id = ''; |
70 | 70 | $sugar_smarty->assign('ISDUPLICATE', $_REQUEST['record']); |
71 | - $duplicateString=translate('LBL_DUPLICATE_OF', 'ACLRoles'); |
|
72 | - }else{ |
|
73 | - $return['record']= $role->id; |
|
74 | - $return['action']='DetailView'; |
|
71 | + $duplicateString = translate('LBL_DUPLICATE_OF', 'ACLRoles'); |
|
72 | + } else { |
|
73 | + $return['record'] = $role->id; |
|
74 | + $return['action'] = 'DetailView'; |
|
75 | 75 | } |
76 | 76 | |
77 | -}else{ |
|
77 | +} else { |
|
78 | 78 | $categories = ACLRole::getRoleActions(''); |
79 | 79 | } |
80 | 80 | $sugar_smarty->assign('ROLE', $role->toArray()); |
81 | 81 | $tdwidth = 10; |
82 | 82 | |
83 | -if(isset($_REQUEST['return_module'])){ |
|
84 | - $return['module']=$_REQUEST['return_module']; |
|
85 | - if(isset($_REQUEST['return_id']))$return['record']=$_REQUEST['return_id']; |
|
86 | - if(isset($_REQUEST['return_record'])){$return['record']=$_REQUEST['return_record'];} |
|
87 | - if(isset($_REQUEST['return_action'])){$return['action']=$_REQUEST['return_action'];} |
|
88 | - if ( !empty($return['record']) ) { |
|
83 | +if (isset($_REQUEST['return_module'])) { |
|
84 | + $return['module'] = $_REQUEST['return_module']; |
|
85 | + if (isset($_REQUEST['return_id']))$return['record'] = $_REQUEST['return_id']; |
|
86 | + if (isset($_REQUEST['return_record'])) {$return['record'] = $_REQUEST['return_record']; } |
|
87 | + if (isset($_REQUEST['return_action'])) {$return['action'] = $_REQUEST['return_action']; } |
|
88 | + if (!empty($return['record'])) { |
|
89 | 89 | $return['action'] = 'DetailView'; |
90 | 90 | } |
91 | 91 | } |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | |
100 | 100 | $params = array(); |
101 | 101 | $params[] = "<a href='index.php?module=ACLRoles&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>"; |
102 | -if(empty($role->id)){ |
|
102 | +if (empty($role->id)) { |
|
103 | 103 | $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL']; |
104 | -}else{ |
|
104 | +} else { |
|
105 | 105 | $params[] = $role->get_summary_text(); |
106 | 106 | } |
107 | 107 | echo getClassicModuleTitle("ACLRoles", $params, true); |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -69,12 +71,12 @@ discard block |
||
69 | 71 | $role->id = ''; |
70 | 72 | $sugar_smarty->assign('ISDUPLICATE', $_REQUEST['record']); |
71 | 73 | $duplicateString=translate('LBL_DUPLICATE_OF', 'ACLRoles'); |
72 | - }else{ |
|
74 | + } else{ |
|
73 | 75 | $return['record']= $role->id; |
74 | 76 | $return['action']='DetailView'; |
75 | 77 | } |
76 | 78 | |
77 | -}else{ |
|
79 | +} else{ |
|
78 | 80 | $categories = ACLRole::getRoleActions(''); |
79 | 81 | } |
80 | 82 | $sugar_smarty->assign('ROLE', $role->toArray()); |
@@ -82,7 +84,9 @@ discard block |
||
82 | 84 | |
83 | 85 | if(isset($_REQUEST['return_module'])){ |
84 | 86 | $return['module']=$_REQUEST['return_module']; |
85 | - if(isset($_REQUEST['return_id']))$return['record']=$_REQUEST['return_id']; |
|
87 | + if(isset($_REQUEST['return_id'])) { |
|
88 | + $return['record']=$_REQUEST['return_id']; |
|
89 | + } |
|
86 | 90 | if(isset($_REQUEST['return_record'])){$return['record']=$_REQUEST['return_record'];} |
87 | 91 | if(isset($_REQUEST['return_action'])){$return['action']=$_REQUEST['return_action'];} |
88 | 92 | if ( !empty($return['record']) ) { |
@@ -101,7 +105,7 @@ discard block |
||
101 | 105 | $params[] = "<a href='index.php?module=ACLRoles&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>"; |
102 | 106 | if(empty($role->id)){ |
103 | 107 | $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL']; |
104 | -}else{ |
|
108 | +} else{ |
|
105 | 109 | $params[] = $role->get_summary_text(); |
106 | 110 | } |
107 | 111 | echo getClassicModuleTitle("ACLRoles", $params, true); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | 41 | if(!$GLOBALS['current_user']->isAdminForModule('Users')){ |
42 | - sugar_die('No Access'); |
|
42 | + sugar_die('No Access'); |
|
43 | 43 | } |
44 | 44 | $record = ''; |
45 | 45 | if(isset($_REQUEST['record'])) $record = $_REQUEST['record']; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | echo "</select></form>"; |
68 | 68 | if(!empty($record)){ |
69 | 69 | $hideTeams = true; // to not show the teams subpanel in the following file |
70 | - require_once('modules/ACLRoles/DetailUserRole.php'); |
|
70 | + require_once('modules/ACLRoles/DetailUserRole.php'); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | * display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM". |
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | -if(!$GLOBALS['current_user']->isAdminForModule('Users')){ |
|
41 | +if (!$GLOBALS['current_user']->isAdminForModule('Users')) { |
|
42 | 42 | sugar_die('No Access'); |
43 | 43 | } |
44 | 44 | $record = ''; |
45 | -if(isset($_REQUEST['record'])) $record = $_REQUEST['record']; |
|
45 | +if (isset($_REQUEST['record'])) $record = $_REQUEST['record']; |
|
46 | 46 | ?> |
47 | 47 | <form action="index.php" method="post" name="DetailView" id="form"> |
48 | 48 | |
@@ -58,14 +58,14 @@ discard block |
||
58 | 58 | <?php |
59 | 59 | |
60 | 60 | $users = get_user_array(true, "Active", $record); |
61 | -echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'],array($mod_strings['LBL_MODULE_NAME']), true); |
|
61 | +echo getClassicModuleTitle($mod_strings['LBL_MODULE_NAME'], array($mod_strings['LBL_MODULE_NAME']), true); |
|
62 | 62 | echo "<form name='Users'> |
63 | 63 | <input type='hidden' name='action' value='ListRoles'> |
64 | 64 | <input type='hidden' name='module' value='Users'> |
65 | 65 | <select name='record' onchange='document.Users.submit();'>"; |
66 | 66 | echo get_select_options_with_id($users, $record); |
67 | 67 | echo "</select></form>"; |
68 | -if(!empty($record)){ |
|
68 | +if (!empty($record)) { |
|
69 | 69 | $hideTeams = true; // to not show the teams subpanel in the following file |
70 | 70 | require_once('modules/ACLRoles/DetailUserRole.php'); |
71 | 71 | } |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -42,7 +44,9 @@ discard block |
||
42 | 44 | sugar_die('No Access'); |
43 | 45 | } |
44 | 46 | $record = ''; |
45 | -if(isset($_REQUEST['record'])) $record = $_REQUEST['record']; |
|
47 | +if(isset($_REQUEST['record'])) { |
|
48 | + $record = $_REQUEST['record']; |
|
49 | +} |
|
46 | 50 | ?> |
47 | 51 | <form action="index.php" method="post" name="DetailView" id="form"> |
48 | 52 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -59,13 +59,13 @@ discard block |
||
59 | 59 | $role->retrieve($_REQUEST['record']); |
60 | 60 | $categories = ACLRole::getRoleActions($_REQUEST['record']); |
61 | 61 | $names = ACLAction::setupCategoriesMatrix($categories); |
62 | -if(!empty($names))$tdwidth = 100 / sizeof($names); |
|
62 | +if (!empty($names))$tdwidth = 100 / sizeof($names); |
|
63 | 63 | $sugar_smarty->assign('ROLE', $role->toArray()); |
64 | 64 | $sugar_smarty->assign('CATEGORIES', $categories); |
65 | 65 | $sugar_smarty->assign('TDWIDTH', $tdwidth); |
66 | 66 | $sugar_smarty->assign('ACTION_NAMES', $names); |
67 | 67 | |
68 | -$return= array('module'=>'ACLRoles', 'action'=>'DetailView', 'record'=>$role->id); |
|
68 | +$return = array('module'=>'ACLRoles', 'action'=>'DetailView', 'record'=>$role->id); |
|
69 | 69 | $sugar_smarty->assign('RETURN', $return); |
70 | 70 | $params = array(); |
71 | 71 | $params[] = "<a href='index.php?module=ACLRoles&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>"; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | echo $sugar_smarty->fetch('modules/ACLRoles/DetailView.tpl'); |
78 | 78 | //for subpanels the variable must be named focus; |
79 | -$focus =& $role; |
|
79 | +$focus = & $role; |
|
80 | 80 | $_REQUEST['module'] = 'ACLRoles'; |
81 | 81 | require_once('include/SubPanel/SubPanelTiles.php'); |
82 | 82 |
@@ -1,5 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -59,7 +61,9 @@ discard block |
||
59 | 61 | $role->retrieve($_REQUEST['record']); |
60 | 62 | $categories = ACLRole::getRoleActions($_REQUEST['record']); |
61 | 63 | $names = ACLAction::setupCategoriesMatrix($categories); |
62 | -if(!empty($names))$tdwidth = 100 / sizeof($names); |
|
64 | +if(!empty($names)) { |
|
65 | + $tdwidth = 100 / sizeof($names); |
|
66 | +} |
|
63 | 67 | $sugar_smarty->assign('ROLE', $role->toArray()); |
64 | 68 | $sugar_smarty->assign('CATEGORIES', $categories); |
65 | 69 | $sugar_smarty->assign('TDWIDTH', $tdwidth); |
@@ -41,12 +41,12 @@ |
||
41 | 41 | |
42 | 42 | global $mod_strings; |
43 | 43 | $popupMeta = array('moduleMain' => 'ACLRole', |
44 | - 'varName' => 'ROLE', |
|
45 | - 'listTitle' => $mod_strings['LBL_ROLE'], |
|
46 | - 'orderBy' => 'name', |
|
47 | - 'whereClauses' => array('name' => 'acl_roles.name'), |
|
48 | - 'searchInputs' => array('name'), |
|
49 | - 'searchdefs' => array('name' => array('name' => 'name', 'label' => 'LBL_NAME',),) |
|
44 | + 'varName' => 'ROLE', |
|
45 | + 'listTitle' => $mod_strings['LBL_ROLE'], |
|
46 | + 'orderBy' => 'name', |
|
47 | + 'whereClauses' => array('name' => 'acl_roles.name'), |
|
48 | + 'searchInputs' => array('name'), |
|
49 | + 'searchdefs' => array('name' => array('name' => 'name', 'label' => 'LBL_NAME',),) |
|
50 | 50 | ); |
51 | 51 | ?> |
52 | 52 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -43,17 +43,17 @@ |
||
43 | 43 | * To change the template for this generated file go to |
44 | 44 | * Window - Preferences - PHPeclipse - PHP - Code Templates |
45 | 45 | */ |
46 | - $searchdefs['ACLRoles'] = array( |
|
47 | - 'templateMeta' => array( |
|
48 | - 'maxColumns' => '3', |
|
49 | - 'maxColumnsBasic' => '4', |
|
46 | + $searchdefs['ACLRoles'] = array( |
|
47 | + 'templateMeta' => array( |
|
48 | + 'maxColumns' => '3', |
|
49 | + 'maxColumnsBasic' => '4', |
|
50 | 50 | 'widths' => array('label' => '10', 'field' => '30'), |
51 | - ), |
|
51 | + ), |
|
52 | 52 | 'layout' => array( |
53 | - 'basic_search' => array( |
|
54 | - 'name' => array('name' => 'name', 'label' => 'LBL_NAME',), |
|
55 | - ), |
|
56 | - 'advanced_search' => array(), |
|
57 | - ), |
|
58 | - ); |
|
53 | + 'basic_search' => array( |
|
54 | + 'name' => array('name' => 'name', 'label' => 'LBL_NAME',), |
|
55 | + ), |
|
56 | + 'advanced_search' => array(), |
|
57 | + ), |
|
58 | + ); |
|
59 | 59 | ?> |
@@ -39,7 +39,7 @@ |
||
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | 41 | $searchFields['ACLRoles'] = |
42 | - array ( |
|
43 | - 'name' => array( 'query_type'=>'default'), |
|
44 | - ); |
|
42 | + array ( |
|
43 | + 'name' => array( 'query_type'=>'default'), |
|
44 | + ); |
|
45 | 45 | ?> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
3 | 3 | /********************************************************************************* |
4 | 4 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 5 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | 41 | $searchFields['ACLRoles'] = |
42 | - array ( |
|
43 | - 'name' => array( 'query_type'=>'default'), |
|
42 | + array( |
|
43 | + 'name' => array('query_type'=>'default'), |
|
44 | 44 | ); |
45 | 45 | ?> |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | -if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); |
|
2 | +if(!defined('sugarEntry') || !sugarEntry) { |
|
3 | + die('Not A Valid Entry Point'); |
|
4 | +} |
|
3 | 5 | /********************************************************************************* |
4 | 6 | * SugarCRM Community Edition is a customer relationship management program developed by |
5 | 7 | * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. |
@@ -5,11 +5,11 @@ |
||
5 | 5 | 'widths' => array( |
6 | 6 | ), |
7 | 7 | 'includes'=> array( |
8 | - ), |
|
9 | - ), |
|
8 | + ), |
|
9 | + ), |
|
10 | 10 | 'panels' => array( |
11 | 11 | |
12 | - ), |
|
12 | + ), |
|
13 | 13 | |
14 | 14 | |
15 | 15 | ); |