{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"admin","path":"admin","contentType":"directory"},{"name":"auth","path":"auth","contentType":"directory"},{"name":"backup","path":"backup","contentType":"directory"},{"name":"blocks","path":"blocks","contentType":"directory"},{"name":"calendar","path":"calendar","contentType":"directory"},{"name":"course","path":"course","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"error","path":"error","contentType":"directory"},{"name":"files","path":"files","contentType":"directory"},{"name":"filter","path":"filter","contentType":"directory"},{"name":"lang","path":"lang","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":"login","path":"login","contentType":"directory"},{"name":"mod","path":"mod","contentType":"directory"},{"name":"pix","path":"pix","contentType":"directory"},{"name":"rss","path":"rss","contentType":"directory"},{"name":"theme","path":"theme","contentType":"directory"},{"name":"user","path":"user","contentType":"directory"},{"name":"userpix","path":"userpix","contentType":"directory"},{"name":"CHANGES","path":"CHANGES","contentType":"file"},{"name":"README.txt","path":"README.txt","contentType":"file"},{"name":"config-dist.php","path":"config-dist.php","contentType":"file"},{"name":"file.php","path":"file.php","contentType":"file"},{"name":"help.php","path":"help.php","contentType":"file"},{"name":"index.php","path":"index.php","contentType":"file"},{"name":"tags","path":"tags","contentType":"file"},{"name":"version.php","path":"version.php","contentType":"file"}],"totalCount":27}},"fileTreeProcessingTime":2.098472,"foldersToFetch":[],"repo":{"id":439861,"defaultBranch":"main","name":"moodle","ownerLogin":"moodle","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2009-12-16T23:01:23.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/168672?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"9770e27ecec96f5d4ee0ce1c7961f4fb2cf52935","listCacheKey":"v0:1707448544.0","canEdit":false,"refType":"tree","currentOid":"9770e27ecec96f5d4ee0ce1c7961f4fb2cf52935"},"path":"help.php","currentUser":null,"blob":{"rawLines":["dirroot/lang/$lang/help/$file\";"," } else {"," $filepath = \"$CFG->dirroot/lang/$lang/help/$module/$file\";"," }"," "," if (file_exists(\"$filepath\")) {"," $helpfound = true;"," include(\"$filepath\"); // The actual helpfile",""," if ($module == \"moodle\" && ($file == \"index.html\" || $file == \"mods.html\")) {"," // include file for each module",""," if (!$modules = get_records(\"modules\", \"visible\", 1)) {"," error(\"No modules found!!\"); // Should never happen"," }",""," foreach ($modules as $mod) {"," $strmodulename = get_string(\"modulename\", \"$mod->name\");"," $modulebyname[$strmodulename] = $mod;"," }"," ksort($modulebyname);",""," foreach ($modulebyname as $mod) {"," foreach ($langs as $lang) {"," if (empty($lang)) {"," continue;"," }"," $filepath = \"$CFG->dirroot/lang/$lang/help/$mod->name/$file\";",""," if (file_exists(\"$filepath\")) {"," include(\"$filepath\"); // The actual helpfile"," break;"," }"," }"," }"," }"," break;"," }"," }"," } else {"," echo \"
\";"," echo clean_text($text);"," echo \"
\";"," $helpfound = true;"," }",""," print_simple_box_end();",""," if (!$helpfound) {"," $file = clean_text($file); // Keep it clean!"," notify(\"Help file '$file' could not be found!\");"," }",""," close_window_button();",""," echo \"