Project

General

Profile

« Previous | Next » 

Revision 1243

Added by Dietmar almost 15 years ago

Ticket #911 continue to fix CSS-errors in WB backend

View differences:

branches/2.8.x/CHANGELOG
12 12

  
13 13
------------------------------------- 2.8.1 -------------------------------------
14 14
13-Jan-2010 Dietmar Woellbrink (Luisehahne)
15
#	Ticket #911 continue to fix CSS-errors in WB backend
16
13-Jan-2010 Dietmar Woellbrink (Luisehahne)
15 17
#	Ticket #911 Beginning to fix More CSS-errors in WB backend
16 18
+	add SVN- Revision to backend theme
17 19
12-Jan-2010 Dietmar Woellbrink (Luisehahne)
branches/2.8.x/wb/admin/groups/groups.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
// Include config file and admin class file
27
require('../../config.php');
28
require_once(WB_PATH.'/framework/class.admin.php');
29

  
30
// Create new database object
31
$database = new database();
32

  
33
if(!isset($_POST['action']) OR ($_POST['action'] != "modify" AND $_POST['action'] != "delete")) {
34
	header("Location: index.php");
35
	exit(0);
36
}
37

  
38
// Set parameter 'action' as alternative to javascript mechanism
39
if(isset($_POST['modify']))
40
	$_POST['action'] = "modify";
41
if(isset($_POST['delete']))
42
	$_POST['action'] = "delete";
43

  
44
// Check if group group_id is a valid number and doesnt equal 1
45
if(!isset($_POST['group_id']) OR !is_numeric($_POST['group_id']) OR $_POST['group_id'] == 1) {
46
	header("Location: index.php");
47
	exit(0);
48
}
49

  
50
if($_POST['action'] == 'modify') {
51
	// Create new admin object
52
	$admin = new admin('Access', 'groups_modify', false);
53
	// Print header
54
	$admin->print_header();
55
	// Get existing values
56
	$results = $database->query("SELECT * FROM ".TABLE_PREFIX."groups WHERE group_id = '".$_POST['group_id']."'");
57
	$group = $results->fetchRow();
58
	// Setup template object
59
	$template = new Template(THEME_PATH.'/templates');
60
	$template->set_file('page', 'groups_form.htt');
61
	$template->set_block('page', 'main_block', 'main');
62
	$template->set_var(	array(
63
										'ACTION_URL' => ADMIN_URL.'/groups/save.php',
64
										'SUBMIT_TITLE' => $TEXT['SAVE'],
65
										'GROUP_ID' => $group['group_id'],
66
										'GROUP_NAME' => $group['name'],
67
										'ADVANCED_ACTION' => 'groups.php'
68
										)
69
							);
70
	// Tell the browser whether or not to show advanced options
71
	if( true == (isset( $_POST['advanced']) AND ( strpos( $_POST['advanced'], ">>") > 0 ) ) ) {
72
		$template->set_var('DISPLAY_ADVANCED', '');
73
		$template->set_var('DISPLAY_BASIC', 'none');
74
		$template->set_var('ADVANCED', 'yes');
75
		$template->set_var('ADVANCED_BUTTON', '&lt;&lt; '.$TEXT['HIDE_ADVANCED']);
76
	} else {
77
		$template->set_var('DISPLAY_ADVANCED', 'none');
78
		$template->set_var('DISPLAY_BASIC', '');
79
		$template->set_var('ADVANCED', 'no');
80
		$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].'  &gt;&gt;');
81
	}
82

  
83
	// Explode system permissions
84
	$system_permissions = explode(',', $group['system_permissions']);
85
	// Check system permissions boxes
86
	foreach($system_permissions AS $name) {
87
			$template->set_var($name.'_checked', ' checked="checked"');
88
	}
89
	// Explode module permissions
90
	$module_permissions = explode(',', $group['module_permissions']);
91
	// Explode template permissions
92
	$template_permissions = explode(',', $group['template_permissions']);
93
	
94
	// Insert values into module list
95
	$template->set_block('main_block', 'module_list_block', 'module_list');
96
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'page'");
97
	if($result->numRows() > 0) {
98
		while($addon = $result->fetchRow()) {
99
			$template->set_var('VALUE', $addon['directory']);
100
			$template->set_var('NAME', $addon['name']);
101
			if(!is_numeric(array_search($addon['directory'], $module_permissions))) {
102
				$template->set_var('CHECKED', ' checked="checked"');
103
			} else {
104
				$template->set_var('CHECKED', '');
105
			}
106
			$template->parse('module_list', 'module_list_block', true);
107
		}
108
	}
109
	
110
	// Insert values into template list
111
	$template->set_block('main_block', 'template_list_block', 'template_list');
112
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template'");
113
	if($result->numRows() > 0) {
114
		while($addon = $result->fetchRow()) {
115
			$template->set_var('VALUE', $addon['directory']);
116
			$template->set_var('NAME', $addon['name']);
117
			if(!is_numeric(array_search($addon['directory'], $template_permissions))) {
118
				$template->set_var('CHECKED', ' checked="checked"');
119
			} else {
120
				$template->set_var('CHECKED', '');
121
			}
122
			$template->parse('template_list', 'template_list_block', true);
123
		}
124
	}
125
		
126
	// Insert language text and messages
127
	$template->set_var(array(
128
									'TEXT_RESET' => $TEXT['RESET'],
129
									'TEXT_ACTIVE' => $TEXT['ACTIVE'],
130
									'TEXT_DISABLED' => $TEXT['DISABLED'],
131
									'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
132
									'TEXT_USERNAME' => $TEXT['USERNAME'],
133
									'TEXT_PASSWORD' => $TEXT['PASSWORD'],
134
									'TEXT_RETYPE_PASSWORD' => $TEXT['RETYPE_PASSWORD'],
135
									'TEXT_DISPLAY_NAME' => $TEXT['DISPLAY_NAME'],
136
									'TEXT_EMAIL' => $TEXT['EMAIL'],
137
									'TEXT_GROUP' => $TEXT['GROUP'],
138
									'TEXT_SYSTEM_PERMISSIONS' => $TEXT['SYSTEM_PERMISSIONS'],
139
									'TEXT_MODULE_PERMISSIONS' => $TEXT['MODULE_PERMISSIONS'],
140
									'TEXT_TEMPLATE_PERMISSIONS' => $TEXT['TEMPLATE_PERMISSIONS'],
141
									'TEXT_NAME' => $TEXT['NAME'],
142
									'SECTION_PAGES' => $MENU['PAGES'],
143
									'SECTION_MEDIA' => $MENU['MEDIA'],
144
									'SECTION_MODULES' => $MENU['MODULES'],
145
									'SECTION_TEMPLATES' => $MENU['TEMPLATES'],
146
									'SECTION_LANGUAGES' => $MENU['LANGUAGES'],
147
									'SECTION_SETTINGS' => $MENU['SETTINGS'],
148
									'SECTION_USERS' => $MENU['USERS'],
149
									'SECTION_GROUPS' => $MENU['GROUPS'],
150
									'SECTION_ADMINTOOLS' => $MENU['ADMINTOOLS'],
151
									'TEXT_VIEW' => $TEXT['VIEW'],
152
									'TEXT_ADD' => $TEXT['ADD'],
153
									'TEXT_LEVEL' => $TEXT['LEVEL'],
154
									'TEXT_MODIFY' => $TEXT['MODIFY'],
155
									'TEXT_DELETE' => $TEXT['DELETE'],
156
									'TEXT_MODIFY_CONTENT' => $TEXT['MODIFY_CONTENT'],
157
									'TEXT_MODIFY_SETTINGS' => $TEXT['MODIFY_SETTINGS'],
158
									'HEADING_MODIFY_INTRO_PAGE' => $HEADING['MODIFY_INTRO_PAGE'],
159
									'TEXT_CREATE_FOLDER' => $TEXT['CREATE_FOLDER'],
160
									'TEXT_RENAME' => $TEXT['RENAME'],
161
									'TEXT_UPLOAD_FILES' => $TEXT['UPLOAD_FILES'],
162
									'TEXT_BASIC' => $TEXT['BASIC'],
163
									'TEXT_ADVANCED' => $TEXT['ADVANCED'],
164
									'CHANGING_PASSWORD' => $MESSAGE['USERS']['CHANGING_PASSWORD'],
165
									'HEADING_MODIFY_GROUP' => $HEADING['MODIFY_GROUP']
166
									)
167
							);
168
	
169
	// Parse template object
170
	$template->parse('main', 'main_block', false);
171
	$template->pparse('output', 'page');
