| 64 |
|
|
| 65 |
// path to module directory |
// path to module directory |
| 66 |
if ($row->client_id == "1"){ |
if ($row->client_id == "1"){ |
| 67 |
$moduleBaseDir = mosPathName( mosPathName( $mosConfig_absolute_path ) . "administrator/modules" ); |
$moduleBaseDir = mosPathName($mosConfig_absolute_path.'/administrator/modules'); |
| 68 |
} else { |
} else { |
| 69 |
$moduleBaseDir = mosPathName( mosPathName( $mosConfig_absolute_path ) . "modules" ); |
$moduleBaseDir = mosPathName($mosConfig_absolute_path.'/modules'); |
| 70 |
} |
} |
| 71 |
|
|
| 72 |
// xml file for module |
// xml file for module |
| 73 |
$xmlfile = $moduleBaseDir. "/" .$row->module .".xml"; |
$xmlfile = $moduleBaseDir.$row->module.".xml"; |
| 74 |
|
|
| 75 |
if (file_exists( $xmlfile )) { |
if (file_exists( $xmlfile )) { |
| 76 |
|
$parser =& new mosXMLDescription($xmlfile); |
| 77 |
|
if ($parser->getType() != 'module') continue; |
| 78 |
|
$row->creationdate = $parser->getCreationDate('module'); |
| 79 |
|
$row->author = $parser->getAuthor('module'); |
| 80 |
|
$row->copyright = $parser->getCopyright('module'); |
| 81 |
|
$row->authorEmail = $parser->getAuthorEmail('module'); |
| 82 |
|
$row->authorUrl = $parser->getAuthorUrl('module'); |
| 83 |
|
$row->version = $parser->getVersion('module'); |
| 84 |
|
/* |
| 85 |
$xmlDoc =& new DOMIT_Lite_Document(); |
$xmlDoc =& new DOMIT_Lite_Document(); |
| 86 |
$xmlDoc->resolveErrors( true ); |
$xmlDoc->resolveErrors( true ); |
| 87 |
if (!$xmlDoc->loadXML( $xmlfile, false, true )) { |
if (!$xmlDoc->loadXML( $xmlfile, false, true )) { |
| 114 |
|
|
| 115 |
$element = &$xmlDoc->getElementsByPath( 'version', 1 ); |
$element = &$xmlDoc->getElementsByPath( 'version', 1 ); |
| 116 |
$row->version = $element ? $element->getText() : ''; |
$row->version = $element ? $element->getText() : ''; |
| 117 |
|
*/ |
| 118 |
} |
} |
| 119 |
} |
} |
| 120 |
|
|