Add option WEBSITE_USE_WEBSITE_ACCOUNTS
This commit is contained in:
parent
74116f495e
commit
ec66bde3c9
@ -401,6 +401,23 @@ $titre=$langs->trans("WebsiteSetup");
|
|||||||
$linkback='<a href="'.($backtopage?$backtopage:DOL_URL_ROOT.'/admin/modules.php').'">'.$langs->trans("BackToModuleList").'</a>';
|
$linkback='<a href="'.($backtopage?$backtopage:DOL_URL_ROOT.'/admin/modules.php').'">'.$langs->trans("BackToModuleList").'</a>';
|
||||||
print load_fiche_titre($titre,$linkback,'title_setup');
|
print load_fiche_titre($titre,$linkback,'title_setup');
|
||||||
|
|
||||||
|
// Onglets
|
||||||
|
$head=array();
|
||||||
|
$h = 0;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT."/admin/website.php";
|
||||||
|
$head[$h][1] = $langs->trans("WebSites");
|
||||||
|
$head[$h][2] = 'website';
|
||||||
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT."/admin/website_options.php";
|
||||||
|
$head[$h][1] = $langs->trans("Options");
|
||||||
|
$head[$h][2] = 'options';
|
||||||
|
$h++;
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'website', '', -1);
|
||||||
|
|
||||||
|
|
||||||
print $langs->trans("WebsiteSetupDesc").'<br>';
|
print $langs->trans("WebsiteSetupDesc").'<br>';
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
|
|
||||||
@ -648,7 +665,9 @@ if ($id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<br>';
|
dol_fiche_end();
|
||||||
|
|
||||||
|
//print '<br>';
|
||||||
|
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|||||||
@ -206,7 +206,7 @@ function societe_prepare_head(Societe $object)
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($conf->website->enabled) && (!empty($user->rights->societe->lire) ))
|
if (! empty($conf->website->enabled) && (! empty($conf->global->WEBSITE_USE_WEBSITE_ACCOUNTS)) && (!empty($user->rights->societe->lire)))
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/societe/website.php?id='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT.'/societe/website.php?id='.$object->id;
|
||||||
$head[$h][1] = $langs->trans("WebSiteAccounts");
|
$head[$h][1] = $langs->trans("WebSiteAccounts");
|
||||||
|
|||||||
@ -64,3 +64,5 @@ BackToListOfThirdParty=Back to list for Third Party
|
|||||||
DisableSiteFirst=Disable website first
|
DisableSiteFirst=Disable website first
|
||||||
MyContainerTitle=My web site title
|
MyContainerTitle=My web site title
|
||||||
AnotherContainer=Another container
|
AnotherContainer=Another container
|
||||||
|
WEBSITE_USE_WEBSITE_ACCOUNTS=Enable the web site account table
|
||||||
|
WEBSITE_USE_WEBSITE_ACCOUNTSTooltip=Enable the table to store web site accounts (login/pass) for each website / thirdparty
|
||||||
Loading…
Reference in New Issue
Block a user