172
} elseif($_POST['action'] == 'delete') {
173
	// Create new admin object
174
	$admin = new admin('Access', 'groups_delete', false);
175
	// Print header
176
	$admin->print_header();
177
	// Delete the group
178
	$database->query("DELETE FROM ".TABLE_PREFIX."groups WHERE group_id = '".$_POST['group_id']."' LIMIT 1");
179
	if($database->is_error()) {
180
		$admin->print_error($database->get_error());
181
	} else {
182
		// Delete users in the group
183
		$database->query("DELETE FROM ".TABLE_PREFIX."users WHERE group_id = '".$_POST['group_id']."'");
184
		if($database->is_error()) {
185
			$admin->print_error($database->get_error());
186
		} else {
187
			$admin->print_success($MESSAGE['GROUPS']['DELETED']);
188
		}
189
	}
190
}
191

  
192
// Print admin footer
193
$admin->print_footer();
194

  
1
<?php
2
/****************************************************************************
3
* SVN Version information:
4
*
5
* $Id$
6
*
7
*****************************************************************************
8
*                          WebsiteBaker
9
*
10
* WebsiteBaker Project <http://www.websitebaker2.org/>
11
* Copyright (C) 2009, Website Baker Org. e.V.
12
*         http://start.websitebaker2.org/impressum-datenschutz.php
13
* Copyright (C) 2004-2009, Ryan Djurovich
14
*
15
*                        About WebsiteBaker
16
*
17
* Website Baker is a PHP-based Content Management System (CMS)
18
* designed with one goal in mind: to enable its users to produce websites
19
* with ease.
20
*
21
*****************************************************************************
22
*
23
*****************************************************************************
24
*                        LICENSE INFORMATION
25
*
26
* WebsiteBaker is free software; you can redistribute it and/or
27
* modify it under the terms of the GNU General Public License
28
* as published by the Free Software Foundation; either version 2
29
* of the License, or (at your option) any later version.
30
*
31
* WebsiteBaker is distributed in the hope that it will be useful,
32
* but WITHOUT ANY WARRANTY; without even the implied warranty of
33
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34
* See the GNU General Public License for more details.
35
*
36
* You should have received a copy of the GNU General Public License
37
* along with this program; if not, write to the Free Software
38
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
39
****************************************************************************
40
*
41
*                   WebsiteBaker Extra Information
42
*
43
*
44
*
45
*
46
*****************************************************************************/
47
/**
48
 *
49
 * @category     admin
50
 * @package      settings
51
 * @author       Ryan Djurovich
52
 * @copyright    2004-2009, Ryan Djurovich
53
 * @copyright    2009-2010, Website Baker Org. e.V.
54
 * @version      $Id$
55
 * @platform     WebsiteBaker 2.8.x
56
 * @requirements >= PHP 4.3.4
57
 * @license      http://www.gnu.org/licenses/gpl.html
58
 *
59
 */
60

  
61
// Include config file and admin class file
62
require('../../config.php');
63
require_once(WB_PATH.'/framework/class.admin.php');
64

  
65
// Create new database object
66
$database = new database();
67

  
68
if(!isset($_POST['action']) OR ($_POST['action'] != "modify" AND $_POST['action'] != "delete")) {
69
	header("Location: index.php");
70
	exit(0);
71
}
72

  
73
// Set parameter 'action' as alternative to javascript mechanism
74
if(isset($_POST['modify']))
75
	$_POST['action'] = "modify";
76
if(isset($_POST['delete']))
77
	$_POST['action'] = "delete";
78

  
79
// Check if group group_id is a valid number and doesnt equal 1
80
if(!isset($_POST['group_id']) OR !is_numeric($_POST['group_id']) OR $_POST['group_id'] == 1) {
81
	header("Location: index.php");
82
	exit(0);
83
}
84

  
85
if($_POST['action'] == 'modify') {
86
	// Create new admin object
87
	$admin = new admin('Access', 'groups_modify', false);
88
	// Print header
89
	$admin->print_header();
90
	// Get existing values
91
	$results = $database->query("SELECT * FROM ".TABLE_PREFIX."groups WHERE group_id = '".$_POST['group_id']."'");
92
	$group = $results->fetchRow();
93
	// Setup template object
94
	$template = new Template(THEME_PATH.'/templates');
95
	$template->set_file('page', 'groups_form.htt');
96
	$template->set_block('page', 'main_block', 'main');
97
	$template->set_var(	array(
98
										'ACTION_URL' => ADMIN_URL.'/groups/save.php',
99
										'SUBMIT_TITLE' => $TEXT['SAVE'],
100
										'GROUP_ID' => $group['group_id'],
101
										'GROUP_NAME' => $group['name'],
102
										'ADVANCED_ACTION' => 'groups.php'
103
										)
104
							);
105
	// Tell the browser whether or not to show advanced options
106
	if( true == (isset( $_POST['advanced']) AND ( strpos( $_POST['advanced'], ">>") > 0 ) ) ) {
107
		$template->set_var('DISPLAY_ADVANCED', '');
108
		$template->set_var('DISPLAY_BASIC', 'display:none;');
109
		$template->set_var('ADVANCED', 'yes');
110
		$template->set_var('ADVANCED_BUTTON', '&lt;&lt; '.$TEXT['HIDE_ADVANCED']);
111
	} else {
112
		$template->set_var('DISPLAY_ADVANCED', 'display:none;');
113
		$template->set_var('DISPLAY_BASIC', '');
114
		$template->set_var('ADVANCED', 'no');
115
		$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].'  &gt;&gt;');
116
	}
117

  
118
	// Explode system permissions
119
	$system_permissions = explode(',', $group['system_permissions']);
120
	// Check system permissions boxes
121
	foreach($system_permissions AS $name) {
122
			$template->set_var($name.'_checked', ' checked="checked"');
123
	}
124
	// Explode module permissions
125
	$module_permissions = explode(',', $group['module_permissions']);
126
	// Explode template permissions
127
	$template_permissions = explode(',', $group['template_permissions']);
128
	
129
	// Insert values into module list
130
	$template->set_block('main_block', 'module_list_block', 'module_list');
131
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'page'");
132
	if($result->numRows() > 0) {
133
		while($addon = $result->fetchRow()) {
134
			$template->set_var('VALUE', $addon['directory']);
135
			$template->set_var('NAME', $addon['name']);
136
			if(!is_numeric(array_search($addon['directory'], $module_permissions))) {
137
				$template->set_var('CHECKED', ' checked="checked"');
138
			} else {
139
				$template->set_var('CHECKED', '');
140
			}
141
			$template->parse('module_list', 'module_list_block', true);
142
		}
143
	}
144
	
145
	// Insert values into template list
146
	$template->set_block('main_block', 'template_list_block', 'template_list');
147
	$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template'");
148
	if($result->numRows() > 0) {
149
		while($addon = $result->fetchRow()) {
150
			$template->set_var('VALUE', $addon['directory']);
151
			$template->set_var('NAME', $addon['name']);
152
			if(!is_numeric(array_search($addon['directory'], $template_permissions))) {
153
				$template->set_var('CHECKED', ' checked="checked"');
154
			} else {
155
				$template->set_var('CHECKED', '');
156
			}
157
			$template->parse('template_list', 'template_list_block', true);
158
		}
159
	}
160
		
161
	// Insert language text and messages
