30 if (!defined(
'NOCSRFCHECK')) {
31 define(
'NOCSRFCHECK', 1);
33 if (!defined(
'NOTOKENRENEWAL')) {
34 define(
'NOTOKENRENEWAL', 1);
37 if (!defined(
'NOREQUIREMENU')) {
38 define(
'NOREQUIREMENU', 1);
41 require_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";
62 $arrayofcss = array();
63 top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
68 print
'<div style="padding: 20px;">';
72 $appli = constant(
'DOL_APPLICATION_TITLE');
73 if (!empty($conf->global->MAIN_APPLICATION_TITLE)) {
74 $appli = $conf->global->MAIN_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');
91 if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
93 if ($_SESSION[
"dol_authmode"] !=
'forceuser' && $_SESSION[
"dol_authmode"] !=
'http') {
94 $logouthtmltext .= $langs->trans(
"Logout").
'<br>';
96 $logouttext .=
'<a href="'.DOL_URL_ROOT.
'/user/logout.php?token='.
newToken().
'">';
98 $logouttext .=
'<span class="fa fa-sign-out atoplogin"></span>';
99 $logouttext .=
'</a>';
101 $logouthtmltext .= $langs->trans(
"NoLogoutProcessWithAuthMode", $_SESSION[
"dol_authmode"]);
102 $logouttext .=
img_picto($langs->trans(
'Logout').
":".$langs->trans(
'Logout'),
'logout_top.png',
'class="login"', 0, 0, 1);
106 print
'<div class="login_block_getinfo">'.
"\n";
109 $toprightmenu .=
'<div class="login_block_user">';
113 $toprightmenu .=
'<div class="inline-block nowrap"><div class="inline-block login_block_elem login_block_elem_name" style="padding: 0px;">';
114 $toprightmenu .= $user->getNomUrl($mode,
'', -1, 0, 11, 0, ($user->firstname ?
'firstname' : -1),
'atoplogin');
115 $toprightmenu .=
'</div></div>';
117 $toprightmenu .=
'</div>'.
"\n";
119 $toprightmenu .=
'<div class="login_block_other">';
122 $parameters = array();
123 $result = $hookmanager->executeHooks(
'printTopRightMenu', $parameters);
124 if (is_numeric($result)) {
125 if (empty($result)) {
126 $toprightmenu .= $hookmanager->resPrint;
128 $toprightmenu = $hookmanager->resPrint;
131 $toprightmenu .= $result;
135 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
140 if (!empty($conf->modulebuilder->enabled)) {
141 $text =
'<a href="'.DOL_URL_ROOT.
'/modulebuilder/index.php?mainmenu=home&leftmenu=admintools" target="modulebuilder">';
143 $text .=
'<span class="fa fa-bug atoplogin"></span>';
145 $toprightmenu .=
$form->textwithtooltip(
'', $langs->trans(
"ModuleBuilder"), 2, 1, $text,
'login_block_elem', 2);
210 if (
GETPOST(
'withlogout',
'int')) {
211 $toprightmenu .=
$form->textwithtooltip(
'', $logouthtmltext, 2, 1, $logouttext,
'login_block_elem', 2);
214 $toprightmenu .=
'</div>';
221 print
'</body></html>'.
"\n";
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
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.
top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $disableforlogin=0, $disablenofollow=0, $disablenoindex=0)
Ouput html header of a page.