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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
5caf3d9b
Commit
5caf3d9b
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Restore work lost by savannah backup
parent
6e75a3d2
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/index.php
+3
-1
3 additions, 1 deletion
htdocs/index.php
htdocs/main.inc.php
+1
-1
1 addition, 1 deletion
htdocs/main.inc.php
htdocs/viewimage.php
+14
-4
14 additions, 4 deletions
htdocs/viewimage.php
with
18 additions
and
6 deletions
htdocs/index.php
+
3
−
1
View file @
5caf3d9b
...
@@ -118,6 +118,8 @@ print "</table>\n";
...
@@ -118,6 +118,8 @@ print "</table>\n";
*/
*/
$langs
->
load
(
"commercial"
);
$langs
->
load
(
"commercial"
);
$langs
->
load
(
"bills"
);
$langs
->
load
(
"bills"
);
$langs
->
load
(
"orders"
);
if
(
$user
->
societe_id
==
0
)
if
(
$user
->
societe_id
==
0
)
{
{
print
'<br>'
;
print
'<br>'
;
...
@@ -260,7 +262,7 @@ print '</td><td width="65%" valign="top" class="notopnoleftnoright">';
...
@@ -260,7 +262,7 @@ print '</td><td width="65%" valign="top" class="notopnoleftnoright">';
/*
/*
* Dolibarr Working Board with weather
* Dolibarr Working Board with weather
*/
*/
$showweather
=
1
;
$showweather
=
empty
(
$conf
->
global
->
MAIN_DISABLE_METEO
)
?
1
:
0
;
$rowspan
=
0
;
$rowspan
=
0
;
$dashboardlines
=
array
();
$dashboardlines
=
array
();
...
...
This diff is collapsed.
Click to expand it.
htdocs/main.inc.php
+
1
−
1
View file @
5caf3d9b
...
@@ -349,7 +349,7 @@ if (! defined('NOLOGIN'))
...
@@ -349,7 +349,7 @@ if (! defined('NOLOGIN'))
// If error, we will put error message in session under the name dol_loginmesg
// If error, we will put error message in session under the name dol_loginmesg
$goontestloop
=
false
;
$goontestloop
=
false
;
if
(
isset
(
$_SERVER
[
"REMOTE_USER"
])
&&
in_array
(
'http'
,
$authmode
))
$goontestloop
=
true
;
if
(
isset
(
$_SERVER
[
"REMOTE_USER"
])
&&
in_array
(
'http'
,
$authmode
))
$goontestloop
=
true
;
if
(
isset
(
$_POST
[
"username"
]))
$goontestloop
=
true
;
if
(
isset
(
$_POST
[
"username"
])
||
GETPOST
(
'openid_mode'
,
'alpha'
,
1
)
)
$goontestloop
=
true
;
if
(
$test
&&
$goontestloop
)
if
(
$test
&&
$goontestloop
)
{
{
...
...
This diff is collapsed.
Click to expand it.
htdocs/viewimage.php
+
14
−
4
View file @
5caf3d9b
...
@@ -280,8 +280,8 @@ if ($modulepart)
...
@@ -280,8 +280,8 @@ if ($modulepart)
// GENERIC Wrapping
// GENERIC Wrapping
// If modulepart=module_user_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp/iduser
// If modulepart=module_user_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp/iduser
// If modulepart=module_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp
// If modulepart=module_temp Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/temp
// If modulepart=module
Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/iduser
// If modulepart=module
_user
Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart/iduser
// If modulepart=module
_user
Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart
// If modulepart=module
Allows any module to open a file if file is in directory called DOL_DATA_ROOT/modulepart
else
else
{
{
if
(
preg_match
(
'/^([a-z]+)_user_temp$/i'
,
$modulepart
,
$reg
))
if
(
preg_match
(
'/^([a-z]+)_user_temp$/i'
,
$modulepart
,
$reg
))
...
@@ -301,9 +301,19 @@ if ($modulepart)
...
@@ -301,9 +301,19 @@ if ($modulepart)
}
}
else
else
{
{
if
(
$user
->
rights
->
$reg
[
1
]
->
lire
||
$user
->
rights
->
$reg
[
1
]
->
read
)
$accessallowed
=
1
;
$perm
=
GETPOST
(
'perm'
);
$subperm
=
GETPOST
(
'subperm'
);
if
(
$perm
||
$subperm
)
{
if
((
$perm
&&
$user
->
rights
->
$modulepart
->
$perm
)
||
(
$perm
&&
$subperm
&&
$user
->
rights
->
$modulepart
->
$perm
->
$subperm
))
$accessallowed
=
1
;
$original_file
=
$conf
->
$modulepart
->
dir_output
.
'/'
.
$original_file
;
$original_file
=
$conf
->
$modulepart
->
dir_output
.
'/'
.
$original_file
;
}
}
else
{
if
(
$user
->
rights
->
$modulepart
->
lire
||
$user
->
rights
->
$modulepart
->
read
)
$accessallowed
=
1
;
$original_file
=
$conf
->
$modulepart
->
dir_output
.
'/'
.
$original_file
;
}
}
}
}
}
}
...
...
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