162
	$template->set_var(array(
163
									'TEXT_RESET' => $TEXT['RESET'],
164
									'TEXT_ACTIVE' => $TEXT['ACTIVE'],
165
									'TEXT_DISABLED' => $TEXT['DISABLED'],
166
									'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
167
									'TEXT_USERNAME' => $TEXT['USERNAME'],
168
									'TEXT_PASSWORD' => $TEXT['PASSWORD'],
169
									'TEXT_RETYPE_PASSWORD' => $TEXT['RETYPE_PASSWORD'],
170
									'TEXT_DISPLAY_NAME' => $TEXT['DISPLAY_NAME'],
171
									'TEXT_EMAIL' => $TEXT['EMAIL'],
172
									'TEXT_GROUP' => $TEXT['GROUP'],
173
									'TEXT_SYSTEM_PERMISSIONS' => $TEXT['SYSTEM_PERMISSIONS'],
174
									'TEXT_MODULE_PERMISSIONS' => $TEXT['MODULE_PERMISSIONS'],
175
									'TEXT_TEMPLATE_PERMISSIONS' => $TEXT['TEMPLATE_PERMISSIONS'],
176
									'TEXT_NAME' => $TEXT['NAME'],
177
									'SECTION_PAGES' => $MENU['PAGES'],
178
									'SECTION_MEDIA' => $MENU['MEDIA'],
179
									'SECTION_MODULES' => $MENU['MODULES'],
180
									'SECTION_TEMPLATES' => $MENU['TEMPLATES'],
181
									'SECTION_LANGUAGES' => $MENU['LANGUAGES'],
182
									'SECTION_SETTINGS' => $MENU['SETTINGS'],
183
									'SECTION_USERS' => $MENU['USERS'],
184
									'SECTION_GROUPS' => $MENU['GROUPS'],
185
									'SECTION_ADMINTOOLS' => $MENU['ADMINTOOLS'],
186
									'TEXT_VIEW' => $TEXT['VIEW'],
187
									'TEXT_ADD' => $TEXT['ADD'],
188
									'TEXT_LEVEL' => $TEXT['LEVEL'],
189
									'TEXT_MODIFY' => $TEXT['MODIFY'],
190
									'TEXT_DELETE' => $TEXT['DELETE'],
191
									'TEXT_MODIFY_CONTENT' => $TEXT['MODIFY_CONTENT'],
192
									'TEXT_MODIFY_SETTINGS' => $TEXT['MODIFY_SETTINGS'],
193
									'HEADING_MODIFY_INTRO_PAGE' => $HEADING['MODIFY_INTRO_PAGE'],
194
									'TEXT_CREATE_FOLDER' => $TEXT['CREATE_FOLDER'],
195
									'TEXT_RENAME' => $TEXT['RENAME'],
196
									'TEXT_UPLOAD_FILES' => $TEXT['UPLOAD_FILES'],
197
									'TEXT_BASIC' => $TEXT['BASIC'],
198
									'TEXT_ADVANCED' => $TEXT['ADVANCED'],
199
									'CHANGING_PASSWORD' => $MESSAGE['USERS']['CHANGING_PASSWORD'],
200
									'HEADING_MODIFY_GROUP' => $HEADING['MODIFY_GROUP']
201
									)
202
							);
203
	
204
	// Parse template object
205
	$template->parse('main', 'main_block', false);
206
	$template->pparse('output', 'page');
207
} elseif($_POST['action'] == 'delete') {
208
	// Create new admin object
209
	$admin = new admin('Access', 'groups_delete', false);
210
	// Print header
211
	$admin->print_header();
212
	// Delete the group
213
	$database->query("DELETE FROM ".TABLE_PREFIX."groups WHERE group_id = '".$_POST['group_id']."' LIMIT 1");
214
	if($database->is_error()) {
215
		$admin->print_error($database->get_error());
216
	} else {
217
		// Delete users in the group
218
		$database->query("DELETE FROM ".TABLE_PREFIX."users WHERE group_id = '".$_POST['group_id']."'");
219
		if($database->is_error()) {
220
			$admin->print_error($database->get_error());
221
		} else {
222
			$admin->print_success($MESSAGE['GROUPS']['DELETED']);
223
		}
224
	}
225
}
226

  
227
// Print admin footer
228
$admin->print_footer();
229

  
195 230
?>
branches/2.8.x/wb/admin/groups/index.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
// Print admin header
27
require('../../config.php');
28
require_once(WB_PATH.'/framework/class.admin.php');
29
$admin = new admin('Access', 'groups');
30

  
31
// Create new template object for the modify/remove menu
32
$template = new Template(THEME_PATH.'/templates');
33
$template->set_file('page', 'groups.htt');
34
$template->set_block('page', 'main_block', 'main');
35
$template->set_block('main_block', 'manage_users_block', 'users');
36
// insert urls
37
$template->set_var(array(
38
	'ADMIN_URL' => ADMIN_URL,
39
	'WB_URL' => WB_URL,
40
	'WB_PATH' => WB_PATH,
41
	'THEME_URL' => THEME_URL
42
	)
43
);
44

  
45
// Get existing value from database
46
$database = new database();
47
$query = "SELECT group_id,name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'";
48
$results = $database->query($query);
49
if($database->is_error()) {
50
	$admin->print_error($database->get_error(), 'index.php');
51
}
52

  
53
// Insert values into the modify/remove menu
54
$template->set_block('main_block', 'list_block', 'list');
55
if($results->numRows() > 0) {
56
	// Insert first value to say please select
57
	$template->set_var('VALUE', '');
58
	$template->set_var('NAME', $TEXT['PLEASE_SELECT'].'...');
59
	$template->parse('list', 'list_block', true);
60
	// Loop through groups
61
	while($group = $results->fetchRow()) {
62
		$template->set_var('VALUE', $group['group_id']);
63
		$template->set_var('NAME', $group['name']);
64
		$template->parse('list', 'list_block', true);
65
	}
66
} else {
67
	// Insert single value to say no groups were found
68
	$template->set_var('NAME', $TEXT['NONE_FOUND']);
69
	$template->parse('list', 'list_block', true);
70
}
71

  
72
// Insert permissions values
73
if($admin->get_permission('groups_add') != true) {
74
	$template->set_var('DISPLAY_ADD', 'hide');
75
}
76
if($admin->get_permission('groups_modify') != true) {
77
	$template->set_var('DISPLAY_MODIFY', 'hide');
78
}
79
if($admin->get_permission('groups_delete') != true) {
80
	$template->set_var('DISPLAY_DELETE', 'hide');
81
}
82

  
83
// Insert language headings
84
$template->set_var(array(
85
	'HEADING_MODIFY_DELETE_GROUP' => $HEADING['MODIFY_DELETE_GROUP'],
86
	'HEADING_ADD_GROUP' => $HEADING['ADD_GROUP']
87
	)
88
);
89
// Insert language text and messages
90
$template->set_var(array(
91
	'TEXT_MODIFY' => $TEXT['MODIFY'],
92
	'TEXT_DELETE' => $TEXT['DELETE'],
93
	'TEXT_MANAGE_USERS' => ( $admin->get_permission('users') == true ) ? $TEXT['MANAGE_USERS']: "",
94
	'CONFIRM_DELETE' => $MESSAGE['GROUPS']['CONFIRM_DELETE']
95
	)
96
);
97
if ( $admin->get_permission('users') == true ) $template->parse("users", "manage_users_block", true);
98
// Parse template object
99
$template->parse('main', 'main_block', false);
100
$template->pparse('output', 'page');
101

  
102
// Setup template for add group form
103
$template = new Template(THEME_PATH.'/templates');
104
$template->set_file('page', 'groups_form.htt');
105
$template->set_block('page', 'main_block', 'main');
106
$template->set_var('DISPLAY_EXTRA', 'none');
107
$template->set_var('ACTION_URL', ADMIN_URL.'/groups/add.php');
108
$template->set_var('SUBMIT_TITLE', $TEXT['ADD']);
109
$template->set_var('ADVANCED_ACTION', 'index.php');
110

  
111
// Tell the browser whether or not to show advanced options
112
if ( true == (isset( $_POST['advanced']) AND ( strpos( $_POST['advanced'], ">>") > 0 ) ) ) {
113
	$template->set_var('DISPLAY_ADVANCED', '');
114
	$template->set_var('DISPLAY_BASIC', 'none');
115
	$template->set_var('ADVANCED', 'yes');
116
	$template->set_var('ADVANCED_BUTTON', '<< '.$TEXT['HIDE_ADVANCED']);
117
} else {
118
	$template->set_var('DISPLAY_ADVANCED', 'none');
119
	$template->set_var('DISPLAY_BASIC', '');
120
	$template->set_var('ADVANCED', 'no');
121
	$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' >>');
