Changeset 690782
- Timestamp:
- 04/02/2013 08:01:31 PM (13 years ago)
- Location:
- better-wp-security
- Files:
-
- 67 added
- 5 edited
-
tags/3.4.9 (added)
-
tags/3.4.9/backups (added)
-
tags/3.4.9/backups/.htaccess (added)
-
tags/3.4.9/backups/index.php (added)
-
tags/3.4.9/better-wp-security.php (added)
-
tags/3.4.9/images (added)
-
tags/3.4.9/images/index.php (added)
-
tags/3.4.9/images/shield-large.png (added)
-
tags/3.4.9/images/shield-small.png (added)
-
tags/3.4.9/inc (added)
-
tags/3.4.9/inc/admin (added)
-
tags/3.4.9/inc/admin/common.php (added)
-
tags/3.4.9/inc/admin/construct.php (added)
-
tags/3.4.9/inc/admin/content.php (added)
-
tags/3.4.9/inc/admin/css (added)
-
tags/3.4.9/inc/admin/css/style.css (added)
-
tags/3.4.9/inc/admin/hackrepair-apache.inc (added)
-
tags/3.4.9/inc/admin/hackrepair-nginx.inc (added)
-
tags/3.4.9/inc/admin/index.php (added)
-
tags/3.4.9/inc/admin/process.php (added)
-
tags/3.4.9/inc/admin/tables.php (added)
-
tags/3.4.9/inc/admin/wpcontent.php (added)
-
tags/3.4.9/inc/auth.php (added)
-
tags/3.4.9/inc/backup.php (added)
-
tags/3.4.9/inc/filecheck.php (added)
-
tags/3.4.9/inc/index.php (added)
-
tags/3.4.9/inc/secure.php (added)
-
tags/3.4.9/inc/setup.php (added)
-
tags/3.4.9/index.php (added)
-
tags/3.4.9/languages (added)
-
tags/3.4.9/languages/better-wp-security-es_ES.mo (added)
-
tags/3.4.9/languages/better-wp-security-es_ES.po (added)
-
tags/3.4.9/languages/better-wp-security-fr_FR.mo (added)
-
tags/3.4.9/languages/better-wp-security-fr_FR.po (added)
-
tags/3.4.9/languages/better-wp-security-fr_FR_HI.mo (added)
-
tags/3.4.9/languages/better-wp-security-fr_FR_HI.po (added)
-
tags/3.4.9/languages/better-wp-security-lt_LT.mo (added)
-
tags/3.4.9/languages/better-wp-security-lt_LT.po (added)
-
tags/3.4.9/languages/better-wp-security-ru_RU.mo (added)
-
tags/3.4.9/languages/better-wp-security-ru_RU.po (added)
-
tags/3.4.9/languages/better-wp-security-sk_SK.mo (added)
-
tags/3.4.9/languages/better-wp-security-sk_SK.po (added)
-
tags/3.4.9/languages/better-wp-security-tl_TL.mo (added)
-
tags/3.4.9/languages/better-wp-security-tl_TL.po (added)
-
tags/3.4.9/languages/better-wp-security.pot (added)
-
tags/3.4.9/languages/index.php (added)
-
tags/3.4.9/lib (added)
-
tags/3.4.9/lib/bit51 (added)
-
tags/3.4.9/lib/bit51/bit51.css (added)
-
tags/3.4.9/lib/bit51/bit51.php (added)
-
tags/3.4.9/lib/bit51/images (added)
-
tags/3.4.9/lib/bit51/images/bit51-small.png (added)
-
tags/3.4.9/lib/bit51/images/bit51.png (added)
-
tags/3.4.9/lib/bit51/images/facebook.png (added)
-
tags/3.4.9/lib/bit51/images/google.png (added)
-
tags/3.4.9/lib/bit51/images/index.php (added)
-
tags/3.4.9/lib/bit51/images/subscribe.png (added)
-
tags/3.4.9/lib/bit51/images/twitter.png (added)
-
tags/3.4.9/lib/bit51/index.php (added)
-
tags/3.4.9/lib/index.php (added)
-
tags/3.4.9/readme.txt (added)
-
tags/3.4.9/screenshot-1.png (added)
-
tags/3.4.9/screenshot-2.png (added)
-
tags/3.4.9/screenshot-3.png (added)
-
tags/3.4.9/screenshot-4.png (added)
-
trunk/better-wp-security.php (modified) (1 diff)
-
trunk/inc/admin/common.php (modified) (1 diff)
-
trunk/inc/admin/content.php (modified) (14 diffs)
-
trunk/inc/secure.php (modified) (1 diff)
-
trunk/languages/better-wp-security-fr_FR.mo (added)
-
trunk/languages/better-wp-security-fr_FR.po (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
better-wp-security/trunk/better-wp-security.php
r633727 r690782 4 4 Plugin URI: http://bit51.com/software/better-wp-security/ 5 5 Description: Helps protect your Wordpress installation from attackers. Hardens standard Wordpress security by hiding vital areas of your site, protecting access to important files via htaccess, preventing brute-force login attempts, detecting attack attempts, and more. 6 Version: Dev6 Version: 3.4.9 7 7 Text Domain: better-wp-security 8 8 Domain Path: /languages 9 Author: Bit51 .com9 Author: Bit51 10 10 Author URI: http://bit51.com 11 11 License: GPLv2 -
better-wp-security/trunk/inc/admin/common.php
r640296 r690782 921 921 922 922 //queary the user table to see if the user is there 923 $user = $wpdb->get_var( "SELECT user_login FROM `" . $wpdb->users . "` WHERE user_login='" . sanitize_text_field( $username ) . "';");924 $userid = $wpdb->get_var( "SELECT ID FROM `" . $wpdb->users . "` WHERE ID='" . sanitize_text_field( $username ) . "';");923 $user = $wpdb->get_var( $wpdb->prepare( "SELECT user_login FROM `" . $wpdb->users . "` WHERE user_login = '%s';", sanitize_text_field( $username ) ) ); 924 $userid = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM `" . $wpdb->users . "` WHERE ID='%s';", sanitize_text_field( $username ) ) ); 925 925 926 926 if ( $user == $username || $userid == $username ) { -
better-wp-security/trunk/inc/admin/content.php
r640894 r690782 1213 1213 ?> 1214 1214 <p><?php _e( 'As many of us update our sites on a general schedule it is not always necessary to permit site access all of the time. The options below will disable the backend of the site for the specified period. This could also be useful to disable site access based on a schedule for classroom or other reasons.', $this->hook ); ?></p> 1215 <p><?php _e( 'Please note that according to your', $this->hook ); ?> <a href="options-general.php"><?php _e( 'WordPress timezone settings', $this->hook ); ?></a> <?php _e( 'your local time is', $this->hook ); ?> <strong><em><?php echo date( 'l, F jS, Y \a\\t g:i a', current_time( 'timestamp' ) ); ?></em></strong>. <?php _e( 'If this is incorrect please correct it on the', $this->hook ); ?> <a href="options-general.php"><?php _e( 'WordPress general settings page', $this->hook ); ?></a> <?php _e( 'by setting the appropriate time zone. Failure to do so may result in unintended lockouts.', $this->hook ); ?></p> 1215 <?php 1216 if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { 1217 $currdate = date_i18n( 'l, d F Y' . ' ' . get_option( 'time_format' ) , current_time( 'timestamp' ) ); 1218 } else { 1219 $currdate = date( 'l, F jS, Y \a\\t g:i a', current_time( 'timestamp' ) ); 1220 } 1221 ?> 1222 <p><?php _e( 'Please note that according to your', $this->hook ); ?> <a href="options-general.php"><?php _e( 'WordPress timezone settings', $this->hook ); ?></a> <?php _e( 'your local time is', $this->hook ); ?> <strong><em><?php echo $currdate ?></em></strong>. <?php _e( 'If this is incorrect please correct it on the', $this->hook ); ?> <a href="options-general.php"><?php _e( 'WordPress general settings page', $this->hook ); ?></a> <?php _e( 'by setting the appropriate time zone. Failure to do so may result in unintended lockouts.', $this->hook ); ?></p> 1223 1216 1224 <?php 1217 1225 } … … 1242 1250 $eDate = $bwpsoptions['am_enddate']; 1243 1251 $shdisplay = date( 'g', $sTime ); 1252 $shdisplay24 = date( 'G', $sTime ); // 24Hours 1244 1253 $sidisplay = date( 'i', $sTime ); 1245 1254 $ssdisplay = date( 'a', $sTime ); 1246 1255 $ehdisplay = date( 'g', $eTime ); 1256 $ehdisplay24 = date( 'G', $eTime ); // 24Hours 1247 1257 $eidisplay = date( 'i', $eTime ); 1248 1258 $esdisplay = date( 'a', $eTime ); … … 1297 1307 </th> 1298 1308 <td class="settingfield"> 1309 <?php if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?> 1310 <select name="am_startday"> 1311 <?php 1312 for ( $i = 1; $i <= 31; $i++ ) { //determine default 1313 if ( $sddisplay == $i ) { 1314 $selected = ' selected'; 1315 } else { 1316 $selected = ''; 1317 } 1318 echo '<option value="' . $i . '"' . $selected . '>' . date( 'j', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>'; 1319 } 1320 ?> 1321 </select> 1322 <?php } ?> 1299 1323 <select name="am_startmonth" id="am_startdate"> 1300 1324 <?php … … 1305 1329 $selected = ''; 1306 1330 } 1307 echo '<option value="' . $i . '"' . $selected . '>' . date ( 'F', strtotime( $i . '/1/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';1331 echo '<option value="' . $i . '"' . $selected . '>' . date_i18n( 'F', strtotime( $i . '/1/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>'; 1308 1332 } 1309 1333 ?> 1310 1334 </select> 1311 <select name="am_startday"> 1312 <?php 1313 for ( $i = 1; $i <= 31; $i++ ) { //determine default 1314 if ( $sddisplay == $i ) { 1315 $selected = ' selected'; 1316 } else { 1317 $selected = ''; 1335 <?php if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?> 1336 <select name="am_startday"> 1337 <?php 1338 for ( $i = 1; $i <= 31; $i++ ) { //determine default 1339 if ( $sddisplay == $i ) { 1340 $selected = ' selected'; 1341 } else { 1342 $selected = ''; 1343 } 1344 echo '<option value="' . $i . '"' . $selected . '>' . date_i18n( 'j', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>'; 1318 1345 } 1319 echo '<option value="' . $i . '"' . $selected . '>' . date( 'jS', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>'; 1320 } 1321 ?> 1322 </select>, 1346 ?> 1347 </select>, 1348 <?php 1349 1350 } else { 1351 echo ' '; 1352 } 1353 1354 ?> 1323 1355 <select name="am_startyear"> 1324 1356 <?php … … 1342 1374 </th> 1343 1375 <td class="settingfield"> 1376 <?php if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?> 1377 <select name="am_endday"> 1378 <?php 1379 for ( $i = 1; $i <= 31; $i++ ) { //determine default 1380 if ( $eddisplay == $i ) { 1381 $selected = ' selected'; 1382 } else { 1383 $selected = ''; 1384 } 1385 echo '<option value="' . $i . '"' . $selected . '>' . date( 'j', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>'; 1386 } 1387 ?> 1388 </select> 1389 <?php } ?> 1344 1390 <select name="am_endmonth" id="am_enddate"> 1345 1391 <?php … … 1350 1396 $selected = ''; 1351 1397 } 1352 echo '<option value="' . $i . '"' . $selected . '>' . date ( 'F', strtotime( $i . '/1/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>';1398 echo '<option value="' . $i . '"' . $selected . '>' . date_i18n( 'F', strtotime( $i . '/1/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>'; 1353 1399 } 1354 1400 ?> 1355 1401 </select> 1356 <select name="am_endday"> 1357 <?php 1358 for ( $i = 1; $i <= 31; $i++ ) { //determine default 1359 if ( $eddisplay == $i ) { 1360 $selected = ' selected'; 1361 } else { 1362 $selected = ''; 1402 <?php if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?> 1403 <select name="am_endday"> 1404 <?php 1405 for ( $i = 1; $i <= 31; $i++ ) { //determine default 1406 if ( $eddisplay == $i ) { 1407 $selected = ' selected'; 1408 } else { 1409 $selected = ''; 1410 } 1411 echo '<option value="' . $i . '"' . $selected . '>' . date( 'j', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>'; 1363 1412 } 1364 echo '<option value="' . $i . '"' . $selected . '>' . date( 'jS', strtotime( '1/' . $i . '/' . date( 'Y', current_time( 'timestamp' ) ) ) ) . '</option>'; 1365 } 1366 ?> 1367 </select>, 1413 ?> 1414 </select>, 1415 <?php } ?> 1368 1416 <select name="am_endyear"> 1369 1417 <?php … … 1389 1437 <select name="am_starthour" id="am_starttime"> 1390 1438 <?php 1391 for ( $i = 1; $i <= 12; $i++ ) { //determine default 1392 if ( $shdisplay == $i ) { 1393 $selected = ' selected'; 1394 } else { 1395 $selected = ''; 1439 if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { 1440 for ( $i = 0; $i <= 23; $i++ ) { //determine default 1441 if ( $shdisplay24 == $i ) { 1442 $selected = ' selected'; 1443 } else { 1444 $selected = ''; 1445 } 1446 if ( $i < 10 ) { 1447 $val = "0" . $i; 1448 } else { 1449 $val = $i; 1450 } 1451 echo '<option value="' . $val . '"' . $selected . '>' . $val . '</option>'; 1396 1452 } 1397 echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>'; 1453 } else { 1454 for ( $i = 1; $i <= 12; $i++ ) { //determine default 1455 if ( $shdisplay == $i ) { 1456 $selected = ' selected'; 1457 } else { 1458 $selected = ''; 1459 } 1460 echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>'; 1461 } 1398 1462 } 1399 1463 ?> … … 1416 1480 ?> 1417 1481 </select> 1418 <select name="am_starthalf"> 1419 <option value="am"<?php if ( $ssdisplay == 'am' ) echo ' selected'; ?>>am</option> 1420 <option value="pm"<?php if ( $ssdisplay == 'pm' ) echo ' selected'; ?>>pm</option> 1421 </select> 1422 <p><?php _e( 'Select the time at which access to the backend of this site will be disabled. Note that if <em>"Daily"</em> mode is selected access will be banned every day at the specified time.', $this->hook ); ?> 1423 </p> 1482 1483 <?php if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?> 1484 <select name="am_starthalf"> 1485 <option value="am"<?php if ( $ssdisplay == 'am' ) echo ' selected'; ?>>am</option> 1486 <option value="pm"<?php if ( $ssdisplay == 'pm' ) echo ' selected'; ?>>pm</option> 1487 </select> 1488 <?php } ?> 1489 1490 <p><?php _e( 'Select the time at which access to the backend of this site will be disabled. Note that if <em>"Daily"</em> mode is selected access will be banned every day at the specified time.', $this->hook ); ?></p> 1491 1424 1492 </td> 1425 1493 </tr> … … 1430 1498 <td class="settingfield"> 1431 1499 <select name="am_endhour" id="am_endtime"> 1432 <?php 1433 for ( $i = 1; $i <= 12; $i++ ) {//determine default 1434 if ( $ehdisplay == $i ) { 1435 $selected = ' selected'; 1436 } else { 1437 $selected = ''; 1500 <?php 1501 if ( preg_match("/^(G|H)(:| \\h)/", get_option('time_format') ) ) { 1502 for ( $i = 0; $i <= 24; $i++ ) {//determine default 1503 if ( $ehdisplay24 == $i ) { 1504 $selected = ' selected'; 1505 } else { 1506 $selected = ''; 1507 } 1508 echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>'; 1438 1509 } 1439 echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>'; 1510 } else { 1511 for ( $i = 1; $i <= 12; $i++ ) {//determine default 1512 if ( $ehdisplay == $i ) { 1513 $selected = ' selected'; 1514 } else { 1515 $selected = ''; 1516 } 1517 echo '<option value="' . $i . '"' . $selected . '>' . $i . '</option>'; 1518 } 1440 1519 } 1441 1520 ?> … … 1458 1537 ?> 1459 1538 </select> 1460 <select name="am_endhalf"> 1461 <option value="am"<?php if ( $esdisplay == 'am' ) echo ' selected'; ?>>am</option> 1462 <option value="pm"<?php if ( $esdisplay == 'pm' ) echo ' selected'; ?>>pm</option> 1463 </select> 1464 <p><?php _e( 'Select the time at which access to the backend of this site will be re-enabled. Note that if <em>"Daily"</em> mode is selected access will be banned every day at the specified time.', $this->hook ); ?> 1465 </p> 1539 1540 <?php if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { ?> 1541 <select name="am_endhalf"> 1542 <option value="am"<?php if ( $esdisplay == 'am' ) echo ' selected'; ?>>am</option> 1543 <option value="pm"<?php if ( $esdisplay == 'pm' ) echo ' selected'; ?>>pm</option> 1544 </select> 1545 <?php }?> 1546 <p><?php _e( 'Select the time at which access to the backend of this site will be re-enabled. Note that if <em>"Daily"</em> mode is selected access will be banned every day at the specified time.', $this->hook ); ?></p> 1547 1466 1548 </td> 1467 1549 </tr> … … 1484 1566 1485 1567 $freq = ' <strong><em>' . __( 'every day' ) . '</em></strong>'; 1486 $stime = '<strong><em>' . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>'; 1487 $etime = '<strong><em>' . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>'; 1488 1568 //$stime = '<strong><em>' . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>'; 1569 //$etime = '<strong><em>' . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>'; 1570 $stime = '<strong><em>' . date_i18n( get_option('time_format', 'g:i a'), $bwpsoptions['am_starttime'] ) . '</em></strong>'; 1571 $etime = '<strong><em>' . date_i18n( get_option('time_format', 'g:i a'), $bwpsoptions['am_endtime'] ) . '</em></strong>'; 1572 1489 1573 } else { 1490 1574 1491 1575 $freq = ''; 1492 $stime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_startdate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>'; 1493 $etime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_enddate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>'; 1494 1576 //$stime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_startdate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>'; 1577 //$etime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_enddate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>'; 1578 1579 if ( ! preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { 1580 // 12Hours Format 1581 $stime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_startdate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_starttime'] ) . '</em></strong>'; 1582 $etime = '<strong><em>' . date( 'l, F jS, Y', $bwpsoptions['am_enddate'] ) . __( ' at ', $this->hook ) . date( 'g:i a', $bwpsoptions['am_endtime'] ) . '</em></strong>'; 1583 1584 } else { 1585 // 24Hours Format 1586 $stime = '<strong><em>' . date_i18n( 'l, d F Y', $bwpsoptions['am_startdate'] ) . __( ' at ', $this->hook ) . date_i18n( get_option( 'time_format', 'g:i a' ) , $bwpsoptions['am_starttime'] ) . '</em></strong>'; 1587 $etime = '<strong><em>' . date_i18n( 'l, d F Y', $bwpsoptions['am_enddate'] ) . __( ' at ', $this->hook ) . date_i18n( get_option( 'time_format', 'g:i a' ) , $bwpsoptions['am_endtime'] ). '</em></strong>'; 1588 } 1495 1589 } 1496 1590 … … 1759 1853 if ( $bwpsoptions['backup_enabled'] == 1 ) { //get backup times 1760 1854 if ( $bwpsoptions['backup_last'] == '' ) { 1761 $lastbackup = 'Never';1855 $lastbackup = __('Never'); 1762 1856 } else { 1763 $lastbackup = date( 'l F jS, Y \a\t g:i a', $bwpsoptions['backup_last'] ); 1857 if ( preg_match("/^(G|H)(:| \\h)/", get_option('time_format') ) ) { 1858 $lastbackup = date_i18n( 'l, d F Y ' . get_option( 'time_format' ), $bwpsoptions['backup_last'] ); // 24Hours Format 1859 } else { 1860 $lastbackup = date( 'l, F jS, Y \a\t g:i a', $bwpsoptions['backup_last'] ); // 12Hours Format 1861 } 1764 1862 } 1765 1863 ?> 1766 1864 <p><strong><?php _e( 'Last Scheduled Backup:', $this->hook ); ?></strong> <?php echo $lastbackup; ?></p> 1767 <p><strong><?php _e( 'Next Scheduled Backup:', $this->hook ); ?></strong> <?php echo date( 'l F jS, Y \a\t g:i a', $bwpsoptions['backup_next'] ); ?></p> 1865 <p><strong><?php _e( 'Next Scheduled Backup:', $this->hook ); ?></strong> 1866 <?php 1867 if ( preg_match( "/^(G|H)(:| \\h)/", get_option( 'time_format' ) ) ) { 1868 echo date_i18n( 'l, d F Y ' . get_option( 'time_format' ), $bwpsoptions['backup_next'] ); 1869 } else { 1870 echo date( 'l, F jS, Y \a\t g:i a', $bwpsoptions['backup_next'] ); 1871 } 1872 ?> 1873 </p> 1768 1874 <?php if ( file_exists( BWPS_PP . '/backups/lock' ) ) { ?> 1769 1875 <p style="color: #ff0000;"><?php _e( 'It looks like a scheduled backup is in progress please reload this page for more accurate times.', $this->hook ); ?></p> … … 2638 2744 <th scope="row" class="settinglabel"> 2639 2745 <label for "st_passrole"><?php _e( 'Strong Password Role', $this->hook ); ?></label> 2640 </th> 2746 </th> 2641 2747 <td class="settingfield"> 2642 2748 <select name="st_passrole" id="st_passrole"> 2643 <option value="administrator" <?php if ( $bwpsoptions['st_passrole'] == "administrator" ) echo "selected"; ?>> Administrator</option>2644 <option value="editor" <?php if ( $bwpsoptions['st_passrole'] == "editor" ) echo "selected"; ?>> Editor</option>2645 <option value="author" <?php if ( $bwpsoptions['st_passrole'] == "author" ) echo "selected"; ?>> Author</option>2646 <option value="contributor" <?php if ( $bwpsoptions['st_passrole'] == "contributor" ) echo "selected"; ?>> Contributor</option>2647 <option value="subscriber" <?php if ( $bwpsoptions['st_passrole'] == "subscriber" ) echo "selected"; ?>> Subscriber</option>2749 <option value="administrator" <?php if ( $bwpsoptions['st_passrole'] == "administrator" ) echo "selected"; ?>><? echo translate_user_role("Administrator"); ?></option> 2750 <option value="editor" <?php if ( $bwpsoptions['st_passrole'] == "editor" ) echo "selected"; ?>><? echo translate_user_role("Editor"); ?></option> 2751 <option value="author" <?php if ( $bwpsoptions['st_passrole'] == "author" ) echo "selected"; ?>><? echo translate_user_role("Author"); ?></option> 2752 <option value="contributor" <?php if ( $bwpsoptions['st_passrole'] == "contributor" ) echo "selected"; ?>><? echo translate_user_role("Contributor"); ?></option> 2753 <option value="subscriber" <?php if ( $bwpsoptions['st_passrole'] == "subscriber" ) echo "selected"; ?>><? echo translate_user_role("Subscriber"); ?></option> 2648 2754 </select> 2649 2755 <p><?php _e( 'Minimum role at which a user must choose a strong password. For more information on WordPress roles and capabilities please see', $this->hook ); ?> <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">http://codex.wordpress.org/Roles_and_Capabilities</a>.</p> … … 2743 2849 2744 2850 } 2851 -
better-wp-security/trunk/inc/secure.php
r662839 r690782 69 69 if ( $bwpsoptions['st_longurl'] == 1 && ! is_admin() ) { 70 70 71 if ( strlen( $_SERVER['REQUEST_URI'] ) > 255 || 72 73 strpos( $_SERVER['REQUEST_URI'], "eval(" ) || 74 strpos( $_SERVER['REQUEST_URI'], "CONCAT" ) || 75 strpos( $_SERVER['REQUEST_URI'], "UNION+SELECT" ) || 76 strpos( $_SERVER['REQUEST_URI'], "base64" ) ) { 71 if ( 72 ! strpos( $_SERVER['REQUEST_URI'], 'infinity=scrolling&action=infinite_scroll' ) && 73 ( 74 strlen( $_SERVER['REQUEST_URI'] ) > 255 || 75 strpos( $_SERVER['REQUEST_URI'], 'eval(' ) || 76 strpos( $_SERVER['REQUEST_URI'], 'CONCAT' ) || 77 strpos( $_SERVER['REQUEST_URI'], 'UNION+SELECT' ) || 78 strpos( $_SERVER['REQUEST_URI'], 'base64' ) 79 ) 80 81 ) { 77 82 @header( 'HTTP/1.1 414 Request-URI Too Long' ); 78 83 @header( 'Status: 414 Request-URI Too Long' ); -
better-wp-security/trunk/readme.txt
r662841 r690782 6 6 Requires at least: 3.4 7 7 Tested up to: 3.5.1 8 Stable tag: 3.4. 88 Stable tag: 3.4.9 9 9 10 10 The easiest, most effective way to secure WordPress. Improve the security of any WordPress site in seconds. … … 78 78 79 79 = Translations = 80 * French by <a href="http://www.sceric.net/">SCUDELLER Eric</a> 80 81 * Hindi by <a href="http://outshinesolutions.com/">Outshine Solutions</a> 81 82 * Lithuanian by <a href="http://www.host1free.com/">Vincent G</a> … … 151 152 152 153 == Changelog == 154 155 = 3.4.9 = 156 * More secure user query thanks to John Cave 157 * Greatly improved intl date handling by <a href="http://www.sceric.net/">SCUDELLER Eric</a> 158 * Added: French translation by <a href="http://www.sceric.net/">SCUDELLER Eric</a> 159 * Fixed: bug preventing Jetpack's Infinite Scroll from working with long URL protection 153 160 154 161 = 3.4.8 =
Note: See TracChangeset
for help on using the changeset viewer.