You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interface/web/login/lib/lang/en.lng
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,4 +24,5 @@ $wb['back_txt'] = 'Back';
24
24
$wb['error_maintenance_mode'] = 'This ISPConfig installation is currently under maintenance. We should be back shortly. Thank you for your patience.';
25
25
$wb['theme_not_compatible'] = 'The chosen theme is not compatible with the current ISPConfig version. Please check for a new version of the theme.<br />The default theme as been activated automatically.';
26
26
$wb['stay_logged_in_txt'] = 'Keep me logged in';
27
-
?>
27
+
$wb['lost_password_function_disabled_txt'] = 'The lost password function is not available for this user.';
Copy file name to clipboardExpand all lines: interface/web/login/password_reset.php
+39-36Lines changed: 39 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,14 @@
7
7
Redistribution and use in source and binary forms, with or without modification,
8
8
are permitted provided that the following conditions are met:
9
9
10
-
* Redistributions of source code must retain the above copyright notice,
11
-
this list of conditions and the following disclaimer.
12
-
* Redistributions in binary form must reproduce the above copyright notice,
13
-
this list of conditions and the following disclaimer in the documentation
14
-
and/or other materials provided with the distribution.
15
-
* Neither the name of ISPConfig nor the names of its contributors
16
-
may be used to endorse or promote products derived from this software without
17
-
specific prior written permission.
10
+
* Redistributions of source code must retain the above copyright notice,
11
+
this list of conditions and the following disclaimer.
12
+
* Redistributions in binary form must reproduce the above copyright notice,
13
+
this list of conditions and the following disclaimer in the documentation
14
+
and/or other materials provided with the distribution.
15
+
* Neither the name of ISPConfig nor the names of its contributors
16
+
may be used to endorse or promote products derived from this software without
17
+
specific prior written permission.
18
18
19
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
20
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -26,7 +26,7 @@
26
26
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27
27
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28
28
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
-
*/
29
+
*/
30
30
31
31
require_once'../../lib/config.inc.php';
32
32
require_once'../../lib/app.inc.php';
@@ -54,36 +54,39 @@
54
54
$username = $app->db->quote($_POST['username']);
55
55
$email = $app->db->quote($_POST['email']);
56
56
57
-
$client = $app->db->queryOneRecord("SELECT * FROM client WHERE username = '$username' AND email = '$email'");
57
+
$client = $app->db->queryOneRecord("SELECT client.*, sys_user.lost_password_function FROM client,sys_user WHERE client.username = '$username' AND client.email = '$email' AND client.client_id = sys_user.client_id");
$sql = "SELECT * FROM web_domain WHERE server_id = '".$conf['server_id']."' AND (type = 'vhost' OR type = 'vhostsubdomain' OR type = 'vhostalias') AND active = 'y'";
89
-
$records = $app->db->queryAllRecords($sql);
79
+
$sql = "SELECT * FROM web_domain WHERE server_id = ? AND (type = 'vhost' OR type = 'vhostsubdomain' OR type = 'vhostalias') AND active = 'y'";
//$sql = "DELETE FROM web_backup WHERE backup_id = ".intval($tmp['backup_id']);
170
-
$sql = "DELETE FROM web_backup WHERE server_id = ".$conf['server_id']." AND parent_domain_id = $web_id AND filename = '".$app->db->quote($files[$n])."'";
$sql = "SELECT * FROM web_database WHERE server_id = ".$conf['server_id']." AND backup_interval != 'none' AND backup_interval != ''";
211
-
$records = $app->db->queryAllRecords($sql);
204
+
$records = $app->db->queryAllRecords("SELECT * FROM web_database WHERE server_id = ? AND backup_interval != 'none' AND backup_interval != ''", $conf['server_id']);
//$sql = "SELECT backup_id FROM web_backup WHERE server_id = ".$conf['server_id']." AND parent_domain_id = $web_id AND filename = '".$app->db->quote($filelist[$n])."'";
278
274
//$tmp = $app->dbmaster->queryOneRecord($sql);
279
275
//$sql = "DELETE FROM web_backup WHERE backup_id = ".intval($tmp['backup_id']);
280
-
$sql = "DELETE FROM web_backup WHERE server_id = ".$conf['server_id']." AND parent_domain_id = $web_id AND filename = '".$app->db->quote($filelist[$n])."'";
$sql = "DELETE FROM web_backup WHERE server_id = ".$conf['server_id']." AND parent_domain_id = ".$backup['parent_domain_id']." AND filename = '".$backup['filename']."'";
0 commit comments