122
}
123

  
124
// Insert permissions values
125
if($admin->get_permission('groups_add') != true) {
126
	$template->set_var('DISPLAY_ADD', 'hide');
127
}
128

  
129
// Insert values into module list
130
$template->set_block('main_block', 'module_list_block', 'module_list');
131
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'page'");
132
if($result->numRows() > 0) {
133
	while($addon = $result->fetchRow()) {
134
		$template->set_var('VALUE', $addon['directory']);
135
		$template->set_var('NAME', $addon['name']);
136
		$template->parse('module_list', 'module_list_block', true);
137
	}
138
}
139

  
140
// Insert values into template list
141
$template->set_block('main_block', 'template_list_block', 'template_list');
142
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template'");
143
if($result->numRows() > 0) {
144
	while($addon = $result->fetchRow()) {
145
		$template->set_var('VALUE', $addon['directory']);
146
		$template->set_var('NAME', $addon['name']);
147
		$template->parse('template_list', 'template_list_block', true);
148
	}
149
}
150

  
151
// Insert language text and messages
152
$template->set_var(array(
153
								'TEXT_RESET' => $TEXT['RESET'],
154
								'TEXT_ACTIVE' => $TEXT['ACTIVE'],
155
								'TEXT_DISABLED' => $TEXT['DISABLED'],
156
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
157
								'TEXT_USERNAME' => $TEXT['USERNAME'],
158
								'TEXT_PASSWORD' => $TEXT['PASSWORD'],
159
								'TEXT_RETYPE_PASSWORD' => $TEXT['RETYPE_PASSWORD'],
160
								'TEXT_DISPLAY_NAME' => $TEXT['DISPLAY_NAME'],
161
								'TEXT_EMAIL' => $TEXT['EMAIL'],
162
								'TEXT_GROUP' => $TEXT['GROUP'],
163
								'TEXT_SYSTEM_PERMISSIONS' => $TEXT['SYSTEM_PERMISSIONS'],
164
								'TEXT_MODULE_PERMISSIONS' => $TEXT['MODULE_PERMISSIONS'],
165
								'TEXT_TEMPLATE_PERMISSIONS' => $TEXT['TEMPLATE_PERMISSIONS'],
166
								'TEXT_NAME' => $TEXT['NAME'],
167
								'SECTION_PAGES' => $MENU['PAGES'],
168
								'SECTION_MEDIA' => $MENU['MEDIA'],
169
								'SECTION_MODULES' => $MENU['MODULES'],
170
								'SECTION_TEMPLATES' => $MENU['TEMPLATES'],
171
								'SECTION_SETTINGS' => $MENU['SETTINGS'],
172
								'SECTION_LANGUAGES' => $MENU['LANGUAGES'],
173
								'SECTION_USERS' => $MENU['USERS'],
174
								'SECTION_GROUPS' => $MENU['GROUPS'],
175
								'SECTION_ADMINTOOLS' => $MENU['ADMINTOOLS'],
176
								'TEXT_VIEW' => $TEXT['VIEW'],
177
								'TEXT_ADD' => $TEXT['ADD'],
178
								'TEXT_LEVEL' => $TEXT['LEVEL'],
179
								'TEXT_MODIFY' => $TEXT['MODIFY'],
180
								'TEXT_DELETE' => $TEXT['DELETE'],
181
								'TEXT_MODIFY_CONTENT' => $TEXT['MODIFY_CONTENT'],
182
								'TEXT_MODIFY_SETTINGS' => $TEXT['MODIFY_SETTINGS'],
183
								'HEADING_MODIFY_INTRO_PAGE' => $HEADING['MODIFY_INTRO_PAGE'],
184
								'TEXT_CREATE_FOLDER' => $TEXT['CREATE_FOLDER'],
185
								'TEXT_RENAME' => $TEXT['RENAME'],
186
								'TEXT_UPLOAD_FILES' => $TEXT['UPLOAD_FILES'],
187
								'TEXT_BASIC' => $TEXT['BASIC'],
188
								'TEXT_ADVANCED' => $TEXT['ADVANCED'],
189
								'CHANGING_PASSWORD' => $MESSAGE['USERS']['CHANGING_PASSWORD'],
190
								'CHECKED' => ' checked="checked"',
191
								'ADMIN_URL' => ADMIN_URL,
192
								'WB_URL' => WB_URL,
193
								'WB_PATH' => WB_PATH,
194
								'THEME_URL' => THEME_URL
195
								)
196
						);
197

  
198
// Parse template for add group form
199
$template->parse('main', 'main_block', false);
200
$template->pparse('output', 'page');
201

  
202
// Print the admin footer
203
$admin->print_footer();
204

  
1
<?php
2
/****************************************************************************
3
* SVN Version information:
4
*
5
* $Id$
6
*
7
*****************************************************************************
8
*                          WebsiteBaker
9
*
10
* WebsiteBaker Project <http://www.websitebaker2.org/>
11
* Copyright (C) 2009, Website Baker Org. e.V.
12
*         http://start.websitebaker2.org/impressum-datenschutz.php
13
* Copyright (C) 2004-2009, Ryan Djurovich
14
*
15
*                        About WebsiteBaker
16
*
17
* Website Baker is a PHP-based Content Management System (CMS)
18
* designed with one goal in mind: to enable its users to produce websites
19
* with ease.
20
*
21
*****************************************************************************
22
*
23
*****************************************************************************
24
*                        LICENSE INFORMATION
25
*
26
* WebsiteBaker is free software; you can redistribute it and/or
27
* modify it under the terms of the GNU General Public License
28
* as published by the Free Software Foundation; either version 2
29
* of the License, or (at your option) any later version.
30
*
31
* WebsiteBaker is distributed in the hope that it will be useful,
32
* but WITHOUT ANY WARRANTY; without even the implied warranty of
33
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34
* See the GNU General Public License for more details.
35
*
36
* You should have received a copy of the GNU General Public License
37
* along with this program; if not, write to the Free Software
38
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
39
****************************************************************************
40
*
41
*                   WebsiteBaker Extra Information
42
*
43
*
44
*
45
*
46
*****************************************************************************/
47
/**
48
 *
49
 * @category     admin
50
 * @package      settings
51
 * @author       Ryan Djurovich
52
 * @copyright    2004-2009, Ryan Djurovich
53
 * @copyright    2009-2010, Website Baker Org. e.V.
54
 * @version      $Id$
55
 * @platform     WebsiteBaker 2.8.x
56
 * @requirements >= PHP 4.3.4
57
 * @license      http://www.gnu.org/licenses/gpl.html
58
 *
59
 */
