PluginProbe
School Management System – WPSchoolPress / 2.2.43
School Management System – WPSchoolPress v2.2.43
2.2.48 2.2.47 2.2.46 2.2.45 2.2.44 2.2.43 2.2.42 2.2.41 2.2.40 2.2.39 2.2.38 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 All 103 releases
wpschoolpress / pages / wpsp-changepassword.php

wpsp-changepassword.php in School Management System – WPSchoolPress 2.2.43, at pages/wpsp-changepassword.php

60 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined( 'ABSPATH' ) )exit('No Such File');
3 wpsp_header();
4 if( is_user_logged_in() ) {
5 global $current_user, $wpdb;
6 $current_user_role=$current_user->roles[0];
7 wpsp_topbar();
8 wpsp_sidebar();
9 wpsp_body_start();
10 ?>
11 <div id="message_response"></div>
12 <form class="form-horizontal group-border-dashed" action="" id="changepassword">
13 <?php wp_nonce_field( 'WPSChangePass', 'wps_chnagepass_nonce', '', true ); ?>
14 <div class="wpsp-card">
15 <div class="wpsp-card-head">
16 <h3 class="wpsp-card-title"><?php esc_html_e( 'Change Password', 'wpschoolpress' )?></h3>
17 </div>
18 <div class="wpsp-card-body">
19 <div class="wpsp-row">
20 <div class="wpsp-col-md-3">
21 <div class="wpsp-form-group">
22 <label class="wpsp-label"><?php esc_html_e( 'Current Password', 'wpschoolpress' ); ?></label>
23 <input class="wpsp-form-control" name="oldpw" id="oldpw" type="password" required>
24 </div>
25 </div>
26 </div>
27 <div class="wpsp-row">
28 <div class="wpsp-col-md-3">
29 <div class="wpsp-form-group">
30 <label class="wpsp-label"><?php esc_html_e( 'New Password', 'wpschoolpress' ); ?></label>
31 <input class="wpsp-form-control" name="newpw" id="newpw" type="password" required>
32 </div>
33 </div>
34 </div>
35 <div class="wpsp-row">
36 <div class="wpsp-col-md-3">
37 <div class="wpsp-form-group">
38 <label class="wpsp-label"><?php esc_html_e( 'Confirm New Password', 'wpschoolpress' ); ?></label>
39 <input class="wpsp-form-control" name="newrpw" id="newrpw" type="password" required>
40 </div>
41 </div>
42 </div>
43 <div class="wpsp-row">
44 <div class="wpsp-col-md-12">
45 <div class="wpsp-form-group">
46 <input class="wpsp-btn wpsp-btn-primary" name="Change" id="Change" value="Change" type="submit">
47 </div>
48 </div>
49 </div>
50 </div>
51 </div>
52 </form>
53 <?php
54 wpsp_body_end();
55 wpsp_footer();
56 } else {
57 //Include Login Section
58 include_once( WPSP_PLUGIN_PATH .'/includes/wpsp-login.php');
59 }
60 ?>