moodle-expcontent/get_server.php
2022-09-07 14:04:43 +00:00

12 lines
246 B
PHP

<?php
require('../../config.php');
$expconfig = get_config('mod_expcontent');
$baseurl = $expconfig->baseurl;
if ($baseurl[-1] != "/") $baseurl += "/";
header('Content-Type: application/json');
echo(json_encode(array("server"=>$baseurl)));