* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ // Protection to avoid direct call of template if (empty($conf) || !is_object($conf)) { print "Error, template page can't be called as URL"; exit; } global $form; ?>
trans("MulticompanySession"); ?>
trans('MulticompanySessionDescription'); ?>

array('MULTICOMPANY_MEMCACHED_ENABLED','MULTICOMPANY_SHMOP_ENABLED'), 'disabled' => array('MULTICOMPANY_MEMCACHED_SERVER') ); echo ajax_mcconstantonoff('MULTICOMPANY_SESSION_ENABLED', $input, 0); ?>
trans("MulticompanyMemcached"); ?>
trans('MulticompanyMemcachedDescription'); ?>

global->MULTICOMPANY_MEMCACHED_SERVER)?$conf->global->MULTICOMPANY_MEMCACHED_SERVER:(!empty($conf->global->MEMCACHED_SERVER)?$conf->global->MEMCACHED_SERVER:'127.0.0.1:11211')); $tmparray=explode(':',$serveraddress); $server=$tmparray[0]; $port=$tmparray[1]?$tmparray[1]:11211; $result=$m->addServer($server, $port); $arraycache=$m->getStats(); if (is_array($arraycache)) { echo $form->textwithtooltip('',$langs->trans("MemcachedServerIsReady"),2,1,img_picto('','tick'),'',3); } else { echo $form->textwithtooltip('',$langs->trans("MemcachedServerIsNotReady"),2,1,img_warning(''),'',3); } echo ' global->MULTICOMPANY_MEMCACHED_ENABLED) ? ' disabled="disabled"' : '').' />'; } else { echo img_warning($langs->trans("MulticompanyMemcachedUnavailable")).' '.$langs->trans("MulticompanyMemcachedUnavailable"); } ?>
array('MULTICOMPANY_SHMOP_ENABLED','MULTICOMPANY_SESSION_ENABLED'), 'disabledenabled' => array('MULTICOMPANY_MEMCACHED_SERVER') ); echo ajax_mcconstantonoff('MULTICOMPANY_MEMCACHED_ENABLED', $input, 0); } else { echo ''.img_picto($langs->trans("Disabled"),'switch_off', 'class="button-not-allowed"').''; } ?>
trans("MulticompanyShmop"); ?>
trans('MulticompanyShmopDescription'); ?>

trans("MulticompanyShmopAvailable"),'tick').' '.$langs->trans("MulticompanyShmopAvailable"); } else { echo img_warning($langs->trans("MulticompanyShmopUnavailable")).' '.$langs->trans("MulticompanyShmopUnavailable"); } ?>
array('MULTICOMPANY_MEMCACHED_ENABLED','MULTICOMPANY_SESSION_ENABLED'), 'disabled' => array('MULTICOMPANY_MEMCACHED_SERVER') ); echo ajax_mcconstantonoff('MULTICOMPANY_SHMOP_ENABLED', $input, 0); } else echo ''.img_picto($langs->trans("Disabled"),'switch_off', 'class="button-not-allowed"').''; ?>