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
55ee0b08
Commit
55ee0b08
authored
13 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: bad loading of styles.css.php
parent
9e06a742
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/lib/functions2.lib.php
+4
-0
4 additions, 0 deletions
htdocs/core/lib/functions2.lib.php
htdocs/theme/eldy/style.css.php
+5
-1
5 additions, 1 deletion
htdocs/theme/eldy/style.css.php
with
9 additions
and
1 deletion
htdocs/core/lib/functions2.lib.php
+
4
−
0
View file @
55ee0b08
...
...
@@ -954,6 +954,10 @@ function dol_set_user_param($db, $conf, &$user, $tab)
$user
->
conf
->
$key
=
$value
;
//print "key=".$key." user->conf->key=".$user->conf->$key;
}
else
{
unset
(
$user
->
conf
->
$key
);
}
}
$db
->
commit
();
...
...
This diff is collapsed.
Click to expand it.
htdocs/theme/eldy/style.css.php
+
5
−
1
View file @
55ee0b08
...
...
@@ -29,7 +29,7 @@ if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
if
(
!
defined
(
'NOCSRFCHECK'
))
define
(
'NOCSRFCHECK'
,
1
);
if
(
!
defined
(
'NOTOKENRENEWAL'
))
define
(
'NOTOKENRENEWAL'
,
1
);
//
if (! defined('NOLOGIN')) define('NOLOGIN',1); //
Not disabled because ne
ed
to
lo
ad user to know its personal theme choices
if
(
!
defined
(
'NOLOGIN'
))
define
(
'NOLOGIN'
,
1
);
//
File must be access
ed
by
lo
gon page so without login
if
(
!
defined
(
'NOREQUIREMENU'
))
define
(
'NOREQUIREMENU'
,
1
);
if
(
!
defined
(
'NOREQUIREHTML'
))
define
(
'NOREQUIREHTML'
,
1
);
if
(
!
defined
(
'NOREQUIREAJAX'
))
define
(
'NOREQUIREAJAX'
,
'1'
);
...
...
@@ -38,6 +38,10 @@ session_cache_limiter(FALSE);
require_once
(
"../../main.inc.php"
);
// Load user to have $user->conf loaded (not done into main because of NOLOGIN constant defined)
if
(
empty
(
$user
->
id
)
&&
!
empty
(
$_SESSION
[
'dol_login'
]))
$user
->
fetch
(
''
,
$_SESSION
[
'dol_login'
]);
// Define css type
header
(
'Content-type: text/css'
);
// Important: Following code is to avoid page request by browser and PHP CPU at
...
...
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