Redirection - Version 2.3.5

Version Description

  • Default log settings to 7 days, props to Maura
  • Updated Danish translation thanks to Mikael Rieck
  • Add per-page screen option for log pages
  • Remove all the corners
Download this release

Release Info

Developer johnny5
Plugin Icon 128x128 Redirection
Version 2.3.5
Comparing to
See all releases

Code changes from version 2.3.4 to 2.3.5

admin.css CHANGED
@@ -54,13 +54,6 @@ color: red;
54
  .modules td.logo
55
  {
56
  background-color: #d4d4d4;
57
- -moz-border-radius: 10px 0 0 10px;
58
- -webkit-border-top-left-radius: 10px;
59
- -webkit-border-bottom-left-radius: 10px;
60
- border-top-right-radius: 0px;
61
- border-top-left-radius: 10px;
62
- border-bottom-right-radius: 0px;
63
- border-bottom-left-radius: 10px;
64
  width: 70px;
65
  text-align: center;
66
  }
@@ -71,13 +64,6 @@ text-align: center;
71
  text-align: center;
72
  }
73
 
74
- .modules td.edit, .modules td.operations
75
- {
76
- -moz-border-radius: 0 10px 10px 0px;
77
- -webkit-border-top-right-radius: 10px;
78
- -webkit-border-bottom-right-radius: 10px;
79
- }
80
-
81
  .modules td table td
82
  {
83
  padding: 0px;
@@ -92,9 +78,6 @@ color: black;
92
  {
93
  margin-top: 7px;
94
  font-size: 0.8em;
95
- border-radius: 10px;
96
- -moz-border-radius: 10px;
97
- -webkit-border-radius: 10px;
98
  background-color: #d4d4d4;
99
  padding: 5px 10px 4px 10px;
100
  }
@@ -214,9 +197,6 @@ color: #999;
214
 
215
  .redirections li, .redirections_header li
216
  {
217
- -moz-border-radius: 10px;
218
- -webkit-border-radius: 10px;
219
- border-radius: 10px;
220
  list-style-type: none;
221
  overflow: hidden;
222
  }
@@ -276,9 +256,6 @@ cursor: move;
276
 
277
  .sort
278
  {
279
- -moz-border-radius: 10px;
280
- -webkit-border-radius: 10px;
281
- border-radius: 10px;
282
  width: 8em;
283
  text-align: center;
284
  padding: 4px 2px;
@@ -303,17 +280,11 @@ vertical-align: middle;
303
 
304
  .type
305
  {
306
- -moz-border-radius: 10px 0px 0px 10px;
307
- -webkit-border-top-left-radius: 10px;
308
- -webkit-border-bottom-left-radius: 10px;
309
  margin-right: 3px;
310
  }
311
 
312
  .tools
313
  {
314
- -moz-border-radius: 0px 10px 10px 0px;
315
- -webkit-border-top-left-radius: 10px;
316
- -webkit-border-bottom-left-radius: 10px;
317
  height: 1.4em;
318
  }
319
 
@@ -502,10 +473,6 @@ font-size: 1.2em;
502
  border-style: solid;
503
  padding: 0 0.6em;
504
  margin: 5px 15px 2px;
505
- -moz-border-radius: 3px;
506
- -khtml-border-radius: 3px;
507
- -webkit-border-radius: 3px;
508
- border-radius: 3px;
509
  background-color: #ffffe0;
510
  border-color: #e6db55;
511
  }
54
  .modules td.logo
55
  {
56
  background-color: #d4d4d4;
 
 
 
 
 
 
 
57
  width: 70px;
58
  text-align: center;
59
  }
64
  text-align: center;
65
  }
66
 
 
 
 
 
 
 
 
67
  .modules td table td
