32if (!defined(
'NOCSRFCHECK')) {
33 define(
'NOCSRFCHECK', 1);
35if (!defined(
'NOTOKENRENEWAL')) {
36 define(
'NOTOKENRENEWAL', 1);
39if (!defined(
'NOREQUIREMENU')) {
40 define(
'NOREQUIREMENU', 1);
43require_once
'../main.inc.php';
53 $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
58$right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
59$left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
66$title = $langs->trans(
"Info");
69$head =
'<!-- Info user page -->'.
"\n";
72top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
77print
'<div style="padding: 20px;">';
81$appli = constant(
'DOL_APPLICATION_TITLE');
84 if (preg_match(
'/\d\.\d/', $appli)) {
85 if (!preg_match(
'/'.preg_quote(DOL_VERSION).
'/', $appli)) {
86 $appli .=
" (".DOL_VERSION.
")";
89 $appli .=
" ".DOL_VERSION;
92 $appli .=
" ".DOL_VERSION;
96 $appli .=
"<br>".$langs->trans(
"LevelOfFeature").
': '.
getDolGlobalInt(
'MAIN_FEATURES_LEVEL');
104 if ($_SESSION[
"dol_authmode"] !=
'forceuser' && $_SESSION[
"dol_authmode"] !=
'http') {
105 $logouthtmltext .= $langs->trans(
"Logout").
'<br>';
107 $logouttext .=
'<a href="'.DOL_URL_ROOT.
'/user/logout.php?token='.
newToken().
'">';
109 $logouttext .=
'<span class="fa fa-sign-out atoplogin"></span>';
110 $logouttext .=
'</a>';
112 $logouthtmltext .= $langs->trans(
"NoLogoutProcessWithAuthMode", $_SESSION[
"dol_authmode"]);
113 $logouttext .=
img_picto($langs->trans(
'Logout').
":".$langs->trans(
'Logout'),
'logout_top.png',
'class="login"', 0, 0, 1);
117print
'<div class="login_block_getinfo">'.
"\n";
120$toprightmenu .=
'<div class="login_block_user">';
124$toprightmenu .=
'<div class="inline-block nowrap"><div class="inline-block login_block_elem login_block_elem_name" style="padding: 0px;">';
125$toprightmenu .= $user->getNomUrl($picto,
'', -1, 0, 11, 0, ($user->firstname ?
'firstname' : -1),
'atoplogin');
126$toprightmenu .=
'</div></div>';
128$toprightmenu .=
'</div>'.
"\n";
130$toprightmenu .=
'<div class="login_block_other">';
133$parameters = array();
134$result = $hookmanager->executeHooks(
'printTopRightMenu', $parameters);
135if (is_numeric($result)) {
136 if (empty($result)) {
137 $toprightmenu .= $hookmanager->resPrint;
139 $toprightmenu = $hookmanager->resPrint;
142 $toprightmenu .= $result;
145if (!isset($form) || !is_object($form)) {
146 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
147 $form =
new Form($db);
151if (isModEnabled(
'modulebuilder')) {
152 $text =
'<a href="'.DOL_URL_ROOT.
'/modulebuilder/index.php?mainmenu=home&leftmenu=admintools" target="modulebuilder">';
154 $text .=
'<span class="fa fa-bug atoplogin"></span>';
157 $toprightmenu .= $form->textwithtooltip(
'', $langs->trans(
"ModuleBuilder"), 2, 1, $text,
'login_block_elem', 2);
162 $toprightmenu .= $form->textwithtooltip(
'', $logouthtmltext, 2, 1, $logouttext,
'login_block_elem', 2);
165$toprightmenu .=
'</div>';
172print
'</body></html>'.
"\n";
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs=array(), $arrayofcss=array(), $disableforlogin=0, $disablenofollow=0, $disablenoindex=0)
Output html header of a page.