Your IP : 3.141.42.13


Current Path : /home/bitrix/ext_www/royal-thermo.com.ua/ajax/crest/
Upload File :
Current File : /home/bitrix/ext_www/royal-thermo.com.ua/ajax/crest/install.php

<?php
require_once (__DIR__.'/crest.php');

$result = CRest::installApp();
echo '<pre>';
print_r($result);
echo '</pre>';
if($result['rest_only'] === false):?>
	<head>
		<script src="//api.bitrix24.com/api/v1/"></script>
		<?php if($result['install'] == true):?>
			<script>
				BX24.init(function(){
					BX24.installFinish();
				});
			</script>
		<?php endif;?>
	</head>
	<body>
		<?php if($result['install'] == true):?>
			installation has been finished
		<?php else:?>
			installation error
		<?php endif;?>
	</body>
<?php endif;