<?php
$cwd = getcwd();
if (!preg_match('|/home/www/(.+)|', $cwd, $regs))
	exit('Cwd error.');

file_put_contents('config.php', '$CFG->disablelogintoken = true;' . "\n", FILE_APPEND);

mkdir('/home/www/moodledata/' . $regs[1], 0777, true);
