FreePBX System Status

Hello Friends,
So i would like to know how FREEpbx get the system status in the main page. Especialy the FreePBX Statistics, who that know that x trunk id are registred ? Its get info from the database asterisk ? or from a file ?

freepbx.org/forums, or read the source code.