equal
deleted
inserted
replaced
39 |
39 |
40 |
40 |
41 if (isset($_POST['form_sent'])) |
41 if (isset($_POST['form_sent'])) |
42 { |
42 { |
43 // Custom referrer check (so we can output a custom error message) |
43 // Custom referrer check (so we can output a custom error message) |
44 if (!preg_match('#^'.preg_quote(str_replace('www.', '', $pun_config['o_base_url']).'/admin_options.php', '#').'#i', str_replace('www.', '', (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '')))) |
44 // if (!preg_match('#^'.preg_quote(str_replace('www.', '', $pun_config['o_base_url']).'/admin_options.php', '#').'#i', str_replace('www.', '', (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '')))) |
45 message('Bad HTTP_REFERER. If you have moved these forums from one location to another or switched domains, you need to update the Base URL manually in the database (look for o_base_url in the config table) and then clear the cache by deleting all .php files in the /cache directory.'); |
45 // message('Bad HTTP_REFERER. If you have moved these forums from one location to another or switched domains, you need to update the Base URL manually in the database (look for o_base_url in the config table) and then clear the cache by deleting all .php files in the /cache directory.'); |
|
46 confirm_referrer('admin_options.php'); |
46 |
47 |
47 $form = array_map('trim', $_POST['form']); |
48 $form = array_map('trim', $_POST['form']); |
48 |
49 |
49 if ($form['board_title'] == '') |
50 if ($form['board_title'] == '') |
50 message('You must enter a board title.'); |
51 message('You must enter a board title.'); |
153 |
154 |
154 ?> |
155 ?> |
155 <div class="blockform"> |
156 <div class="blockform"> |
156 <h2><span>Options</span></h2> |
157 <h2><span>Options</span></h2> |
157 <div class="box"> |
158 <div class="box"> |
158 <form method="post" action="admin_options.php?action=foo"> |
159 <form method="post" action="<?php echo makeUrlNS('Special', 'Forum/Admin_Options', 'action=foo', true); ?>"> |
159 <p class="submittop"><input type="submit" name="save" value="Save changes" /></p> |
160 <p class="submittop"><input type="submit" name="save" value="Save changes" /></p> |
160 <div class="inform"> |
161 <div class="inform"> |
161 <input type="hidden" name="form_sent" value="1" /> |
162 <input type="hidden" name="form_sent" value="1" /> |
162 <fieldset> |
163 <fieldset> |
163 <legend>Essentials</legend> |
164 <legend>Essentials</legend> |