Skip to content

Commit

Permalink
Disable ping for alpha versions
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 23, 2019
1 parent b1a99c1 commit 0ea5df3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htdocs/main.inc.php
Expand Up @@ -2561,7 +2561,10 @@ function llxFooter($comment = '', $zone = 'private', $disabledoutputofmessages =
|| (!empty($conf->file->instance_unique_id) && ($hash_unique_id != $conf->global->MAIN_FIRST_PING_OK_ID) && ($conf->global->MAIN_FIRST_PING_OK_ID != 'disabled'))
|| GETPOST('forceping', 'alpha'))
{
if (empty($_COOKIE['DOLINSTALLNOPING_'.$hash_unique_id]))
if (strpos('alpha', DOL_VERSION) > 0) {
print "\n<!-- NO JS CODE TO ENABLE the anonymous One time Ping. It is an alpha version -->\n";
}
elseif (empty($_COOKIE['DOLINSTALLNOPING_'.$hash_unique_id]))
{
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';

Expand Down

0 comments on commit 0ea5df3

Please sign in to comment.