60

  
61
// Print admin header
62
require('../../config.php');
63
require_once(WB_PATH.'/framework/class.admin.php');
64
$admin = new admin('Access', 'groups');
65

  
66
// Create new template object for the modify/remove menu
67
$template = new Template(THEME_PATH.'/templates');
68
$template->set_file('page', 'groups.htt');
69
$template->set_block('page', 'main_block', 'main');
70
$template->set_block('main_block', 'manage_users_block', 'users');
71
// insert urls
72
$template->set_var(array(
73
	'ADMIN_URL' => ADMIN_URL,
74
	'WB_URL' => WB_URL,
75
	'WB_PATH' => WB_PATH,
76
	'THEME_URL' => THEME_URL
77
	)
78
);
79

  
80
// Get existing value from database
81
$database = new database();
82
$query = "SELECT group_id,name FROM ".TABLE_PREFIX."groups WHERE group_id != '1'";
83
$results = $database->query($query);
84
if($database->is_error()) {
85
	$admin->print_error($database->get_error(), 'index.php');
86
}
87

  
88
// Insert values into the modify/remove menu
89
$template->set_block('main_block', 'list_block', 'list');
90
if($results->numRows() > 0) {
91
	// Insert first value to say please select
92
	$template->set_var('VALUE', '');
93
	$template->set_var('NAME', $TEXT['PLEASE_SELECT'].'...');
94
	$template->parse('list', 'list_block', true);
95
	// Loop through groups
96
	while($group = $results->fetchRow()) {
97
		$template->set_var('VALUE', $group['group_id']);
98
		$template->set_var('NAME', $group['name']);
99
		$template->parse('list', 'list_block', true);
100
	}
101
} else {
102
	// Insert single value to say no groups were found
103
	$template->set_var('NAME', $TEXT['NONE_FOUND']);
104
	$template->parse('list', 'list_block', true);
105
}
106

  
107
// Insert permissions values
108
if($admin->get_permission('groups_add') != true) {
109
	$template->set_var('DISPLAY_ADD', 'hide');
110
}
111
if($admin->get_permission('groups_modify') != true) {
112
	$template->set_var('DISPLAY_MODIFY', 'hide');
113
}
114
if($admin->get_permission('groups_delete') != true) {
115
	$template->set_var('DISPLAY_DELETE', 'hide');
116
}
117

  
118
// Insert language headings
119
$template->set_var(array(
120
	'HEADING_MODIFY_DELETE_GROUP' => $HEADING['MODIFY_DELETE_GROUP'],
121
	'HEADING_ADD_GROUP' => $HEADING['ADD_GROUP']
122
	)
123
);
124
// Insert language text and messages
125
$template->set_var(array(
126
	'TEXT_MODIFY' => $TEXT['MODIFY'],
127
	'TEXT_DELETE' => $TEXT['DELETE'],
128
	'TEXT_MANAGE_USERS' => ( $admin->get_permission('users') == true ) ? $TEXT['MANAGE_USERS']: "",
129
	'CONFIRM_DELETE' => $MESSAGE['GROUPS']['CONFIRM_DELETE']
130
	)
131
);
132
if ( $admin->get_permission('users') == true ) $template->parse("users", "manage_users_block", true);
133
// Parse template object
134
$template->parse('main', 'main_block', false);
135
$template->pparse('output', 'page');
136

  
137
// Setup template for add group form
138
$template = new Template(THEME_PATH.'/templates');
139
$template->set_file('page', 'groups_form.htt');
140
$template->set_block('page', 'main_block', 'main');
141
$template->set_var('DISPLAY_EXTRA', 'display:none;');
142
$template->set_var('ACTION_URL', ADMIN_URL.'/groups/add.php');
143
$template->set_var('SUBMIT_TITLE', $TEXT['ADD']);
144
$template->set_var('ADVANCED_ACTION', 'index.php');
145

  
146
// Tell the browser whether or not to show advanced options
147
if ( true == (isset( $_POST['advanced']) AND ( strpos( $_POST['advanced'], ">>") > 0 ) ) ) {
148
	$template->set_var('DISPLAY_ADVANCED', '');
149
	$template->set_var('DISPLAY_BASIC', 'display:none;');
150
	$template->set_var('ADVANCED', 'yes');
151
	$template->set_var('ADVANCED_BUTTON', '<< '.$TEXT['HIDE_ADVANCED']);
152
} else {
153
	$template->set_var('DISPLAY_ADVANCED', 'display:none;');
154
	$template->set_var('DISPLAY_BASIC', '');
155
	$template->set_var('ADVANCED', 'no');
156
	$template->set_var('ADVANCED_BUTTON', $TEXT['SHOW_ADVANCED'].' >>');
157
}
158

  
159
// Insert permissions values
160
if($admin->get_permission('groups_add') != true) {
161
	$template->set_var('DISPLAY_ADD', 'hide');
162
}
163

  
164
// Insert values into module list
165
$template->set_block('main_block', 'module_list_block', 'module_list');
166
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'page'");
167
if($result->numRows() > 0) {
168
	while($addon = $result->fetchRow()) {
169
		$template->set_var('VALUE', $addon['directory']);
170
		$template->set_var('NAME', $addon['name']);
171
		$template->parse('module_list', 'module_list_block', true);
172
	}
173
}
174

  
175
// Insert values into template list
176
$template->set_block('main_block', 'template_list_block', 'template_list');
177
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'template'");
178
if($result->numRows() > 0) {
179
	while($addon = $result->fetchRow()) {
180
		$template->set_var('VALUE', $addon['directory']);
181
		$template->set_var('NAME', $addon['name']);
182
		$template->parse('template_list', 'template_list_block', true);
183
	}
184
}
185

  
186
// Insert language text and messages
187
$template->set_var(array(
188
								'TEXT_RESET' => $TEXT['RESET'],
189
								'TEXT_ACTIVE' => $TEXT['ACTIVE'],
190
								'TEXT_DISABLED' => $TEXT['DISABLED'],
191
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
192
								'TEXT_USERNAME' => $TEXT['USERNAME'],
193
								'TEXT_PASSWORD' => $TEXT['PASSWORD'],
194
								'TEXT_RETYPE_PASSWORD' => $TEXT['RETYPE_PASSWORD'],
195
								'TEXT_DISPLAY_NAME' => $TEXT['DISPLAY_NAME'],
196
								'TEXT_EMAIL' => $TEXT['EMAIL'],
197
								'TEXT_GROUP' => $TEXT['GROUP'],
198
								'TEXT_SYSTEM_PERMISSIONS' => $TEXT['SYSTEM_PERMISSIONS'],
199
								'TEXT_MODULE_PERMISSIONS' => $TEXT['MODULE_PERMISSIONS'],
200
								'TEXT_TEMPLATE_PERMISSIONS' => $TEXT['TEMPLATE_PERMISSIONS'],
201
								'TEXT_NAME' => $TEXT['NAME'],
202
								'SECTION_PAGES' => $MENU['PAGES'],
203
								'SECTION_MEDIA' => $MENU['MEDIA'],
204
								'SECTION_MODULES' => $MENU['MODULES'],
205
								'SECTION_TEMPLATES' => $MENU['TEMPLATES'],
206
								'SECTION_SETTINGS' => $MENU['SETTINGS'],
207
								'SECTION_LANGUAGES' => $MENU['LANGUAGES'],
208
								'SECTION_USERS' => $MENU['USERS'],
209
								'SECTION_GROUPS' => $MENU['GROUPS'],
210
								'SECTION_ADMINTOOLS' => $MENU['ADMINTOOLS'],
211
								'TEXT_VIEW' => $TEXT['VIEW'],
212
								'TEXT_ADD' => $TEXT['ADD'],
213
								'TEXT_LEVEL' => $TEXT['LEVEL'],
214
								'TEXT_MODIFY' => $TEXT['MODIFY'],
215
								'TEXT_DELETE' => $TEXT['DELETE'],
216
								'TEXT_MODIFY_CONTENT' => $TEXT['MODIFY_CONTENT'],
217
								'TEXT_MODIFY_SETTINGS' => $TEXT['MODIFY_SETTINGS'],
218
								'HEADING_MODIFY_INTRO_PAGE' => $HEADING['MODIFY_INTRO_PAGE'],
219
								'TEXT_CREATE_FOLDER' => $TEXT['CREATE_FOLDER'],
220
								'TEXT_RENAME' => $TEXT['RENAME'],
221
								'TEXT_UPLOAD_FILES' => $TEXT['UPLOAD_FILES'],
222
								'TEXT_BASIC' => $TEXT['BASIC'],
223
								'TEXT_ADVANCED' => $TEXT['ADVANCED'],
224
								'CHANGING_PASSWORD' => $MESSAGE['USERS']['CHANGING_PASSWORD'],
225
								'CHECKED' => ' checked="checked"',
226
								'ADMIN_URL' => ADMIN_URL,
227
								'WB_URL' => WB_URL,
228
								'WB_PATH' => WB_PATH,
229
								'THEME_URL' => THEME_URL
230
								)
231
						);
232

  
233
// Parse template for add group form
234
$template->parse('main', 'main_block', false);
235
$template->pparse('output', 'page');
236

  
237
// Print the admin footer
238
$admin->print_footer();
239

  
205 240
?>
branches/2.8.x/wb/admin/interface/version.php
57 57
 * @copyright    2004-2009, Ryan Djurovich
58 58
 * @copyright    2009-2010, Website Baker Org. e.V.
59 59
 * @version      $Id$
60
 * @revision     $Revision$
60 61
 * @platform     WebsiteBaker 2.8.x
61 62
 * @requirements >= PHP 4.3.4
62 63
 * @license      http://www.gnu.org/licenses/gpl.html
......
70 71

  
71 72
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
72 73
if(!defined('VERSION')) define('VERSION', '2.8.1');
73
if(!defined('REVISION')) define('REVISION', '1242');
74
if(!defined('REVISION')) define('REVISION', '1243');
74 75

  
75 76
?>
76 77

  
branches/2.8.x/wb/templates/classic_theme/templates/groups_form.htt
1
<!-- BEGIN main_block -->
2

  
3
<h2 style="display: {DISPLAY_EXTRA};">{HEADING_MODIFY_GROUP}</h2>
4

  
5
<form name="group" action="{ACTION_URL}" method="post" class="{DISPLAY_ADD}">
6
<input type="hidden" name="advanced" value="{ADVANCED}" />
7
<input type="hidden" name="group_id" value="{GROUP_ID}" />
8

  
9
<table cellpadding="5" cellspacing="0" border="0" width="100%">
10
<tr>
11
	<td width="150">{TEXT_NAME}:</td>
12
	<td>
13
		<input type="text" name="group_name" maxlength="255" value="{GROUP_NAME}" style="width: 100%" />
14
	</td>
15
</tr>
16
</table>
17
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="display: {DISPLAY_BASIC}">
18
<tr>
19
	<td width="150" valign="top">{TEXT_SYSTEM_PERMISSIONS}:</td>
20
	<td>
21
		<table cellpadding="0" cellspacing="0" width="100%" border="0">
22
		<tr>
23
			<td>
24
				<input type="checkbox" name="pages" id="pages" value="1" {pages_checked} />
25
				<label for="pages">{SECTION_PAGES}</label>
26
			</td>
27
			<td>
28
				<input type="checkbox" name="media" id="media" value="1" {media_checked} />
29
				<label for="media">{SECTION_MEDIA}</label>
30
			</td>
31
			<td>
32
				<input type="checkbox" name="modules" id="modules" value="1" {modules_checked} />
33
				<label for="modules">{SECTION_MODULES}</label>
34
			</td>
35
			<td>
36
				<input type="checkbox" name="templates" id="templates" value="1" {templates_checked} />
37
				<label for="templates">{SECTION_TEMPLATES}</label>
38
			</td>
39
		</tr>
40
		<tr>
41
			<td>
42
				<input type="checkbox" name="languages" id="languages" value="1" {languages_checked} />
43
				<label for="languages">{SECTION_LANGUAGES}</label>
44
			</td>
45
			<td>		
