moodle-expcontent/get_server.php

13 lines
246 B
PHP
Raw Normal View History

<?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)));
2022-09-07 14:02:59 +00:00