-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpassword-reset.php
More file actions
31 lines (21 loc) · 836 Bytes
/
Copy pathpassword-reset.php
File metadata and controls
31 lines (21 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
* Copyright 2014-2026 GPLv3, Open Crypto Tracker by Mike Kilday: Mike@DragonFrugal.com (leave this copyright / attribution intact in ALL forks / copies!)
*/
// Runtime mode
$runtime_mode = 'ui';
$is_password_reset = 1;
// Load app config / etc
require("app-lib/php/init.php");
// If an activated password reset is in progress or no admin login has been set yet, prompt user to create an admin user / pass
if ( $password_reset_approved || !is_array($stored_admin_login) ) {
require($ct['base_dir'] . '/templates/interface/php/admin/admin-login/register.php');
exit;
}
else {
require($ct['base_dir'] . '/templates/interface/php/admin/admin-login/reset.php');
exit;
}
// NO LOGS / DEBUGGING / MESSAGE SENDING AT RUNTIME END HERE (WE ALWAYS EXIT BEFORE HERE)
// DON'T LEAVE ANY WHITESPACE AFTER THE CLOSING PHP TAG!
?>