46
				<input type="checkbox" name="settings" id="settings" value="1" {settings_checked} />
47
				<label for="settings">{SECTION_SETTINGS}</label>
48
			</td>
49
			<td>
50
				<input type="checkbox" name="users" id="users" value="1" {users_checked} />
51
				<label for="users">{SECTION_USERS}</label>
52
			</td>
53
			<td>
54
				<input type="checkbox" name="groups" id="groups" value="1" {groups_checked} />
55
				<label for="groups">{SECTION_GROUPS}</label>
56
			</td>
57
		</tr>
58
		<tr>
59
			<td>
60
				<input type="checkbox" name="admintools" id="admintools" value="1" {admintools_checked} />
61
				<label for="admintools">{SECTION_ADMINTOOLS}</label>
62
			</td>
63
			<td>&nbsp;</td>
64
			<td>&nbsp;</td>
65
			<td>&nbsp;</td>
66
		</tr>
67
		</table>
68
	</td>
69
</tr>
70
</table>
71
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="display: {DISPLAY_ADVANCED}">
72
<tr>
73
	<td valign="top">{TEXT_SYSTEM_PERMISSIONS}:</td>
74
	<td align="left">
75

  
76

  
77
<table cellpadding="3" cellspacing="0" border="0" width="400">
78
<tr>
79
	<td colspan="4">
80
		<h3>{SECTION_PAGES}</h3>
81
	</td>
82
</tr>
83
<tr>
84
	<td><input name="pages_view" id="pages_view" type="checkbox" value="1" {pages_view_checked} /></td>
85
	<td><label for="pages_view">{TEXT_VIEW}</label></td>
86
	<td><input name="pages_add" id="pages_add" type="checkbox" value="1" {pages_add_checked} /></td>
87
	<td>
88
		<label for="pages_add">{TEXT_ADD}</label>
89
		&nbsp;
90
		<input name="pages_add_l0" id="pages_add_l0" type="checkbox" value="1" {pages_add_l0_checked} />
91
		<label for="pages_add_l0">{TEXT_LEVEL} 0</label>)
92
	</td>
93
</tr>
94
<tr>
95
	<td><input name="pages_settings" id="pages_settings" type="checkbox" value="1" {pages_settings_checked} /></td>
96
	<td><label for="pages_settings">{TEXT_MODIFY_SETTINGS}</label></td>
97
	<td><input name="pages_modify" id="pages_modify" type="checkbox" value="1" {pages_modify_checked} /></td>
98
	<td><label for="pages_modify">{TEXT_MODIFY_CONTENT}</label></td>
99
</tr>
100
<tr>
101
	<td><input name="pages_intro" id="pages_intro" type="checkbox" value="1" {pages_intro_checked} /></td>
102
	<td><label for="pages_intro">{HEADING_MODIFY_INTRO_PAGE}</label></td>
103
	<td><input name="pages_delete" id="pages_delete" type="checkbox" value="1" {pages_delete_checked} /></td>
104
	<td><label for="pages_delete">{TEXT_DELETE}</label></td>
105
</tr>
106
<tr>
107
	<td colspan="4">
108
		<h3>{SECTION_MEDIA}</h3>
109
	</td>
110
</tr>
111
<tr>
112
	<td><input name="media_view" id="media_view" type="checkbox" value="1" {media_view_checked} /></td>
113
	<td><label for="media_view">{TEXT_VIEW}</label></td>
114
	<td><input name="media_upload" id="media_upload" type="checkbox" value="1" {media_upload_checked} /></td>
115
	<td><label for="media_upload">{TEXT_UPLOAD_FILES}</label></td>
116
</tr>
117
<tr>
118
	<td><input name="media_rename" id="media_rename" type="checkbox" value="1" {media_rename_checked} /></td>
119
	<td><label for="media_rename">{TEXT_RENAME}</label></td>
120
	<td><input name="media_delete" id="media_delete" type="checkbox" value="1" {media_delete_checked} /></td>
121
	<td><label for="media_delete">{TEXT_DELETE}</label></td>
122
</tr>
123
<tr>
124
	<td><input name="media_create" id="media_create" type="checkbox" value="1" {media_create_checked} /></td>
125
	<td><label for="media_create">{TEXT_CREATE_FOLDER}</label></td>
126
	<td>&nbsp;</td>
127
	<td>&nbsp;</td>
128
</tr>
129
<tr>
130
	<td colspan="4">
131
		<h3>{SECTION_MODULES}</h3>
132
	</td>
133
</tr>
134
<tr>
135
	<td><input name="modules_view" id="modules_view" type="checkbox" value="1" {modules_view_checked} /></td>
136
	<td><label for="modules_view">{TEXT_VIEW}</label></td>
137
	<td><input name="modules_install" id="modules_install" type="checkbox" value="1" {modules_install_checked} /></td>
138
	<td><label for="modules_install">{TEXT_ADD}</label></td>
139
</tr>
140
<tr>
141
	<td><input name="modules_uninstall" id="modules_uninstall" type="checkbox" value="1" {modules_uninstall_checked} /></td>
142
	<td><label for="modules_uninstall">{TEXT_DELETE}</label></td>
143
	<td>&nbsp;</td>
144
	<td>&nbsp;</td>
145
</tr>
146
<tr>
147
	<td colspan="4">
148
		<h3>{SECTION_TEMPLATES}</h3>
149
	</td>
150
</tr>
151
<tr>
152
	<td><input name="templates_view" id="templates_view" type="checkbox" value="1" {templates_view_checked} /></td>
153
	<td><label for="templates_view">{TEXT_VIEW}</label></td>
154
	<td><input name="templates_install" id="templates_install" type="checkbox" value="1" {templates_install_checked} /></td>
155
	<td><label for="templates_install">{TEXT_ADD}</label></td>
156
</tr>
157
<tr>
158
	<td><input name="templates_uninstall" id="templates_uninstall" type="checkbox" value="1" {templates_uninstall_checked} /></td>
159
	<td><label for="templates_uninstall">{TEXT_DELETE}</label></td>
160
	<td>&nbsp;</td>
161
	<td>&nbsp;</td>
162
</tr>
163
<tr>
164
	<td colspan="4">
165
		<h3>{SECTION_LANGUAGES}</h3>
166
	</td>
167
</tr>
168
<tr>
169
	<td><input name="languages_view" id="languages_view" type="checkbox" value="1" {languages_view_checked} /></td>
170
	<td><label for="languages_view">{TEXT_VIEW}</label></td>
171
	<td><input name="languages_install" id="languages_install" type="checkbox" value="1" {languages_install_checked} /></td>
172
	<td><label for="languages_install">{TEXT_ADD}</label></td>
173
</tr>
174
<tr>
175
	<td><input name="languages_uninstall" id="languages_uninstall" type="checkbox" value="1" {languages_uninstall_checked} /></td>
176
	<td><label for="languages_uninstall">{TEXT_DELETE}</label></td>
177
	<td>&nbsp;</td>
178
	<td>&nbsp;</td>
179
</tr>
180
<tr>
181
	<td colspan="4">
182
		<h3>{SECTION_SETTINGS}</h3>
183
	</td>
184
</tr>
185
<tr>
186
	<td><input name="settings_basic" id="settings_basic" type="checkbox" value="1" {settings_basic_checked} /></td>
187
	<td><label for="settings_basic">{TEXT_BASIC}</label></td>
188
	<td><input name="settings_advanced" id="settings_advanced" type="checkbox" value="1" {settings_advanced_checked} /></td>
189
	<td><label for="settings_advanced">{TEXT_ADVANCED}</label></td>
190
</tr>
191
<tr>
192
	<td colspan="4">
193
		<h3>{SECTION_USERS}</h3>
194
	</td>
195
</tr>
196
<tr>
197
	<td><input name="users_view" id="users_view" type="checkbox" value="1" {users_view_checked} /></td>
198
	<td><label for="users_view">{TEXT_VIEW}</label></td>
199
	<td><input name="users_add" id="users_add" type="checkbox" value="1" {users_add_checked} /></td>
200
	<td><label for="users_add">{TEXT_ADD}</label></td>
201
</tr>
202
<tr>
203
	<td><input name="users_modify" id="users_modify" type="checkbox" value="1" {users_modify_checked} /></td>
204
	<td><label for="users_modify">{TEXT_MODIFY}</label></td>
205
	<td><input name="users_delete" id="users_delete" type="checkbox" value="1" {users_delete_checked} /></td>
206
	<td><label for="users_delete">{TEXT_DELETE}</label></td>
207
</tr>
208
<tr>
209
	<td colspan="4">
210
		<h3>{SECTION_GROUPS}</h3>
211
	</td>
