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
33139dd5
Commit
33139dd5
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix missing translation of page "disabled" and "offline".
parent
61c77467
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
htdocs/cache.manifest
+2
-2
2 additions, 2 deletions
htdocs/cache.manifest
htdocs/disabled.php
+0
-29
0 additions, 29 deletions
htdocs/disabled.php
htdocs/public/notice.php
+50
-0
50 additions, 0 deletions
htdocs/public/notice.php
with
52 additions
and
31 deletions
htdocs/cache.manifest
+
2
−
2
View file @
33139dd5
...
...
@@ -33,5 +33,5 @@ NETWORK:
# If the browser is unable to retrieve the original content, the fallback resource will be used.
# In the example above, we display a static image in case the dynamic one is unavailable.
FALLBACK:
#/ public/
offlin
e.php
#theme/
amarok
/img/* theme/
eldy
/img/
#/ public/
notic
e.php
#theme/
eldy
/img/* theme/
md
/img/
*
This diff is collapsed.
Click to expand it.
htdocs/disabled.php
deleted
100644 → 0
+
0
−
29
View file @
61c77467
<?php
/* Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* or see http://www.gnu.org/
*/
/**
* \file htdocs/disabled.php
* \brief Page to use to replace index.php to disable all software
*/
?>
<html>
<body>
This feature has been disabled on this test server.
<br>
Cette fonctionnalité a été désactivée sur ce serveur de test.
<br>
</body>
</html>
This diff is collapsed.
Click to expand it.
htdocs/public/
offlin
e.php
→
htdocs/public/
notic
e.php
+
50
−
0
View file @
33139dd5
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
/* Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -19,8 +16,12 @@
*/
/**
* \file htdocs/public/offline.php
* \brief Dolibarr offline page
* \file htdocs/public/notice.php
* \brief Dolibarr page to show a notice.
* Default notice is a message to say network connection is off.
* You can also call this page with URL:
* /public/notice.php?lang=xx_XX&transkey=translation_key (key must be inside file main.lang, error.lang or other.lang)
* /public/notice.php?transphrase=url_encoded_sentence_to_show
*/
define
(
'NOCSRFCHECK'
,
1
);
...
...
@@ -28,10 +29,22 @@ define('NOLOGIN',1);
require
'../main.inc.php'
;
/**
* View
*/
print
'Sorry, it seems your internet connexion is off.<br>'
;
print
'You need to be connected to network to use this software.<br>'
;
if
(
!
GETPOST
(
'transkey'
)
&&
!
GETPOST
(
'transphrase'
))
{
print
'Sorry, it seems your internet connexion is off.<br>'
;
print
'You need to be connected to network to use this software.<br>'
;
}
else
{
$langs
->
load
(
"error"
);
$langs
->
load
(
"other"
);
if
(
GETPOST
(
'transphrase'
))
print
GETPOST
(
'transphrase'
);
if
(
GETPOST
(
'transkey'
))
print
$langs
->
trans
(
GETPOST
(
'transkey'
));
}
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