equal
deleted
inserted
replaced
51 return true; |
51 return true; |
52 } |
52 } |
53 } |
53 } |
54 |
54 |
55 $enano_config[$n] = $v; |
55 $enano_config[$n] = $v; |
|
56 if ( $v === false ) |
|
57 unset($enano_config[$n]); |
|
58 |
56 $v = $db->escape($v); |
59 $v = $db->escape($v); |
57 |
60 |
58 $e = $db->sql_query('DELETE FROM '.table_prefix.'config WHERE config_name=\''.$n.'\';'); |
61 $e = $db->sql_query('DELETE FROM '.table_prefix.'config WHERE config_name=\''.$n.'\';'); |
59 if ( !$e ) |
62 if ( !$e ) |
60 { |
63 { |
61 $db->_die('Error during generic setConfig() call row deletion.'); |
64 $db->_die('Error during generic setConfig() call row deletion.'); |
62 } |
65 } |
63 |
66 |
64 $e = $db->sql_query('INSERT INTO '.table_prefix.'config(config_name, config_value) VALUES(\''.$n.'\', \''.$v.'\')'); |
67 if ( $v !== false ) |
65 if ( !$e ) |
68 { |
66 { |
69 $e = $db->sql_query('INSERT INTO '.table_prefix.'config(config_name, config_value) VALUES(\''.$n.'\', \''.$v.'\')'); |
67 $db->_die('Error during generic setConfig() call row insertion.'); |
70 if ( !$e ) |
|
71 { |
|
72 $db->_die('Error during generic setConfig() call row insertion.'); |
|
73 } |
68 } |
74 } |
69 } |
75 } |
70 |
76 |
71 /** |
77 /** |
72 * Create a URI for an internal link. |
78 * Create a URI for an internal link. |
494 { |
500 { |
495 // overridden token matches, continue exec |
501 // overridden token matches, continue exec |
496 return true; |
502 return true; |
497 } |
503 } |
498 } |
504 } |
|
505 |
|
506 ob_end_clean(); |
499 |
507 |
500 $output->set_title($lang->get('user_csrf_confirm_title')); |
508 $output->set_title($lang->get('user_csrf_confirm_title')); |
501 $output->header(); |
509 $output->header(); |
502 |
510 |
503 // initial info |
511 // initial info |