- $GLOBALS['opt_email'] = format_yesno($_REQUEST['opt_email']);
- $GLOBALS['opt_db'] = format_yesno($_REQUEST['opt_db']);
- $GLOBALS['opt_listing'] = format_yesno($_REQUEST['opt_listing']);
- $GLOBALS['opt_display'] = format_yesno($_REQUEST['opt_display']);
- $GLOBALS['opt_pass'] = format_yesno($_REQUEST['opt_pass']);
+ $GLOBALS['opt_email'] = format_bool($_REQUEST['opt_email']);
+ $GLOBALS['opt_db'] = format_bool($_REQUEST['opt_db']);
+ $GLOBALS['opt_listing'] = format_bool($_REQUEST['opt_listing']);
+ $GLOBALS['opt_display'] = format_bool($_REQUEST['opt_display']);
+ $GLOBALS['opt_pass'] = format_bool($_REQUEST['opt_pass']);
+ $GLOBALS['opt_public_form'] = format_bool($_REQUEST['opt_public_form']);
+ $GLOBALS['opt_public_display'] = format_bool($_REQUEST['opt_public_display']);
+
+ $GLOBALS['public_file_name'] = $GLOBALS['file_name'];
+ if($GLOBALS['opt_public_form'] || $GLOBALS['opt_public_display']) {
+ $GLOBALS['opt_public_something'] = 1;
+ $GLOBALS['file_name'] = $GLOBALS['file_name'] . _admin;
+ }