Fix: Module not disabled
This commit is contained in:
parent
829b8e98ad
commit
6a590ffec8
@ -42,16 +42,16 @@ if (empty($dolibarr_main_demo)) accessforbidden('Parameter dolibarr_main_demo mu
|
|||||||
|
|
||||||
$demoprofiles=array(
|
$demoprofiles=array(
|
||||||
array('default'=>'-1', 'key'=>'profdemofun','label'=>'DemoFundation',
|
array('default'=>'-1', 'key'=>'profdemofun','label'=>'DemoFundation',
|
||||||
'disablemodules'=>'banque,barcode,boutique,cashdesk,commande,commercial,compta,comptabilite,contrat,expedition,externalsite,facture,ficheinter,fournisseur,prelevement,produit,projet,propal,propale,service,societe,stock,tax',
|
'disablemodules'=>'banque,barcode,boutique,cashdesk,commande,commercial,compta,comptabilite,contrat,expedition,externalsite,facture,ficheinter,fournisseur,prelevement,product,projet,propal,propale,service,societe,stock,tax',
|
||||||
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot6.png'),
|
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot6.png'),
|
||||||
array('default'=>'0', 'key'=>'profdemofun2','label'=>'DemoFundation2',
|
array('default'=>'0', 'key'=>'profdemofun2','label'=>'DemoFundation2',
|
||||||
'disablemodules'=>'barcode,boutique,cashdesk,commande,commercial,compta,comptabilite,contrat,expedition,externalsite,facture,ficheinter,fournisseur,prelevement,produit,projet,propal,propale,service,societe,stock',
|
'disablemodules'=>'barcode,boutique,cashdesk,commande,commercial,compta,comptabilite,contrat,expedition,externalsite,facture,ficheinter,fournisseur,prelevement,product,projet,propal,propale,service,societe,stock,tax',
|
||||||
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot6.png'),
|
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot6.png'),
|
||||||
array('default'=>'1', 'key'=>'profdemoservonly','label'=>'DemoCompanyServiceOnly',
|
array('default'=>'1', 'key'=>'profdemoservonly','label'=>'DemoCompanyServiceOnly',
|
||||||
'disablemodules'=>'adherent,barcode,boutique,cashdesk,don,expedition,externalsite,prelevement,stock',
|
'disablemodules'=>'adherent,barcode,boutique,cashdesk,categorie,don,expedition,externalsite,prelevement,product,stock',
|
||||||
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot8.png'),
|
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot8.png'),
|
||||||
array('default'=>'-1','key'=>'profdemoshopwithdesk','label'=>'DemoCompanyShopWithCashDesk',
|
array('default'=>'-1','key'=>'profdemoshopwithdesk','label'=>'DemoCompanyShopWithCashDesk',
|
||||||
'disablemodules'=>'adherent,boutique,don,externalsite,ficheinter,prelevement,produit,stock',
|
'disablemodules'=>'adherent,boutique,don,externalsite,ficheinter,prelevement,product,stock',
|
||||||
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot2.png'),
|
'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot2.png'),
|
||||||
array('default'=>'0', 'key'=>'profdemoprodstock','label'=>'DemoCompanyProductAndStocks',
|
array('default'=>'0', 'key'=>'profdemoprodstock','label'=>'DemoCompanyProductAndStocks',
|
||||||
'disablemodules'=>'adherent,boutique,don,externalsite,ficheinter,prelevement,service',
|
'disablemodules'=>'adherent,boutique,don,externalsite,ficheinter,prelevement,service',
|
||||||
@ -66,8 +66,8 @@ $alwaysuncheckedmodules=array('paybox','paypal','filemanager','google','scanner'
|
|||||||
$alwayshiddenmodules=array('accounting','barcode','bookmark','boutique','clicktodial','document','domain','externalrss','externalsite','fckeditor','ftp','geoipmaxmind','gravatar','label','ldap','mantis','memcached','notification',
|
$alwayshiddenmodules=array('accounting','barcode','bookmark','boutique','clicktodial','document','domain','externalrss','externalsite','fckeditor','ftp','geoipmaxmind','gravatar','label','ldap','mantis','memcached','notification',
|
||||||
'syslog','user','webservices',
|
'syslog','user','webservices',
|
||||||
// Extended modules
|
// Extended modules
|
||||||
'awstats','bittorrent','cabinetmed','filemanager','monitoring','nltechno','ovh','phenix','phpsysinfo','submiteverywhere',
|
'awstats','bittorrent','cabinetmed','filemanager','monitoring','nltechno','ovh','phenix','phpsysinfo','postnuke','submiteverywhere',
|
||||||
'thomsonphonebook','webcalendar','webmail');
|
'survey','thomsonphonebook','voyage','webcalendar','webmail');
|
||||||
|
|
||||||
// Search modules
|
// Search modules
|
||||||
$dirlist=$conf->file->dol_document_root;
|
$dirlist=$conf->file->dol_document_root;
|
||||||
@ -318,7 +318,7 @@ print '</table>';
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
// Google Adsense (ex: demo mode)
|
// Google Adsense (need Google module)
|
||||||
if (! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT))
|
if (! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT))
|
||||||
{
|
{
|
||||||
print '<div align="center">'."\n";
|
print '<div align="center">'."\n";
|
||||||
@ -335,6 +335,24 @@ if (! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN
|
|||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Google Analytics (need Google module)
|
||||||
|
if (! empty($conf->global->MAIN_GOOGLE_AN_ID))
|
||||||
|
{
|
||||||
|
print "\n";
|
||||||
|
print '<script type="text/javascript">'."\n";
|
||||||
|
print ' var _gaq = _gaq || [];'."\n";
|
||||||
|
print ' _gaq.push([\'_setAccount\', \''.$conf->global->MAIN_GOOGLE_AN_ID.'\']);'."\n";
|
||||||
|
print ' _gaq.push([\'_trackPageview\']);'."\n";
|
||||||
|
print ''."\n";
|
||||||
|
print ' (function() {'."\n";
|
||||||
|
print ' var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;'."\n";
|
||||||
|
print ' ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';'."\n";
|
||||||
|
print ' var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);'."\n";
|
||||||
|
print ' })();'."\n";
|
||||||
|
print '</script>'."\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
llxFooterVierge('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user