68
  {
69
  padding: 0px;
78
  {
79
  margin-top: 7px;
80
  font-size: 0.8em;
 
 
 
81
  background-color: #d4d4d4;
82
  padding: 5px 10px 4px 10px;
83
  }
197
 
198
  .redirections li, .redirections_header li
199
  {
 
 
 
200
  list-style-type: none;
201
  overflow: hidden;
202
  }
256
 
257
  .sort
258
  {
 
 
 
259
  width: 8em;
260
  text-align: center;
261
  padding: 4px 2px;
280
 
281
  .type
282
  {
 
 
 
283
  margin-right: 3px;
284
  }
285
 
286
  .tools
287
  {
 
 
 
288
  height: 1.4em;
289
  }
290
 
473
  border-style: solid;
474
  padding: 0 0.6em;
475
  margin: 5px 15px 2px;
 
 
 
 
476
  background-color: #ffffe0;
477
  border-color: #e6db55;
478
  }
ajax.php CHANGED
@@ -361,13 +361,15 @@ class RedirectionAjax extends Redirection_Plugin {
361
  function red_redirect_add() {
362
  if ( check_ajax_referer( 'redirection-redirect_add' ) ) {
363
  $item = Red_Item::create( $this->post );
364
- if ( $item !== false ) {
 
 
365
  echo '<li class="type_'.$item->action_type.'" id="item_'.$item->id.'">';
366
  $this->render_admin( 'item', array( 'redirect' => $item, 'date_format' => get_option( 'date_format' ) ) );
367
  echo '</li>';
368
  }
369
  else
370
- $this->render_error (__ ('Sorry, but your redirection was not created', 'redirection'));
371
 
372
  die();
373
  }
361
  function red_redirect_add() {
362
  if ( check_ajax_referer( 'redirection-redirect_add' ) ) {
363
  $item = Red_Item::create( $this->post );
364
+ if ( is_wp_error( $item ) )
365
+ $this->render_error( $item->get_error_message() );
366
+ elseif ( $item !== false ) {
367
  echo '<li class="type_'.$item->action_type.'" id="item_'.$item->id.'">';
368
  $this->render_admin( 'item', array( 'redirect' => $item, 'date_format' => get_option( 'date_format' ) ) );
369
  echo '</li>';
370
  }
371
  else
372
+ $this->render_error( __( 'Sorry, but your redirection was not created', 'redirection' ) );
373
 
374
  die();
375
  }
locale/da_DK.mo ADDED
Binary file
locale/da_DK.po ADDED
@@ -0,0 +1,991 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Redirection\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-04-22 17:38+0100\n"
6
+ "PO-Revision-Date: 2013-12-05 08:40+0100\n"
7
+ "Last-Translator: Mikael <mikael@husplushave.dk>\n"
8
+ "Language-Team: Antphilosophy.com\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;gettext;gettext_noop;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "Language: da_DK\n"
15
+ "X-Generator: Poedit 1.5.7\n"
16
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+
20
+ #: ajax.php:370
21
+ msgid "Sorry, but your redirection was not created"
22
+ msgstr "Beklager, men dit redirect blev ikke oprettet"
23
+
24
+ #: redirection.php:94
25
+ msgid "Settings"
26
+ msgstr "Indstillinger"
27
+
28
+ #: redirection.php:112
29
+ msgid "Please wait..."
30
+ msgstr "Vent venligst.."
31
+
32
+ #: redirection.php:115
33
+ msgid "Are you sure?"
34
+ msgstr "Er du sikker?"
35
+
36
+ #: redirection.php:116
37
+ msgid "No items have been selected"
38
+ msgstr "Ingen elementer blev valgt"
39
+
40
+ #: redirection.php:121
41
+ msgid "Redirection"
42
+ msgstr "Redirection"
43
+
44
+ #: redirection.php:159
45
+ msgid "Your module was successfully created"
46
+ msgstr "Dit modul blev oprettet succesfuldt"
47
+
48
+ #: redirection.php:163
49
+ msgid "Your module was not created - did you provide a name?"
50
+ msgstr "Dit modul blev ikke oprettet - tilføjede du et navn?"
51
+
52
+ #: redirection.php:228
53
+ msgid "Your options were updated"
54
+ msgstr "Dine indstillinger blev opdateret"
55
+
56
+ #: redirection.php:236
57
+ msgid "Redirection data has been deleted and the plugin disabled"
58
+ msgstr "Redirection data blev slettet og plugin'et deaktiveret"
59
+
60
+ #: redirection.php:248
61
+ msgid "No items were imported"
62
+ msgstr "Ingen redirects blev importeret"
63
+
64
+ #: redirection.php:266
65
+ msgid "Your logs have been deleted"
66
+ msgstr "Dine logs blev slettet"
67
+
68
+ #: redirection.php:289
69
+ msgid "Your group was added successfully"
70
+ msgstr "Din gruppe blev tilføjet succesfuldt"
71
+
72
+ #: redirection.php:293
73
+ msgid "Please specify a group name"
74
+ msgstr "Tilføj venligst et gruppenavn"
75
+
76
+ #: redirection.php:330
77
+ msgid "Redirection is available in"
78
+ msgstr "Redirection er tilgængelig i"
79
+
80
+ #: fileio/csv.php:21
81
+ #, php-format
82
+ msgid "module_%d.csv"
83
+ msgstr "module_%d.csv"
84
+
85
+ #: fileio/xml.php:32
86
+ #, php-format
87
+ msgid "module_%d.xml"
88
+ msgstr "module_%d.xml"
89
+
90
+ #: fileio/xml.php:105
91
+ #, php-format
92
+ msgid "%s imported on %s at %s"
93
+ msgstr "%s importeret i %s af %s"
94
+
95
+ #: fileio/xml.php:168
96
+ msgid "XML importing is only available with PHP5 - you have PHP4."
97
+ msgstr "XML importering er kun tilgængeligt i PHP5 - du har PHP4."
98
+
99
+ #: matches/login.php:25
100
+ msgid "URL and login status"
101
+ msgstr "URL og login status"
102
+
103
+ #: matches/login.php:33
104
+ msgid ""
105
+ "The target URL will be chosen from one of the following URLs, depending if "
106
+ "the user is logged in or out. Leaving a URL blank means that the user is "
107
+ "not redirected."
108
+ msgstr ""
109
+ "Target URL vil blive valgt fra en af de følgende URLs, afhængig af om "
110
+ "brugeen er logget ind eller ej. Hvis du lader en URL være blank betyder det, "
111
+ "at brugeren ikke er redirected."
112
+
113
+ #: matches/login.php:39 matches/login.php:41
114
+ msgid "Logged In"
115
+ msgstr "Logget Ind"
116
+
117
+ #: matches/login.php:51 matches/login.php:53
118
+ msgid "Logged Out"
119
+ msgstr "Logget Ud"
120
+
121
+ #: matches/referrer.php:28
122
+ msgid "URL and referrer"
123
+ msgstr "URL og henvisning"
124
+
125
+ #: matches/referrer.php:40
126
+ msgid "Referrer"
127
+ msgstr "Henvisning"
128
+
129
+ #: matches/referrer.php:43
130
+ msgid "Regex"
131
+ msgstr "Regex"
132
+
133
+ #: matches/referrer.php:47 matches/url.php:40 matches/user_agent.php:57
134
+ msgid "HTTP Code"
135
+ msgstr "HTTP Kode"
136
+
137
+ #: matches/referrer.php:57
138
+ msgid ""
139
+ "The visitor will be redirected from the source URL if the referrer matches. "
140
+ "You can specify a <em>matched</em> target URL as the address to send "
141
+ "visitors if they do match, and <em>not matched</em> if they don't match. "
142
+ "Leaving a URL blank means that the visitor is not redirected."
143
+ msgstr ""
144
+ "Brugeren vil blive redirected fra kilde URL hvis henvisningen matcher. Du "
145
+ "kan specificere en <em>matchende</em> target URL som den adresse hvor "
146
+ "brugerne sendes hen, hvis de matcher og en <em>ikke matchende</em> hvis de "
147
+ "ikke matcher. Lader du en URL være blank betyder det, at brugeren ikke "
148
+ "redirectes."
149
+
150
+ #: matches/referrer.php:63 matches/referrer.php:65 matches/user_agent.php:75
151
+ #: matches/user_agent.php:77
152
+ msgid "Matched"
153
+ msgstr "Matcher"
154
+
155
+ #: matches/referrer.php:73 matches/referrer.php:75 matches/user_agent.php:85
156
+ #: matches/user_agent.php:87
157
+ msgid "Not matched"
158
+ msgstr "Matcher ikke"
159
+
160
+ #: matches/url.php:25
161
+ msgid "URL only"
162
+ msgstr "Kun URL"
163
+
164
+ #: matches/url.php:32
165
+ msgid "Target URL"
166
+ msgstr "Target URL"
167
+
168
+ #: matches/user_agent.php:27
169
+ msgid "URL and user agent"
170
+ msgstr "URL og user agent"
171
+
172
+ #: matches/user_agent.php:32
173
+ msgid "FeedBurner"
174
+ msgstr "FeedBurner"
175
+
176
+ #: matches/user_agent.php:33
177
+ msgid "Internet Explorer"
178
+ msgstr "Internet Explorer"
179
+
180
+ #: matches/user_agent.php:34
181
+ msgid "FireFox"
182
+ msgstr "Firefox"
183
+
184
+ #: matches/user_agent.php:35
185
+ msgid "Opera"
186
+ msgstr "Opera"
187
+
188
+ #: matches/user_agent.php:36
189
+ msgid "Safari"
190
+ msgstr "Safari"
191
+
192
+ #: matches/user_agent.php:37
193
+ msgid "iPhone"
194
+ msgstr "iPhone"
195
+
196
+ #: matches/user_agent.php:38
197
+ msgid "iPad"
198
+ msgstr "iPad"
199
+
200
+ #: matches/user_agent.php:39
201
+ msgid "Android"
202
+ msgstr "Android"
203
+
204
+ #: matches/user_agent.php:40
205
+ msgid "Nintendo Wii"
206
+ msgstr "Nintendo Wii"
207
+
208
+ #: matches/user_agent.php:45
209
+ msgid "User Agent"
210
+ msgstr "User Agent"
211
+
212
+ #: matches/user_agent.php:68
213
+ msgid ""
214
+ "The visitor will be redirected from the source URL if the user agent "
215
+ "matches. You can specify a <em>matched</em> target URL as the address to "
216
+ "send visitors if they do match, and <em>not matched</em> if they don't "
217
+ "match. Leaving a URL blank means that the visitor is not redirected. "
218
+ "<strong>All matches are performed as regular expressions</strong>.\n"
219
+ msgstr ""
220
+ "Brugeren vil blive redirected fra kilde URL hvis user agent matcher. Du kan "
221
+ "specificere en <em>matchende</em> target URL som den adresse hvor brugerne "
222
+ "sendes hen, hvis de matcher og <em>ikke matchende</em> hvis de ikke matcher. "
223
+ "Hvis URL efterlades blank betyder det, at brugeren ikke redirectes. "
224
+ "<strong>Alle matches foretages som regulære udtryk</strong>.\n"
225
+
226
+ #: models/database.php:94 models/module.php:161
227
+ msgid "WordPress"
228
+ msgstr "WordPress"
229
+
230
+ #: models/database.php:95 models/module.php:160
231
+ msgid "Apache"
232
+ msgstr "Apache"
233
+
234
+ #: models/database.php:96
235
+ msgid "404"
236
+ msgstr "404"
237
+
238
+ #: models/database.php:101
239
+ msgid "Redirections"
240
+ msgstr "Redirections"
241
+
242
+ #: models/database.php:102
243
+ msgid "Modified Posts"
244
+ msgstr "Ændrede poster"
245
+
246
+ #: models/group.php:194
247
+ msgid "Yes"
248
+ msgstr "Ja"
249
+
250
+ #: models/group.php:195
251
+ msgid "No"
252
+ msgstr "Nej"
253
+
254
+ #: models/module.php:162
255
+ msgid "404 Errors"
256
+ msgstr "404 Fejl"
257
+
258
+ #: models/module.php:187
259
+ msgid "Strip WWW"
260
+ msgstr "Fjern WWW"
261
+
262
+ #: models/module.php:187
263
+ msgid "Force WWW"
264
+ msgstr "Forcér WWW"
265
+
266
+ #: models/module.php:192
267
+ msgid "Strip index.php"
268
+ msgstr "Fjern index.php"
269
+
270
+ #: models/pager.php:404
271
+ msgid "Previous"
272
+ msgstr "Forrige"
273
+
274
+ #: models/pager.php:405
275
+ msgid "Next"
276
+ msgstr "Næste"
277
+
278
+ #: models/pager.php:463
279
+ #, php-format
280
+ msgid "%d per-page"
281
+ msgstr "%d pr. side"
282
+
283
+ #: models/pager.php:472
284
+ #, php-format
285
+ msgid "Displaying %s&#8211;%s of %s"
286
+ msgstr "Viser %s&#8211;%s af %s"
287
+
288
+ #: models/redirect.php:386
289
+ msgid "Redirect to URL"
290
+ msgstr "Redirect til URL"
291
+
292
+ #: models/redirect.php:387
293
+ msgid "Redirect to random post"
294
+ msgstr "Redirect til tilfældigt indlæg"
295
+
296
+ #: models/redirect.php:388
297
+ msgid "Pass-through"
298
+ msgstr "Pass-through"
299
+
300
+ #: models/redirect.php:389
301
+ msgid "Error (404)"
302
+ msgstr "Fejl (404)"
303
+
304
+ #: models/redirect.php:390
305
+ msgid "Do nothing"
306
+ msgstr "Gør ingenting"
307
+
308
+ #: modules/404.php:37
309
+ msgid "Log 404s"
310
+ msgstr "Log 404"
311
+
312
+ #: modules/404.php:46 modules/wordpress.php:121
313
+ msgid ""
314
+ "<strong>Disabled: You must enable <a href=\"options-permalink.php"
315
+ "\">permalinks</a> before using this</strong>"
316
+ msgstr ""
317
+ "<strong>Deaktiveret: Du skal aktivere <a href=\"options-permalink.php"
318
+ "\">permalinks</a> før du kan bruge det</strong>"
319
+
320
+ #: modules/404.php:57
321
+ msgid "<small>No options have been set</small>"
322
+ msgstr "<small>Ingen indstillinger blev ændret</small>"
323
+
324
+ #: modules/apache.php:77
325
+ msgid "Location"
326
+ msgstr "Lokation"
327
+
328
+ #: modules/apache.php:82
329
+ #, php-format
330
+ msgid "WordPress is installed in: <code>%s</code>"
331
+ msgstr "WordPress er installeret i: <code>%s</code>"
332
+
333
+ #: modules/apache.php:87
334
+ msgid "Canonical"
335
+ msgstr "Canonical"
336
+
337
+ #: modules/apache.php:90 modules/apache.php:96
338
+ msgid "Leave as is"
339
+ msgstr "Ingen ændriger"
340
+
341
+ #: modules/apache.php:90
342
+ #, php-format
343
+ msgid "Strip WWW (%s)"
344
+ msgstr "Fjern WWW (%s)"
345
+
346
+ #: modules/apache.php:90
347
+ #, php-format
348
+ msgid "Force WWW (www.%s)"
349
+ msgstr "Forcér WWW (www.%s)"
350
+
351
+ #: modules/apache.php:94
352
+ msgid "Strip Index"
353
+ msgstr "Fjern Index"
354
+
355
+ #: modules/apache.php:96
356
+ msgid "Strip index files (html,php)"
357
+ msgstr "Fjern index filer (html,php)"
358
+
359
+ #: modules/apache.php:101
360
+ msgid "Memory Limit"
361
+ msgstr "Hukommelsesbegrænsning"
362
+
363
+ #: modules/apache.php:104 modules/apache.php:109
364
+ msgid "Server default"
365
+ msgstr "Server default"
366
+
367
+ #: modules/apache.php:107
368
+ msgid "Error Level"
369
+ msgstr "Fejl Level"
370
+
371
+ #: modules/apache.php:109
372
+ msgid "No errors"
373
+ msgstr "Ingen fejl"
374
+
375
+ #: modules/apache.php:109
376
+ msgid "Show errors"
377
+ msgstr "Vis fejl"
378
+
379
+ #: modules/apache.php:114
380
+ msgid "Ban IPs"
381
+ msgstr "Ekskludér IPs"
382
+
383
+ #: modules/apache.php:120
384
+ msgid "Allow IPs"
385
+ msgstr "Tillad IPs"
386
+
387
+ #: modules/apache.php:126
388
+ msgid "Raw .htaccess"
389
+ msgstr "Rå .htaccess"
390
+
391
+ #: modules/apache.php:132
392
+ msgid "Site URL"
393
+ msgstr "Site URL"
394
+
395
+ #: modules/apache.php:135
396
+ msgid "Advanced: For management of external sites"
397
+ msgstr "Avanceret: For håndtering af eksterne sites"
398
+
399
+ #: modules/apache.php:150
400
+ msgid "<strong>Location is invalid - check that path exists</strong>"
401
+ msgstr "<strong>Lokationen er ugyldig - check at stien eksisterer</strong>"
402
+
403
+ #: modules/apache.php:156
404
+ msgid ""
405
+ "<strong>Could not write to configured <code>.htaccess</code> file - check "
406
+ "file permissions</strong>"
407
+ msgstr ""
408
+ "<strong>Kunne ikke skrive til konfigurerede <code>.htaccess</code> fil - "
409
+ "check fil tilladelser</strong>"
410
+
411
+ #: modules/apache.php:163
412
+ msgid ""
413
+ "<strong>Disabled: enter the location of an <code>.htaccess</code> file for "
414
+ "this to be valid</strong>"
415
+ msgstr ""
416
+ "<strong>Deaktiveret: indtast lokationen af <code>.htaccess</code> filen for "
417
+ "at gøre dette validt</strong>"
418
+
419
+ #: modules/apache.php:168
420
+ msgid "strip WWW"
421
+ msgstr "fjern WWW"
422
+
423
+ #: modules/apache.php:168
424
+ msgid "force WWW"
425
+ msgstr "forcér WWW"
426
+
427
+ #: modules/apache.php:171
428
+ msgid "strip index"
429
+ msgstr "fjern index"
430
+
431
+ #: modules/apache.php:174
432
+ #, php-format
433
+ msgid "memory limit at %dMB"
434
+ msgstr "Hukommelsesbegræsning på %dMB"
435
+
436
+ #: modules/apache.php:177
437
+ msgid "no errors"
438
+ msgstr "ingen fejl"
439
+
440
+ #: modules/apache.php:177
441
+ msgid "show errors"
442
+ msgstr "vis fejl"
443
+
444
+ #: modules/apache.php:180
445
+ msgid "IPs are banned"
446
+ msgstr "IPs er ekskluderet"
447
+
448
+ #: modules/apache.php:183
449
+ msgid "IPs are allowed"
450
+ msgstr "IPs er tilladte"
451
+
452
+ #: view/admin/add.php:3
453
+ msgid "Add new redirection"
454
+ msgstr "Tilføj ny redirection."
455
+
456
+ #: view/admin/add.php:6
457
+ msgid "Your redirection has been added."
458
+ msgstr "Dit redirect er tilføjet."
459
+
460
+ #: view/admin/add.php:12
461
+ msgid "Source URL"
462
+ msgstr "Kilde URL"
463
+
464
+ #: view/admin/add.php:16
465
+ msgid "Match"
466
+ msgstr "Match"
467
+
468
+ #: view/admin/add.php:22
469
+ msgid "Action"
470
+ msgstr "Action"
471
+
472
+ #: view/admin/add.php:27
473
+ msgid "Regular expression"
474
+ msgstr "Regulært udtryk"
475
+
476
+ #: view/admin/add.php:36
477
+ msgid "Group"
478
+ msgstr "Gruppe"
479
+
480
+ #: view/admin/add.php:43
481
+ msgid "Add Redirection"
482
+ msgstr "Tilføj redirect"
483
+
484
+ #: view/admin/group_edit.php:6 view/admin/group_list.php:37
485
+ #: view/admin/group_list.php:100 view/admin/module_edit.php:18
486
+ #: view/admin/module_list.php:42
487
+ msgid "Name"
488
+ msgstr "Navn"
489
+
490
+ #: view/admin/group_edit.php:10
491
+ msgid "Tracked"
492
+ msgstr "Tracked"
493
+
494
+ #: view/admin/group_edit.php:11
495
+ msgid "Whether to track 'hits' to items"
496
+ msgstr "Antal 'hits' til hver redirect "
497
+
498
+ #: view/admin/group_edit.php:14
499
+ msgid "Enabled"
500
+ msgstr "Aktiveret"
501
+
502
+ #: view/admin/group_edit.php:15
503
+ msgid "Disabling a group will disable all items contained within it"
504
+ msgstr ""
505
+ "Deaktivering af en gruppe vil deaktivere all objekter indeholdt i gruppen"
506
+
507
+ #: view/admin/group_edit.php:20 view/admin/item_edit.php:27
508
+ #: view/admin/module_edit.php:27
509
+ msgid "Save"
510
+ msgstr "Gem"
511
+
512
+ #: view/admin/group_edit.php:21 view/admin/item_edit.php:28
513
+ #: view/admin/module_edit.php:28
514
+ msgid "Cancel"
515
+ msgstr "Annullér"
516
+
517
+ #: view/admin/group_item.php:3
518
+ msgid "edit group"
519
+ msgstr "redigér gruppe"
520
+
521
+ #: view/admin/group_item.php:23 view/admin/item.php:27
522
+ msgid "disabled"
523
+ msgstr "deaktiveret"
524
+
525
+ #: view/admin/group_list.php:6
526
+ msgid "Groups for module"
527
+ msgstr "Grupper for moduler"
528
+
529
+ #: view/admin/group_list.php:16 view/admin/log.php:38
530
+ msgid "Module"
531
+ msgstr "Modul"
532
+
533
+ #: view/admin/group_list.php:21 view/admin/item_list.php:29
534
+ #: view/admin/log.php:16 view/admin/log.php:23
535
+ msgid "Search"
536
+ msgstr "Søg"
537
+
538
+ #: view/admin/group_list.php:26
539
+ msgid "go"
540
+ msgstr "send"
541
+
542
+ #: view/admin/group_list.php:36 view/admin/item_list.php:42
543
+ #: view/admin/module_list.php:17
544
+ msgid "Hits"
545
+ msgstr "Hits"
546
+
547
+ #: view/admin/group_list.php:59 view/admin/item_list.php:67
548
+ msgid "Select All"
549
+ msgstr "Vælg Alle"
550
+
551
+ #: view/admin/group_list.php:60 view/admin/item_list.php:68
552
+ msgid "Toggle"
553
+ msgstr "Skift"
554
+
555
+ #: view/admin/group_list.php:61 view/admin/item_list.php:69
556
+ msgid "Reset Hits"
557
+ msgstr "Nulstil Hits"
558
+
559
+ #: view/admin/group_list.php:62 view/admin/item_list.php:70
560
+ #: view/admin/log.php:30 view/admin/options.php:120
561
+ msgid "Delete"
562
+ msgstr "Slet"
563
+
564
+ #: view/admin/group_list.php:64 view/admin/item_list.php:72
565
+ msgid "Move To"
566
+ msgstr "Flyt til"
567
+
568
+ #: view/admin/group_list.php:69 view/admin/item_list.php:34
569
+ #: view/admin/item_list.php:77
570
+ msgid "Go"
571
+ msgstr "Send"
572
+
573
+ #: view/admin/group_list.php:75 view/admin/item_list.php:83
574
+ msgid "re-order"
575
+ msgstr "Sorter"
576
+
577
+ #: view/admin/group_list.php:76 view/admin/item_list.php:84
578
+ msgid "save order"
579
+ msgstr "gem opstilling"
580
+
581
+ #: view/admin/group_list.php:89
582
+ msgid "You have no groups in this module."
583
+ msgstr "Du har ingen grupper i modulet"
584
+
585
+ #: view/admin/group_list.php:94
586
+ msgid "Add Group"
587
+ msgstr "Tilføj gruppe"
588
+
589
+ #: view/admin/group_list.php:105
590
+ msgid "Add"
591
+ msgstr "Tilføj"
592
+
593
+ #: view/admin/item_edit.php:3
594
+ #, php-format
595
+ msgid "%s by matching %s"
596
+ msgstr "%s ved at matche %s"
597
+
598
+ #: view/admin/item_edit.php:7
599
+ msgid "Title"
600
+ msgstr "Titel"
601
+
602
+ #: view/admin/item_edit.php:10
603
+ msgid "optional"
604
+ msgstr "valgfri"
605
+
606
+ #: view/admin/item_list.php:7
607
+ msgid "Redirections for group"
608
+ msgstr "Redirections for gruppe"
609
+
610
+ #: view/admin/item_list.php:41
611
+ msgid "Last Access"
612
+ msgstr "Sidste adgang"
613
+
614
+ #: view/admin/item_list.php:43 view/admin/module_list.php:46
615
+ msgid "Type"
616
+ msgstr "Type"
617
+
618
+ #: view/admin/item_list.php:44
619
+ msgid "URL"
620
+ msgstr "URL"
621
+
622
+ #: view/admin/item_list.php:44
623
+ msgid "Position"
624
+ msgstr "Position"
625
+
626
+ #: view/admin/item_list.php:88
627
+ msgid "You have no redirections."
628
+ msgstr "Du har ingen redirects"
629
+
630
+ #: view/admin/log.php:6
631
+ msgid "Redirection Log"
632
+ msgstr "Redirection Log"
633
+
634
+ #: view/admin/log.php:29
635
+ msgid "Bulk Actions"
636
+ msgstr "Flere handlinger"
637
+
638
+ #: view/admin/log.php:33
639
+ msgid "Apply"
640
+ msgstr "Tilføj"
641
+
642
+ #: view/admin/log.php:49
643
+ msgid "Filter"
644
+ msgstr "Filter"
645
+
646
+ #: view/admin/log.php:67
647
+ msgid "Date"
648
+ msgstr "Dato"
649
+
650
+ #: view/admin/log.php:70
651
+ msgid "IP"
652
+ msgstr "IP"
653
+
654
+ #: view/admin/log.php:85
655
+ msgid "There are no logs to display!"
656
+ msgstr "Der er ingen logs at vise"
657
+
658
+ #: view/admin/log.php:94
659
+ msgid "Process Current Logs"
660
+ msgstr "Proces for nuværende logs"
661
+
662
+ #: view/admin/log.php:95
663
+ msgid ""
664
+ "These actions will affect all currently available logs (i.e. your search "
665
+ "phrase will restrict the log items)."
666
+ msgstr ""
667
+ "Tilføjelserne vil påvirke alle nuværende tilgængelige logs (dvs. din "
668
+ "søgeforespørgsel vil filtrere de forskellige logs)"
669
+
670
+ #: view/admin/log.php:100
671
+ msgid "Delete Logs"
672
+ msgstr "Fjern logs"
673
+
674
+ #: view/admin/log_item_details.php:9
675
+ msgid "Redirect to"
676
+ msgstr "Redirect til"
677
+
678
+ #: view/admin/log_item_details.php:15
679
+ msgid "Redirected by"
680
+ msgstr "Redirected af"
681
+
682
+ #: view/admin/log_item_details.php:16
683
+ msgid "for"
684
+ msgstr "For"
685
+
686
+ #: view/admin/module_item.php:23
687
+ msgid "View as"
688
+ msgstr "Vis som"
689
+
690
+ #: view/admin/module_item.php:25
691
+ msgid "CSV"
692
+ msgstr "CSV"
693
+
694
+ #: view/admin/module_item.php:26
695
+ msgid "XML"
696
+ msgstr "XML"
697
+
698
+ #: view/admin/module_item.php:28
699
+ msgid "RSS"
700
+ msgstr "RSS"
701
+
702
+ #: view/admin/module_item.php:41
703
+ msgid "edit"
704
+ msgstr "redigér"
705
+
706
+ #: view/admin/module_item.php:43
707
+ msgid "delete"
708
+ msgstr "slet"
709
+
710
+ #: view/admin/module_item.php:45
711
+ msgid "reset"
712
+ msgstr "nulstil"
713
+
714
+ #: view/admin/module_list.php:6 view/admin/submenu.php:16
715
+ msgid "Modules"
716
+ msgstr "Moduler"
717
+
718
+ #: view/admin/module_list.php:14
719
+ msgid "Details"
720
+ msgstr "Detaljer"
721
+
722
+ #: view/admin/module_list.php:15 view/admin/submenu.php:11
723
+ msgid "Groups"
724
+ msgstr "Grupper"
725
+
726
+ #: view/admin/module_list.php:16
727
+ msgid "Items"
728
+ msgstr "Objekter"
729
+
730
+ #: view/admin/module_list.php:18
731
+ msgid "Operations"
732
+ msgstr "Operationer"
733
+
734
+ #: view/admin/module_list.php:27
735
+ msgid "Note: Hits are dependant on log entries"
736
+ msgstr "Bemærk: Hits er afhængig af log tilføjelser"
737
+
738
+ #: view/admin/module_list.php:29
739
+ msgid "You have no modules defined yet"
740
+ msgstr "Du har ikke defineret nogle moduler endnu"
741
+
742
+ #: view/admin/module_list.php:34
743
+ msgid "Add Module"
744
+ msgstr "Tilføj Modul"
745
+
746
+ #: view/admin/module_list.php:35
747
+ msgid ""
748
+ "A module is a controlling element that determines how redirections are "
749
+ "handled. Elements in a WordPress module are handled by WordPress, elements "
750
+ "in an Apache module are handled by <code>.htaccess</code>, and elements in a "
751
+ "404 module affect how 404 errors are logged."
752
+ msgstr ""
753
+ "Et modul er et element, der kontrollerer hvordan redirects håndteres. "
754
+ "Elementer i et WordPress modul er håndteret af WordPress, elementer i et "
755
+ "Apache modul er håndteret i <code>.htaccess</code>, og elementer i et 404 "
756
+ "modul påvirker hvordan 404 fejl er gemt."
757
+
758
+ #: view/admin/module_list.php:55
759
+ msgid "Create"
760
+ msgstr "Tilføj"
761
+
762
+ #: view/admin/options.php:6 view/admin/submenu.php:26
763
+ msgid "Options"
764
+ msgstr "Indstillinger"
765
+
766
+ #: view/admin/options.php:15
767
+ msgid "Auto-generate URL"
768
+ msgstr "Auto-generér URL"
769
+
770
+ #: view/admin/options.php:19
771
+ msgid ""
772
+ "This will be used to auto-generate a URL if no URL is given. You can use "
773
+ "the special tags $dec$ or $hex$ to have a unique ID inserted (either decimal "
774
+ "or hex)"
775
+ msgstr ""
776
+ "Dette vil blive brugt til at auto-generere en URL hvis ingen URL er givet. "
777
+ "Du kan bruge specielle tags $dec$ eller $hex$ for at indsætte en unik ID "
778
+ "(enten decimal eller hex)"
779
+
780
+ #: view/admin/options.php:24
781
+ msgid "IP Lookup Service"
782
+ msgstr "IP Lookup Service"
783
+
784
+ #: view/admin/options.php:30
785
+ msgid "Plugin Support"
786
+ msgstr "Plugin Support"
787
+
788
+ #: view/admin/options.php:33
789
+ msgid "I'm a nice person and I have helped support the author of this plugin"
790
+ msgstr ""
791
+ "Jeg er en flink person og jeg har hjulpet vedkommende, der har udarbejdet "
792
+ "dette plugin."
793
+
794
+ #: view/admin/options.php:37
795
+ msgid "Logging"
796
+ msgstr "Logging"
797
+
798
+ #: view/admin/options.php:40
799
+ msgid "log redirected requests"
800
+ msgstr "log redirectede forespørgelser"
801
+
802
+ #: view/admin/options.php:42
803
+ msgid "log 404 Not Found requests"
804
+ msgstr "log 404 ikke fundet forespørgelser"
805
+
806
+ #: view/admin/options.php:43
807
+ msgid ""
808
+ "Uncheck one or both of these to turn off logging and reduce database load if "
809
+ "your redirected URLs are hit very frequently, and/or your site is very busy "
810
+ "and pages are often not found."
811
+ msgstr ""
812
+ "Fravælg en eller begge af disse for at fjerne logging og reducér database "
813
+ "load hvis dine redirectede URLs bliver forespurgt på hyppigt, og/eller hvis "
814
+ "dit website er meget besøgt eller siderne ofte ikke kan findes."
815
+
816
+ #: view/admin/options.php:47
817
+ msgid "Expire Logs"
818
+ msgstr "Logs udløber efter"
819
+
820
+ #: view/admin/options.php:50
821
+ msgid "days (enter 0 for no expiry)"
822
+ msgstr "dage (indtast 0 for ingen udløbsdato)"
823
+
824
+ #: view/admin/options.php:54
825
+ msgid "RSS Token"
826
+ msgstr "RSS Token"
827
+
828
+ #: view/admin/options.php:57
829
+ msgid ""
830
+ "A unique token allowing feed readers access to Redirection RSS (leave blank "
831
+ "to auto-generate)"
832
+ msgstr ""
833
+ "En unik token der tillader feed readers adgang til Redirection RSS (undgå at "
834
+ "udfylde for at auto-generere)"
835
+
836
+ #: view/admin/options.php:62
837
+ msgid "URL Monitoring"
838
+ msgstr "URL Monitorering"
839
+
840
+ #: view/admin/options.php:63
841
+ msgid ""
842
+ "You can have Redirection detect changes in URLs and have an automatic "
843
+ "redirection created in a specific group."
844
+ msgstr ""
845
+ "Du kan sætte Redirection til at opdage ændringer i URLs automatisk og "
846
+ "opsætte automatiske redirections i en specifik gruppe."
847
+
848
+ #: view/admin/options.php:67
849
+ msgid "Post &amp; Page URLs"
850
+ msgstr "Indlæg og Side URLs"
851
+
852
+ #: view/admin/options.php:70 view/admin/options.php:82
853
+ msgid "Don't monitor"
854
+ msgstr "Monitorér ikke"
855
+
856
+ #: view/admin/options.php:74
857
+ msgid "Monitor new posts"
858
+ msgstr "Monitorér nye indlæg"
859
+
860
+ #: view/admin/options.php:79
861
+ msgid "Category URLs"
862
+ msgstr "Kategori URLs"
863
+
864
+ #: view/admin/options.php:89
865
+ msgid "Update"
866
+ msgstr "Opdatér"
867
+
868
+ #: view/admin/options.php:95
869
+ msgid "Import"
870
+ msgstr "Importér"
871
+
872
+ #: view/admin/options.php:97
873
+ msgid ""
874
+ "Here you can import redirections from an existing .htaccess file, a CSV "
875
+ "file, or a Redirection XML."
876
+ msgstr ""
877
+ "Her kan du importere redirections fra en eksisterende .htaccess fil, en csv "
878
+ "fil, eller en Redirection XML."
879
+
880
+ #: view/admin/options.php:104
881
+ msgid "Import into"
882
+ msgstr "Importér i"
883
+
884
+ #: view/admin/options.php:107
885
+ msgid "Upload"
886
+ msgstr "Upload"
887
+
888
+ #: view/admin/options.php:110
889
+ msgid "Note that the group is ignored when uploading an XML file."
890
+ msgstr "Bemærk at gruppen er ignoreret når du uploader en XML fil."
891
+
892
+ #: view/admin/options.php:114
893
+ msgid "Delete Redirection"
894
+ msgstr "Fjern Rediretion."
895
+
896
+ #: view/admin/options.php:115
897
+ msgid ""
898
+ "Selecting this option will delete all redirections, all logs, and any "
899
+ "options associated with the Redirection plugin. Make sure this is what you "
900
+ "want to do."
901
+ msgstr ""
902
+ "Ved at vælge denne mulighed sletter du alle redirections, alle logs, og alle "
903
+ "indstillinger associeret med plugin'et Redirection. Vær helt sikker på at "
904
+ "det er det, du vil."
905
+
906
+ #: view/admin/submenu.php:6
907
+ msgid "Redirects"
908
+ msgstr "Redirects"
909
+
910
+ #: view/admin/submenu.php:21
911
+ msgid "Log"
912
+ msgstr "Log"
913
+
914
+ #: view/admin/submenu.php:31
915
+ msgid "Support"
916
+ msgstr "Support"
917
+
918
+ #: view/admin/support.php:5
919
+ msgid "Redirection Support"
920
+ msgstr "Redirection Support"
921
+
922
+ #: view/admin/support.php:9
923
+ msgid ""
924
+ "Redirection is free to use - life is wonderful and lovely! However, it has "
925
+ "required a great deal of time and effort to develop and if it has been "
926
+ "useful you can help support this development by <strong>making a small "
927
+ "donation</strong>."
928
+ msgstr ""
929
+ "Redirection er gratis at bruge - livet er fantastisk og perfekt. Men "
930
+ "Redirection har taget lang tid at udvikle, så hvis du finder det brugbart, "
931
+ "kan du hjælpe med at supportere udviklingen yderligere ved at <strong>donere "
932
+ "et lille beløb</strong>."
933
+
934
+ #: view/admin/support.php:10
935
+ msgid ""
936
+ "This will act as an incentive for me to carry on developing, providing "
937
+ "countless hours of support, and including new features and suggestions. You "
938
+ "get some useful software and I get to carry on making it. Everybody wins."
939
+ msgstr ""
940
+ "Dette vil være et incitament for mig til at forsætte med at programmere, "
941
+ "udvikle yderligere tiltag og bruge uendeligt mange timer på support. Du får "
942
+ "brugbar software og jeg får muligheden for at blive ved med at udvikle det. "
943
+ "Alle vinder."
944
+
945
+ #: view/admin/support.php:13
946
+ msgid ""
947
+ "If you are using this plugin in a commercial setup, or feel that it's been "
948
+ "particularly useful, then you may want to consider a <strong>commercial "
949
+ "donation</strong>."
950
+ msgstr ""
951
+ "Hvis du benytter dette plugin i kommercielt øjemed eller føler at plugin'et "
952
+ "er særdeles brugbart, vil jeg bede dig om at overveje en <strong>kommerciel "
953
+ "donation</strong>."
954
+
955
+ #: view/admin/support.php:36
956
+ msgid "Individual<br/>Donation"
957
+ msgstr "Individuel donation"
958
+
959
+ #: view/admin/support.php:56
960
+ msgid "Commercial<br/>Donation"
961
+ msgstr "Kommerciel<br/>Donation"
962
+
963
+ #: view/admin/support.php:60
964
+ msgid "Translations"
965
+ msgstr "Oversættelser"
966
+
967
+ #: view/admin/support.php:62
968
+ msgid ""
969
+ "If you're multi-lingual then you may want to consider donating a translation:"
970
+ msgstr ""
971
+ "Hvis du er flersproget vil du måske overveje at donere en oversættelse:"
972
+
973
+ #: view/admin/support.php:70
974
+ msgid ""
975
+ "All translators will have a link to their website placed on the plugin "
976
+ "homepage at <a href=\"http://urbangiraffe.com/plugins/redirection/"
977
+ "\">UrbanGiraffe</a>, in addition to being an individual supporter."
978
+ msgstr ""
979
+ "All oversættere vil få et link til deres website placeret på hjemmesiden for "
980
+ "plugin'et på <a href=\"http://urbangiraffe.com/plugins/redirection/"
981
+ "\">UrbanGiraffe</a>, udover at være en individuel supporter."
982
+
983
+ #: view/admin/support.php:71
984
+ msgid ""
985
+ "Full details of producing a translation can be found in this <a href="
986
+ "\"http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/"
987
+ "\">guide to translating WordPress plugins</a>."
988
+ msgstr ""
989
+ "Alle detaljer for at oversætte et plugin kan findes i denne <a href=\"http://"
990
+ "urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/\">guide "
991
+ "til at oversætte WordPress Plugins</a>."
models/log.php CHANGED
@@ -29,12 +29,13 @@ class RE_Log {
29
  var $ip;
30
  var $redirection_id;
31
 
32
- function RE_Log ($values) {
33
- foreach ($values AS $key => $value)
34
  $this->$key = $value;
 
35
 
36
- $this->created = mysql2date ('U', $this->created);
37
- $this->url = stripslashes ($this->url);
38
  }
39
 
40
  static function get_by_id( $id ) {
@@ -42,7 +43,7 @@ class RE_Log {
42
 
43
  $row = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}redirection_logs WHERE id=%d", $id ) );
44
  if ( $row )
45
- return new RE_Log ($row);
46
  return false;
47
  }
48
 
@@ -66,6 +67,9 @@ class RE_Log {
66
  $insert['module_id'] = isset( $extra['module_id'] ) ? $extra['module_id'] : 0;
67
  $insert['group_id'] = isset( $extra['group_id'] ) ? $extra['group_id'] : 0;
68
 
 
 
 
69
  $wpdb->insert( $wpdb->prefix.'redirection_logs', $insert );
70
  }
71
 
29
  var $ip;
30
  var $redirection_id;
31
 
32
+ function RE_Log( $values ) {
33
+ foreach ( $values AS $key => $value ) {
34
  $this->$key = $value;
35
+ }
36
 
37
+ $this->created = mysql2date( 'U', $this->created );
38
+ $this->url = stripslashes( $this->url );
39
  }
40
 
41
  static function get_by_id( $id ) {
43
 
44
  $row = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}redirection_logs WHERE id=%d", $id ) );
45
  if ( $row )
46
+ return new RE_Log( $row );
47
  return false;
48
  }
49
 
67
  $insert['module_id'] = isset( $extra['module_id'] ) ? $extra['module_id'] : 0;
68
  $insert['group_id'] = isset( $extra['group_id'] ) ? $extra['group_id'] : 0;
69
 
70
+ $insert = apply_filters( 'redirection_log_data', $insert );
71
+ do_action( 'redirection_log', $insert );
72
+
73
  $wpdb->insert( $wpdb->prefix.'redirection_logs', $insert );
74
  }
75
 
models/monitor.php CHANGED
@@ -10,7 +10,6 @@ class Red_Monitor {
10
  // Only monitor if permalinks enabled
11
  if ( get_option( 'permalink_structure' ) ) {
12
  add_action( 'post_updated', array( &$this, 'post_updated' ), 11, 3 );
13
- add_action( 'delete_post', array( &$this, 'post_deleted' ) );
14
  add_action( 'edit_form_advanced', array( &$this, 'insert_old_post' ) );
15
  add_action( 'edit_page_form', array( &$this, 'insert_old_post' ) );
16
  }
@@ -28,6 +27,9 @@ class Red_Monitor {
28
  }
29
 
30
  function post_updated( $post_id, $post, $post_before ) {
 
 
 
31
  if ( isset( $_POST['redirection_slug'] ) ) {
32
  $after = parse_url( get_permalink( $post_id ) );
33
  $after = $after['path'];
@@ -45,16 +47,4 @@ class Red_Monitor {
45
  }
46
  }
47
  }
48
-
49
- function post_deleted ($id)
50
- {
51
- $post = get_post ($id);
52
- if ($post->post_status == 'publish' || $post->post_status == 'static')
53
- {
54
- $url = get_permalink ($id);
55
- $slug = parse_url ($url);
56
-
57
- // Red_Item::create (array ('source' => $slug['path'], 'target' => '', 'match' => 'url', 'red_action' => 'error', 'group' => $this->monitor_post, 'action_code' => 410));
58
- }
59
- }
60
  }
10
  // Only monitor if permalinks enabled
11
  if ( get_option( 'permalink_structure' ) ) {
12
  add_action( 'post_updated', array( &$this, 'post_updated' ), 11, 3 );
 
13
  add_action( 'edit_form_advanced', array( &$this, 'insert_old_post' ) );
14
  add_action( 'edit_page_form', array( &$this, 'insert_old_post' ) );
15
  }
27
  }
28
 
29
  function post_updated( $post_id, $post, $post_before ) {
30
+ if ( $post->post_status != 'publish' || is_post_type_hierarchical( $post->post_type ) )
31
+ return;
32
+
33
  if ( isset( $_POST['redirection_slug'] ) ) {
34
  $after = parse_url( get_permalink( $post_id ) );
35
  $after = $after['path'];
47
  }
48
  }
49
  }
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
models/pager.php CHANGED
@@ -228,9 +228,12 @@ class Redirection_404_Table extends WP_List_Table {
228
  }
229
 
230
  function prepare_items( $restrict_by_ip = false ) {
231
- global $wpdb;
232
 
233
- $per_page = 25;
 
 
 
234
  $columns = $this->get_columns();
235
  $sortable = $this->get_sortable_columns();
236
  $current_page = $this->get_pagenum();
228
  }
229
 
230
  function prepare_items( $restrict_by_ip = false ) {
231
+ global $wpdb, $current_user;
232
 
233
+ $screen = get_current_screen();
234
+ $per_page = get_user_meta( $current_user->ID, $screen->get_option( 'per_page', 'option' ), true );
235
+
236
+ $per_page = $per_page ? $per_page : 25;
237
  $columns = $this->get_columns();
238
  $sortable = $this->get_sortable_columns();
239
  $current_page = $this->get_pagenum();
models/redirect.php CHANGED
@@ -182,48 +182,54 @@ class Red_Item {
182
 
183
  // Make sure we don't redirect to ourself
184
  if ( $details['source'] == $details['target'] )
185
- $details['target'] .= '-1';
186
-
187
- $matcher = Red_Match::create( $details['match'] );
188
- $group_id = intval( $details['group'] );
189
-
190
- if ( $group_id > 0 && $matcher ) {
191
- $regex = ( isset( $details['regex']) && $details['regex'] != false) ? 1 : 0;
192
- $position = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(id) FROM {$wpdb->prefix}redirection_items WHERE group_id=%d", $group_id ) );
193
-
194
- $action = $details['red_action'];
195
- $action_code = 0;
196
- if ( $action == 'url' || $action == 'random' )
197
- $action_code = 301;
198
- elseif ( $action == 'error' )
199
- $action_code = 404;
200
-
201
- if ( isset( $details['action_code'] ) )
202
- $action_code = intval( $details['action_code'] );
203
-
204
- $data = array(
205
- 'url' => self::sanitize_url( $details['source'], $regex),
206
- 'action_type' => $details['red_action'],
207
- 'regex' => $regex,
208
- 'position' => $position,
209
- 'match_type' => $details['match'],
210
- 'action_data' => $matcher->data( $details ),
211
- 'action_code' => $action_code,
212
- 'last_access' => '0000-00-00 00:00:00',
213
- 'group_id' => $group_id
214
- );
 
 
 
 
 
 
215
 
216
- $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->prefix}redirection_items WHERE url=%s AND action_type=%s AND action_data=%s", $data['action_data'], $data['action_type'], $data['url'] ) );
217
 
218
- $wpdb->insert( $wpdb->prefix.'redirection_items', $data );
219
 
220
- $group = Red_Group::get( $group_id );
221
  Red_Module::flush( $group->module_id );
222
 
223
  return self::get_by_id( $wpdb->insert_id );
224
  }
225
 
226
- return false;
227
  }
228
 
229
  static function delete_by_group( $group ) {
182
 
183
  // Make sure we don't redirect to ourself
184
  if ( $details['source'] == $details['target'] )
185
+ return new WP_Error( 'redirect-add', __( 'Source and target URL must be different', 'redirection' ) );
186
+
187
+ $matcher = Red_Match::create( $details['match'] );
188
+ $group_id = intval( $details['group'] );
189
+ $group = Red_Group::get( $group_id );
190
+
191
+ if ( $group_id <= 0 || !$group )
192
+ return new WP_Error( 'redirect-add', __( 'Invalid group when creating redirect', 'redirection' ) );
193
+
194
+ if ( !$matcher )
195
+ return new WP_Error( 'redirect-add', __( 'Invalid source URL when creating redirect for given match type', 'redirection' ) );
196
+
197
+ $regex = ( isset( $details['regex']) && $details['regex'] != false) ? 1 : 0;
198
+ $position = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->prefix}redirection_items WHERE group_id=%d", $group_id ) );
199
+
200
+ $action = $details['red_action'];
201
+ $action_code = 0;
202
+ if ( $action == 'url' || $action == 'random' )
203
+ $action_code = 301;
204
+ elseif ( $action == 'error' )
205
+ $action_code = 404;
206
+
207
+ if ( isset( $details['action_code'] ) )
208
+ $action_code = intval( $details['action_code'] );
209
+
210
+ $data = array(
211
+ 'url' => self::sanitize_url( $details['source'], $regex),
212
+ 'action_type' => $details['red_action'],
213
+ 'regex' => $regex,
214
+ 'position' => $position,
215
+ 'match_type' => $details['match'],
216
+ 'action_data' => $matcher->data( $details ),
217
+ 'action_code' => $action_code,
218
+ 'last_access' => '0000-00-00 00:00:00',
219
+ 'group_id' => $group_id
220
+ );
221
 
222
+ $data = apply_filters( 'redirection_create_redirect', $data );
223
 
224
+ $wpdb->delete( $wpdb->prefix.'redirection_items', array( 'url' => $data['action_data'], 'action_type' => $data['action_type'], 'action_data' => $data['url'] ) );
225
 
226
+ if ( $wpdb->insert( $wpdb->prefix.'redirection_items', $data ) ) {
227
  Red_Module::flush( $group->module_id );
228
 
229
  return self::get_by_id( $wpdb->insert_id );
230
  }
231
 
232
+ return new WP_Error( 'redirect-add', __( 'Unable to add new redirect - delete Redirection from the options page and re-install' ) );
233
  }