212
</tr>
213
<tr>
214
	<td><input name="groups_view" id="groups_view" type="checkbox" value="1" {groups_view_checked} /></td>
215
	<td><label for="groups_view">{TEXT_VIEW}</label></td>
216
	<td><input name="groups_add" id="groups_add" type="checkbox" value="1" {groups_add_checked} /></td>
217
	<td><label for="groups_add">{TEXT_ADD}</label></td>
218
</tr>
219
<tr>
220
	<td><input name="groups_modify" id="groups_modify" type="checkbox" value="1" {groups_modify_checked} /></td>
221
	<td><label for="groups_modify">{TEXT_MODIFY}</label></td>
222
	<td><input name="groups_delete" id="groups_delete" type="checkbox" value="1" {groups_delete_checked} /></td>
223
	<td><label for="groups_delete">{TEXT_DELETE}</label></td>
224
</tr>
225
<tr>
226
	<td colspan="4">
227
		<h3>{SECTION_ADMINTOOLS}</h3>
228
	</td>
229
</tr>
230
<tr>
231
	<td><input name="admintools_settings" id="admintools_settings" type="checkbox" value="1" {admintools_settings_checked} /></td>
232
	<td><label for="admintools_settings">{TEXT_MODIFY_SETTINGS}</label></td>
233
	<td>&nbsp;</td>
234
	<td>&nbsp;</td>
235
</tr>
236
</table>
237

  
238

  
239
	</td>
240
</tr>
241
</table>
242

  
243
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="padding-top: 5px; padding-bottom: 5px;">
244
<tr>
245
	<td valign="top" align="left" width="150">
246
	{TEXT_MODULE_PERMISSIONS}:
247
	</td>
248
	<td valign="top" align="left">
249
		<ul style="margin: 0; padding: 0; list-style: none;">
250
			<!-- BEGIN module_list_block -->
251
			<li>
252
				<input type="checkbox" name="module_permissions[]" id="m_{VALUE}" value="{VALUE}" {CHECKED} />
253
				<label for="m_{VALUE}">{NAME}</label>
254
			</li>
255
			<!-- END module_list_block -->
256
		</ul>
257
	</td>
258
	<td valign="top" align="left" width="150">
259
	{TEXT_TEMPLATE_PERMISSIONS}:
260
	</td>
261
	<td valign="top" align="left">
262
		<ul style="margin: 0; padding: 0; list-style: none;">
263
			<!-- BEGIN template_list_block -->
264
			<li>
265
				<input type="checkbox" name="template_permissions[]" id="t_{VALUE}" value="{VALUE}" {CHECKED} />
266
				<label for="t_{VALUE}">{NAME}</label>
267
			</li>
268
			<!-- END template_list_block -->
269
		</ul>
270
	</td>
271
</tr>
272

  
273
<tr>
274
	<td colspan="2"><input type="submit" name="submit" value="{SUBMIT_TITLE}" /></td>
275
    <td colspan="2" align="right"><input type="reset" name="reset" value="{TEXT_RESET}" /></td>
276
</tr>
277
</table>
278
</form>
279

  
280
<table cellpadding="5" cellspacing="0" border="0" width="100%">
281
<tr>
282
	<td align="center">
283
	<form name="advanced" action="{ADVANCED_ACTION}" method="post">
284
        <input type="hidden" name="group_id" value="{GROUP_ID}" />
285
        <input type="hidden" name="action" value="modify" />
286
        <input type="submit" name="advanced" onclick="window.location = '{ADVANCED_LINK}';" value="{ADVANCED_BUTTON}" />
287
    </form>
288
	</td>
289
</tr>
290
</table>
291

  
292

  
1
<!-- BEGIN main_block -->
2

  
3
<h2 style="{DISPLAY_EXTRA};">{HEADING_MODIFY_GROUP}</h2>
4

  
5
<form name="group" action="{ACTION_URL}" method="post" class="{DISPLAY_ADD}">
6
<input type="hidden" name="advanced" value="{ADVANCED}" />
7
<input type="hidden" name="group_id" value="{GROUP_ID}" />
8

  
9
<table cellpadding="5" cellspacing="0" border="0" width="100%">
10
<tr>
11
	<td width="150">{TEXT_NAME}:</td>
12
	<td>
13
		<input type="text" name="group_name" maxlength="255" value="{GROUP_NAME}" style="width: 100%" />
14
	</td>
15
</tr>
16
</table>
17
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="{DISPLAY_BASIC}">
18
<tr>
19
	<td width="150" valign="top">{TEXT_SYSTEM_PERMISSIONS}:</td>
20
	<td>
21
		<table cellpadding="0" cellspacing="0" width="100%" border="0">
22
		<tr>
23
			<td>
24
				<input type="checkbox" name="pages" id="pages" value="1" {pages_checked} />
25
				<label for="pages">{SECTION_PAGES}</label>
26
			</td>
27
			<td>
28
				<input type="checkbox" name="media" id="media" value="1" {media_checked} />
29
				<label for="media">{SECTION_MEDIA}</label>
30
			</td>
31
			<td>
32
				<input type="checkbox" name="modules" id="modules" value="1" {modules_checked} />
33
				<label for="modules">{SECTION_MODULES}</label>
34
			</td>
35
			<td>
36
				<input type="checkbox" name="templates" id="templates" value="1" {templates_checked} />
37
				<label for="templates">{SECTION_TEMPLATES}</label>
38
			</td>
39
		</tr>
40
		<tr>
41
			<td>
42
				<input type="checkbox" name="languages" id="languages" value="1" {languages_checked} />
43
				<label for="languages">{SECTION_LANGUAGES}</label>
44
			</td>
45
			<td>		
46
				<input type="checkbox" name="settings" id="settings" value="1" {settings_checked} />
47
				<label for="settings">{SECTION_SETTINGS}</label>
48
			</td>
49
			<td>
50
				<input type="checkbox" name="users" id="users" value="1" {users_checked} />
51
				<label for="users">{SECTION_USERS}</label>
52
			</td>
53
			<td>
54
				<input type="checkbox" name="groups" id="groups" value="1" {groups_checked} />
55
				<label for="groups">{SECTION_GROUPS}</label>
56
			</td>
57
		</tr>
58
		<tr>
59
			<td>
60
				<input type="checkbox" name="admintools" id="admintools" value="1" {admintools_checked} />
61
				<label for="admintools">{SECTION_ADMINTOOLS}</label>
62
			</td>
63
			<td>&nbsp;</td>
64
			<td>&nbsp;</td>
65
			<td>&nbsp;</td>
66
		</tr>
67
		</table>
68
	</td>
69
</tr>
70
</table>
71
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="{DISPLAY_ADVANCED}">
72
<tr>
73
	<td valign="top">{TEXT_SYSTEM_PERMISSIONS}:</td>
74
	<td align="left">
75

  
76

  
77
<table cellpadding="3" cellspacing="0" border="0" width="400">
78
<tr>
79
	<td colspan="4">
80
		<h3>{SECTION_PAGES}</h3>
81
	</td>
82
</tr>
83
<tr>
84
	<td><input name="pages_view" id="pages_view" type="checkbox" value="1" {pages_view_checked} /></td>
85
	<td><label for="pages_view">{TEXT_VIEW}</label></td>
86
	<td><input name="pages_add" id="pages_add" type="checkbox" value="1" {pages_add_checked} /></td>
87
	<td>
88
		<label for="pages_add">{TEXT_ADD}</label>
89
		&nbsp;
90
		<input name="pages_add_l0" id="pages_add_l0" type="checkbox" value="1" {pages_add_l0_checked} />
91
		<label for="pages_add_l0">{TEXT_LEVEL} 0</label>)
92
	</td>
93
</tr>
94
<tr>
95
	<td><input name="pages_settings" id="pages_settings" type="checkbox" value="1" {pages_settings_checked} /></td>
96
	<td><label for="pages_settings">{TEXT_MODIFY_SETTINGS}</label></td>
97
	<td><input name="pages_modify" id="pages_modify" type="checkbox" value="1" {pages_modify_checked} /></td>
98
	<td><label for="pages_modify">{TEXT_MODIFY_CONTENT}</label></td>
99
</tr>
100
<tr>
101
	<td><input name="pages_intro" id="pages_intro" type="checkbox" value="1" {pages_intro_checked} /></td>
102
	<td><label for="pages_intro">{HEADING_MODIFY_INTRO_PAGE}</label></td>
103
	<td><input name="pages_delete" id="pages_delete" type="checkbox" value="1" {pages_delete_checked} /></td>
104
	<td><label for="pages_delete">{TEXT_DELETE}</label></td>
105
</tr>
106
<tr>
107
	<td colspan="4">
108
		<h3>{SECTION_MEDIA}</h3>
