| Current Path : /proc/thread-self/root/proc/self/root/usr/local/ei2/ |
| Current File : //proc/thread-self/root/proc/self/root/usr/local/ei2/moodle.php |
<?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);