234
 
235
  static function delete_by_group( $group ) {
modules/wordpress.php CHANGED
@@ -69,17 +69,14 @@ class WordPress_Module extends Red_Module {
69
  return 'HTTP/1.1 410 Gone';
70
  }
71
 
72
- function wp_redirect( $url, $status )
73
- {
74
  global $wp_version, $is_IIS;
75
- if ( $wp_version < '2.1' ) {
76
- status_header( $status );
77
- return $url;
78
- } elseif ( $is_IIS ) {
79
  header( "Refresh: 0;url=$url" );
80
  return $url;
81
- } else {
82
- if ( $status == 301 && php_sapi_name() == 'cgi-fcgi' ) {
83
  $servers_to_check = array( 'lighttpd', 'nginx' );
84
  foreach ( $servers_to_check as $name ) {
85
  if ( stripos( $_SERVER['SERVER_SOFTWARE'], $name ) !== false ) {
@@ -91,8 +88,7 @@ class WordPress_Module extends Red_Module {
91
  }
92
 
93
  status_header( $status );
94
- return $url;
95
- }
96
  }
97
 
98
  function save( $data ) {
69
  return 'HTTP/1.1 410 Gone';
70
  }
71
 
72
+ function wp_redirect( $url, $status ) {
 
73
  global $wp_version, $is_IIS;
74
+
75
+ if ( $is_IIS ) {
 
 
76
  header( "Refresh: 0;url=$url" );
77
  return $url;
78
+ }
79
+ elseif ( $status == 301 && php_sapi_name() == 'cgi-fcgi' ) {
80
  $servers_to_check = array( 'lighttpd', 'nginx' );
81
  foreach ( $servers_to_check as $name ) {
82
  if ( stripos( $_SERVER['SERVER_SOFTWARE'], $name ) !== false ) {
88
  }
89
 
90
  status_header( $status );
91
+ return $url;
 
92
  }
93
 
94
  function save( $data ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: johnny5
3
  Donate link: http://urbangiraffe.com/about/
4
  Tags: post, admin, seo, pages, manage, 301, 404, redirect, permalink
5
  Requires at least: 3.2
6
- Tested up to: 3.7
7
  Stable tag: 2.3.4
8
 
9
  Redirection is a WordPress plugin to manage 301 redirections and keep track of 404 errors without requiring knowledge of Apache .htaccess files.
@@ -95,6 +95,12 @@ Full documentation can be found on the [Redirection](http://urbangiraffe.com/plu
95
 
96
  == Changelog ==
97
 
 
 
 
 
 
 
98
  = 2.3.4 =
99
  * Fix escaping of URL in admin page
100
 
3
  Donate link: http://urbangiraffe.com/about/
4
  Tags: post, admin, seo, pages, manage, 301, 404, redirect, permalink
5
  Requires at least: 3.2
6
+ Tested up to: 3.9
7
  Stable tag: 2.3.4
8
 
9
  Redirection is a WordPress plugin to manage 301 redirections and keep track of 404 errors without requiring knowledge of Apache .htaccess files.
95
 
96
  == Changelog ==
97
 
98
+ = 2.3.5 =
99
+ * Default log settings to 7 days, props to Maura
100
+ * Updated Danish translation thanks to Mikael Rieck
101
+ * Add per-page screen option for log pages
102
+ * Remove all the corners
103
+
104
  = 2.3.4 =
105
  * Fix escaping of URL in admin page
106
 
redirection.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Redirection
4
  Plugin URI: http://urbangiraffe.com/plugins/redirection/
5
  Description: Manage all your 301 redirects and monitor 404 errors
6
- Version: 2.3.4
7
  Author: John Godley
8
  Author URI: http://urbangiraffe.com
9
  ============================================================================================================
@@ -45,6 +45,8 @@ class Redirection extends Redirection_Plugin {
45
  $this->add_action( 'load-tools_page_redirection', 'redirection_head' );
46
  $this->add_action( 'init', 'inject' );
47
 
 
 
48
  $this->register_activation( __FILE__ );
49
  $this->register_plugin_settings( __FILE__ );
50
 
@@ -79,6 +81,12 @@ class Redirection extends Redirection_Plugin {
79
  return true;
80
  }
81
 
 
 
 
 
 
 
82
  function activate() {
83
  if ( $this->update() === false ) {
84
  $db = new RE_Database();
@@ -102,6 +110,9 @@ class Redirection extends Redirection_Plugin {
102
  }
103
 
104
  function redirection_head() {
 
 
 
105
  wp_enqueue_script( 'redirection', plugin_dir_url( __FILE__ ).'js/redirection.js', array( 'jquery-form', 'jquery-ui-sortable' ), $this->version() );
106
  wp_enqueue_style( 'redirection', plugin_dir_url( __FILE__ ).'admin.css', $this->version() );
107
 
@@ -115,7 +126,7 @@ class Redirection extends Redirection_Plugin {
115
  }
116
 
117
  function admin_menu() {
118
- add_management_page( __( "Redirection", 'redirection' ), __( "Redirection", 'redirection' ), "administrator", basename( __FILE__ ), array( &$this, "admin_screen" ) );
119
  }
120
 
121
  function expire_logs() {
@@ -172,7 +183,7 @@ class Redirection extends Redirection_Plugin {
172
  'support' => false,
173
  'log_redirections' => true,
174
  'log_404s' => true,
175
- 'expire' => 0,
176
  'token' => '',
177
  'monitor_new_posts' => false,
178
  'monitor_post' => 0,
@@ -184,7 +195,7 @@ class Redirection extends Redirection_Plugin {
184
  $options[$key] = $value;
185
  }
186
 
187
- $options['lookup'] = 'http://geomaplookup.net/?ip=';
188
 
189
  return $options;
190
  }
@@ -204,7 +215,6 @@ class Redirection extends Redirection_Plugin {
204
  function admin_screen_options() {
205
  if ( isset( $_POST['update'] ) && check_admin_referer( 'redirection-update_options' ) ) {
206
  $options['monitor_post'] = stripslashes( $_POST['monitor_post'] );
207
- // $options['monitor_category'] = stripslashes( $_POST['monitor_category'] );
208
  $options['auto_target'] = stripslashes( $_POST['auto_target'] );
209
  $options['support'] = isset( $_POST['support'] ) ? true : false;
210
  $options['log_redirections'] = (bool) @ $_POST['log_redirections'];
3
  Plugin Name: Redirection
4
  Plugin URI: http://urbangiraffe.com/plugins/redirection/
5
  Description: Manage all your 301 redirects and monitor 404 errors
6
+ Version: 2.3.5
7
  Author: John Godley
8
  Author URI: http://urbangiraffe.com
9
  ============================================================================================================
45
  $this->add_action( 'load-tools_page_redirection', 'redirection_head' );
46
  $this->add_action( 'init', 'inject' );
47
 
48
+ add_filter( 'set-screen-option', array( $this, 'set_per_page' ), 10, 3 );
49
+
50
  $this->register_activation( __FILE__ );
51
  $this->register_plugin_settings( __FILE__ );
52
 
81
  return true;
82
  }
83
 
84
+ function set_per_page( $status, $option, $value ) {
85
+ if ( $option == 'redirection_log_per_page' )
86
+ return $value;
87
+ return $status;
88
+ }
89
+
90
  function activate() {
91
  if ( $this->update() === false ) {
92
  $db = new RE_Database();
110
  }
111
 
112
  function redirection_head() {
113
+ if ( isset( $_GET['sub'] ) && ( $_GET['sub'] == 'log' || $_GET['sub'] == '404s' ) )
114
+ add_screen_option( 'per_page', array( 'label' => __( 'Log entries', 'redirection' ), 'default' => 25, 'option' => 'redirection_log_per_page' ) );
115
+
116
  wp_enqueue_script( 'redirection', plugin_dir_url( __FILE__ ).'js/redirection.js', array( 'jquery-form', 'jquery-ui-sortable' ), $this->version() );
117
  wp_enqueue_style( 'redirection', plugin_dir_url( __FILE__ ).'admin.css', $this->version() );
118
 
126
  }
127
 
128
  function admin_menu() {
129
+ add_management_page( __( "Redirection", 'redirection' ), __( "Redirection", 'redirection' ), apply_filters( 'redirection_role', 'administrator' ), basename( __FILE__ ), array( &$this, "admin_screen" ) );
130
  }
131
 
132
  function expire_logs() {
183
  'support' => false,
184
  'log_redirections' => true,
185
  'log_404s' => true,
186
+ 'expire' => 7,
187
  'token' => '',
188
  'monitor_new_posts' => false,
189
  'monitor_post' => 0,
195
  $options[$key] = $value;
196
  }
197
 
198
+ $options['lookup'] = 'http://urbangiraffe.com/map/?ip=';
199
 
200
  return $options;
201
  }
215
  function admin_screen_options() {
216
  if ( isset( $_POST['update'] ) && check_admin_referer( 'redirection-update_options' ) ) {
217
  $options['monitor_post'] = stripslashes( $_POST['monitor_post'] );
 
218
  $options['auto_target'] = stripslashes( $_POST['auto_target'] );
219
  $options['support'] = isset( $_POST['support'] ) ? true : false;
220
  $options['log_redirections'] = (bool) @ $_POST['log_redirections'];
view/admin/add.php CHANGED
@@ -48,7 +48,7 @@
48
  <input type="hidden" name="action" value="red_redirect_add"/>
49
  <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce( 'redirection-redirect_add' ); ?>"/>
50
 
51
- <div id="error"></div>
52
  </td>
53
  </tr>
54
  </table>
48
  <input type="hidden" name="action" value="red_redirect_add"/>
49
  <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce( 'redirection-redirect_add' ); ?>"/>
50
 
51
+ <div id="error" style="margin-top: 10px"></div>
52
  </td>
53
  </tr>
54
  </table>
view/admin/group_list.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php if ( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?>
2
  <div class="wrap">
3
  <?php screen_icon(); ?>
4
- <?php $this->render_admin( 'annoy' ); ?>
5
 
6
  <h2><?php _e( 'Groups for module', 'redirection' ); ?>: <a href="edit.php?page=redirection.php&amp;sub=modules"><?php echo esc_html( $module->name ) ?></a></h2>
7
 
1
  <?php if ( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?>
2
  <div class="wrap">
3
  <?php screen_icon(); ?>
 
4
 
5
  <h2><?php _e( 'Groups for module', 'redirection' ); ?>: <a href="edit.php?page=redirection.php&amp;sub=modules"><?php echo esc_html( $module->name ) ?></a></h2>
6
 
view/admin/item_list.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>
2
  <div class="wrap">
3
  <?php screen_icon(); ?>
4
- <?php $this->render_admin( 'annoy' ); ?>
5
 
6
  <h2>
7
  <?php _e ('Redirections for group', 'redirection'); ?>:
1
  <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>
2
  <div class="wrap">
3
  <?php screen_icon(); ?>
 
4
 
5
  <h2>
6
  <?php _e ('Redirections for group', 'redirection'); ?>:
view/admin/log.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>
2
  <div class="wrap">
3
  <?php screen_icon(); ?>
4
- <?php $this->render_admin('annoy')?>
5
 
6
  <h2><?php _e ('Redirection Log', 'redirection'); ?></h2>
7
 
@@ -18,8 +17,8 @@
18
  <?php $this->render_admin ('add', array ('hidden' => true))?>
19
 
20
  <div class="wrap">
21
- <h2><?php _e ('Process Current Logs', 'redirection'); ?></h2>
22
- <p><?php _e ('These actions will affect all currently available logs (i.e. your search phrase will restrict the log items).', 'redirection'); ?></p>
23
 
24
  <form action="" method="post" accept-charset="utf-8">
25
  <?php wp_nonce_field ('redirection-process_logs'); ?>
@@ -28,7 +27,7 @@
28
  <input type="hidden" name="s" value="<?php echo esc_attr( $_POST['s'] ); ?>" />
29
  <?php endif; ?>
30
 
31
- <input class="button-primary" type="submit" name="deleteall" value="<?php _e ('Delete Logs', 'redirection'); ?>"/>
32
  </form>
33
  </div>
34
 
1
  <?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>
2
  <div class="wrap">
3
  <?php screen_icon(); ?>
 
4
 
5
  <h2><?php _e ('Redirection Log', 'redirection'); ?></h2>
6
 
17
  <?php $this->render_admin ('add', array ('hidden' => true))?>
18
 
19
  <div class="wrap">
20
+ <h2><?php _e( 'Process Current Logs', 'redirection' ); ?></h2>
21
+ <p><?php _e( 'These actions will affect all currently available logs (i.e. your search phrase will restrict the log items).', 'redirection' ); ?></p>
22
 
23
  <form action="" method="post" accept-charset="utf-8">
24
  <?php wp_nonce_field ('redirection-process_logs'); ?>
27
  <input type="hidden" name="s" value="<?php echo esc_attr( $_POST['s'] ); ?>" />
28
  <?php endif; ?>
29
 
30
+ <input class="button-primary" type="submit" name="deleteall" value="<?php esc_attr_e( 'Delete Logs', 'redirection' ); ?>"/>
31
  </form>
32
  </div>
33
 
view/admin/module_list.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php if ( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?>
2
  <div class="wrap">
3
  <?php screen_icon(); ?>
4
- <?php $this->render_admin('annoy' )?>
5
 
6
  <h2><?php _e( 'Modules', 'redirection' ); ?></h2>
7
 
1
  <?php if ( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?>
2
  <div class="wrap">
3
  <?php screen_icon(); ?>
 
4
 
5
  <h2><?php _e( 'Modules', 'redirection' ); ?></h2>
6
 
view/admin/options.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php if( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?>
2
  <div class="wrap">
3
  <?php screen_icon( ); ?>
4
- <?php $this->render_admin('annoy' )?>
5
 
6
  <h2><?php _e( 'Options', 'redirection' ) ?></h2>
7
  <?php $this->render_admin( 'submenu', array( 'options' => $options ) ); ?>
@@ -23,34 +22,40 @@
23
  <tr>
24
  <th align="right"><?php _e( 'Plugin Support', 'redirection' ); ?>:</th>
25
  <td>
26
- <input type="checkbox" name="support" <?php echo $this->checked( $options['support'] ) ?> id="support"/>
27
  <label for="support"><span class="sub"><?php _e( 'I\'m a nice person and I have helped support the author of this plugin', 'redirection' ); ?></span></label>
28
  </td>
29
  </tr>
30
- <tr>
31
- <th align="right"><?php _e( 'Logging', 'redirection' ); ?>:</th>
32
- <td>
33
- <input type="checkbox" name="log_redirections" <?php echo $this->checked( $options['log_redirections'] ) ?> id="log_redirections"/>
34
- <label for="log_redirections"><span class="sub"><?php _e( 'log redirected requests', 'redirection' ); ?></span></label><br />
35
- <input type="checkbox" name="log_404s" <?php echo $this->checked( $options['log_404s'] ) ?> id="log_404s"/>
36
- <label for="log_404s"><span class="sub"><?php _e( 'log 404 Not Found requests', 'redirection' ); ?></span></label><br />
37
- <?php _e( 'Uncheck one or both of these to turn off logging and reduce database load if your redirected URLs are hit very frequently, and/or your site is very busy and pages are often not found.', 'redirection' ); ?>
38
- </td>
39
- </tr>
40
- <tr>
41
- <th align="right"><?php _e( 'Expire Logs', 'redirection' ); ?>:</th>
42
- <td>
43
- <input size="5" type="text" name="expire" value="<?php echo esc_attr( $options['expire'] ) ?>"/>
44
- <?php _e( 'days (enter 0 for no expiry)', 'redirection' ); ?>
45
- </td>
46
- </tr>
47
- <tr>
48
- <th align="right"><?php _e( 'RSS Token', 'redirection' ); ?>:</th>
49
- <td>
50
- <input class="regular-text" size="5" type="text" name="token" value="<?php echo esc_attr( $options['token'] ) ?>"/><br/>
51
- <?php _e( 'A unique token allowing feed readers access to Redirection RSS (leave blank to auto-generate)', 'redirection' ); ?>
52
- </td>
53
- </tr>
 
 
 
 
 
 
54
  </table>
55
 
56
  <h3><?php _e( 'URL Monitoring', 'redirection' ); ?></h3>
@@ -65,19 +70,9 @@
65
  <?php echo $this->select( $groups, $options['monitor_post'] );?>
66
  </select>
67
  &mdash;
68
- <label for="create_url_for_new_posts"><?php _e( 'Monitor new posts', 'redirection' ); ?></label> <input type="checkbox" name="monitor_new_posts" <?php echo $this->checked( $options['monitor_new_posts'] ); ?> id="create_url_for_new_posts"/>
69
  </td>
70
  </tr>
71
- <!--
72
- <tr>
73
- <th><?php _e( 'Category URLs', 'redirection' ); ?>:</th>
74
- <td>
75
- <select name="monitor_category">
76
- <option value="0"><?php _e( 'Don\'t monitor', 'redirection' ); ?></option>
77
- <?php echo $this->select( $groups, $options['monitor_category'] );?>
78
- </select>
79
- </td>
80
- </tr>-->
81
  </table>
82
 
83
  <input class="button-primary" type="submit" name="update" value="<?php _e( 'Update', 'redirection' ) ?>"/>
1
  <?php if( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?>
2
  <div class="wrap">
3
  <?php screen_icon( ); ?>
 
4
 
5
  <h2><?php _e( 'Options', 'redirection' ) ?></h2>
6
  <?php $this->render_admin( 'submenu', array( 'options' => $options ) ); ?>
22
  <tr>
23
  <th align="right"><?php _e( 'Plugin Support', 'redirection' ); ?>:</th>
24
  <td>
25
+ <input type="checkbox" name="support" <?php echo checked( $options['support'] ) ?> id="support"/>
26
  <label for="support"><span class="sub"><?php _e( 'I\'m a nice person and I have helped support the author of this plugin', 'redirection' ); ?></span></label>
27
  </td>
28
  </tr>
29
+
30
+ </table>
31
+
32
+ <h3><?php _e( 'Logging', 'redirection' ); ?></h3>
33
+ <p><?php _e( 'Log redirections and 404 errors. Each time something is logged it will add a small load to your site. You may want to turn this if your redirected URLs are hit very frequently, and/or your site is very busy and pages are often not found.', 'redirection' ); ?></p>
34
+
35
+ <table cellpadding="3" width="100%" class="form-table">
36
+ <tr>
37
+ <th align="right"><?php _e( 'Logging', 'redirection' ); ?>:</th>
38
+ <td>
39
+ <input type="checkbox" name="log_redirections" <?php echo checked( $options['log_redirections'] ) ?> id="log_redirections"/>
40
+ <label for="log_redirections"><span class="sub"><?php _e( 'log redirected requests', 'redirection' ); ?></span></label><br />
41
+ <input type="checkbox" name="log_404s" <?php echo checked( $options['log_404s'] ) ?> id="log_404s"/>
42
+ <label for="log_404s"><span class="sub"><?php _e( 'log 404 Not Found requests', 'redirection' ); ?></span></label><br />
43
+ </td>
44
+ </tr>
45
+ <tr>
46
+ <th align="right"><?php _e( 'Expire Logs', 'redirection' ); ?>:</th>
47
+ <td>
48
+ <input size="5" type="text" name="expire" value="<?php echo esc_attr( $options['expire'] ) ?>"/>
49
+ <?php _e( 'days (enter 0 for no expiry)', 'redirection' ); ?>
50
+ </td>
51
+ </tr>
52
+ <tr>
53
+ <th align="right"><?php _e( 'RSS Token', 'redirection' ); ?>:</th>
54
+ <td>
55
+ <input class="regular-text" size="5" type="text" name="token" value="<?php echo esc_attr( $options['token'] ) ?>"/><br/>
56
+ <?php _e( 'A unique token allowing feed readers access to Redirection log RSS (leave blank to auto-generate)', 'redirection' ); ?>
57
+ </td>
58
+ </tr>
59
  </table>
60
 
61
  <h3><?php _e( 'URL Monitoring', 'redirection' ); ?></h3>
70
  <?php echo $this->select( $groups, $options['monitor_post'] );?>
71
  </select>
72
  &mdash;
73
+ <label for="create_url_for_new_posts"><?php _e( 'Monitor new posts', 'redirection' ); ?></label> <input type="checkbox" name="monitor_new_posts" <?php echo checked( $options['monitor_new_posts'] ); ?> id="create_url_for_new_posts"/>
74
  </td>
75
  </tr>
 
 
 
 
 
 
 
 
 
 
76
  </table>
77
 
78
  <input class="button-primary" type="submit" name="update" value="<?php _e( 'Update', 'redirection' ) ?>"/>