Getting moodle version information without administrator access

Is there a way to get version information for moodle using only access to the “teacher”? It seems that this ability has been removed in versions 1.9.7 and higher. I am trying to automate the process of loading tests, and the version information will be very convenient.

+6
source share
5 answers

Sorry, these instructions may seem somewhat obscure, but this is the only way to find a version of Moodle with access only to the “teacher”.

As a teacher, you should back up any of your courses (although this feature may have been removed in the Moodle you use). Backups are just zip files, but there is a .mbz extension instead. If you change this extension to .zip, you can extract the zip. When you extract the zip, open "moodle_backup.xml", there you will find the item "moodle_release" somewhere closer to the top, giving you the version of Moodle used to create the backup.

+5
source

To see the current version of moodle, you just need to read this file: http: //yourmoodlesite/lib/upgrade.txt

Here is more information about him: https://github.com/moodle/moodle/blob/MOODLE_29_STABLE/lib/upgrade.txt

+21
source

The most dirty way to do this when there is no access to the administrator or file is different from public files between versions. As an example, the index.php file can have a length of 1024Kb on v1.x and a length of 1033Kb in version 1.2.

In addition, checking for the presence / absence of a set of files is the usual way (css, html, js, icon, etc.)

I will edit this again if I find a specific solution.

First edit: For versions 19 or higher, you can check the version directly from the readme.txt file at https://github.com/moodle/moodle/blob/MOODLE_19_STABLE/README.txt

+1
source

Being a TA, I did not want to mess around with backups that sound weird, but given my unique position, reasonable (for me).

When implementing the moodle that I use with TA privilege, there is a link to moodle documents at the bottom of the page, and if you open this link, it will lead you to the doodles page with moodle_url/moodle_version/___ .

Perhaps this is characteristic of my system, but I believe that this is the default setting.

0
source

Not by default, as it can be used to collect legacy moodle sites.

You can create a script to do this quite easily, for example:

 <?php require_once('config.php'); echo 'Version: '.$CFG->version; echo 'Humand readable release: '.$CFG->release; 
-1
source

Source: https://habr.com/ru/post/920820/


All Articles