Project

General

Profile

« Previous | Next » 

Revision 1457

Added by Dietmar almost 13 years ago

Preparing 2.8.2 stable, last tests

View differences:

modify_field.php
11 11
 * @platform        WebsiteBaker 2.8.x
12 12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14
 * @filesource		$HeadURL:  $
15
 * @lastmodified    $Date:  $
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16 16
 * @description     
17 17
 */
18 18

  
19 19
require('../../config.php');
20 20

  
21
$print_info_banner = true;
22
// Tells script to update when this page was last updated
23
$update_when_modified = false;
21 24
// Include WB admin wrapper script
22 25
require(WB_PATH.'/modules/admin.php');
23

  
26
/* */
24 27
// Get id
25 28
$field_id = $admin->checkIDKEY('field_id', false, 'GET');
26 29
if (!$field_id) {
27 30
 $admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']." MF: $field_id :-(", ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
28
 exit();
29 31
}
30 32

  
31 33
// Get header and footer
......
36 38
	$type = 'none';
37 39
}
38 40

  
41
// set new token
42
$field_id = $admin->getIDKEY($form['field_id']);
39 43
// Set raw html <'s and >'s to be replaced by friendly html code
40 44
$raw = array('<', '>');
41 45
$friendly = array('&lt;', '&gt;');
42 46
?>
43 47

  
44 48
<form name="modify" action="<?php echo WB_URL; ?>/modules/form/save_field.php" method="post" style="margin: 0;">
45

  
46 49
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
47 50
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
48 51
<input type="hidden" name="field_id" value="<?php echo $field_id; ?>" />
......
213 216

  
214 217
// Print admin footer
215 218
$admin->print_footer();
216

  
217
?>
218 219

  

Also available in: Unified diff