30if (!defined(
'NOCSRFCHECK')) {
31 define(
'NOCSRFCHECK', 1);
33if (!defined(
'NOTOKENRENEWAL')) {
34 define(
'NOTOKENRENEWAL', 1);
37if (!defined(
'NOREQUIREMENU')) {
38 define(
'NOREQUIREMENU', 1);
41require_once
'../main.inc.php';
44 $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
49$right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
50$left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
57$title = $langs->trans(
"Info");
60$head =
'<!-- Info user page -->'.
"\n";
63top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
68print
'<div style="padding: 20px;">';
72$appli = constant(
'DOL_APPLICATION_TITLE');
75 if (preg_match(
'/\d\.\d/', $appli)) {
76 if (!preg_match(
'/'.preg_quote(DOL_VERSION).
'/', $appli)) {
77 $appli .=
" (".DOL_VERSION.
")";
80 $appli .=
" ".DOL_VERSION;
83 $appli .=
" ".DOL_VERSION;
87 $appli .=
"<br>".$langs->trans(
"LevelOfFeature").
': '.
getDolGlobalInt(
'MAIN_FEATURES_LEVEL');
95 if ($_SESSION[
"dol_authmode"] !=
'forceuser' && $_SESSION[
"dol_authmode"] !=
'http') {
96 $logouthtmltext .= $langs->trans(
"Logout").
'<br>';
98 $logouttext .=
'<a href="'.DOL_URL_ROOT.
'/user/logout.php?token='.
newToken().
'">';
100 $logouttext .=
'<span class="fa fa-sign-out atoplogin"></span>';
101 $logouttext .=
'</a>';
103 $logouthtmltext .= $langs->trans(
"NoLogoutProcessWithAuthMode", $_SESSION[
"dol_authmode"]);
104 $logouttext .=
img_picto($langs->trans(
'Logout').
":".$langs->trans(
'Logout'),
'logout_top.png',
'class="login"', 0, 0, 1);
108print
'<div class="login_block_getinfo">'.
"\n";
111$toprightmenu .=
'<div class="login_block_user">';
115$toprightmenu .=
'<div class="inline-block nowrap"><div class="inline-block login_block_elem login_block_elem_name" style="padding: 0px;">';
116$toprightmenu .= $user->getNomUrl($mode,
'', -1, 0, 11, 0, ($user->firstname ?
'firstname' : -1),
'atoplogin');
117$toprightmenu .=
'</div></div>';
119$toprightmenu .=
'</div>'.
"\n";
121$toprightmenu .=
'<div class="login_block_other">';
124$parameters = array();
125$result = $hookmanager->executeHooks(
'printTopRightMenu', $parameters);
126if (is_numeric($result)) {
127 if (empty($result)) {
128 $toprightmenu .= $hookmanager->resPrint;
130 $toprightmenu = $hookmanager->resPrint;
133 $toprightmenu .= $result;
136if (!isset($form) || !is_object($form)) {
137 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
138 $form =
new Form($db);
142if (isModEnabled(
'modulebuilder')) {
143 $text =
'<a href="'.DOL_URL_ROOT.
'/modulebuilder/index.php?mainmenu=home&leftmenu=admintools" target="modulebuilder">';
145 $text .=
'<span class="fa fa-bug atoplogin"></span>';
148 $toprightmenu .= $form->textwithtooltip(
'', $langs->trans(
"ModuleBuilder"), 2, 1, $text,
'login_block_elem', 2);
153 $toprightmenu .= $form->textwithtooltip(
'', $logouthtmltext, 2, 1, $logouttext,
'login_block_elem', 2);
156$toprightmenu .=
'</div>';
163print
'</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 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.