Project

General

Profile

« Previous | Next » 

Revision 1213

Added by MaGnaL almost 15 years ago

Ticket #827: Fix false form-parameter when javascript is deactivated on users and groups temps (admintool).

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.8.1 -------------------------------------
14
12-DEC-2009 Manuel Lang (MaGnaL)
15
#	Ticket #827: Fix false form-parameter when javascript is deactivated
16
	on users and groups temps (admintool).
14 17
12-DEC-2009 Manuel Lang	(MaGnaL)
15 18
#	Bugfix of rev. 1211 search_modext.php (ticket #863): Use isset and
16 19
	given unknown-user instead of counting all users. 
branches/2.8.x/wb/admin/groups/groups.php
35 35
	exit(0);
36 36
}
37 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

  
38 44
// Check if group group_id is a valid number and doesnt equal 1
39 45
if(!isset($_POST['group_id']) OR !is_numeric($_POST['group_id']) OR $_POST['group_id'] == 1) {
40 46
	header("Location: index.php");
branches/2.8.x/wb/admin/users/users.php
35 35
	exit(0);
36 36
}
37 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

  
38 44
// Check if user id is a valid number and doesnt equal 1
39 45
if(!isset($_POST['user_id']) OR !is_numeric($_POST['user_id']) OR $_POST['user_id'] == 1) {
40 46
	header("Location: index.php");
branches/2.8.x/wb/templates/classic_theme/templates/users.htt
25 25
<!-- END list_block -->
26 26
</select>
27 27

  
28
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" onclick="document.users.action.value = 'modify';" class="{DISPLAY_MODIFY}" />
28
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" class="{DISPLAY_MODIFY}" />
29 29
<input type="submit" name="delete" style="width: 100px;" value="{TEXT_DELETE}" onclick="return confirm('{CONFIRM_DELETE}');" class="{DISPLAY_DELETE}" />
30 30

  
31 31
</form>
branches/2.8.x/wb/templates/classic_theme/templates/groups.htt
25 25
<!-- END list_block -->
26 26
</select>
27 27

  
28
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" onclick="document.groups.action.value = 'modify';" class="{DISPLAY_MODIFY}" />
28
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" class="{DISPLAY_MODIFY}" />
29 29
<input type="submit" name="delete" style="width: 100px;" value="{TEXT_DELETE}" onclick="return confirm('{CONFIRM_DELETE}');" class="{DISPLAY_DELETE}" />
30 30

  
31 31
</form>
branches/2.8.x/wb/templates/wb_theme/templates/users.htt
25 25
<!-- END list_block -->
26 26
</select>
27 27

  
28
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" onclick="document.users.action.value = 'modify';" class="{DISPLAY_MODIFY}" />
28
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" class="{DISPLAY_MODIFY}" />
29 29
<input type="submit" name="delete" style="width: 100px;" value="{TEXT_DELETE}" onclick="return confirm('{CONFIRM_DELETE}');" class="{DISPLAY_DELETE}" />
30 30

  
31 31
</form>
branches/2.8.x/wb/templates/wb_theme/templates/groups.htt
25 25
<!-- END list_block -->
26 26
</select>
27 27

  
28
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" onclick="document.groups.action.value = 'modify';" class="{DISPLAY_MODIFY}" />
28
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" class="{DISPLAY_MODIFY}" />
29 29
<input type="submit" name="delete" style="width: 100px;" value="{TEXT_DELETE}" onclick="return confirm('{CONFIRM_DELETE}');" class="{DISPLAY_DELETE}" />
30 30

  
31 31
</form>
branches/2.8.x/wb/templates/argos_theme/templates/users.htt
20 20
<!-- END list_block -->
21 21
</select>
22 22

  
23
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" onclick="document.users.action.value = 'modify';" class="{DISPLAY_MODIFY}" />
23
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" class="{DISPLAY_MODIFY}" />
24 24
<input type="submit" name="delete" style="width: 100px;" value="{TEXT_DELETE}" onclick="return confirm('{CONFIRM_DELETE}');" class="{DISPLAY_DELETE}" />
25 25

  
26 26
</form>
branches/2.8.x/wb/templates/argos_theme/templates/groups.htt
21 21
    </option>
22 22
    <!-- END list_block -->
23 23
  </select>
24
  <input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" onClick="document.groups.action.value = 'modify';" class="{DISPLAY_MODIFY}" />
24
  <input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" class="{DISPLAY_MODIFY}" />
25 25
  <input type="submit" name="delete" style="width: 100px;" value="{TEXT_DELETE}" onClick="return confirm('{CONFIRM_DELETE}');" class="{DISPLAY_DELETE}" />
26 26
</form>
27 27
<br />

Also available in: Unified diff