109
	</td>
110
</tr>
111
<tr>
112
	<td><input name="media_view" id="media_view" type="checkbox" value="1" {media_view_checked} /></td>
113
	<td><label for="media_view">{TEXT_VIEW}</label></td>
114
	<td><input name="media_upload" id="media_upload" type="checkbox" value="1" {media_upload_checked} /></td>
115
	<td><label for="media_upload">{TEXT_UPLOAD_FILES}</label></td>
116
</tr>
117
<tr>
118
	<td><input name="media_rename" id="media_rename" type="checkbox" value="1" {media_rename_checked} /></td>
119
	<td><label for="media_rename">{TEXT_RENAME}</label></td>
120
	<td><input name="media_delete" id="media_delete" type="checkbox" value="1" {media_delete_checked} /></td>
121
	<td><label for="media_delete">{TEXT_DELETE}</label></td>
122
</tr>
123
<tr>
124
	<td><input name="media_create" id="media_create" type="checkbox" value="1" {media_create_checked} /></td>
125
	<td><label for="media_create">{TEXT_CREATE_FOLDER}</label></td>
126
	<td>&nbsp;</td>
127
	<td>&nbsp;</td>
128
</tr>
129
<tr>
130
	<td colspan="4">
131
		<h3>{SECTION_MODULES}</h3>
132
	</td>
133
</tr>
134
<tr>
135
	<td><input name="modules_view" id="modules_view" type="checkbox" value="1" {modules_view_checked} /></td>
136
	<td><label for="modules_view">{TEXT_VIEW}</label></td>
137
	<td><input name="modules_install" id="modules_install" type="checkbox" value="1" {modules_install_checked} /></td>
138
	<td><label for="modules_install">{TEXT_ADD}</label></td>
139
</tr>
140
<tr>
141
	<td><input name="modules_uninstall" id="modules_uninstall" type="checkbox" value="1" {modules_uninstall_checked} /></td>
142
	<td><label for="modules_uninstall">{TEXT_DELETE}</label></td>
143
	<td>&nbsp;</td>
144
	<td>&nbsp;</td>
145
</tr>
146
<tr>
147
	<td colspan="4">
148
		<h3>{SECTION_TEMPLATES}</h3>
149
	</td>
150
</tr>
151
<tr>
152
	<td><input name="templates_view" id="templates_view" type="checkbox" value="1" {templates_view_checked} /></td>
153
	<td><label for="templates_view">{TEXT_VIEW}</label></td>
154
	<td><input name="templates_install" id="templates_install" type="checkbox" value="1" {templates_install_checked} /></td>
155
	<td><label for="templates_install">{TEXT_ADD}</label></td>
156
</tr>
157
<tr>
158
	<td><input name="templates_uninstall" id="templates_uninstall" type="checkbox" value="1" {templates_uninstall_checked} /></td>
159
	<td><label for="templates_uninstall">{TEXT_DELETE}</label></td>
160
	<td>&nbsp;</td>
161
	<td>&nbsp;</td>
162
</tr>
163
<tr>
164
	<td colspan="4">
165
		<h3>{SECTION_LANGUAGES}</h3>
166
	</td>
167
</tr>
168
<tr>
169
	<td><input name="languages_view" id="languages_view" type="checkbox" value="1" {languages_view_checked} /></td>
170
	<td><label for="languages_view">{TEXT_VIEW}</label></td>
171
	<td><input name="languages_install" id="languages_install" type="checkbox" value="1" {languages_install_checked} /></td>
172
	<td><label for="languages_install">{TEXT_ADD}</label></td>
173
</tr>
174
<tr>
175
	<td><input name="languages_uninstall" id="languages_uninstall" type="checkbox" value="1" {languages_uninstall_checked} /></td>
176
	<td><label for="languages_uninstall">{TEXT_DELETE}</label></td>
177
	<td>&nbsp;</td>
178
	<td>&nbsp;</td>
179
</tr>
180
<tr>
181
	<td colspan="4">
182
		<h3>{SECTION_SETTINGS}</h3>
183
	</td>
184
</tr>
185
<tr>
186
	<td><input name="settings_basic" id="settings_basic" type="checkbox" value="1" {settings_basic_checked} /></td>
187
	<td><label for="settings_basic">{TEXT_BASIC}</label></td>
188
	<td><input name="settings_advanced" id="settings_advanced" type="checkbox" value="1" {settings_advanced_checked} /></td>
189
	<td><label for="settings_advanced">{TEXT_ADVANCED}</label></td>
190
</tr>
191
<tr>
192
	<td colspan="4">
193
		<h3>{SECTION_USERS}</h3>
194
	</td>
195
</tr>
196
<tr>
197
	<td><input name="users_view" id="users_view" type="checkbox" value="1" {users_view_checked} /></td>
198
	<td><label for="users_view">{TEXT_VIEW}</label></td>
199
	<td><input name="users_add" id="users_add" type="checkbox" value="1" {users_add_checked} /></td>
200
	<td><label for="users_add">{TEXT_ADD}</label></td>
201
</tr>
202
<tr>
203
	<td><input name="users_modify" id="users_modify" type="checkbox" value="1" {users_modify_checked} /></td>
204
	<td><label for="users_modify">{TEXT_MODIFY}</label></td>
205
	<td><input name="users_delete" id="users_delete" type="checkbox" value="1" {users_delete_checked} /></td>
206
	<td><label for="users_delete">{TEXT_DELETE}</label></td>
207
</tr>
208
<tr>
209
	<td colspan="4">
210
		<h3>{SECTION_GROUPS}</h3>
211
	</td>
212
</tr>
213
<tr>
214
	<td><input name="groups_view" id="groups_view" type="checkbox" value="1" {groups_view_checked} /></td>
215
	<td><label for="groups_view">{TEXT_VIEW}</label></td>
216
	<td><input name="groups_add" id="groups_add" type="checkbox" value="1" {groups_add_checked} /></td>
217
	<td><label for="groups_add">{TEXT_ADD}</label></td>
218
</tr>
219
<tr>
220
	<td><input name="groups_modify" id="groups_modify" type="checkbox" value="1" {groups_modify_checked} /></td>
221
	<td><label for="groups_modify">{TEXT_MODIFY}</label></td>
222
	<td><input name="groups_delete" id="groups_delete" type="checkbox" value="1" {groups_delete_checked} /></td>
223
	<td><label for="groups_delete">{TEXT_DELETE}</label></td>
224
</tr>
225
<tr>
226
	<td colspan="4">
227
		<h3>{SECTION_ADMINTOOLS}</h3>
228
	</td>
229
</tr>
230
<tr>
231
	<td><input name="admintools_settings" id="admintools_settings" type="checkbox" value="1" {admintools_settings_checked} /></td>
232
	<td><label for="admintools_settings">{TEXT_MODIFY_SETTINGS}</label></td>
233
	<td>&nbsp;</td>
234
	<td>&nbsp;</td>
235
</tr>
236
</table>
237

  
238

  
239
	</td>
240
</tr>
241
</table>
242

  
243
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="padding-top: 5px; padding-bottom: 5px;">
244
<tr>
245
	<td valign="top" align="left" width="150">
246
	{TEXT_MODULE_PERMISSIONS}:
247
	</td>
248
	<td valign="top" align="left">
249
		<ul style="margin: 0; padding: 0; list-style: none;">
250
			<!-- BEGIN module_list_block -->
251
			<li>
252
				<input type="checkbox" name="module_permissions[]" id="m_{VALUE}" value="{VALUE}" {CHECKED} />
253
				<label for="m_{VALUE}">{NAME}</label>
254
			</li>
255
			<!-- END module_list_block -->
256
		</ul>
257
	</td>
258
	<td valign="top" align="left" width="150">
259
	{TEXT_TEMPLATE_PERMISSIONS}:
260
	</td>
261
	<td valign="top" align="left">
262
		<ul style="margin: 0; padding: 0; list-style: none;">
263
			<!-- BEGIN template_list_block -->
264
			<li>
265
				<input type="checkbox" name="template_permissions[]" id="t_{VALUE}" value="{VALUE}" {CHECKED} />
266
				<label for="t_{VALUE}">{NAME}</label>
267
			</li>
268
			<!-- END template_list_block -->
269
		</ul>
270
	</td>
271
</tr>
272

  
273
<tr>
274
	<td colspan="2"><input type="submit" name="submit" value="{SUBMIT_TITLE}" /></td>
275
    <td colspan="2" align="right"><input type="reset" name="reset" value="{TEXT_RESET}" /></td>
276
</tr>
277
</table>
278
</form>
279

  
280
<table cellpadding="5" cellspacing="0" border="0" width="100%">
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff