Recepti: MUNCHMALLOW
August 14th, 2009
Comments off
Categories: Kulinarika
Just install subweaver and edit this file: %USERPROFILE%AppDataRoamingAdobeDreamweaver CS4en_USConfigurationMenusSubWeaverSubWeaver.htm Change near line 28 the apppath value to: // var apppath = MM.regGetValue(theHive, theKey, theValueData); var apppath = ‘TortoiseProc.exe’;
via Issue 12 – subweaver – Dreamweaver and Windows XP 64 – Project Hosting on Google Code.
function parse_account_list($xml)
{
$doc = new DOMDocument();
$doc->loadXML($xml);
$entries = $doc->getElementsByTagName('entry');
$i = 0;
$profiles = array();
foreach($entries as $entry)
{
$profiles[$i] = array();
$title = $entry->getElementsByTagName('title');
$profiles[$i]["title"] = $title->item(0)->nodeValue;
$entryid = $entry->getElementsByTagName('id');
$profiles[$i]["entryid"] = $entryid->item(0)->nodeValue;
$properties = $entry->getElementsByTagName('property');
foreach($properties as $property)
{
if (strcmp($property->getAttribute('name'), 'ga:accountId') == 0)
$profiles[$i]["accountId"] = $property->getAttribute('value');
if (strcmp($property->getAttribute('name'), 'ga:accountName') == 0)
$profiles[$i]["accountName"] = $property->getAttribute('value');
if (strcmp($property->getAttribute('name'), 'ga:profileId') == 0)
$profiles[$i]["profileId"] = $property->getAttribute('value');
if (strcmp($property->getAttribute('name'), 'ga:webPropertyId') == 0)
$profiles[$i]["webPropertyId"] = $property->getAttribute('value');
}
$tableId = $entry->getElementsByTagName('tableId');
$profiles[$i]["tableId"] = $tableId->item(0)->nodeValue;
$i++;
}
return $profiles;
}