32if (!defined(
'NOCSRFCHECK')) {
33 define(
'NOCSRFCHECK', 1);
35if (!defined(
'NOTOKENRENEWAL')) {
36 define(
'NOTOKENRENEWAL', 1);
38if (!defined(
'NOREQUIREMENU')) {
39 define(
'NOREQUIREMENU', 1);
42require_once
'../main.inc.php';
52 $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
57$right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
58$left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
65$title = $langs->trans(
"Info");
68$head =
'<!-- Info user page -->'.
"\n";
71top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
76print
'<div style="padding: 20px;">';
80$appli = constant(
'DOL_APPLICATION_TITLE');
83 if (preg_match(
'/\d\.\d/', $appli)) {
84 if (!preg_match(
'/'.preg_quote(DOL_VERSION,
'/').
'/', $appli)) {
85 $appli .=
" (".DOL_VERSION.
")";
88 $appli .=
" ".DOL_VERSION;
91 $appli .=
" ".DOL_VERSION;
95 $appli .=
"<br>".$langs->trans(
"LevelOfFeature").
': '.
getDolGlobalInt(
'MAIN_FEATURES_LEVEL');
103 if ($_SESSION[
"dol_authmode"] !=
'forceuser' && $_SESSION[
"dol_authmode"] !=
'http') {
104 $logouthtmltext .= $langs->trans(
"Logout").
'<br>';
106 $logouttext .=
'<a href="'.DOL_URL_ROOT.
'/user/logout.php?token='.
newToken().
'">';
108 $logouttext .=
'<span class="fa fa-sign-out atoplogin"></span>';
109 $logouttext .=
'</a>';
111 $logouthtmltext .= $langs->trans(
"NoLogoutProcessWithAuthMode", $_SESSION[
"dol_authmode"]);
112 $logouttext .= img_picto($langs->trans(
'Logout').
":".$langs->trans(
'Logout'),
'logout_top.png',
'class="login"', 0, 0, 1);
116print
'<div class="login_block_getinfo">'.
"\n";
119$toprightmenu .=
'<div class="login_block_user">';
123$toprightmenu .=
'<div class="inline-block nowrap"><div class="inline-block login_block_elem login_block_elem_name" style="padding: 0px;">';
124$toprightmenu .= $user->getNomUrl($picto,
'', -1, 0, 11, 0, ($user->firstname ?
'firstname' : -1),
'atoplogin');
125$toprightmenu .=
'</div></div>';
127$toprightmenu .=
'</div>'.
"\n";
129$toprightmenu .=
'<div class="login_block_other">';
132$parameters = array();
133$result = $hookmanager->executeHooks(
'printTopRightMenu', $parameters);
134if (is_numeric($result)) {
135 if (empty($result)) {
136 $toprightmenu .= $hookmanager->resPrint;
138 $toprightmenu = $hookmanager->resPrint;
141 $toprightmenu .= $result;
144if (!isset($form) || !is_object($form)) {
145 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
146 $form =
new Form($db);
151 $text =
'<a href="'.DOL_URL_ROOT.
'/modulebuilder/index.php?mainmenu=home&leftmenu=admintools" target="modulebuilder">';
153 $text .=
'<span class="fa fa-bug atoplogin"></span>';
156 $toprightmenu .= $form->textwithtooltip(
'', $langs->trans(
"ModuleBuilder"), 2, 1, $text,
'login_block_elem', 2);
161 $toprightmenu .= $form->textwithtooltip(
'', $logouthtmltext, 2, 1, $logouttext,
'login_block_elem', 2);
164$toprightmenu .=
'</div>';
171print
'</body></html>'.
"\n";
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, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs=array(), $arrayofcss=array(), $disableforlogin=0, $disablenofollow=0, $disablenoindex=0)
Output html header of a page.