Summary:
$root should use {root_path}
Detailed Description:
HI.
in line 30 it starts with:
#Set default root path. Might be needed to change if hosting provider requires
so
$root = '';
the better way is to use the config['root_path'] like this:
#Set default root path. Might be needed to change if hosting provider
requires so
//$root = '';
$gCms = cmsms();
$config = $gCms->GetConfig();
$root= $config['root_path'];