Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmo
ISPConfig 3
Commits
ce06f4c2
Commit
ce06f4c2
authored
17 years ago
by
pedro_morgan
Browse files
Options
Downloads
Patches
Plain Diff
Minor tweaks to login
parent
05e71c79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
interface/lib/classes/db_mysql.inc.php
+1
-1
1 addition, 1 deletion
interface/lib/classes/db_mysql.inc.php
interface/lib/lang/en.lng
+3
-3
3 additions, 3 deletions
interface/lib/lang/en.lng
interface/web/login/index.php
+5
-4
5 additions, 4 deletions
interface/web/login/index.php
with
9 additions
and
8 deletions
interface/lib/classes/db_mysql.inc.php
+
1
−
1
View file @
ce06f4c2
...
@@ -47,7 +47,7 @@ class db
...
@@ -47,7 +47,7 @@ class db
private
$autoCommit
=
1
;
// Autocommit Transactions
private
$autoCommit
=
1
;
// Autocommit Transactions
private
$currentRow
;
// current row number
private
$currentRow
;
// current row number
private
$errorNumber
=
0
;
// last error number
private
$errorNumber
=
0
;
// last error number
p
rivate
$errorMessage
=
''
;
// last error message
p
ublic
$errorMessage
=
''
;
// last error message
private
$errorLocation
=
''
;
// last error location
private
$errorLocation
=
''
;
// last error location
private
$show_error_messages
=
false
;
private
$show_error_messages
=
false
;
...
...
This diff is collapsed.
Click to expand it.
interface/lib/lang/en.lng
+
3
−
3
View file @
ce06f4c2
<?php
<?php
// Global
e
Error Messages
//
*
Global Error Messages
$wb
[
301
]
=
'Module not permitted for the current user.'
;
$wb
[
301
]
=
'Module not permitted for the current user.'
;
$wb
[
302
]
=
'Module invalid.'
;
$wb
[
302
]
=
'Module invalid.'
;
$wb
[
1001
]
=
'The username and password
must
not be empty!'
;
$wb
[
1001
]
=
'The username and password
can
not be empty
!'
;
$wb
[
1002
]
=
'The username and/or password are not correct!'
;
$wb
[
1002
]
=
'The username and/or password are not correct
!'
;
$wb
[
1003
]
=
'The username is deactivated!'
;
$wb
[
1003
]
=
'The username is deactivated!'
;
$wb
[
'delete_confirmation'
]
=
'Do you really want to delete this record?'
;
$wb
[
'delete_confirmation'
]
=
'Do you really want to delete this record?'
;
...
...
This diff is collapsed.
Click to expand it.
interface/web/login/index.php
+
5
−
4
View file @
ce06f4c2
...
@@ -69,6 +69,7 @@ public function render() {
...
@@ -69,6 +69,7 @@ public function render() {
$_SESSION
[
's'
][
'module'
]
=
$module
;
$_SESSION
[
's'
][
'module'
]
=
$module
;
}
}
// TODO: What is all this - pedro
//$site = $app->db->queryOneRecord("SELECT * FROM mb_sites WHERE name = '".$user["site_preset"]."'");
//$site = $app->db->queryOneRecord("SELECT * FROM mb_sites WHERE name = '".$user["site_preset"]."'");
//$_SESSION["s"]["site"] = $site;
//$_SESSION["s"]["site"] = $site;
...
@@ -89,19 +90,19 @@ public function render() {
...
@@ -89,19 +90,19 @@ public function render() {
$error
=
$app
->
lng
(
1003
);
$error
=
$app
->
lng
(
1003
);
}
}
}
else
{
}
else
{
//
Username oder Passwort falsch
//
* Incorrect login - Username and password incorrect
$error
=
$app
->
lng
(
1002
);
$error
=
$app
->
lng
(
1002
);
if
(
$app
->
db
->
errorMessage
!=
''
)
$error
.
=
'<br>'
.
$app
->
db
->
errorMessage
!=
''
;
if
(
$app
->
db
->
errorMessage
!=
''
)
$error
.
=
'<br>'
.
$app
->
db
->
errorMessage
!=
''
;
}
}
}
else
{
}
else
{
// Username o
de
r
P
asswor
t leer
//
*
Username or
p
asswor
d empty
$error
=
$app
->
lng
(
1001
);
$error
=
$app
->
lng
(
1001
);
}
}
}
}
if
(
$error
!=
''
){
if
(
$error
!=
''
){
$error
=
'<table
width="100%" border="0" cellspacing="0" cellpadding="2
">
$error
=
'<table
class="error
">
<tr>
<tr>
<td
class="error"><b
>Error:</
b
><br>'
.
$error
.
'</td>
<td
><strong
>Error:</
strong
><br>'
.
$error
.
'</td>
</tr>
</tr>
</table>'
;
</table>'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment