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 7.6.8 7.6.9 7.7.0 7.8.0 7.8.1 7.8.10 7.8.11 7.8.12 7.8.13 7.8.14 7.8.15 7.8.16 7.8.17 7.8.18 7.8.2 7.8.3 7.8.4 7.8.5 7.8.5.1 7.8.6 7.8.7 7.8.8 7.8.9 7.9.0 7.9.1 7.9.10 7.9.11 7.9.2 7.9.3 7.9.4 7.9.5 7.9.6 7.9.7 7.9.8 7.9.9 8.0.0 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 8.0.7 8.0.8 8.1.0 8.1.1 8.1.2 8.1.3 8.1.4 8.2.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.1 2.8.2 2.8.3 2.9.0 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.2.0 3.3.0 3.4.0 3.5.0 3.6.1 3.7.0 3.8.0 3.9.0 3.9.1 3.9.2 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.8.0 4.8.1 4.8.2 4.8.3 4.9.0 4.9.1 4.9.2 4.9.3 5.0.0
admin-site-enhancements / includes / password-protected-login.php
admin-site-enhancements / includes Last commit date
admin-menu-width 7 months ago disable-embeds 7 months ago blank-comment-template.php 7 months ago bmp-to-image-object.php 7 months ago empty-class-classic-editor.php 7 months ago password-protected-login.php 7 months ago
password-protected-login.php
103 lines
1 <?php
2
3 global $error, $password_protected_errors, $is_iphone;
4 $options = get_option( ASENHA_SLUG_U, array() );
5 $password_field_label = __( 'Password', 'admin-site-enhancements' );
6 $button_label = __( 'View Content', 'admin-site-enhancements' );
7 /**
8 * WP Shake JS
9 */
10 if ( !function_exists( 'wp_shake_js' ) ) {
11 function wp_shake_js() {
12 if ( isset( $is_iphone ) ) {
13 if ( $is_iphone ) {
14 return;
15 }
16 }
17 ?>
18 <script>
19 addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
20 function s(id,pos){g(id).left=pos+'px';}
21 function g(id){return document.getElementById(id).style;}
22 function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{g(id).position='static';wp_attempt_focus();}catch(e){}}}
23 addLoadEvent(function(){ var p=new Array(15,30,15,0,-15,-30,-15,0);p=p.concat(p.concat(p));var i=document.forms[0].id;g(i).position='relative';shake(i,p,20);});
24 </script>
25 <?php
26 }
27
28 }
29 nocache_headers();
30 header( 'Content-Type: ' . get_bloginfo( 'html_type' ) . '; charset=' . get_bloginfo( 'charset' ) );
31 // Maybe show error message above login form
32 $shake_error_codes = array('empty_password', 'incorrect_password');
33 if ( $password_protected_errors->get_error_code() && in_array( $password_protected_errors->get_error_code(), $shake_error_codes ) ) {
34 add_action( 'asenha_password_protection_login_head', 'wp_shake_js', 12 );
35 }
36 ?>
37 <!DOCTYPE html>
38 <html xmlns="http://www.w3.org/1999/xhtml" <?php
39 language_attributes();
40 ?>>
41 <head>
42 <meta http-equiv="Content-Type" content="<?php
43 bloginfo( 'html_type' );
44 ?>; charset=<?php
45 bloginfo( 'charset' );
46 ?>" />
47 <meta name="viewport" content="width=device-width" />
48 <meta name="robots" content="noindex">
49 <title><?php
50 bloginfo( 'name' );
51 ?></title>
52 <?php
53 wp_admin_css( 'login', true );
54 do_action( 'asenha_password_protection_login_head' );
55 ?>
56 <style type="text/css" id="protected-page-login-style">
57 #login_error {
58 box-sizing: border-box;
59 width: 287px;
60 border-left: 4px solid #d63638;
61 padding: 12px;
62 margin-top: 20px;
63 margin-bottom: 0;
64 background-color: #fff;
65 box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
66 word-wrap: break-word;
67 color: #3c434a;
68 }
69 </style>
70 <?php
71 ?>
72 </head>
73 <body class="login protected-page-login wp-core-ui">
74
75 <div id="login">
76 <?php
77 do_action( 'asenha_password_protection_error_messages' );
78 ?>
79 <form name="loginform" id="loginform" action="<?php
80 echo esc_url( add_query_arg( 'protected-page', 'view', home_url( '/' ) ) );
81 ?>" method="post">
82 <label for="protected_page_pwd"><?php
83 echo esc_html( $password_field_label );
84 ?></label>
85 <input type="password" name="protected_page_pwd" id="protected_page_pwd" class="input" value="" size="20" />
86 <p class="submit">
87 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php
88 echo esc_attr( $button_label );
89 ?>" />
90 <input type="hidden" name="protected-page" value="view" />
91 <input type="hidden" name="source" value="<?php
92 echo esc_attr( ( !empty( $_REQUEST['source'] ) ? $_REQUEST['source'] : '' ) );
93 ?>" />
94 </p>
95 </form>
96 </div>
97
98 <?php
99 do_action( 'login_footer' );
100 ?>
101
102 </body>
103 </html>