Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor 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
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
f1a3b2c8
Commit
f1a3b2c8
authored
15 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: add newline for debug
parent
409cff41
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/lib/security.lib.php
+19
-18
19 additions, 18 deletions
htdocs/lib/security.lib.php
with
19 additions
and
18 deletions
htdocs/lib/security.lib.php
+
19
−
18
View file @
f1a3b2c8
...
@@ -121,7 +121,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
...
@@ -121,7 +121,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
// Table 2
// Table 2
print
'<table class="login" summary="Login area" cellpadding="2" align="center">'
.
"
\n
"
;
print
'<table class="login" summary="Login area" cellpadding="2" align="center">'
.
"
\n
"
;
print
'<tr><td colspan="3"> </td></tr>'
;
print
'<tr><td colspan="3"> </td></tr>'
.
"
\n
"
;
print
'<tr>'
;
print
'<tr>'
;
...
@@ -157,10 +157,10 @@ function dol_loginfunction($langs,$conf,$mysoc)
...
@@ -157,10 +157,10 @@ function dol_loginfunction($langs,$conf,$mysoc)
}
}
// Login field
// Login field
print
'<td valign="bottom"> <b>'
.
$langs
->
trans
(
"Login"
)
.
'</b> </td>'
;
print
'<td valign="bottom"> <b>'
.
$langs
->
trans
(
"Login"
)
.
'</b> </td>'
.
"
\n
"
;
print
'<td valign="bottom" nowrap="nowrap"><input type="text" id="username" name="username" class="flat" size="15" maxlength="25" value="'
;
print
'<td valign="bottom" nowrap="nowrap"><input type="text" id="username" name="username" class="flat" size="15" maxlength="25" value="'
;
print
(
!
empty
(
$lastuser
)
?
$lastuser
:
(
isset
(
$_REQUEST
[
"username"
])
?
$_REQUEST
[
"username"
]
:
$demologin
));
print
(
!
empty
(
$lastuser
)
?
$lastuser
:
(
isset
(
$_REQUEST
[
"username"
])
?
$_REQUEST
[
"username"
]
:
$demologin
));
print
'" tabindex="1" /></td>'
;
print
'" tabindex="1" /></td>'
.
"
\n
"
;
// Show logo (search in order: small company logo, large company logo, theme logo, common logo)
// Show logo (search in order: small company logo, large company logo, theme logo, common logo)
$width
=
0
;
$width
=
0
;
...
@@ -178,7 +178,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
...
@@ -178,7 +178,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
{
{
$urllogo
=
DOL_URL_ROOT
.
'/theme/dolibarr_logo.png'
;
$urllogo
=
DOL_URL_ROOT
.
'/theme/dolibarr_logo.png'
;
}
}
print
'<td rowspan="2" align="center">'
;
print
'<td rowspan="2" align="center">'
.
"
\n
"
;
if
(
empty
(
$conf
->
browser
->
phone
))
if
(
empty
(
$conf
->
browser
->
phone
))
{
{
print
'<img alt="Logo" title="" src="'
.
$urllogo
.
'"'
;
print
'<img alt="Logo" title="" src="'
.
$urllogo
.
'"'
;
...
@@ -189,11 +189,11 @@ function dol_loginfunction($langs,$conf,$mysoc)
...
@@ -189,11 +189,11 @@ function dol_loginfunction($langs,$conf,$mysoc)
print
'</tr>'
.
"
\n
"
;
print
'</tr>'
.
"
\n
"
;
// Password field
// Password field
print
'<tr><td valign="top" nowrap="nowrap"> <b>'
.
$langs
->
trans
(
"Password"
)
.
'</b> </td>'
;
print
'<tr><td valign="top" nowrap="nowrap"> <b>'
.
$langs
->
trans
(
"Password"
)
.
'</b> </td>'
.
"
\n
"
;
print
'<td valign="top" nowrap="nowrap"><input id="password" name="password" class="flat" type="password" size="15" maxlength="30" value="'
;
print
'<td valign="top" nowrap="nowrap"><input id="password" name="password" class="flat" type="password" size="15" maxlength="30" value="'
;
print
$demopassword
;
print
$demopassword
;
print
'" tabindex="2">'
;
print
'" tabindex="2">'
;
print
'</td></tr>'
;
print
'</td></tr>'
.
"
\n
"
;
// Entity field
// Entity field
if
(
!
empty
(
$conf
->
global
->
MAIN_MODULE_MULTICOMPANY
))
if
(
!
empty
(
$conf
->
global
->
MAIN_MODULE_MULTICOMPANY
))
...
@@ -203,33 +203,34 @@ function dol_loginfunction($langs,$conf,$mysoc)
...
@@ -203,33 +203,34 @@ function dol_loginfunction($langs,$conf,$mysoc)
//TODO: creer class
//TODO: creer class
$entity
=
array
(
'1'
=>
'company1'
,
'2'
=>
'company2'
);
$entity
=
array
(
'1'
=>
'company1'
,
'2'
=>
'company2'
);
print
'<tr><td valign="top" nowrap="nowrap"> <b>'
.
$langs
->
trans
(
"Entity"
)
.
'</b> </td>'
;
print
'<tr><td valign="top" nowrap="nowrap"> <b>'
.
$langs
->
trans
(
"Entity"
)
.
'</b> </td>'
.
"
\n
"
;
print
'<td valign="top" nowrap="nowrap">'
;
print
'<td valign="top" nowrap="nowrap">'
;
print
$html
->
selectarray
(
'entity'
,
$entity
,
$lastentity
,
0
,
0
,
0
,
1
,
'tabindex="3"'
);
print
$html
->
selectarray
(
'entity'
,
$entity
,
$lastentity
,
0
,
0
,
0
,
1
,
'tabindex="3"'
);
print
'</td></tr>'
;
print
'</td></tr>'
.
"
\n
"
;
}
print
'<tr><td colspan="3"> </td></tr>'
.
"
\n
"
;
print
'<tr><td colspan="3"> </td></tr>'
.
"
\n
"
;
}
// Security graphical code
// Security graphical code
if
(
function_exists
(
"imagecreatefrompng"
)
&&
!
empty
(
$conf
->
global
->
MAIN_SECURITY_ENABLECAPTCHA
))
if
(
function_exists
(
"imagecreatefrompng"
)
&&
!
empty
(
$conf
->
global
->
MAIN_SECURITY_ENABLECAPTCHA
))
{
{
//print "Info session: ".session_name().session_id();print_r($_SESSION);
//print "Info session: ".session_name().session_id();print_r($_SESSION);
print
'<tr><td valign="middle" nowrap="nowrap"> <b>'
.
$langs
->
trans
(
"SecurityCode"
)
.
'</b></td>'
;
print
'<tr><td valign="middle" nowrap="nowrap"> <b>'
.
$langs
->
trans
(
"SecurityCode"
)
.
'</b></td>'
.
"
\n
"
;
print
'<td valign="top" nowrap="nowrap" align="left" class="e">'
;
print
'<td valign="top" nowrap="nowrap" align="left" class="e">'
.
"
\n
"
;
print
'<table><tr>'
;
print
'<table><tr>'
.
"
\n
"
;
print
'<td><input id="securitycode" class="flat" type="text" size="6" maxlength="5" name="code" tabindex="4"></td>'
;
print
'<td><input id="securitycode" class="flat" type="text" size="6" maxlength="5" name="code" tabindex="4"></td>'
.
"
\n
"
;
$width
=
128
;
$height
=
36
;
$width
=
128
;
$height
=
36
;
if
(
!
empty
(
$conf
->
browser
->
phone
))
$width
=
64
;
$height
=
24
;
if
(
!
empty
(
$conf
->
browser
->
phone
))
$width
=
64
;
$height
=
24
;
print
'<td><img src="'
.
DOL_URL_ROOT
.
'/lib/antispamimage.php" border="0" width="'
.
$width
.
'" height="'
.
$height
.
'"></td>'
;
print
'<td><img src="'
.
DOL_URL_ROOT
.
'/lib/antispamimage.php" border="0" width="'
.
$width
.
'" height="'
.
$height
.
'"></td>'
.
"
\n
"
;
print
'<td><a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'">'
.
img_refresh
()
.
'</a></td>'
;
print
'<td><a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'">'
.
img_refresh
()
.
'</a></td>'
.
"
\n
"
;
print
'</tr></table>'
;
print
'</tr></table>'
.
"
\n
"
;
print
'</td>'
;
print
'</td>'
;
print
'</tr>'
;
print
'</tr>'
.
"
\n
"
;
}
}
print
'<tr><td colspan="3"> </td></tr>'
.
"
\n
"
;
print
'<tr><td colspan="3" style="text-align:center;"><br>'
;
print
'<tr><td colspan="3" style="text-align:center;"><br>'
;
print
'<input type="submit" class="button" value=" '
.
$langs
->
trans
(
"Connection"
)
.
' " tabindex="5" />'
;
print
'<input type="submit" class="button" value=" '
.
$langs
->
trans
(
"Connection"
)
.
' " tabindex="5" />'
;
print
'</td></tr>'
;
print
'</td></tr>'
;
...
...
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