@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | <div class="windowbg2 noup"> |
27 | 27 | <dl class="settings"> |
28 | 28 | <dt> |
29 | - <a href="', $scripturl, '?action=helpadmin;help=search_weight_frequency" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'],'"></span></a><label for="weight1_val"> |
|
29 | + <a href="', $scripturl, '?action=helpadmin;help=search_weight_frequency" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'], '"></span></a><label for="weight1_val"> |
|
30 | 30 | ', $txt['search_weight_frequency'], ':</label> |
31 | 31 | </dt> |
32 | 32 | <dd> |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | <span id="weight1" class="search_weight">', $context['relative_weights']['search_weight_frequency'], '%</span> |
35 | 35 | </dd> |
36 | 36 | <dt> |
37 | - <a href="', $scripturl, '?action=helpadmin;help=search_weight_age" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'],'"></span></a><label for="weight2_val"> |
|
37 | + <a href="', $scripturl, '?action=helpadmin;help=search_weight_age" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'], '"></span></a><label for="weight2_val"> |
|
38 | 38 | ', $txt['search_weight_age'], ':</label> |
39 | 39 | </dt> |
40 | 40 | <dd> |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | <span id="weight2" class="search_weight">', $context['relative_weights']['search_weight_age'], '%</span> |
43 | 43 | </dd> |
44 | 44 | <dt> |
45 | - <a href="', $scripturl, '?action=helpadmin;help=search_weight_length" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'],'"></span></a><label for="weight3_val"> |
|
45 | + <a href="', $scripturl, '?action=helpadmin;help=search_weight_length" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'], '"></span></a><label for="weight3_val"> |
|
46 | 46 | ', $txt['search_weight_length'], ':</label> |
47 | 47 | </dt> |
48 | 48 | <dd> |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | <span id="weight3" class="search_weight">', $context['relative_weights']['search_weight_length'], '%</span> |
51 | 51 | </dd> |
52 | 52 | <dt> |
53 | - <a href="', $scripturl, '?action=helpadmin;help=search_weight_subject" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'],'"></span></a><label for="weight4_val"> |
|
53 | + <a href="', $scripturl, '?action=helpadmin;help=search_weight_subject" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'], '"></span></a><label for="weight4_val"> |
|
54 | 54 | ', $txt['search_weight_subject'], ':</label> |
55 | 55 | </dt> |
56 | 56 | <dd> |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | <span id="weight4" class="search_weight">', $context['relative_weights']['search_weight_subject'], '%</span> |
59 | 59 | </dd> |
60 | 60 | <dt> |
61 | - <a href="', $scripturl, '?action=helpadmin;help=search_weight_first_message" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'],'"></span></a><label for="weight5_val"> |
|
61 | + <a href="', $scripturl, '?action=helpadmin;help=search_weight_first_message" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'], '"></span></a><label for="weight5_val"> |
|
62 | 62 | ', $txt['search_weight_first_message'], ':</label> |
63 | 63 | </dt> |
64 | 64 | <dd> |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | <span id="weight5" class="search_weight">', $context['relative_weights']['search_weight_first_message'], '%</span> |
67 | 67 | </dd> |
68 | 68 | <dt> |
69 | - <a href="', $scripturl, '?action=helpadmin;help=search_weight_sticky" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'],'"></span></a><label for="weight6_val"> |
|
69 | + <a href="', $scripturl, '?action=helpadmin;help=search_weight_sticky" onclick="return reqOverlayDiv(this.href);" class="help"><span class="generic_icons help" title="', $txt['help'], '"></span></a><label for="weight6_val"> |
|
70 | 70 | ', $txt['search_weight_sticky'], ':</label> |
71 | 71 | </dt> |
72 | 72 | <dd> |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | { |
141 | 141 | echo ' |
142 | 142 | <dt> |
143 | - <input type="radio" name="search_index" value="fulltext"', !empty($modSettings['search_index']) && $modSettings['search_index'] == 'fulltext' ? ' checked' : '', empty($context['fulltext_index']) ? ' onclick="alert(\'' . $txt['search_method_fulltext_warning'] . '\'); selectRadioByName(this.form.search_index, \'fulltext\');"': '', ' class="input_radio"> |
|
143 | + <input type="radio" name="search_index" value="fulltext"', !empty($modSettings['search_index']) && $modSettings['search_index'] == 'fulltext' ? ' checked' : '', empty($context['fulltext_index']) ? ' onclick="alert(\'' . $txt['search_method_fulltext_warning'] . '\'); selectRadioByName(this.form.search_index, \'fulltext\');"' : '', ' class="input_radio"> |
|
144 | 144 | ', $txt['search_method_fulltext_index'], ' |
145 | 145 | </dt> |
146 | 146 | <dd> |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | echo ' |
192 | 192 | <dt> |
193 | 193 | <input type="radio" name="search_index" value="', $api['setting_index'], '"', !empty($modSettings['search_index']) && $modSettings['search_index'] == $api['setting_index'] ? ' checked' : '', ' class="input_radio"> |
194 | - ', $api['label'] ,' |
|
194 | + ', $api['label'], ' |
|
195 | 195 | </dt>'; |
196 | 196 | |
197 | 197 | if ($api['desc']) |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | <div class="windowbg2 noup"> |
112 | 112 | <dl class="settings">'; |
113 | 113 | |
114 | - if (!empty($context['table_info'])) |
|
115 | - echo ' |
|
114 | + if (!empty($context['table_info'])) { |
|
115 | + echo ' |
|
116 | 116 | <dt> |
117 | 117 | <strong>', $txt['search_method_messages_table_space'], ':</strong> |
118 | 118 | </dt> |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | <dd> |
126 | 126 | ', $context['table_info']['index_length'], ' |
127 | 127 | </dd>'; |
128 | + } |
|
128 | 129 | echo ' |
129 | 130 | </dl> |
130 | 131 | ', $context['double_index'] ? '<div class="noticebox"> |
@@ -146,16 +147,17 @@ discard block |
||
146 | 147 | <dd> |
147 | 148 | |
148 | 149 | <span class="smalltext">'; |
149 | - if (empty($context['fulltext_index']) && empty($context['cannot_create_fulltext'])) |
|
150 | - echo ' |
|
150 | + if (empty($context['fulltext_index']) && empty($context['cannot_create_fulltext'])) { |
|
151 | + echo ' |
|
151 | 152 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_no_index_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createfulltext;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_method_fulltext_create'], '</a>]'; |
152 | - elseif (empty($context['fulltext_index']) && !empty($context['cannot_create_fulltext'])) |
|
153 | - echo ' |
|
153 | + } elseif (empty($context['fulltext_index']) && !empty($context['cannot_create_fulltext'])) { |
|
154 | + echo ' |
|
154 | 155 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_fulltext_cannot_create']; |
155 | - else |
|
156 | - echo ' |
|
156 | + } else { |
|
157 | + echo ' |
|
157 | 158 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_already_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removefulltext;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_method_fulltext_remove'], '</a>]<br> |
158 | 159 | <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['fulltext_length']; |
160 | + } |
|
159 | 161 | echo ' |
160 | 162 | </span> |
161 | 163 | </dd>'; |
@@ -168,25 +170,27 @@ discard block |
||
168 | 170 | </dt> |
169 | 171 | <dd> |
170 | 172 | <span class="smalltext">'; |
171 | - if ($context['custom_index']) |
|
172 | - echo ' |
|
173 | + if ($context['custom_index']) { |
|
174 | + echo ' |
|
173 | 175 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_already_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removecustom;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_remove'], '</a>]<br> |
174 | 176 | <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['custom_index_length']; |
175 | - elseif ($context['partial_custom_index']) |
|
176 | - echo ' |
|
177 | + } elseif ($context['partial_custom_index']) { |
|
178 | + echo ' |
|
177 | 179 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_index_partial'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=removecustom;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_remove'], '</a>] [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createmsgindex;resume;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-msm_token_var'], '=', $context['admin-msm_token'], '">', $txt['search_index_custom_resume'], '</a>]<br> |
178 | 180 | <strong>', $txt['search_index_size'], ':</strong> ', $context['table_info']['custom_index_length']; |
179 | - else |
|
180 | - echo ' |
|
181 | + } else { |
|
182 | + echo ' |
|
181 | 183 | <strong>', $txt['search_index_label'], ':</strong> ', $txt['search_method_no_index_exists'], ' [<a href="', $scripturl, '?action=admin;area=managesearch;sa=createmsgindex">', $txt['search_index_create_custom'], '</a>]'; |
184 | + } |
|
182 | 185 | echo ' |
183 | 186 | </span> |
184 | 187 | </dd>'; |
185 | 188 | |
186 | 189 | foreach ($context['search_apis'] as $api) |
187 | 190 | { |
188 | - if (empty($api['label']) || $api['has_template']) |
|
189 | - continue; |
|
191 | + if (empty($api['label']) || $api['has_template']) { |
|
192 | + continue; |
|
193 | + } |
|
190 | 194 | |
191 | 195 | echo ' |
192 | 196 | <dt> |
@@ -194,12 +198,13 @@ discard block |
||
194 | 198 | ', $api['label'] ,' |
195 | 199 | </dt>'; |
196 | 200 | |
197 | - if ($api['desc']) |
|
198 | - echo ' |
|
201 | + if ($api['desc']) { |
|
202 | + echo ' |
|
199 | 203 | <dd> |
200 | 204 | <span class="smalltext">', $api['desc'], '</span> |
201 | 205 | </dd>'; |
202 | 206 | } |
207 | + } |
|
203 | 208 | |
204 | 209 | echo ' |
205 | 210 | </dl> |
@@ -148,8 +148,8 @@ discard block |
||
148 | 148 | </thead> |
149 | 149 | <tbody>'; |
150 | 150 | |
151 | - foreach ($context['membergroups'] as $membergroup) |
|
152 | - echo ' |
|
151 | + foreach ($context['membergroups'] as $membergroup) { |
|
152 | + echo ' |
|
153 | 153 | <tr class="windowbg"> |
154 | 154 | <td>', $membergroup['name'], '</td> |
155 | 155 | <td class="centercol"> |
@@ -159,6 +159,7 @@ discard block |
||
159 | 159 | ', $membergroup['can_be_additional'] ? '<input type="checkbox" name="membergroups[2][]" value="' . $membergroup['id'] . '" checked class="input_check">' : '', ' |
160 | 160 | </td> |
161 | 161 | </tr>'; |
162 | + } |
|
162 | 163 | |
163 | 164 | echo ' |
164 | 165 | <tr class="windowbg"> |
@@ -185,8 +186,8 @@ discard block |
||
185 | 186 | </thead> |
186 | 187 | <tbody>'; |
187 | 188 | |
188 | - foreach ($context['postgroups'] as $postgroup) |
|
189 | - echo ' |
|
189 | + foreach ($context['postgroups'] as $postgroup) { |
|
190 | + echo ' |
|
190 | 191 | <tr class="windowbg"> |
191 | 192 | <td> |
192 | 193 | ', $postgroup['name'], ' |
@@ -195,6 +196,7 @@ discard block |
||
195 | 196 | <input type="checkbox" name="postgroups[]" value="', $postgroup['id'], '" checked class="input_check"> |
196 | 197 | </td> |
197 | 198 | </tr>'; |
199 | + } |
|
198 | 200 | |
199 | 201 | echo ' |
200 | 202 | <tr class="windowbg"> |
@@ -24,8 +24,8 @@ |
||
24 | 24 | <meta charset="', $context['character_set'], '"> |
25 | 25 | <meta name="robots" content="noindex"> |
26 | 26 | <title>', $context['page_title'], '</title> |
27 | - <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'] ,'"> |
|
28 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
27 | + <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'], '"> |
|
28 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
29 | 29 | </head> |
30 | 30 | <body id="likes_popup"> |
31 | 31 | <div class="windowbg"> |
@@ -176,7 +176,7 @@ |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | function show_msg() { |
179 | - $(\'#progress_msg\').html(\'<div><img src="', $settings['actual_images_url'], '/loading_sm.gif" alt="', $txt['ajax_in_progress'], '" width="35" height="35"> ', $txt['attachment_transfer_progress'] , '<\/div>\'); |
|
179 | + $(\'#progress_msg\').html(\'<div><img src="', $settings['actual_images_url'], '/loading_sm.gif" alt="', $txt['ajax_in_progress'], '" width="35" height="35"> ', $txt['attachment_transfer_progress'], '<\/div>\'); |
|
180 | 180 | show_progress(); |
181 | 181 | } |
182 | 182 |
@@ -116,9 +116,10 @@ discard block |
||
116 | 116 | <h3 class="catbg">', $txt['attachment_transfer'], '</h3> |
117 | 117 | </div>'; |
118 | 118 | |
119 | - if (!empty($context['results'])) |
|
120 | - echo ' |
|
119 | + if (!empty($context['results'])) { |
|
120 | + echo ' |
|
121 | 121 | <div class="noticebox">', $context['results'], '</div>'; |
122 | + } |
|
122 | 123 | |
123 | 124 | echo ' |
124 | 125 | <div class="windowbg2 noup"> |
@@ -129,9 +130,10 @@ discard block |
||
129 | 130 | <dd><select name="from"> |
130 | 131 | <option value="0">', $txt['attachment_transfer_select'], '</option>'; |
131 | 132 | |
132 | - foreach ($context['attach_dirs'] as $id => $dir) |
|
133 | - echo ' |
|
133 | + foreach ($context['attach_dirs'] as $id => $dir) { |
|
134 | + echo ' |
|
134 | 135 | <option value="', $id, '">', $dir, '</option>'; |
136 | + } |
|
135 | 137 | echo ' |
136 | 138 | </select></dd> |
137 | 139 | <dt>', $txt['attachment_transfer_auto'], '</dt> |
@@ -139,13 +141,14 @@ discard block |
||
139 | 141 | <option value="0">', $txt['attachment_transfer_auto_select'], '</option> |
140 | 142 | <option value="-1">', $txt['attachment_transfer_forum_root'], '</option>'; |
141 | 143 | |
142 | - if (!empty($context['base_dirs'])) |
|
143 | - foreach ($context['base_dirs'] as $id => $dir) |
|
144 | + if (!empty($context['base_dirs'])) { |
|
145 | + foreach ($context['base_dirs'] as $id => $dir) |
|
144 | 146 | echo ' |
145 | 147 | <option value="', $id, '">', $dir, '</option>'; |
146 | - else |
|
147 | - echo ' |
|
148 | + } else { |
|
149 | + echo ' |
|
148 | 150 | <option value="0" disabled>', $txt['attachment_transfer_no_base'], '</option>'; |
151 | + } |
|
149 | 152 | |
150 | 153 | echo ' |
151 | 154 | </select></dd> |
@@ -153,16 +156,18 @@ discard block |
||
153 | 156 | <dd><select name="to"> |
154 | 157 | <option value="0">', $txt['attachment_transfer_select'], '</option>'; |
155 | 158 | |
156 | - foreach ($context['attach_dirs'] as $id => $dir) |
|
157 | - echo ' |
|
159 | + foreach ($context['attach_dirs'] as $id => $dir) { |
|
160 | + echo ' |
|
158 | 161 | <option value="', $id, '">', $dir, '</option>'; |
162 | + } |
|
159 | 163 | echo ' |
160 | 164 | </select></dd>'; |
161 | 165 | |
162 | - if (!empty($modSettings['attachmentDirFileLimit'])) |
|
163 | - echo ' |
|
166 | + if (!empty($modSettings['attachmentDirFileLimit'])) { |
|
167 | + echo ' |
|
164 | 168 | <dt>', $txt['attachment_transfer_empty'], '</dt> |
165 | 169 | <dd><input type="checkbox" name="empty_it"', $context['checked'] ? ' checked' : '', '></dd>'; |
170 | + } |
|
166 | 171 | echo ' |
167 | 172 | </dl> |
168 | 173 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> |
@@ -238,10 +243,11 @@ discard block |
||
238 | 243 | // Loop through each error reporting the status |
239 | 244 | foreach ($context['repair_errors'] as $error => $number) |
240 | 245 | { |
241 | - if (!empty($number)) |
|
242 | - echo ' |
|
246 | + if (!empty($number)) { |
|
247 | + echo ' |
|
243 | 248 | <input type="checkbox" name="to_fix[]" id="', $error, '" value="', $error, '" class="input_check"> |
244 | 249 | <label for="', $error, '">', sprintf($txt['attach_repair_' . $error], $number), '</label><br>'; |
250 | + } |
|
245 | 251 | } |
246 | 252 | |
247 | 253 | echo ' <br> |
@@ -12,7 +12,8 @@ |
||
12 | 12 | header('Location: ' . $boardurl); |
13 | 13 | } |
14 | 14 | // Can't find it... just forget it. |
15 | -else |
|
15 | +else { |
|
16 | 16 | exit; |
17 | +} |
|
17 | 18 | |
18 | 19 | ?> |
19 | 20 | \ No newline at end of file |
@@ -66,26 +66,31 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function checkRequest() |
68 | 68 | { |
69 | - if (!$this->enabled) |
|
70 | - return false; |
|
69 | + if (!$this->enabled) { |
|
70 | + return false; |
|
71 | + } |
|
71 | 72 | |
72 | 73 | // Try to create the image cache directory if it doesn't exist |
73 | - if (!file_exists($this->cache)) |
|
74 | - if (!mkdir($this->cache) || !copy(dirname($this->cache) . '/index.php', $this->cache . '/index.php')) |
|
74 | + if (!file_exists($this->cache)) { |
|
75 | + if (!mkdir($this->cache) || !copy(dirname($this->cache) . '/index.php', $this->cache . '/index.php')) |
|
75 | 76 | return false; |
77 | + } |
|
76 | 78 | |
77 | - if (empty($_GET['hash']) || empty($_GET['request'])) |
|
78 | - return false; |
|
79 | + if (empty($_GET['hash']) || empty($_GET['request'])) { |
|
80 | + return false; |
|
81 | + } |
|
79 | 82 | |
80 | 83 | $hash = $_GET['hash']; |
81 | 84 | $request = $_GET['request']; |
82 | 85 | |
83 | - if (md5($request . $this->secret) != $hash) |
|
84 | - return false; |
|
86 | + if (md5($request . $this->secret) != $hash) { |
|
87 | + return false; |
|
88 | + } |
|
85 | 89 | |
86 | 90 | // Attempt to cache the request if it doesn't exist |
87 | - if (!$this->isCached($request)) |
|
88 | - return $this->cacheImage($request); |
|
91 | + if (!$this->isCached($request)) { |
|
92 | + return $this->cacheImage($request); |
|
93 | + } |
|
89 | 94 | |
90 | 95 | return true; |
91 | 96 | } |
@@ -106,15 +111,17 @@ discard block |
||
106 | 111 | if (!$cached || time() - $cached['time'] > (5 * 86400)) |
107 | 112 | { |
108 | 113 | @unlink($cached_file); |
109 | - if ($this->checkRequest()) |
|
110 | - $this->serve(); |
|
114 | + if ($this->checkRequest()) { |
|
115 | + $this->serve(); |
|
116 | + } |
|
111 | 117 | exit; |
112 | 118 | } |
113 | 119 | |
114 | 120 | // Make sure we're serving an image |
115 | 121 | $contentParts = explode('/', !empty($cached['content_type']) ? $cached['content_type'] : ''); |
116 | - if ($contentParts[0] != 'image') |
|
117 | - exit; |
|
122 | + if ($contentParts[0] != 'image') { |
|
123 | + exit; |
|
124 | + } |
|
118 | 125 | |
119 | 126 | header('Content-type: ' . $cached['content_type']); |
120 | 127 | header('Content-length: ' . $cached['size']); |
@@ -160,19 +167,22 @@ discard block |
||
160 | 167 | $request = $curl->get_url_data($request); |
161 | 168 | $response = $request->result(); |
162 | 169 | |
163 | - if (empty($response)) |
|
164 | - return false; |
|
170 | + if (empty($response)) { |
|
171 | + return false; |
|
172 | + } |
|
165 | 173 | |
166 | 174 | $headers = $response['headers']; |
167 | 175 | |
168 | 176 | // Make sure the url is returning an image |
169 | 177 | $contentParts = explode('/', !empty($headers['content-type']) ? $headers['content-type'] : ''); |
170 | - if ($contentParts[0] != 'image') |
|
171 | - return false; |
|
178 | + if ($contentParts[0] != 'image') { |
|
179 | + return false; |
|
180 | + } |
|
172 | 181 | |
173 | 182 | // Validate the filesize |
174 | - if ($response['size'] > ($this->maxSize * 1024)) |
|
175 | - return false; |
|
183 | + if ($response['size'] > ($this->maxSize * 1024)) { |
|
184 | + return false; |
|
185 | + } |
|
176 | 186 | |
177 | 187 | return file_put_contents($dest, json_encode(array( |
178 | 188 | 'content_type' => $headers['content-type'], |
@@ -184,7 +194,8 @@ discard block |
||
184 | 194 | } |
185 | 195 | |
186 | 196 | $proxy = new ProxyServer(); |
187 | -if ($proxy->checkRequest()) |
|
197 | +if ($proxy->checkRequest()) { |
|
188 | 198 | $proxy->serve(); |
199 | +} |
|
189 | 200 | |
190 | 201 | exit; |
@@ -12,7 +12,8 @@ |
||
12 | 12 | header('Location: ' . $boardurl); |
13 | 13 | } |
14 | 14 | // Can't find it... just forget it. |
15 | -else |
|
15 | +else { |
|
16 | 16 | exit; |
17 | +} |
|
17 | 18 | |
18 | 19 | ?> |
19 | 20 | \ No newline at end of file |
@@ -12,7 +12,8 @@ |
||
12 | 12 | header('Location: ' . $boardurl); |
13 | 13 | } |
14 | 14 | // Can't find it... just forget it. |
15 | -else |
|
15 | +else { |
|
16 | 16 | exit; |
17 | +} |
|
17 | 18 | |
18 | 19 | ?> |
19 | 20 | \ No newline at end of file |
@@ -1,9 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // Try to handle it with the upper level index.php. (it should know what to do.) |
4 | -if (file_exists(dirname(dirname(__FILE__)) . '/index.php')) |
|
4 | +if (file_exists(dirname(dirname(__FILE__)) . '/index.php')) { |
|
5 | 5 | include (dirname(dirname(__FILE__)) . '/index.php'); |
6 | -else |
|
6 | +} else { |
|
7 | 7 | exit; |
8 | +} |
|
8 | 9 | |
9 | 10 | ?> |
10 | 11 | \ No newline at end of file |