22 /* This Source Code Form is subject to the terms of the Mozilla Public
33 * License, v. 2.0. If a copy of the MPL was not distributed with this
44 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5-
6- // Include required functions file
7- require_once (realpath (__DIR__ . '/../includes/functions.php ' ));
8- require_once (realpath (__DIR__ . '/../includes/authenticate.php ' ));
9- require_once (realpath (__DIR__ . '/../includes/display.php ' ));
10- require_once (realpath (__DIR__ . '/../includes/alerts.php ' ));
11- require_once (realpath (__DIR__ . '/../vendor/autoload.php ' ));
5+ $ active_sidebar_menu = "Admin " ;
6+ $ active_sidebar_submenu ="UserManagement " ;
7+ $ title = 'SimpleRisk: Enterprise Risk Management Simplified ' ;
8+ require_once (realpath (__DIR__ . '/../sidebar.php ' ));
129
1310// Add various security headers
1411add_security_headers ();
2017include_csrf_magic ();
2118
2219// Include the SimpleRisk language file
23- // Ignoring detections related to language files
24- // @phan-suppress-next-line SecurityCheck-PathTraversal
2520require_once (language_file ());
2621
2722// Check if a new password was submitted
9388}
9489
9590?>
96-
97- <!doctype html>
98- <html>
99-
100- <head>
101- <meta http-equiv="X-UA-Compatible" content="IE=10,9,7,8">
102- <?php
103- // Use these jQuery scripts
104- $ scripts = [
105- 'jquery.min.js ' ,
106- ];
107-
108- // Include the jquery javascript source
109- display_jquery_javascript ($ scripts );
110-
111- display_bootstrap_javascript ();
112- ?>
113- <title>SimpleRisk: Enterprise Risk Management Simplified</title>
114- <meta name="viewport" content="width=device-width, initial-scale=1">
115- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
116- <link rel="stylesheet" href="../css/bootstrap.css?<?php echo current_version ("app " ); ?> ">
117- <link rel="stylesheet" href="../css/bootstrap-responsive.css?<?php echo current_version ("app " ); ?> ">
118- <link rel="stylesheet" href="../css/divshot-util.css?<?php echo current_version ("app " ); ?> ">
119- <link rel="stylesheet" href="../css/divshot-canvas.css?<?php echo current_version ("app " ); ?> ">
120- <link rel="stylesheet" href="../css/display.css?<?php echo current_version ("app " ); ?> ">
121- <link rel="stylesheet" href="../vendor/components/font-awesome/css/fontawesome.min.css?<?php echo current_version ("app " ); ?> ">
122- <link rel="stylesheet" href="../css/theme.css?<?php echo current_version ("app " ); ?> ">
123- <link rel="stylesheet" href="../css/side-navigation.css?<?php echo current_version ("app " ); ?> ">
124- <?php
125- setup_favicon (".. " );
126- setup_alert_requirements (".. " );
127- ?>
128- </head>
129-
130- <body>
131-
132-
133- <?php
134- view_top_menu ("Configure " );
135-
136- // Get any alert messages
137- get_alert ();
138- ?>
91+ <link rel="stylesheet" href="../css/theme.css?<?= $ current_app_version ?> ">
92+ <style>
93+ input[type="password"]{
94+ max-width: 50% !important;
95+ }
96+ </style>
97+ <div class="page-breadcrumb">
98+ <div class="row">
99+ <div class="col-12 d-flex no-block align-items-center">
100+ <h4 class="page-title"><?= $ escaper ->escapeHtml ($ lang ['ProfileDetails ' ]); ?> </h4>
101+ <div class="ms-auto text-end">
102+ <nav aria-label="breadcrumb">
103+ <ol class="breadcrumb">
104+ <li class="breadcrumb-item"><a href="../account/profile.php">Overview</a></li>
105+ </ol>
106+ </nav>
107+ </div>
108+ </div>
109+ </div>
110+ </div>
139111 <div class="container-fluid">
140- <div class="row-fluid">
141- <div class="span4 offset4">
142- <div class="well">
143- <?php
144- //if (isset($_SESSION['user_type']) && $_SESSION['user_type'] != "ldap")
145- //{
146- echo "<div class= \"hero-unit \"> \n" ;
147- echo "<form name= \"change_password \" method= \"post \" action= \"\"> \n" ;
148- echo "<table border= \"0 \" cellspacing= \"0 \" cellpadding= \"0 \"> \n" ;
149- echo "<tr><td colspan= \"2 \"><h4> " . $ escaper ->escapeHtml ($ lang ['ChangePassword ' ]) . "</h4></td><tr> \n" ;
150- echo "<tr><td> " . $ escaper ->escapeHtml ($ lang ['CurrentPassword ' ]) . ": </td><td><input maxlength= \"100 \" name= \"current_pass \" id= \"current_pass \" class= \"input-medium \" type= \"password \" autocomplete= \"off \" /></td></tr> \n" ;
151- echo "<tr><td> " . $ escaper ->escapeHtml ($ lang ['NewPassword ' ]) . ": </td><td><input maxlength= \"100 \" name= \"new_pass \" id= \"new_pass \" class= \"input-medium \" type= \"password \" autocomplete= \"off \" /></td></tr> \n" ;
152- echo "<tr><td> " . $ escaper ->escapeHtml ($ lang ['ConfirmPassword ' ]) . ": </td><td><input maxlength= \"100 \" name= \"confirm_pass \" id= \"confirm_pass \" class= \"input-medium \" type= \"password \" autocomplete= \"off \" /></td></tr> \n" ;
153- echo "</table> \n" ;
154- echo "<div class= \"form-actions \"> \n" ;
155- echo "<button type= \"submit \" name= \"change_password \" class= \"btn btn-primary \"> " . $ escaper ->escapeHtml ($ lang ['Submit ' ]) . "</button> \n" ;
156- echo "<input class= \"btn \" value= \"" . $ escaper ->escapeHtml ($ lang ['Reset ' ]) . "\" type= \"reset \"> \n" ;
157- echo "</div> \n" ;
158- echo "</form> \n" ;
159- echo "</div> \n" ;
160- // }
161- ?>
112+ <div class="row">
113+ <div class="col-lg-12">
114+ <div class="card">
115+ <form class="form-horizontal" action="" method="post">
116+ <div class="card-body">
117+ <h4 class="card-title"><?= $ escaper ->escapeHtml ($ lang ['ChangePassword ' ]);?> </h4>
118+
119+ <div>
120+ <label><?= $ escaper ->escapeHtml ($ lang ['CurrentPassword ' ]);?> </label>
121+ <input type="password" class="form-control" id="current_pass" name="current_pass"/>
122+ </div>
123+ <div>
124+ <label><?= $ escaper ->escapeHtml ($ lang ['NewPassword ' ]);?> </label>
125+ <input type="password" class="form-control" id="new_pass" name="new_pass"/>
126+ </div>
127+ <div class="form-group">
128+ <label><?= $ escaper ->escapeHtml ($ lang ['ConfirmPassword ' ]);?> </label>
129+ <input type="password" class="form-control" id="confirm_pass" name="confirm_pass"/>
130+ </div>
131+ <div class="form-group">
132+ <div>
133+ <button type="submit" class="btn btn-primary" name="change_password" value="submit"><?= $ escaper ->escapeHtml ($ lang ['Submit ' ]);?> </button>
134+
135+ <button type="reset" class="btn"><?= $ escaper ->escapeHtml ($ lang ['Reset ' ]);?> </button>
136+
137+ </div>
138+ </div>
139+ </div>
140+ </form>
162141 </div>
163142 </div>
164143 </div>
165144 </div>
166- </body>
145+ </div>
146+ <?php
147+ require_once (realpath (__DIR__ . '/../footer.php ' ));
167148
168- </html>
149+ get_alert ();
150+ setup_alert_requirements (".. " );
151+ ?>
0 commit comments