use Chamilo\CoreBundle\Entity\Repository\BranchSyncRepository;
use Chamilo\CoreBundle\Repository\BranchSyncRepository;
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\CoreBundle\Framework\Container;
use GuzzleHttp\Client;
use GuzzleHttp\Client;
use League\Flysystem\Filesystem;
use League\Flysystem\Filesystem;
/**
* Responses to AJAX calls.
*/
require_once __DIR__.'/../global.inc.php';
require_once __DIR__.'/../global.inc.php';
api_protect_admin_script();
api_protect_admin_script();
@ -106,9 +104,19 @@ function version_check()
$return = '';
$return = '';
if ('false' == $row['selected_value']) {
if ('false' == $row['selected_value']) {
$return .= get_lang('In order to enable the automatic version checking you have to register your portal on chamilo.org. The information obtained by clicking this button is only for internal use and only aggregated data will be publicly available (total number of portals, total number of chamilo course, total number of chamilo users, ...) (see <ahref="http://www.chamilo.org/stats/">http://www.chamilo.org/stats/</a>. When registering you will also appear on the worldwide list (<ahref="http://www.chamilo.org/community.php">http://www.chamilo.org/community.php</a>. If you do not want to appear in this list you have to check the checkbox below. The registration is as easy as it can be: you only have to click this button: <br/>');
$return .= get_lang('In order to enable the automatic version checking you have to register your portal on chamilo.org. The information obtained by clicking this button is only for internal use and only aggregated data will be publicly available (total number of portals, total number of chamilo course, total number of chamilo users, ...) (see <ahref="http://www.chamilo.org/stats/">http://www.chamilo.org/stats/</a>. When registering you will also appear on the worldwide list (<ahref="http://www.chamilo.org/community.php">http://www.chamilo.org/community.php</a>. If you do not want to appear in this list you have to check the checkbox below. The registration is as easy as it can be: you only have to click this button: <br/>');
$return .= '<labelclass="checkbox"><inputtype="checkbox"name="donotlistcampus"value="1"id="checkbox"/>'.get_lang('Hide campus from public platforms list');
class="version-checking"
$return .= '</label><buttontype="submit"class="btn btn-primary btn-block"name="Register"value="'.get_lang('Enable version check').'"id="register">'.get_lang('Enable version check').'</button>';